From 98daa460a61a8d912dad0157469e3f049dff4e6a Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 27 Nov 2023 20:17:20 -0500 Subject: [PATCH] Autogenerated using `update_openapi_client` from `udm-rest-client` Actual generator command: ```bash java -jar openapi-generator-cli-5.4.0.jar generate -g python-legacy \ --library asyncio \ --package-name openapi_client_udm \ --additional-properties=packageVersion=1.0.2 \ -i udm_openapi.json \ -o ./python ``` --- .gitignore | 66 + .gitlab-ci.yml | 33 + .openapi-generator-ignore | 23 + .openapi-generator/FILES | 3004 +++++++++++++++++ .openapi-generator/VERSION | 1 + .travis.yml | 17 + README.md | 1831 ++++++++++ docs/AppcenterApp.md | 20 + docs/AppcenterAppApi.md | 686 ++++ docs/AppcenterAppList.md | 11 + docs/AppcenterAppListEmbedded.md | 11 + docs/AppcenterAppPolicies.md | 35 + docs/AppcenterAppRequest.md | 15 + docs/AppcenterAppRequestAllOf.md | 11 + docs/AppcenterAppRequestPatch.md | 14 + docs/AppcenterAppResponseMixin.md | 15 + docs/ComputersComputer.md | 20 + docs/ComputersComputerApi.md | 201 ++ docs/ComputersComputerList.md | 11 + docs/ComputersComputerListEmbedded.md | 11 + docs/ComputersComputerRequest.md | 15 + docs/ComputersComputerRequestPatch.md | 14 + docs/ComputersComputerResponseMixin.md | 15 + docs/ComputersDomaincontrollerBackup.md | 20 + docs/ComputersDomaincontrollerBackupApi.md | 686 ++++ docs/ComputersDomaincontrollerBackupList.md | 11 + ...utersDomaincontrollerBackupListEmbedded.md | 11 + .../ComputersDomaincontrollerBackupOptions.md | 17 + ...ComputersDomaincontrollerBackupPolicies.md | 20 + .../ComputersDomaincontrollerBackupRequest.md | 15 + ...utersDomaincontrollerBackupRequestPatch.md | 14 + ...tersDomaincontrollerBackupResponseMixin.md | 15 + docs/ComputersDomaincontrollerMaster.md | 20 + docs/ComputersDomaincontrollerMasterApi.md | 686 ++++ docs/ComputersDomaincontrollerMasterList.md | 11 + ...utersDomaincontrollerMasterListEmbedded.md | 11 + .../ComputersDomaincontrollerMasterOptions.md | 17 + ...ComputersDomaincontrollerMasterPolicies.md | 20 + .../ComputersDomaincontrollerMasterRequest.md | 15 + ...utersDomaincontrollerMasterRequestPatch.md | 14 + ...tersDomaincontrollerMasterResponseMixin.md | 15 + docs/ComputersDomaincontrollerSlave.md | 20 + docs/ComputersDomaincontrollerSlaveApi.md | 686 ++++ docs/ComputersDomaincontrollerSlaveList.md | 11 + ...putersDomaincontrollerSlaveListEmbedded.md | 11 + docs/ComputersDomaincontrollerSlaveOptions.md | 17 + .../ComputersDomaincontrollerSlavePolicies.md | 20 + docs/ComputersDomaincontrollerSlaveRequest.md | 15 + ...putersDomaincontrollerSlaveRequestPatch.md | 14 + ...utersDomaincontrollerSlaveResponseMixin.md | 15 + docs/ComputersIpmanagedclient.md | 20 + docs/ComputersIpmanagedclientApi.md | 686 ++++ docs/ComputersIpmanagedclientList.md | 11 + docs/ComputersIpmanagedclientListEmbedded.md | 11 + docs/ComputersIpmanagedclientOptions.md | 14 + docs/ComputersIpmanagedclientRequest.md | 15 + docs/ComputersIpmanagedclientRequestPatch.md | 14 + docs/ComputersIpmanagedclientResponseMixin.md | 15 + docs/ComputersLinux.md | 20 + docs/ComputersLinuxApi.md | 686 ++++ docs/ComputersLinuxList.md | 11 + docs/ComputersLinuxListEmbedded.md | 11 + docs/ComputersLinuxOptions.md | 17 + docs/ComputersLinuxRequest.md | 15 + docs/ComputersLinuxRequestPatch.md | 14 + docs/ComputersLinuxResponseMixin.md | 15 + docs/ComputersMacos.md | 20 + docs/ComputersMacosApi.md | 686 ++++ docs/ComputersMacosList.md | 11 + docs/ComputersMacosListEmbedded.md | 11 + docs/ComputersMacosOptions.md | 17 + docs/ComputersMacosRequest.md | 15 + docs/ComputersMacosRequestPatch.md | 14 + docs/ComputersMacosResponseMixin.md | 15 + docs/ComputersMemberserver.md | 20 + docs/ComputersMemberserverApi.md | 686 ++++ docs/ComputersMemberserverList.md | 11 + docs/ComputersMemberserverListEmbedded.md | 11 + docs/ComputersMemberserverOptions.md | 17 + docs/ComputersMemberserverPolicies.md | 21 + docs/ComputersMemberserverRequest.md | 15 + docs/ComputersMemberserverRequestPatch.md | 14 + docs/ComputersMemberserverResponseMixin.md | 15 + docs/ComputersTrustaccount.md | 20 + docs/ComputersTrustaccountApi.md | 686 ++++ docs/ComputersTrustaccountList.md | 11 + docs/ComputersTrustaccountListEmbedded.md | 11 + docs/ComputersTrustaccountOptions.md | 12 + docs/ComputersTrustaccountRequest.md | 15 + docs/ComputersTrustaccountRequestPatch.md | 14 + docs/ComputersTrustaccountResponseMixin.md | 15 + docs/ComputersUbuntu.md | 20 + docs/ComputersUbuntuApi.md | 686 ++++ docs/ComputersUbuntuList.md | 11 + docs/ComputersUbuntuListEmbedded.md | 11 + docs/ComputersUbuntuOptions.md | 17 + docs/ComputersUbuntuRequest.md | 15 + docs/ComputersUbuntuRequestPatch.md | 14 + docs/ComputersUbuntuResponseMixin.md | 15 + docs/ComputersWindows.md | 20 + docs/ComputersWindowsApi.md | 686 ++++ docs/ComputersWindowsDomaincontroller.md | 20 + docs/ComputersWindowsDomaincontrollerApi.md | 686 ++++ docs/ComputersWindowsDomaincontrollerList.md | 11 + ...tersWindowsDomaincontrollerListEmbedded.md | 11 + ...ComputersWindowsDomaincontrollerOptions.md | 17 + ...ComputersWindowsDomaincontrollerRequest.md | 15 + ...tersWindowsDomaincontrollerRequestPatch.md | 14 + ...ersWindowsDomaincontrollerResponseMixin.md | 15 + docs/ComputersWindowsList.md | 11 + docs/ComputersWindowsListEmbedded.md | 11 + docs/ComputersWindowsOptions.md | 17 + docs/ComputersWindowsRequest.md | 15 + docs/ComputersWindowsRequestPatch.md | 14 + docs/ComputersWindowsResponseMixin.md | 15 + docs/ContainerCn.md | 20 + docs/ContainerCnApi.md | 686 ++++ docs/ContainerCnList.md | 11 + docs/ContainerCnListEmbedded.md | 11 + docs/ContainerCnPolicies.md | 35 + docs/ContainerCnRequest.md | 15 + docs/ContainerCnRequestPatch.md | 14 + docs/ContainerCnResponseMixin.md | 15 + docs/ContainerDc.md | 20 + docs/ContainerDcApi.md | 404 +++ docs/ContainerDcList.md | 11 + docs/ContainerDcListEmbedded.md | 11 + docs/ContainerDcOptions.md | 13 + docs/ContainerDcPolicies.md | 35 + docs/ContainerDcRequest.md | 15 + docs/ContainerDcRequestPatch.md | 14 + docs/ContainerDcResponseMixin.md | 15 + docs/ContainerMsgpo.md | 20 + docs/ContainerMsgpoApi.md | 686 ++++ docs/ContainerMsgpoList.md | 11 + docs/ContainerMsgpoListEmbedded.md | 11 + docs/ContainerMsgpoPolicies.md | 35 + docs/ContainerMsgpoRequest.md | 15 + docs/ContainerMsgpoRequestPatch.md | 14 + docs/ContainerMsgpoResponseMixin.md | 15 + docs/ContainerOu.md | 20 + docs/ContainerOuApi.md | 686 ++++ docs/ContainerOuList.md | 11 + docs/ContainerOuListEmbedded.md | 11 + docs/ContainerOuPolicies.md | 35 + docs/ContainerOuRequest.md | 15 + docs/ContainerOuRequestPatch.md | 14 + docs/ContainerOuResponseMixin.md | 15 + docs/DhcpDhcp.md | 20 + docs/DhcpDhcpApi.md | 201 ++ docs/DhcpDhcpList.md | 11 + docs/DhcpDhcpListEmbedded.md | 11 + docs/DhcpDhcpRequest.md | 15 + docs/DhcpDhcpRequestPatch.md | 14 + docs/DhcpDhcpResponseMixin.md | 15 + docs/DhcpHost.md | 21 + docs/DhcpHostApi.md | 688 ++++ docs/DhcpHostList.md | 11 + docs/DhcpHostListEmbedded.md | 11 + docs/DhcpHostOptions.md | 12 + docs/DhcpHostPolicies.md | 19 + docs/DhcpHostRequest.md | 16 + docs/DhcpHostRequestPatch.md | 15 + docs/DhcpHostResponseMixin.md | 15 + docs/DhcpPool.md | 21 + docs/DhcpPoolApi.md | 688 ++++ docs/DhcpPoolList.md | 11 + docs/DhcpPoolListEmbedded.md | 11 + docs/DhcpPoolOptions.md | 12 + docs/DhcpPoolPolicies.md | 18 + docs/DhcpPoolRequest.md | 16 + docs/DhcpPoolRequestPatch.md | 15 + docs/DhcpPoolResponseMixin.md | 15 + docs/DhcpServer.md | 21 + docs/DhcpServerApi.md | 688 ++++ docs/DhcpServerList.md | 11 + docs/DhcpServerListEmbedded.md | 11 + docs/DhcpServerRequest.md | 16 + docs/DhcpServerRequestPatch.md | 15 + docs/DhcpServerResponseMixin.md | 15 + docs/DhcpService.md | 20 + docs/DhcpServiceApi.md | 686 ++++ docs/DhcpServiceList.md | 11 + docs/DhcpServiceListEmbedded.md | 11 + docs/DhcpServiceOptions.md | 12 + docs/DhcpServicePolicies.md | 19 + docs/DhcpServiceRequest.md | 15 + docs/DhcpServiceRequestPatch.md | 14 + docs/DhcpServiceResponseMixin.md | 15 + docs/DhcpShared.md | 21 + docs/DhcpSharedApi.md | 688 ++++ docs/DhcpSharedList.md | 11 + docs/DhcpSharedListEmbedded.md | 11 + docs/DhcpSharedOptions.md | 12 + docs/DhcpSharedPolicies.md | 19 + docs/DhcpSharedRequest.md | 16 + docs/DhcpSharedRequestPatch.md | 15 + docs/DhcpSharedResponseMixin.md | 15 + docs/DhcpSharedsubnet.md | 21 + docs/DhcpSharedsubnetApi.md | 688 ++++ docs/DhcpSharedsubnetList.md | 11 + docs/DhcpSharedsubnetListEmbedded.md | 11 + docs/DhcpSharedsubnetOptions.md | 12 + docs/DhcpSharedsubnetPolicies.md | 19 + docs/DhcpSharedsubnetRequest.md | 16 + docs/DhcpSharedsubnetRequestPatch.md | 15 + docs/DhcpSharedsubnetResponseMixin.md | 15 + docs/DhcpSubnet.md | 21 + docs/DhcpSubnetApi.md | 688 ++++ docs/DhcpSubnetList.md | 11 + docs/DhcpSubnetListEmbedded.md | 11 + docs/DhcpSubnetOptions.md | 12 + docs/DhcpSubnetPolicies.md | 19 + docs/DhcpSubnetRequest.md | 16 + docs/DhcpSubnetRequestPatch.md | 15 + docs/DhcpSubnetResponseMixin.md | 15 + docs/DnsAlias.md | 21 + docs/DnsAliasApi.md | 688 ++++ docs/DnsAliasList.md | 11 + docs/DnsAliasListEmbedded.md | 11 + docs/DnsAliasRequest.md | 16 + docs/DnsAliasRequestPatch.md | 15 + docs/DnsAliasResponseMixin.md | 15 + docs/DnsDns.md | 20 + docs/DnsDnsApi.md | 201 ++ docs/DnsDnsList.md | 11 + docs/DnsDnsListEmbedded.md | 11 + docs/DnsDnsRequest.md | 15 + docs/DnsDnsRequestPatch.md | 14 + docs/DnsDnsResponseMixin.md | 15 + docs/DnsForwardZone.md | 20 + docs/DnsForwardZoneApi.md | 686 ++++ docs/DnsForwardZoneList.md | 11 + docs/DnsForwardZoneListEmbedded.md | 11 + docs/DnsForwardZonePolicies.md | 35 + docs/DnsForwardZoneRequest.md | 15 + docs/DnsForwardZoneRequestPatch.md | 14 + docs/DnsForwardZoneResponseMixin.md | 15 + docs/DnsHostRecord.md | 21 + docs/DnsHostRecordApi.md | 688 ++++ docs/DnsHostRecordList.md | 11 + docs/DnsHostRecordListEmbedded.md | 11 + docs/DnsHostRecordRequest.md | 16 + docs/DnsHostRecordRequestPatch.md | 15 + docs/DnsHostRecordResponseMixin.md | 15 + docs/DnsNsRecord.md | 21 + docs/DnsNsRecordApi.md | 688 ++++ docs/DnsNsRecordList.md | 11 + docs/DnsNsRecordListEmbedded.md | 11 + docs/DnsNsRecordRequest.md | 16 + docs/DnsNsRecordRequestPatch.md | 15 + docs/DnsNsRecordResponseMixin.md | 15 + docs/DnsPtrRecord.md | 21 + docs/DnsPtrRecordApi.md | 688 ++++ docs/DnsPtrRecordList.md | 11 + docs/DnsPtrRecordListEmbedded.md | 11 + docs/DnsPtrRecordRequest.md | 16 + docs/DnsPtrRecordRequestPatch.md | 15 + docs/DnsPtrRecordResponseMixin.md | 15 + docs/DnsReverseZone.md | 20 + docs/DnsReverseZoneApi.md | 686 ++++ docs/DnsReverseZoneList.md | 11 + docs/DnsReverseZoneListEmbedded.md | 11 + docs/DnsReverseZonePolicies.md | 35 + docs/DnsReverseZoneRequest.md | 15 + docs/DnsReverseZoneRequestPatch.md | 14 + docs/DnsReverseZoneResponseMixin.md | 15 + docs/DnsSrvRecord.md | 21 + docs/DnsSrvRecordApi.md | 688 ++++ docs/DnsSrvRecordList.md | 11 + docs/DnsSrvRecordListEmbedded.md | 11 + docs/DnsSrvRecordRequest.md | 16 + docs/DnsSrvRecordRequestPatch.md | 15 + docs/DnsSrvRecordResponseMixin.md | 15 + docs/DnsTxtRecord.md | 21 + docs/DnsTxtRecordApi.md | 688 ++++ docs/DnsTxtRecordList.md | 11 + docs/DnsTxtRecordListEmbedded.md | 11 + docs/DnsTxtRecordRequest.md | 16 + docs/DnsTxtRecordRequestPatch.md | 15 + docs/DnsTxtRecordResponseMixin.md | 15 + docs/EmbeddedError.md | 15 + docs/GroupsGroup.md | 20 + docs/GroupsGroupApi.md | 686 ++++ docs/GroupsGroupList.md | 11 + docs/GroupsGroupListEmbedded.md | 11 + docs/GroupsGroupOptions.md | 13 + docs/GroupsGroupPolicies.md | 12 + docs/GroupsGroupRequest.md | 15 + docs/GroupsGroupRequestPatch.md | 14 + docs/GroupsGroupResponseMixin.md | 15 + docs/InlineResponse201.md | 12 + docs/KerberosKdcentry.md | 20 + docs/KerberosKdcentryApi.md | 686 ++++ docs/KerberosKdcentryList.md | 11 + docs/KerberosKdcentryListEmbedded.md | 11 + docs/KerberosKdcentryRequest.md | 15 + docs/KerberosKdcentryRequestPatch.md | 14 + docs/KerberosKdcentryResponseMixin.md | 15 + docs/Links.md | 12 + docs/MailDomain.md | 20 + docs/MailDomainApi.md | 686 ++++ docs/MailDomainList.md | 11 + docs/MailDomainListEmbedded.md | 11 + docs/MailDomainRequest.md | 15 + docs/MailDomainRequestPatch.md | 14 + docs/MailDomainResponseMixin.md | 15 + docs/MailFolder.md | 20 + docs/MailFolderApi.md | 686 ++++ docs/MailFolderList.md | 11 + docs/MailFolderListEmbedded.md | 11 + docs/MailFolderRequest.md | 15 + docs/MailFolderRequestPatch.md | 14 + docs/MailFolderResponseMixin.md | 15 + docs/MailLists.md | 20 + docs/MailListsApi.md | 686 ++++ docs/MailListsList.md | 11 + docs/MailListsListEmbedded.md | 11 + docs/MailListsRequest.md | 15 + docs/MailListsRequestPatch.md | 14 + docs/MailListsResponseMixin.md | 15 + docs/MailMail.md | 20 + docs/MailMailApi.md | 201 ++ docs/MailMailList.md | 11 + docs/MailMailListEmbedded.md | 11 + docs/MailMailRequest.md | 15 + docs/MailMailRequestPatch.md | 14 + docs/MailMailResponseMixin.md | 15 + docs/MonitoringAlert.md | 20 + docs/MonitoringAlertApi.md | 686 ++++ docs/MonitoringAlertList.md | 11 + docs/MonitoringAlertListEmbedded.md | 11 + docs/MonitoringAlertRequest.md | 15 + docs/MonitoringAlertRequestPatch.md | 14 + docs/MonitoringAlertResponseMixin.md | 15 + docs/MsDomainpolicy.md | 20 + docs/MsDomainpolicyApi.md | 686 ++++ docs/MsDomainpolicyList.md | 11 + docs/MsDomainpolicyListEmbedded.md | 11 + docs/MsDomainpolicyPolicies.md | 35 + docs/MsDomainpolicyRequest.md | 15 + docs/MsDomainpolicyRequestPatch.md | 14 + docs/MsDomainpolicyResponseMixin.md | 15 + docs/MsGpipsecFilter.md | 20 + docs/MsGpipsecFilterApi.md | 686 ++++ docs/MsGpipsecFilterList.md | 11 + docs/MsGpipsecFilterListEmbedded.md | 11 + docs/MsGpipsecFilterPolicies.md | 35 + docs/MsGpipsecFilterRequest.md | 15 + docs/MsGpipsecFilterRequestPatch.md | 14 + docs/MsGpipsecFilterResponseMixin.md | 15 + docs/MsGpipsecIsakmpPolicy.md | 20 + docs/MsGpipsecIsakmpPolicyApi.md | 686 ++++ docs/MsGpipsecIsakmpPolicyList.md | 11 + docs/MsGpipsecIsakmpPolicyListEmbedded.md | 11 + docs/MsGpipsecIsakmpPolicyPolicies.md | 35 + docs/MsGpipsecIsakmpPolicyRequest.md | 15 + docs/MsGpipsecIsakmpPolicyRequestPatch.md | 14 + docs/MsGpipsecIsakmpPolicyResponseMixin.md | 15 + docs/MsGpipsecNegotiationPolicy.md | 20 + docs/MsGpipsecNegotiationPolicyApi.md | 686 ++++ docs/MsGpipsecNegotiationPolicyList.md | 11 + .../MsGpipsecNegotiationPolicyListEmbedded.md | 11 + docs/MsGpipsecNegotiationPolicyPolicies.md | 35 + docs/MsGpipsecNegotiationPolicyRequest.md | 15 + .../MsGpipsecNegotiationPolicyRequestPatch.md | 14 + ...MsGpipsecNegotiationPolicyResponseMixin.md | 15 + docs/MsGpipsecNfa.md | 20 + docs/MsGpipsecNfaApi.md | 686 ++++ docs/MsGpipsecNfaList.md | 11 + docs/MsGpipsecNfaListEmbedded.md | 11 + docs/MsGpipsecNfaPolicies.md | 35 + docs/MsGpipsecNfaRequest.md | 15 + docs/MsGpipsecNfaRequestPatch.md | 14 + docs/MsGpipsecNfaResponseMixin.md | 15 + docs/MsGpipsecPolicy.md | 20 + docs/MsGpipsecPolicyApi.md | 686 ++++ docs/MsGpipsecPolicyList.md | 11 + docs/MsGpipsecPolicyListEmbedded.md | 11 + docs/MsGpipsecPolicyPolicies.md | 35 + docs/MsGpipsecPolicyRequest.md | 15 + docs/MsGpipsecPolicyRequestPatch.md | 14 + docs/MsGpipsecPolicyResponseMixin.md | 15 + docs/MsGpsiCategoryRegistration.md | 20 + docs/MsGpsiCategoryRegistrationApi.md | 686 ++++ docs/MsGpsiCategoryRegistrationList.md | 11 + .../MsGpsiCategoryRegistrationListEmbedded.md | 11 + docs/MsGpsiCategoryRegistrationPolicies.md | 35 + docs/MsGpsiCategoryRegistrationRequest.md | 15 + .../MsGpsiCategoryRegistrationRequestPatch.md | 14 + ...MsGpsiCategoryRegistrationResponseMixin.md | 15 + docs/MsGpsiClassStore.md | 20 + docs/MsGpsiClassStoreApi.md | 686 ++++ docs/MsGpsiClassStoreList.md | 11 + docs/MsGpsiClassStoreListEmbedded.md | 11 + docs/MsGpsiClassStorePolicies.md | 35 + docs/MsGpsiClassStoreRequest.md | 15 + docs/MsGpsiClassStoreRequestPatch.md | 14 + docs/MsGpsiClassStoreResponseMixin.md | 15 + docs/MsGpsiPackageRegistration.md | 20 + docs/MsGpsiPackageRegistrationApi.md | 686 ++++ docs/MsGpsiPackageRegistrationList.md | 11 + docs/MsGpsiPackageRegistrationListEmbedded.md | 11 + docs/MsGpsiPackageRegistrationPolicies.md | 35 + docs/MsGpsiPackageRegistrationRequest.md | 15 + docs/MsGpsiPackageRegistrationRequestPatch.md | 14 + .../MsGpsiPackageRegistrationResponseMixin.md | 15 + docs/MsGpwlWired.md | 20 + docs/MsGpwlWiredApi.md | 686 ++++ docs/MsGpwlWiredList.md | 11 + docs/MsGpwlWiredListEmbedded.md | 11 + docs/MsGpwlWiredPolicies.md | 35 + docs/MsGpwlWiredRequest.md | 15 + docs/MsGpwlWiredRequestPatch.md | 14 + docs/MsGpwlWiredResponseMixin.md | 15 + docs/MsGpwlWireless.md | 20 + docs/MsGpwlWirelessApi.md | 686 ++++ docs/MsGpwlWirelessBlob.md | 20 + docs/MsGpwlWirelessBlobApi.md | 686 ++++ docs/MsGpwlWirelessBlobList.md | 11 + docs/MsGpwlWirelessBlobListEmbedded.md | 11 + docs/MsGpwlWirelessBlobPolicies.md | 35 + docs/MsGpwlWirelessBlobRequest.md | 15 + docs/MsGpwlWirelessBlobRequestPatch.md | 14 + docs/MsGpwlWirelessBlobResponseMixin.md | 15 + docs/MsGpwlWirelessList.md | 11 + docs/MsGpwlWirelessListEmbedded.md | 11 + docs/MsGpwlWirelessPolicies.md | 35 + docs/MsGpwlWirelessRequest.md | 15 + docs/MsGpwlWirelessRequestPatch.md | 14 + docs/MsGpwlWirelessResponseMixin.md | 15 + docs/NagiosNagios.md | 20 + docs/NagiosNagiosApi.md | 201 ++ docs/NagiosNagiosList.md | 11 + docs/NagiosNagiosListEmbedded.md | 11 + docs/NagiosNagiosRequest.md | 15 + docs/NagiosNagiosRequestPatch.md | 14 + docs/NagiosNagiosResponseMixin.md | 15 + docs/NagiosService.md | 20 + docs/NagiosServiceApi.md | 686 ++++ docs/NagiosServiceList.md | 11 + docs/NagiosServiceListEmbedded.md | 11 + docs/NagiosServiceRequest.md | 15 + docs/NagiosServiceRequestPatch.md | 14 + docs/NagiosServiceResponseMixin.md | 15 + docs/NagiosTimeperiod.md | 20 + docs/NagiosTimeperiodApi.md | 686 ++++ docs/NagiosTimeperiodList.md | 11 + docs/NagiosTimeperiodListEmbedded.md | 11 + docs/NagiosTimeperiodRequest.md | 15 + docs/NagiosTimeperiodRequestPatch.md | 14 + docs/NagiosTimeperiodResponseMixin.md | 15 + docs/NetworksNetwork.md | 20 + docs/NetworksNetworkApi.md | 686 ++++ docs/NetworksNetworkList.md | 11 + docs/NetworksNetworkListEmbedded.md | 11 + docs/NetworksNetworkRequest.md | 15 + docs/NetworksNetworkRequestPatch.md | 14 + docs/NetworksNetworkResponseMixin.md | 15 + docs/PoliciesAdminContainer.md | 20 + docs/PoliciesAdminContainerApi.md | 686 ++++ docs/PoliciesAdminContainerList.md | 11 + docs/PoliciesAdminContainerListEmbedded.md | 11 + docs/PoliciesAdminContainerRequest.md | 15 + docs/PoliciesAdminContainerRequestPatch.md | 14 + docs/PoliciesAdminContainerResponseMixin.md | 15 + docs/PoliciesDesktop.md | 20 + docs/PoliciesDesktopApi.md | 686 ++++ docs/PoliciesDesktopList.md | 11 + docs/PoliciesDesktopListEmbedded.md | 11 + docs/PoliciesDesktopRequest.md | 15 + docs/PoliciesDesktopRequestPatch.md | 14 + docs/PoliciesDesktopResponseMixin.md | 15 + docs/PoliciesDhcpBoot.md | 20 + docs/PoliciesDhcpBootApi.md | 686 ++++ docs/PoliciesDhcpBootList.md | 11 + docs/PoliciesDhcpBootListEmbedded.md | 11 + docs/PoliciesDhcpBootRequest.md | 15 + docs/PoliciesDhcpBootRequestPatch.md | 14 + docs/PoliciesDhcpBootResponseMixin.md | 15 + docs/PoliciesDhcpDns.md | 20 + docs/PoliciesDhcpDnsApi.md | 686 ++++ docs/PoliciesDhcpDnsList.md | 11 + docs/PoliciesDhcpDnsListEmbedded.md | 11 + docs/PoliciesDhcpDnsRequest.md | 15 + docs/PoliciesDhcpDnsRequestPatch.md | 14 + docs/PoliciesDhcpDnsResponseMixin.md | 15 + docs/PoliciesDhcpDnsupdate.md | 20 + docs/PoliciesDhcpDnsupdateApi.md | 686 ++++ docs/PoliciesDhcpDnsupdateList.md | 11 + docs/PoliciesDhcpDnsupdateListEmbedded.md | 11 + docs/PoliciesDhcpDnsupdateRequest.md | 15 + docs/PoliciesDhcpDnsupdateRequestPatch.md | 14 + docs/PoliciesDhcpDnsupdateResponseMixin.md | 15 + docs/PoliciesDhcpLeasetime.md | 20 + docs/PoliciesDhcpLeasetimeApi.md | 686 ++++ docs/PoliciesDhcpLeasetimeList.md | 11 + docs/PoliciesDhcpLeasetimeListEmbedded.md | 11 + docs/PoliciesDhcpLeasetimeRequest.md | 15 + docs/PoliciesDhcpLeasetimeRequestPatch.md | 14 + docs/PoliciesDhcpLeasetimeResponseMixin.md | 15 + docs/PoliciesDhcpNetbios.md | 20 + docs/PoliciesDhcpNetbiosApi.md | 686 ++++ docs/PoliciesDhcpNetbiosList.md | 11 + docs/PoliciesDhcpNetbiosListEmbedded.md | 11 + docs/PoliciesDhcpNetbiosRequest.md | 15 + docs/PoliciesDhcpNetbiosRequestPatch.md | 14 + docs/PoliciesDhcpNetbiosResponseMixin.md | 15 + docs/PoliciesDhcpRouting.md | 20 + docs/PoliciesDhcpRoutingApi.md | 686 ++++ docs/PoliciesDhcpRoutingList.md | 11 + docs/PoliciesDhcpRoutingListEmbedded.md | 11 + docs/PoliciesDhcpRoutingRequest.md | 15 + docs/PoliciesDhcpRoutingRequestPatch.md | 14 + docs/PoliciesDhcpRoutingResponseMixin.md | 15 + docs/PoliciesDhcpScope.md | 20 + docs/PoliciesDhcpScopeApi.md | 686 ++++ docs/PoliciesDhcpScopeList.md | 11 + docs/PoliciesDhcpScopeListEmbedded.md | 11 + docs/PoliciesDhcpScopeRequest.md | 15 + docs/PoliciesDhcpScopeRequestPatch.md | 14 + docs/PoliciesDhcpScopeResponseMixin.md | 15 + docs/PoliciesDhcpStatements.md | 20 + docs/PoliciesDhcpStatementsApi.md | 686 ++++ docs/PoliciesDhcpStatementsList.md | 11 + docs/PoliciesDhcpStatementsListEmbedded.md | 11 + docs/PoliciesDhcpStatementsRequest.md | 15 + docs/PoliciesDhcpStatementsRequestPatch.md | 14 + docs/PoliciesDhcpStatementsResponseMixin.md | 15 + docs/PoliciesLdapserver.md | 20 + docs/PoliciesLdapserverApi.md | 686 ++++ docs/PoliciesLdapserverList.md | 11 + docs/PoliciesLdapserverListEmbedded.md | 11 + docs/PoliciesLdapserverRequest.md | 15 + docs/PoliciesLdapserverRequestPatch.md | 14 + docs/PoliciesLdapserverResponseMixin.md | 15 + docs/PoliciesMaintenance.md | 20 + docs/PoliciesMaintenanceApi.md | 686 ++++ docs/PoliciesMaintenanceList.md | 11 + docs/PoliciesMaintenanceListEmbedded.md | 11 + docs/PoliciesMaintenanceRequest.md | 15 + docs/PoliciesMaintenanceRequestPatch.md | 14 + docs/PoliciesMaintenanceResponseMixin.md | 15 + docs/PoliciesMasterpackages.md | 20 + docs/PoliciesMasterpackagesApi.md | 686 ++++ docs/PoliciesMasterpackagesList.md | 11 + docs/PoliciesMasterpackagesListEmbedded.md | 11 + docs/PoliciesMasterpackagesRequest.md | 15 + docs/PoliciesMasterpackagesRequestPatch.md | 14 + docs/PoliciesMasterpackagesResponseMixin.md | 15 + docs/PoliciesMemberpackages.md | 20 + docs/PoliciesMemberpackagesApi.md | 686 ++++ docs/PoliciesMemberpackagesList.md | 11 + docs/PoliciesMemberpackagesListEmbedded.md | 11 + docs/PoliciesMemberpackagesRequest.md | 15 + docs/PoliciesMemberpackagesRequestPatch.md | 14 + docs/PoliciesMemberpackagesResponseMixin.md | 15 + docs/PoliciesNfsmounts.md | 20 + docs/PoliciesNfsmountsApi.md | 686 ++++ docs/PoliciesNfsmountsList.md | 11 + docs/PoliciesNfsmountsListEmbedded.md | 11 + docs/PoliciesNfsmountsRequest.md | 15 + docs/PoliciesNfsmountsRequestPatch.md | 14 + docs/PoliciesNfsmountsResponseMixin.md | 15 + docs/PoliciesPolicy.md | 20 + docs/PoliciesPolicyApi.md | 201 ++ docs/PoliciesPolicyList.md | 11 + docs/PoliciesPolicyListEmbedded.md | 11 + docs/PoliciesPolicyRequest.md | 15 + docs/PoliciesPolicyRequestPatch.md | 14 + docs/PoliciesPolicyResponseMixin.md | 15 + docs/PoliciesPrintserver.md | 20 + docs/PoliciesPrintserverApi.md | 686 ++++ docs/PoliciesPrintserverList.md | 11 + docs/PoliciesPrintserverListEmbedded.md | 11 + docs/PoliciesPrintserverRequest.md | 15 + docs/PoliciesPrintserverRequestPatch.md | 14 + docs/PoliciesPrintserverResponseMixin.md | 15 + docs/PoliciesPwhistory.md | 20 + docs/PoliciesPwhistoryApi.md | 686 ++++ docs/PoliciesPwhistoryList.md | 11 + docs/PoliciesPwhistoryListEmbedded.md | 11 + docs/PoliciesPwhistoryRequest.md | 15 + docs/PoliciesPwhistoryRequestPatch.md | 14 + docs/PoliciesPwhistoryResponseMixin.md | 15 + docs/PoliciesRegistry.md | 20 + docs/PoliciesRegistryApi.md | 686 ++++ docs/PoliciesRegistryList.md | 11 + docs/PoliciesRegistryListEmbedded.md | 11 + docs/PoliciesRegistryRequest.md | 15 + docs/PoliciesRegistryRequestPatch.md | 14 + docs/PoliciesRegistryResponseMixin.md | 15 + docs/PoliciesRelease.md | 20 + docs/PoliciesReleaseApi.md | 686 ++++ docs/PoliciesReleaseList.md | 11 + docs/PoliciesReleaseListEmbedded.md | 11 + docs/PoliciesReleaseRequest.md | 15 + docs/PoliciesReleaseRequestPatch.md | 14 + docs/PoliciesReleaseResponseMixin.md | 15 + docs/PoliciesRepositoryserver.md | 20 + docs/PoliciesRepositoryserverApi.md | 686 ++++ docs/PoliciesRepositoryserverList.md | 11 + docs/PoliciesRepositoryserverListEmbedded.md | 11 + docs/PoliciesRepositoryserverRequest.md | 15 + docs/PoliciesRepositoryserverRequestPatch.md | 14 + docs/PoliciesRepositoryserverResponseMixin.md | 15 + docs/PoliciesRepositorysync.md | 20 + docs/PoliciesRepositorysyncApi.md | 686 ++++ docs/PoliciesRepositorysyncList.md | 11 + docs/PoliciesRepositorysyncListEmbedded.md | 11 + docs/PoliciesRepositorysyncRequest.md | 15 + docs/PoliciesRepositorysyncRequestPatch.md | 14 + docs/PoliciesRepositorysyncResponseMixin.md | 15 + docs/PoliciesShareUserquota.md | 20 + docs/PoliciesShareUserquotaApi.md | 686 ++++ docs/PoliciesShareUserquotaList.md | 11 + docs/PoliciesShareUserquotaListEmbedded.md | 11 + docs/PoliciesShareUserquotaRequest.md | 15 + docs/PoliciesShareUserquotaRequestPatch.md | 14 + docs/PoliciesShareUserquotaResponseMixin.md | 15 + docs/PoliciesSlavepackages.md | 20 + docs/PoliciesSlavepackagesApi.md | 686 ++++ docs/PoliciesSlavepackagesList.md | 11 + docs/PoliciesSlavepackagesListEmbedded.md | 11 + docs/PoliciesSlavepackagesRequest.md | 15 + docs/PoliciesSlavepackagesRequestPatch.md | 14 + docs/PoliciesSlavepackagesResponseMixin.md | 15 + docs/PoliciesUmc.md | 20 + docs/PoliciesUmcApi.md | 686 ++++ docs/PoliciesUmcList.md | 11 + docs/PoliciesUmcListEmbedded.md | 11 + docs/PoliciesUmcRequest.md | 15 + docs/PoliciesUmcRequestPatch.md | 14 + docs/PoliciesUmcResponseMixin.md | 15 + docs/PortalsAll.md | 20 + docs/PortalsAllApi.md | 201 ++ docs/PortalsAllList.md | 11 + docs/PortalsAllListEmbedded.md | 11 + docs/PortalsAllRequest.md | 15 + docs/PortalsAllRequestPatch.md | 14 + docs/PortalsAllResponseMixin.md | 15 + docs/PortalsAnnouncement.md | 20 + docs/PortalsAnnouncementApi.md | 686 ++++ docs/PortalsAnnouncementList.md | 11 + docs/PortalsAnnouncementListEmbedded.md | 11 + docs/PortalsAnnouncementRequest.md | 15 + docs/PortalsAnnouncementRequestPatch.md | 14 + docs/PortalsAnnouncementResponseMixin.md | 15 + docs/PortalsCategory.md | 20 + docs/PortalsCategoryApi.md | 686 ++++ docs/PortalsCategoryList.md | 11 + docs/PortalsCategoryListEmbedded.md | 11 + docs/PortalsCategoryRequest.md | 15 + docs/PortalsCategoryRequestPatch.md | 14 + docs/PortalsCategoryResponseMixin.md | 15 + docs/PortalsEntry.md | 20 + docs/PortalsEntryApi.md | 686 ++++ docs/PortalsEntryList.md | 11 + docs/PortalsEntryListEmbedded.md | 11 + docs/PortalsEntryRequest.md | 15 + docs/PortalsEntryRequestPatch.md | 14 + docs/PortalsEntryResponseMixin.md | 15 + docs/PortalsFolder.md | 20 + docs/PortalsFolderApi.md | 686 ++++ docs/PortalsFolderList.md | 11 + docs/PortalsFolderListEmbedded.md | 11 + docs/PortalsFolderRequest.md | 15 + docs/PortalsFolderRequestPatch.md | 14 + docs/PortalsFolderResponseMixin.md | 15 + docs/PortalsPortal.md | 20 + docs/PortalsPortalApi.md | 686 ++++ docs/PortalsPortalList.md | 11 + docs/PortalsPortalListEmbedded.md | 11 + docs/PortalsPortalRequest.md | 15 + docs/PortalsPortalRequestPatch.md | 14 + docs/PortalsPortalResponseMixin.md | 15 + docs/SamlIdpconfig.md | 20 + docs/SamlIdpconfigApi.md | 686 ++++ docs/SamlIdpconfigList.md | 11 + docs/SamlIdpconfigListEmbedded.md | 11 + docs/SamlIdpconfigRequest.md | 15 + docs/SamlIdpconfigRequestPatch.md | 14 + docs/SamlIdpconfigResponseMixin.md | 15 + docs/SamlServiceprovider.md | 20 + docs/SamlServiceproviderApi.md | 686 ++++ docs/SamlServiceproviderList.md | 11 + docs/SamlServiceproviderListEmbedded.md | 11 + docs/SamlServiceproviderRequest.md | 15 + docs/SamlServiceproviderRequestPatch.md | 14 + docs/SamlServiceproviderResponseMixin.md | 15 + docs/SettingsCn.md | 20 + docs/SettingsCnApi.md | 209 ++ docs/SettingsCnList.md | 11 + docs/SettingsCnListEmbedded.md | 11 + docs/SettingsCnPolicies.md | 35 + docs/SettingsCnRequest.md | 15 + docs/SettingsCnRequestPatch.md | 14 + docs/SettingsCnResponseMixin.md | 15 + docs/SettingsData.md | 20 + docs/SettingsDataApi.md | 686 ++++ docs/SettingsDataList.md | 11 + docs/SettingsDataListEmbedded.md | 11 + docs/SettingsDataRequest.md | 15 + docs/SettingsDataRequestPatch.md | 14 + docs/SettingsDataResponseMixin.md | 15 + docs/SettingsDefault.md | 20 + docs/SettingsDefaultApi.md | 404 +++ docs/SettingsDefaultList.md | 11 + docs/SettingsDefaultListEmbedded.md | 11 + docs/SettingsDefaultRequest.md | 15 + docs/SettingsDefaultRequestPatch.md | 14 + docs/SettingsDefaultResponseMixin.md | 15 + docs/SettingsDirectory.md | 20 + docs/SettingsDirectoryApi.md | 404 +++ docs/SettingsDirectoryList.md | 11 + docs/SettingsDirectoryListEmbedded.md | 11 + docs/SettingsDirectoryRequest.md | 15 + docs/SettingsDirectoryRequestPatch.md | 14 + docs/SettingsDirectoryResponseMixin.md | 15 + docs/SettingsExtendedAttribute.md | 20 + docs/SettingsExtendedAttributeApi.md | 686 ++++ docs/SettingsExtendedAttributeList.md | 11 + docs/SettingsExtendedAttributeListEmbedded.md | 11 + docs/SettingsExtendedAttributeRequest.md | 15 + docs/SettingsExtendedAttributeRequestPatch.md | 14 + .../SettingsExtendedAttributeResponseMixin.md | 15 + docs/SettingsExtendedOptions.md | 20 + docs/SettingsExtendedOptionsApi.md | 686 ++++ docs/SettingsExtendedOptionsList.md | 11 + docs/SettingsExtendedOptionsListEmbedded.md | 11 + docs/SettingsExtendedOptionsRequest.md | 15 + docs/SettingsExtendedOptionsRequestPatch.md | 14 + docs/SettingsExtendedOptionsResponseMixin.md | 15 + docs/SettingsLdapacl.md | 20 + docs/SettingsLdapaclApi.md | 686 ++++ docs/SettingsLdapaclList.md | 11 + docs/SettingsLdapaclListEmbedded.md | 11 + docs/SettingsLdapaclRequest.md | 15 + docs/SettingsLdapaclRequestPatch.md | 14 + docs/SettingsLdapaclResponseMixin.md | 15 + docs/SettingsLdapschema.md | 20 + docs/SettingsLdapschemaApi.md | 686 ++++ docs/SettingsLdapschemaList.md | 11 + docs/SettingsLdapschemaListEmbedded.md | 11 + docs/SettingsLdapschemaRequest.md | 15 + docs/SettingsLdapschemaRequestPatch.md | 14 + docs/SettingsLdapschemaResponseMixin.md | 15 + docs/SettingsLicense.md | 20 + docs/SettingsLicenseApi.md | 307 ++ docs/SettingsLicenseList.md | 11 + docs/SettingsLicenseListEmbedded.md | 11 + docs/SettingsLicenseOptions.md | 13 + docs/SettingsLicenseRequest.md | 15 + docs/SettingsLicenseRequestPatch.md | 14 + docs/SettingsLicenseResponseMixin.md | 15 + docs/SettingsLock.md | 20 + docs/SettingsLockApi.md | 502 +++ docs/SettingsLockList.md | 11 + docs/SettingsLockListEmbedded.md | 11 + docs/SettingsLockRequest.md | 15 + docs/SettingsLockRequestPatch.md | 14 + docs/SettingsLockResponseMixin.md | 15 + docs/SettingsMsprintconnectionpolicy.md | 20 + docs/SettingsMsprintconnectionpolicyApi.md | 686 ++++ docs/SettingsMsprintconnectionpolicyList.md | 11 + ...ingsMsprintconnectionpolicyListEmbedded.md | 11 + ...SettingsMsprintconnectionpolicyPolicies.md | 35 + .../SettingsMsprintconnectionpolicyRequest.md | 15 + ...ingsMsprintconnectionpolicyRequestPatch.md | 14 + ...ngsMsprintconnectionpolicyResponseMixin.md | 15 + docs/SettingsMswmifilter.md | 20 + docs/SettingsMswmifilterApi.md | 686 ++++ docs/SettingsMswmifilterList.md | 11 + docs/SettingsMswmifilterListEmbedded.md | 11 + docs/SettingsMswmifilterPolicies.md | 35 + docs/SettingsMswmifilterRequest.md | 15 + docs/SettingsMswmifilterRequestPatch.md | 14 + docs/SettingsMswmifilterResponseMixin.md | 15 + docs/SettingsPackages.md | 20 + docs/SettingsPackagesApi.md | 686 ++++ docs/SettingsPackagesList.md | 11 + docs/SettingsPackagesListEmbedded.md | 11 + docs/SettingsPackagesRequest.md | 15 + docs/SettingsPackagesRequestPatch.md | 14 + docs/SettingsPackagesResponseMixin.md | 15 + docs/SettingsPortal.md | 20 + docs/SettingsPortalAll.md | 20 + docs/SettingsPortalAllApi.md | 201 ++ docs/SettingsPortalAllList.md | 11 + docs/SettingsPortalAllListEmbedded.md | 11 + docs/SettingsPortalAllRequest.md | 15 + docs/SettingsPortalAllRequestPatch.md | 14 + docs/SettingsPortalAllResponseMixin.md | 15 + docs/SettingsPortalApi.md | 686 ++++ docs/SettingsPortalCategory.md | 20 + docs/SettingsPortalCategoryApi.md | 686 ++++ docs/SettingsPortalCategoryList.md | 11 + docs/SettingsPortalCategoryListEmbedded.md | 11 + docs/SettingsPortalCategoryRequest.md | 15 + docs/SettingsPortalCategoryRequestPatch.md | 14 + docs/SettingsPortalCategoryResponseMixin.md | 15 + docs/SettingsPortalEntry.md | 20 + docs/SettingsPortalEntryApi.md | 686 ++++ docs/SettingsPortalEntryList.md | 11 + docs/SettingsPortalEntryListEmbedded.md | 11 + docs/SettingsPortalEntryRequest.md | 15 + docs/SettingsPortalEntryRequestPatch.md | 14 + docs/SettingsPortalEntryResponseMixin.md | 15 + docs/SettingsPortalList.md | 11 + docs/SettingsPortalListEmbedded.md | 11 + docs/SettingsPortalRequest.md | 15 + docs/SettingsPortalRequestPatch.md | 14 + docs/SettingsPortalResponseMixin.md | 15 + docs/SettingsPrintermodel.md | 20 + docs/SettingsPrintermodelApi.md | 686 ++++ docs/SettingsPrintermodelList.md | 11 + docs/SettingsPrintermodelListEmbedded.md | 11 + docs/SettingsPrintermodelRequest.md | 15 + docs/SettingsPrintermodelRequestPatch.md | 14 + docs/SettingsPrintermodelResponseMixin.md | 15 + docs/SettingsPrinteruri.md | 20 + docs/SettingsPrinteruriApi.md | 686 ++++ docs/SettingsPrinteruriList.md | 11 + docs/SettingsPrinteruriListEmbedded.md | 11 + docs/SettingsPrinteruriRequest.md | 15 + docs/SettingsPrinteruriRequestPatch.md | 14 + docs/SettingsPrinteruriResponseMixin.md | 15 + docs/SettingsProhibitedUsername.md | 20 + docs/SettingsProhibitedUsernameApi.md | 686 ++++ docs/SettingsProhibitedUsernameList.md | 11 + .../SettingsProhibitedUsernameListEmbedded.md | 11 + docs/SettingsProhibitedUsernameRequest.md | 15 + .../SettingsProhibitedUsernameRequestPatch.md | 14 + ...SettingsProhibitedUsernameResponseMixin.md | 15 + docs/SettingsSambaconfig.md | 20 + docs/SettingsSambaconfigApi.md | 502 +++ docs/SettingsSambaconfigList.md | 11 + docs/SettingsSambaconfigListEmbedded.md | 11 + docs/SettingsSambaconfigRequest.md | 15 + docs/SettingsSambaconfigRequestPatch.md | 14 + docs/SettingsSambaconfigResponseMixin.md | 15 + docs/SettingsSambadomain.md | 20 + docs/SettingsSambadomainApi.md | 686 ++++ docs/SettingsSambadomainList.md | 11 + docs/SettingsSambadomainListEmbedded.md | 11 + docs/SettingsSambadomainRequest.md | 15 + docs/SettingsSambadomainRequestPatch.md | 14 + docs/SettingsSambadomainResponseMixin.md | 15 + docs/SettingsService.md | 20 + docs/SettingsServiceApi.md | 686 ++++ docs/SettingsServiceList.md | 11 + docs/SettingsServiceListEmbedded.md | 11 + docs/SettingsServiceRequest.md | 15 + docs/SettingsServiceRequestPatch.md | 14 + docs/SettingsServiceResponseMixin.md | 15 + docs/SettingsSettings.md | 20 + docs/SettingsSettingsApi.md | 201 ++ docs/SettingsSettingsList.md | 11 + docs/SettingsSettingsListEmbedded.md | 11 + docs/SettingsSettingsRequest.md | 15 + docs/SettingsSettingsRequestPatch.md | 14 + docs/SettingsSettingsResponseMixin.md | 15 + docs/SettingsSyntax.md | 20 + docs/SettingsSyntaxApi.md | 686 ++++ docs/SettingsSyntaxList.md | 11 + docs/SettingsSyntaxListEmbedded.md | 11 + docs/SettingsSyntaxRequest.md | 15 + docs/SettingsSyntaxRequestPatch.md | 14 + docs/SettingsSyntaxResponseMixin.md | 15 + docs/SettingsUdmHook.md | 20 + docs/SettingsUdmHookApi.md | 686 ++++ docs/SettingsUdmHookList.md | 11 + docs/SettingsUdmHookListEmbedded.md | 11 + docs/SettingsUdmHookRequest.md | 15 + docs/SettingsUdmHookRequestPatch.md | 14 + docs/SettingsUdmHookResponseMixin.md | 15 + docs/SettingsUdmModule.md | 20 + docs/SettingsUdmModuleApi.md | 686 ++++ docs/SettingsUdmModuleList.md | 11 + docs/SettingsUdmModuleListEmbedded.md | 11 + docs/SettingsUdmModuleRequest.md | 15 + docs/SettingsUdmModuleRequestPatch.md | 14 + docs/SettingsUdmModuleResponseMixin.md | 15 + docs/SettingsUdmSyntax.md | 20 + docs/SettingsUdmSyntaxApi.md | 686 ++++ docs/SettingsUdmSyntaxList.md | 11 + docs/SettingsUdmSyntaxListEmbedded.md | 11 + docs/SettingsUdmSyntaxRequest.md | 15 + docs/SettingsUdmSyntaxRequestPatch.md | 14 + docs/SettingsUdmSyntaxResponseMixin.md | 15 + docs/SettingsUmcOperationset.md | 20 + docs/SettingsUmcOperationsetApi.md | 686 ++++ docs/SettingsUmcOperationsetList.md | 11 + docs/SettingsUmcOperationsetListEmbedded.md | 11 + docs/SettingsUmcOperationsetRequest.md | 15 + docs/SettingsUmcOperationsetRequestPatch.md | 14 + docs/SettingsUmcOperationsetResponseMixin.md | 15 + docs/SettingsUsertemplate.md | 20 + docs/SettingsUsertemplateApi.md | 686 ++++ docs/SettingsUsertemplateList.md | 11 + docs/SettingsUsertemplateListEmbedded.md | 11 + docs/SettingsUsertemplateRequest.md | 15 + docs/SettingsUsertemplateRequestPatch.md | 14 + docs/SettingsUsertemplateResponseMixin.md | 15 + docs/SharesPrint.md | 20 + docs/SharesPrintApi.md | 201 ++ docs/SharesPrintList.md | 11 + docs/SharesPrintListEmbedded.md | 11 + docs/SharesPrintRequest.md | 15 + docs/SharesPrintRequestPatch.md | 14 + docs/SharesPrintResponseMixin.md | 15 + docs/SharesPrinter.md | 20 + docs/SharesPrinterApi.md | 686 ++++ docs/SharesPrinterList.md | 11 + docs/SharesPrinterListEmbedded.md | 11 + docs/SharesPrinterRequest.md | 15 + docs/SharesPrinterRequestPatch.md | 14 + docs/SharesPrinterResponseMixin.md | 15 + docs/SharesPrintergroup.md | 20 + docs/SharesPrintergroupApi.md | 686 ++++ docs/SharesPrintergroupList.md | 11 + docs/SharesPrintergroupListEmbedded.md | 11 + docs/SharesPrintergroupRequest.md | 15 + docs/SharesPrintergroupRequestPatch.md | 14 + docs/SharesPrintergroupResponseMixin.md | 15 + docs/SharesShare.md | 20 + docs/SharesShareApi.md | 686 ++++ docs/SharesShareList.md | 11 + docs/SharesShareListEmbedded.md | 11 + docs/SharesShareOptions.md | 13 + docs/SharesSharePolicies.md | 12 + docs/SharesShareRequest.md | 15 + docs/SharesShareRequestPatch.md | 14 + docs/SharesShareResponseMixin.md | 15 + docs/UsersContact.md | 20 + docs/UsersContactApi.md | 686 ++++ docs/UsersContactList.md | 11 + docs/UsersContactListEmbedded.md | 11 + docs/UsersContactRequest.md | 15 + docs/UsersContactRequestPatch.md | 14 + docs/UsersContactResponseMixin.md | 15 + docs/UsersLdap.md | 20 + docs/UsersLdapApi.md | 686 ++++ docs/UsersLdapList.md | 11 + docs/UsersLdapListEmbedded.md | 11 + docs/UsersLdapOptions.md | 12 + docs/UsersLdapPolicies.md | 13 + docs/UsersLdapRequest.md | 15 + docs/UsersLdapRequestPatch.md | 14 + docs/UsersLdapResponseMixin.md | 15 + docs/UsersPasswd.md | 20 + docs/UsersPasswdApi.md | 294 ++ docs/UsersPasswdList.md | 11 + docs/UsersPasswdListEmbedded.md | 11 + docs/UsersPasswdRequest.md | 15 + docs/UsersPasswdRequestPatch.md | 14 + docs/UsersPasswdResponseMixin.md | 15 + docs/UsersSelf.md | 20 + docs/UsersSelfApi.md | 396 +++ docs/UsersSelfList.md | 11 + docs/UsersSelfListEmbedded.md | 11 + docs/UsersSelfOptions.md | 12 + docs/UsersSelfRequest.md | 15 + docs/UsersSelfRequestPatch.md | 14 + docs/UsersSelfResponseMixin.md | 15 + docs/UsersUser.md | 20 + docs/UsersUserApi.md | 686 ++++ docs/UsersUserList.md | 11 + docs/UsersUserListEmbedded.md | 11 + docs/UsersUserOptions.md | 12 + docs/UsersUserPolicies.md | 14 + docs/UsersUserRequest.md | 15 + docs/UsersUserRequestPatch.md | 14 + docs/UsersUserResponseMixin.md | 15 + docs/UvmmCloudconnection.md | 20 + docs/UvmmCloudconnectionApi.md | 686 ++++ docs/UvmmCloudconnectionList.md | 11 + docs/UvmmCloudconnectionListEmbedded.md | 11 + docs/UvmmCloudconnectionRequest.md | 15 + docs/UvmmCloudconnectionRequestPatch.md | 14 + docs/UvmmCloudconnectionResponseMixin.md | 15 + docs/UvmmCloudtype.md | 20 + docs/UvmmCloudtypeApi.md | 686 ++++ docs/UvmmCloudtypeList.md | 11 + docs/UvmmCloudtypeListEmbedded.md | 11 + docs/UvmmCloudtypeRequest.md | 15 + docs/UvmmCloudtypeRequestPatch.md | 14 + docs/UvmmCloudtypeResponseMixin.md | 15 + docs/UvmmInfo.md | 20 + docs/UvmmInfoApi.md | 686 ++++ docs/UvmmInfoList.md | 11 + docs/UvmmInfoListEmbedded.md | 11 + docs/UvmmInfoRequest.md | 15 + docs/UvmmInfoRequestPatch.md | 14 + docs/UvmmInfoResponseMixin.md | 15 + docs/UvmmProfile.md | 20 + docs/UvmmProfileApi.md | 686 ++++ docs/UvmmProfileList.md | 11 + docs/UvmmProfileListEmbedded.md | 11 + docs/UvmmProfileRequest.md | 15 + docs/UvmmProfileRequestPatch.md | 14 + docs/UvmmProfileResponseMixin.md | 15 + git_push.sh | 57 + openapi_client_udm/__init__.py | 1026 ++++++ openapi_client_udm/api/__init__.py | 138 + openapi_client_udm/api/appcenter_app_api.py | 1473 ++++++++ .../api/computers_computer_api.py | 440 +++ .../computers_domaincontroller_backup_api.py | 1473 ++++++++ .../computers_domaincontroller_master_api.py | 1473 ++++++++ .../computers_domaincontroller_slave_api.py | 1473 ++++++++ .../api/computers_ipmanagedclient_api.py | 1473 ++++++++ openapi_client_udm/api/computers_linux_api.py | 1473 ++++++++ openapi_client_udm/api/computers_macos_api.py | 1473 ++++++++ .../api/computers_memberserver_api.py | 1473 ++++++++ .../api/computers_trustaccount_api.py | 1473 ++++++++ .../api/computers_ubuntu_api.py | 1473 ++++++++ .../api/computers_windows_api.py | 1473 ++++++++ .../computers_windows_domaincontroller_api.py | 1473 ++++++++ openapi_client_udm/api/container_cn_api.py | 1473 ++++++++ openapi_client_udm/api/container_dc_api.py | 897 +++++ openapi_client_udm/api/container_msgpo_api.py | 1473 ++++++++ openapi_client_udm/api/container_ou_api.py | 1473 ++++++++ openapi_client_udm/api/dhcp_dhcp_api.py | 440 +++ openapi_client_udm/api/dhcp_host_api.py | 1480 ++++++++ openapi_client_udm/api/dhcp_pool_api.py | 1480 ++++++++ openapi_client_udm/api/dhcp_server_api.py | 1480 ++++++++ openapi_client_udm/api/dhcp_service_api.py | 1473 ++++++++ openapi_client_udm/api/dhcp_shared_api.py | 1480 ++++++++ .../api/dhcp_sharedsubnet_api.py | 1480 ++++++++ openapi_client_udm/api/dhcp_subnet_api.py | 1480 ++++++++ openapi_client_udm/api/dns_alias_api.py | 1480 ++++++++ openapi_client_udm/api/dns_dns_api.py | 440 +++ .../api/dns_forward_zone_api.py | 1473 ++++++++ openapi_client_udm/api/dns_host_record_api.py | 1480 ++++++++ openapi_client_udm/api/dns_ns_record_api.py | 1480 ++++++++ openapi_client_udm/api/dns_ptr_record_api.py | 1480 ++++++++ .../api/dns_reverse_zone_api.py | 1473 ++++++++ openapi_client_udm/api/dns_srv_record_api.py | 1480 ++++++++ openapi_client_udm/api/dns_txt_record_api.py | 1480 ++++++++ openapi_client_udm/api/groups_group_api.py | 1473 ++++++++ .../api/kerberos_kdcentry_api.py | 1473 ++++++++ openapi_client_udm/api/mail_domain_api.py | 1473 ++++++++ openapi_client_udm/api/mail_folder_api.py | 1473 ++++++++ openapi_client_udm/api/mail_lists_api.py | 1473 ++++++++ openapi_client_udm/api/mail_mail_api.py | 440 +++ .../api/monitoring_alert_api.py | 1473 ++++++++ openapi_client_udm/api/ms_domainpolicy_api.py | 1473 ++++++++ .../api/ms_gpipsec_filter_api.py | 1473 ++++++++ .../api/ms_gpipsec_isakmp_policy_api.py | 1473 ++++++++ .../api/ms_gpipsec_negotiation_policy_api.py | 1473 ++++++++ openapi_client_udm/api/ms_gpipsec_nfa_api.py | 1473 ++++++++ .../api/ms_gpipsec_policy_api.py | 1473 ++++++++ .../api/ms_gpsi_category_registration_api.py | 1473 ++++++++ .../api/ms_gpsi_class_store_api.py | 1473 ++++++++ .../api/ms_gpsi_package_registration_api.py | 1473 ++++++++ openapi_client_udm/api/ms_gpwl_wired_api.py | 1473 ++++++++ .../api/ms_gpwl_wireless_api.py | 1473 ++++++++ .../api/ms_gpwl_wireless_blob_api.py | 1473 ++++++++ openapi_client_udm/api/nagios_nagios_api.py | 440 +++ openapi_client_udm/api/nagios_service_api.py | 1473 ++++++++ .../api/nagios_timeperiod_api.py | 1473 ++++++++ .../api/networks_network_api.py | 1473 ++++++++ .../api/policies_admin_container_api.py | 1473 ++++++++ .../api/policies_desktop_api.py | 1473 ++++++++ .../api/policies_dhcp_boot_api.py | 1473 ++++++++ .../api/policies_dhcp_dns_api.py | 1473 ++++++++ .../api/policies_dhcp_dnsupdate_api.py | 1473 ++++++++ .../api/policies_dhcp_leasetime_api.py | 1473 ++++++++ .../api/policies_dhcp_netbios_api.py | 1473 ++++++++ .../api/policies_dhcp_routing_api.py | 1473 ++++++++ .../api/policies_dhcp_scope_api.py | 1473 ++++++++ .../api/policies_dhcp_statements_api.py | 1473 ++++++++ .../api/policies_ldapserver_api.py | 1473 ++++++++ .../api/policies_maintenance_api.py | 1473 ++++++++ .../api/policies_masterpackages_api.py | 1473 ++++++++ .../api/policies_memberpackages_api.py | 1473 ++++++++ .../api/policies_nfsmounts_api.py | 1473 ++++++++ openapi_client_udm/api/policies_policy_api.py | 440 +++ .../api/policies_printserver_api.py | 1473 ++++++++ .../api/policies_pwhistory_api.py | 1473 ++++++++ .../api/policies_registry_api.py | 1473 ++++++++ .../api/policies_release_api.py | 1473 ++++++++ .../api/policies_repositoryserver_api.py | 1473 ++++++++ .../api/policies_repositorysync_api.py | 1473 ++++++++ .../api/policies_share_userquota_api.py | 1473 ++++++++ .../api/policies_slavepackages_api.py | 1473 ++++++++ openapi_client_udm/api/policies_umc_api.py | 1473 ++++++++ openapi_client_udm/api/portals_all_api.py | 440 +++ .../api/portals_announcement_api.py | 1473 ++++++++ .../api/portals_category_api.py | 1473 ++++++++ openapi_client_udm/api/portals_entry_api.py | 1473 ++++++++ openapi_client_udm/api/portals_folder_api.py | 1473 ++++++++ openapi_client_udm/api/portals_portal_api.py | 1473 ++++++++ openapi_client_udm/api/saml_idpconfig_api.py | 1473 ++++++++ .../api/saml_serviceprovider_api.py | 1473 ++++++++ openapi_client_udm/api/settings_cn_api.py | 474 +++ openapi_client_udm/api/settings_data_api.py | 1473 ++++++++ .../api/settings_default_api.py | 897 +++++ .../api/settings_directory_api.py | 897 +++++ .../api/settings_extended_attribute_api.py | 1473 ++++++++ .../api/settings_extended_options_api.py | 1473 ++++++++ .../api/settings_ldapacl_api.py | 1473 ++++++++ .../api/settings_ldapschema_api.py | 1473 ++++++++ .../api/settings_license_api.py | 676 ++++ openapi_client_udm/api/settings_lock_api.py | 1099 ++++++ .../settings_msprintconnectionpolicy_api.py | 1473 ++++++++ .../api/settings_mswmifilter_api.py | 1473 ++++++++ .../api/settings_packages_api.py | 1473 ++++++++ .../api/settings_portal_all_api.py | 440 +++ openapi_client_udm/api/settings_portal_api.py | 1473 ++++++++ .../api/settings_portal_category_api.py | 1473 ++++++++ .../api/settings_portal_entry_api.py | 1473 ++++++++ .../api/settings_printermodel_api.py | 1473 ++++++++ .../api/settings_printeruri_api.py | 1473 ++++++++ .../api/settings_prohibited_username_api.py | 1473 ++++++++ .../api/settings_sambaconfig_api.py | 1099 ++++++ .../api/settings_sambadomain_api.py | 1473 ++++++++ .../api/settings_service_api.py | 1473 ++++++++ .../api/settings_settings_api.py | 440 +++ openapi_client_udm/api/settings_syntax_api.py | 1473 ++++++++ .../api/settings_udm_hook_api.py | 1473 ++++++++ .../api/settings_udm_module_api.py | 1473 ++++++++ .../api/settings_udm_syntax_api.py | 1473 ++++++++ .../api/settings_umc_operationset_api.py | 1473 ++++++++ .../api/settings_usertemplate_api.py | 1473 ++++++++ openapi_client_udm/api/shares_print_api.py | 440 +++ openapi_client_udm/api/shares_printer_api.py | 1473 ++++++++ .../api/shares_printergroup_api.py | 1473 ++++++++ openapi_client_udm/api/shares_share_api.py | 1473 ++++++++ openapi_client_udm/api/users_contact_api.py | 1473 ++++++++ openapi_client_udm/api/users_ldap_api.py | 1473 ++++++++ openapi_client_udm/api/users_passwd_api.py | 645 ++++ openapi_client_udm/api/users_self_api.py | 863 +++++ openapi_client_udm/api/users_user_api.py | 1473 ++++++++ .../api/uvmm_cloudconnection_api.py | 1473 ++++++++ openapi_client_udm/api/uvmm_cloudtype_api.py | 1473 ++++++++ openapi_client_udm/api/uvmm_info_api.py | 1473 ++++++++ openapi_client_udm/api/uvmm_profile_api.py | 1473 ++++++++ openapi_client_udm/api_client.py | 701 ++++ openapi_client_udm/configuration.py | 479 +++ openapi_client_udm/exceptions.py | 163 + openapi_client_udm/models/__init__.py | 878 +++++ openapi_client_udm/models/appcenter_app.py | 400 +++ .../models/appcenter_app_list.py | 131 + .../models/appcenter_app_list_embedded.py | 134 + .../models/appcenter_app_policies.py | 921 +++++ .../models/appcenter_app_request.py | 249 ++ .../models/appcenter_app_request_all_of.py | 133 + .../models/appcenter_app_request_patch.py | 221 ++ .../models/appcenter_app_response_mixin.py | 256 ++ .../models/computers_computer.py | 402 +++ .../models/computers_computer_list.py | 131 + .../computers_computer_list_embedded.py | 134 + .../models/computers_computer_request.py | 251 ++ .../computers_computer_request_patch.py | 223 ++ .../computers_computer_response_mixin.py | 256 ++ .../computers_domaincontroller_backup.py | 398 +++ .../computers_domaincontroller_backup_list.py | 131 + ...s_domaincontroller_backup_list_embedded.py | 134 + ...mputers_domaincontroller_backup_options.py | 273 ++ ...puters_domaincontroller_backup_policies.py | 411 +++ ...mputers_domaincontroller_backup_request.py | 247 ++ ...s_domaincontroller_backup_request_patch.py | 219 ++ ..._domaincontroller_backup_response_mixin.py | 256 ++ .../computers_domaincontroller_master.py | 398 +++ .../computers_domaincontroller_master_list.py | 131 + ...s_domaincontroller_master_list_embedded.py | 134 + ...mputers_domaincontroller_master_options.py | 273 ++ ...puters_domaincontroller_master_policies.py | 411 +++ ...mputers_domaincontroller_master_request.py | 247 ++ ...s_domaincontroller_master_request_patch.py | 219 ++ ..._domaincontroller_master_response_mixin.py | 256 ++ .../computers_domaincontroller_slave.py | 398 +++ .../computers_domaincontroller_slave_list.py | 131 + ...rs_domaincontroller_slave_list_embedded.py | 134 + ...omputers_domaincontroller_slave_options.py | 273 ++ ...mputers_domaincontroller_slave_policies.py | 411 +++ ...omputers_domaincontroller_slave_request.py | 247 ++ ...rs_domaincontroller_slave_request_patch.py | 219 ++ ...s_domaincontroller_slave_response_mixin.py | 256 ++ .../models/computers_ipmanagedclient.py | 400 +++ .../models/computers_ipmanagedclient_list.py | 131 + ...computers_ipmanagedclient_list_embedded.py | 134 + .../computers_ipmanagedclient_options.py | 189 ++ .../computers_ipmanagedclient_request.py | 249 ++ ...computers_ipmanagedclient_request_patch.py | 221 ++ ...omputers_ipmanagedclient_response_mixin.py | 256 ++ openapi_client_udm/models/computers_linux.py | 400 +++ .../models/computers_linux_list.py | 131 + .../models/computers_linux_list_embedded.py | 134 + .../models/computers_linux_options.py | 273 ++ .../models/computers_linux_request.py | 249 ++ .../models/computers_linux_request_patch.py | 221 ++ .../models/computers_linux_response_mixin.py | 256 ++ openapi_client_udm/models/computers_macos.py | 400 +++ .../models/computers_macos_list.py | 131 + .../models/computers_macos_list_embedded.py | 134 + .../models/computers_macos_options.py | 273 ++ .../models/computers_macos_request.py | 249 ++ .../models/computers_macos_request_patch.py | 221 ++ .../models/computers_macos_response_mixin.py | 256 ++ .../models/computers_memberserver.py | 398 +++ .../models/computers_memberserver_list.py | 131 + .../computers_memberserver_list_embedded.py | 134 + .../models/computers_memberserver_options.py | 273 ++ .../models/computers_memberserver_policies.py | 445 +++ .../models/computers_memberserver_request.py | 247 ++ .../computers_memberserver_request_patch.py | 219 ++ .../computers_memberserver_response_mixin.py | 256 ++ .../models/computers_trustaccount.py | 400 +++ .../models/computers_trustaccount_list.py | 131 + .../computers_trustaccount_list_embedded.py | 134 + .../models/computers_trustaccount_options.py | 133 + .../models/computers_trustaccount_request.py | 249 ++ .../computers_trustaccount_request_patch.py | 221 ++ .../computers_trustaccount_response_mixin.py | 256 ++ openapi_client_udm/models/computers_ubuntu.py | 400 +++ .../models/computers_ubuntu_list.py | 131 + .../models/computers_ubuntu_list_embedded.py | 134 + .../models/computers_ubuntu_options.py | 273 ++ .../models/computers_ubuntu_request.py | 249 ++ .../models/computers_ubuntu_request_patch.py | 221 ++ .../models/computers_ubuntu_response_mixin.py | 256 ++ .../models/computers_windows.py | 400 +++ .../computers_windows_domaincontroller.py | 400 +++ ...computers_windows_domaincontroller_list.py | 131 + ..._windows_domaincontroller_list_embedded.py | 134 + ...puters_windows_domaincontroller_options.py | 273 ++ ...puters_windows_domaincontroller_request.py | 249 ++ ..._windows_domaincontroller_request_patch.py | 221 ++ ...windows_domaincontroller_response_mixin.py | 256 ++ .../models/computers_windows_list.py | 131 + .../models/computers_windows_list_embedded.py | 134 + .../models/computers_windows_options.py | 273 ++ .../models/computers_windows_request.py | 249 ++ .../models/computers_windows_request_patch.py | 221 ++ .../computers_windows_response_mixin.py | 256 ++ openapi_client_udm/models/container_cn.py | 400 +++ .../models/container_cn_list.py | 131 + .../models/container_cn_list_embedded.py | 134 + .../models/container_cn_policies.py | 921 +++++ .../models/container_cn_request.py | 249 ++ .../models/container_cn_request_patch.py | 221 ++ .../models/container_cn_response_mixin.py | 256 ++ openapi_client_udm/models/container_dc.py | 398 +++ .../models/container_dc_list.py | 131 + .../models/container_dc_list_embedded.py | 134 + .../models/container_dc_options.py | 161 + .../models/container_dc_policies.py | 921 +++++ .../models/container_dc_request.py | 247 ++ .../models/container_dc_request_patch.py | 219 ++ .../models/container_dc_response_mixin.py | 256 ++ openapi_client_udm/models/container_msgpo.py | 400 +++ .../models/container_msgpo_list.py | 131 + .../models/container_msgpo_list_embedded.py | 134 + .../models/container_msgpo_policies.py | 921 +++++ .../models/container_msgpo_request.py | 249 ++ .../models/container_msgpo_request_patch.py | 221 ++ .../models/container_msgpo_response_mixin.py | 256 ++ openapi_client_udm/models/container_ou.py | 400 +++ .../models/container_ou_list.py | 131 + .../models/container_ou_list_embedded.py | 134 + .../models/container_ou_policies.py | 921 +++++ .../models/container_ou_request.py | 249 ++ .../models/container_ou_request_patch.py | 221 ++ .../models/container_ou_response_mixin.py | 256 ++ openapi_client_udm/models/dhcp_dhcp.py | 402 +++ openapi_client_udm/models/dhcp_dhcp_list.py | 131 + .../models/dhcp_dhcp_list_embedded.py | 134 + .../models/dhcp_dhcp_request.py | 251 ++ .../models/dhcp_dhcp_request_patch.py | 223 ++ .../models/dhcp_dhcp_response_mixin.py | 256 ++ openapi_client_udm/models/dhcp_host.py | 426 +++ openapi_client_udm/models/dhcp_host_list.py | 131 + .../models/dhcp_host_list_embedded.py | 134 + .../models/dhcp_host_options.py | 133 + .../models/dhcp_host_policies.py | 377 +++ .../models/dhcp_host_request.py | 275 ++ .../models/dhcp_host_request_patch.py | 247 ++ .../models/dhcp_host_response_mixin.py | 256 ++ openapi_client_udm/models/dhcp_pool.py | 426 +++ openapi_client_udm/models/dhcp_pool_list.py | 131 + .../models/dhcp_pool_list_embedded.py | 134 + .../models/dhcp_pool_options.py | 133 + .../models/dhcp_pool_policies.py | 343 ++ .../models/dhcp_pool_request.py | 275 ++ .../models/dhcp_pool_request_patch.py | 247 ++ .../models/dhcp_pool_response_mixin.py | 256 ++ openapi_client_udm/models/dhcp_server.py | 430 +++ openapi_client_udm/models/dhcp_server_list.py | 131 + .../models/dhcp_server_list_embedded.py | 134 + .../models/dhcp_server_request.py | 279 ++ .../models/dhcp_server_request_patch.py | 251 ++ .../models/dhcp_server_response_mixin.py | 256 ++ openapi_client_udm/models/dhcp_service.py | 398 +++ .../models/dhcp_service_list.py | 131 + .../models/dhcp_service_list_embedded.py | 134 + .../models/dhcp_service_options.py | 133 + .../models/dhcp_service_policies.py | 377 +++ .../models/dhcp_service_request.py | 247 ++ .../models/dhcp_service_request_patch.py | 219 ++ .../models/dhcp_service_response_mixin.py | 256 ++ openapi_client_udm/models/dhcp_shared.py | 426 +++ openapi_client_udm/models/dhcp_shared_list.py | 131 + .../models/dhcp_shared_list_embedded.py | 134 + .../models/dhcp_shared_options.py | 133 + .../models/dhcp_shared_policies.py | 377 +++ .../models/dhcp_shared_request.py | 275 ++ .../models/dhcp_shared_request_patch.py | 247 ++ .../models/dhcp_shared_response_mixin.py | 256 ++ .../models/dhcp_sharedsubnet.py | 426 +++ .../models/dhcp_sharedsubnet_list.py | 131 + .../models/dhcp_sharedsubnet_list_embedded.py | 134 + .../models/dhcp_sharedsubnet_options.py | 133 + .../models/dhcp_sharedsubnet_policies.py | 377 +++ .../models/dhcp_sharedsubnet_request.py | 275 ++ .../models/dhcp_sharedsubnet_request_patch.py | 247 ++ .../dhcp_sharedsubnet_response_mixin.py | 256 ++ openapi_client_udm/models/dhcp_subnet.py | 426 +++ openapi_client_udm/models/dhcp_subnet_list.py | 131 + .../models/dhcp_subnet_list_embedded.py | 134 + .../models/dhcp_subnet_options.py | 133 + .../models/dhcp_subnet_policies.py | 377 +++ .../models/dhcp_subnet_request.py | 275 ++ .../models/dhcp_subnet_request_patch.py | 247 ++ .../models/dhcp_subnet_response_mixin.py | 256 ++ openapi_client_udm/models/dns_alias.py | 430 +++ openapi_client_udm/models/dns_alias_list.py | 131 + .../models/dns_alias_list_embedded.py | 134 + .../models/dns_alias_request.py | 279 ++ .../models/dns_alias_request_patch.py | 251 ++ .../models/dns_alias_response_mixin.py | 256 ++ openapi_client_udm/models/dns_dns.py | 402 +++ openapi_client_udm/models/dns_dns_list.py | 131 + .../models/dns_dns_list_embedded.py | 134 + openapi_client_udm/models/dns_dns_request.py | 251 ++ .../models/dns_dns_request_patch.py | 223 ++ .../models/dns_dns_response_mixin.py | 256 ++ openapi_client_udm/models/dns_forward_zone.py | 400 +++ .../models/dns_forward_zone_list.py | 131 + .../models/dns_forward_zone_list_embedded.py | 134 + .../models/dns_forward_zone_policies.py | 921 +++++ .../models/dns_forward_zone_request.py | 249 ++ .../models/dns_forward_zone_request_patch.py | 221 ++ .../models/dns_forward_zone_response_mixin.py | 256 ++ openapi_client_udm/models/dns_host_record.py | 430 +++ .../models/dns_host_record_list.py | 131 + .../models/dns_host_record_list_embedded.py | 134 + .../models/dns_host_record_request.py | 279 ++ .../models/dns_host_record_request_patch.py | 251 ++ .../models/dns_host_record_response_mixin.py | 256 ++ openapi_client_udm/models/dns_ns_record.py | 430 +++ .../models/dns_ns_record_list.py | 131 + .../models/dns_ns_record_list_embedded.py | 134 + .../models/dns_ns_record_request.py | 279 ++ .../models/dns_ns_record_request_patch.py | 251 ++ .../models/dns_ns_record_response_mixin.py | 256 ++ openapi_client_udm/models/dns_ptr_record.py | 430 +++ .../models/dns_ptr_record_list.py | 131 + .../models/dns_ptr_record_list_embedded.py | 134 + .../models/dns_ptr_record_request.py | 279 ++ .../models/dns_ptr_record_request_patch.py | 251 ++ .../models/dns_ptr_record_response_mixin.py | 256 ++ openapi_client_udm/models/dns_reverse_zone.py | 400 +++ .../models/dns_reverse_zone_list.py | 131 + .../models/dns_reverse_zone_list_embedded.py | 134 + .../models/dns_reverse_zone_policies.py | 921 +++++ .../models/dns_reverse_zone_request.py | 249 ++ .../models/dns_reverse_zone_request_patch.py | 221 ++ .../models/dns_reverse_zone_response_mixin.py | 256 ++ openapi_client_udm/models/dns_srv_record.py | 430 +++ .../models/dns_srv_record_list.py | 131 + .../models/dns_srv_record_list_embedded.py | 134 + .../models/dns_srv_record_request.py | 279 ++ .../models/dns_srv_record_request_patch.py | 251 ++ .../models/dns_srv_record_response_mixin.py | 256 ++ openapi_client_udm/models/dns_txt_record.py | 430 +++ .../models/dns_txt_record_list.py | 131 + .../models/dns_txt_record_list_embedded.py | 134 + .../models/dns_txt_record_request.py | 279 ++ .../models/dns_txt_record_request_patch.py | 251 ++ .../models/dns_txt_record_response_mixin.py | 256 ++ openapi_client_udm/models/embedded_error.py | 248 ++ openapi_client_udm/models/groups_group.py | 398 +++ .../models/groups_group_list.py | 131 + .../models/groups_group_list_embedded.py | 134 + .../models/groups_group_options.py | 161 + .../models/groups_group_policies.py | 139 + .../models/groups_group_request.py | 247 ++ .../models/groups_group_request_patch.py | 219 ++ .../models/groups_group_response_mixin.py | 256 ++ .../models/inline_response201.py | 176 + .../models/kerberos_kdcentry.py | 402 +++ .../models/kerberos_kdcentry_list.py | 131 + .../models/kerberos_kdcentry_list_embedded.py | 134 + .../models/kerberos_kdcentry_request.py | 251 ++ .../models/kerberos_kdcentry_request_patch.py | 223 ++ .../kerberos_kdcentry_response_mixin.py | 256 ++ openapi_client_udm/models/links.py | 134 + openapi_client_udm/models/mail_domain.py | 402 +++ openapi_client_udm/models/mail_domain_list.py | 131 + .../models/mail_domain_list_embedded.py | 134 + .../models/mail_domain_request.py | 251 ++ .../models/mail_domain_request_patch.py | 223 ++ .../models/mail_domain_response_mixin.py | 256 ++ openapi_client_udm/models/mail_folder.py | 402 +++ openapi_client_udm/models/mail_folder_list.py | 131 + .../models/mail_folder_list_embedded.py | 134 + .../models/mail_folder_request.py | 251 ++ .../models/mail_folder_request_patch.py | 223 ++ .../models/mail_folder_response_mixin.py | 256 ++ openapi_client_udm/models/mail_lists.py | 402 +++ openapi_client_udm/models/mail_lists_list.py | 131 + .../models/mail_lists_list_embedded.py | 134 + .../models/mail_lists_request.py | 251 ++ .../models/mail_lists_request_patch.py | 223 ++ .../models/mail_lists_response_mixin.py | 256 ++ openapi_client_udm/models/mail_mail.py | 402 +++ openapi_client_udm/models/mail_mail_list.py | 131 + .../models/mail_mail_list_embedded.py | 134 + .../models/mail_mail_request.py | 251 ++ .../models/mail_mail_request_patch.py | 223 ++ .../models/mail_mail_response_mixin.py | 256 ++ openapi_client_udm/models/monitoring_alert.py | 402 +++ .../models/monitoring_alert_list.py | 131 + .../models/monitoring_alert_list_embedded.py | 134 + .../models/monitoring_alert_request.py | 251 ++ .../models/monitoring_alert_request_patch.py | 223 ++ .../models/monitoring_alert_response_mixin.py | 256 ++ openapi_client_udm/models/ms_domainpolicy.py | 400 +++ .../models/ms_domainpolicy_list.py | 131 + .../models/ms_domainpolicy_list_embedded.py | 134 + .../models/ms_domainpolicy_policies.py | 921 +++++ .../models/ms_domainpolicy_request.py | 249 ++ .../models/ms_domainpolicy_request_patch.py | 221 ++ .../models/ms_domainpolicy_response_mixin.py | 256 ++ .../models/ms_gpipsec_filter.py | 400 +++ .../models/ms_gpipsec_filter_list.py | 131 + .../models/ms_gpipsec_filter_list_embedded.py | 134 + .../models/ms_gpipsec_filter_policies.py | 921 +++++ .../models/ms_gpipsec_filter_request.py | 249 ++ .../models/ms_gpipsec_filter_request_patch.py | 221 ++ .../ms_gpipsec_filter_response_mixin.py | 256 ++ .../models/ms_gpipsec_isakmp_policy.py | 400 +++ .../models/ms_gpipsec_isakmp_policy_list.py | 131 + .../ms_gpipsec_isakmp_policy_list_embedded.py | 134 + .../ms_gpipsec_isakmp_policy_policies.py | 921 +++++ .../ms_gpipsec_isakmp_policy_request.py | 249 ++ .../ms_gpipsec_isakmp_policy_request_patch.py | 221 ++ ...ms_gpipsec_isakmp_policy_response_mixin.py | 256 ++ .../models/ms_gpipsec_negotiation_policy.py | 400 +++ .../ms_gpipsec_negotiation_policy_list.py | 131 + ...pipsec_negotiation_policy_list_embedded.py | 134 + .../ms_gpipsec_negotiation_policy_policies.py | 921 +++++ .../ms_gpipsec_negotiation_policy_request.py | 249 ++ ...pipsec_negotiation_policy_request_patch.py | 221 ++ ...ipsec_negotiation_policy_response_mixin.py | 256 ++ openapi_client_udm/models/ms_gpipsec_nfa.py | 400 +++ .../models/ms_gpipsec_nfa_list.py | 131 + .../models/ms_gpipsec_nfa_list_embedded.py | 134 + .../models/ms_gpipsec_nfa_policies.py | 921 +++++ .../models/ms_gpipsec_nfa_request.py | 249 ++ .../models/ms_gpipsec_nfa_request_patch.py | 221 ++ .../models/ms_gpipsec_nfa_response_mixin.py | 256 ++ .../models/ms_gpipsec_policy.py | 400 +++ .../models/ms_gpipsec_policy_list.py | 131 + .../models/ms_gpipsec_policy_list_embedded.py | 134 + .../models/ms_gpipsec_policy_policies.py | 921 +++++ .../models/ms_gpipsec_policy_request.py | 249 ++ .../models/ms_gpipsec_policy_request_patch.py | 221 ++ .../ms_gpipsec_policy_response_mixin.py | 256 ++ .../models/ms_gpsi_category_registration.py | 400 +++ .../ms_gpsi_category_registration_list.py | 131 + ...psi_category_registration_list_embedded.py | 134 + .../ms_gpsi_category_registration_policies.py | 921 +++++ .../ms_gpsi_category_registration_request.py | 249 ++ ...psi_category_registration_request_patch.py | 221 ++ ...si_category_registration_response_mixin.py | 256 ++ .../models/ms_gpsi_class_store.py | 400 +++ .../models/ms_gpsi_class_store_list.py | 131 + .../ms_gpsi_class_store_list_embedded.py | 134 + .../models/ms_gpsi_class_store_policies.py | 921 +++++ .../models/ms_gpsi_class_store_request.py | 249 ++ .../ms_gpsi_class_store_request_patch.py | 221 ++ .../ms_gpsi_class_store_response_mixin.py | 256 ++ .../models/ms_gpsi_package_registration.py | 400 +++ .../ms_gpsi_package_registration_list.py | 131 + ...gpsi_package_registration_list_embedded.py | 134 + .../ms_gpsi_package_registration_policies.py | 921 +++++ .../ms_gpsi_package_registration_request.py | 249 ++ ...gpsi_package_registration_request_patch.py | 221 ++ ...psi_package_registration_response_mixin.py | 256 ++ openapi_client_udm/models/ms_gpwl_wired.py | 400 +++ .../models/ms_gpwl_wired_list.py | 131 + .../models/ms_gpwl_wired_list_embedded.py | 134 + .../models/ms_gpwl_wired_policies.py | 921 +++++ .../models/ms_gpwl_wired_request.py | 249 ++ .../models/ms_gpwl_wired_request_patch.py | 221 ++ .../models/ms_gpwl_wired_response_mixin.py | 256 ++ openapi_client_udm/models/ms_gpwl_wireless.py | 400 +++ .../models/ms_gpwl_wireless_blob.py | 400 +++ .../models/ms_gpwl_wireless_blob_list.py | 131 + .../ms_gpwl_wireless_blob_list_embedded.py | 134 + .../models/ms_gpwl_wireless_blob_policies.py | 921 +++++ .../models/ms_gpwl_wireless_blob_request.py | 249 ++ .../ms_gpwl_wireless_blob_request_patch.py | 221 ++ .../ms_gpwl_wireless_blob_response_mixin.py | 256 ++ .../models/ms_gpwl_wireless_list.py | 131 + .../models/ms_gpwl_wireless_list_embedded.py | 134 + .../models/ms_gpwl_wireless_policies.py | 921 +++++ .../models/ms_gpwl_wireless_request.py | 249 ++ .../models/ms_gpwl_wireless_request_patch.py | 221 ++ .../models/ms_gpwl_wireless_response_mixin.py | 256 ++ openapi_client_udm/models/nagios_nagios.py | 402 +++ .../models/nagios_nagios_list.py | 131 + .../models/nagios_nagios_list_embedded.py | 134 + .../models/nagios_nagios_request.py | 251 ++ .../models/nagios_nagios_request_patch.py | 223 ++ .../models/nagios_nagios_response_mixin.py | 256 ++ openapi_client_udm/models/nagios_service.py | 402 +++ .../models/nagios_service_list.py | 131 + .../models/nagios_service_list_embedded.py | 134 + .../models/nagios_service_request.py | 251 ++ .../models/nagios_service_request_patch.py | 223 ++ .../models/nagios_service_response_mixin.py | 256 ++ .../models/nagios_timeperiod.py | 402 +++ .../models/nagios_timeperiod_list.py | 131 + .../models/nagios_timeperiod_list_embedded.py | 134 + .../models/nagios_timeperiod_request.py | 251 ++ .../models/nagios_timeperiod_request_patch.py | 223 ++ .../nagios_timeperiod_response_mixin.py | 256 ++ openapi_client_udm/models/networks_network.py | 402 +++ .../models/networks_network_list.py | 131 + .../models/networks_network_list_embedded.py | 134 + .../models/networks_network_request.py | 251 ++ .../models/networks_network_request_patch.py | 223 ++ .../models/networks_network_response_mixin.py | 256 ++ .../models/policies_admin_container.py | 402 +++ .../models/policies_admin_container_list.py | 131 + .../policies_admin_container_list_embedded.py | 134 + .../policies_admin_container_request.py | 251 ++ .../policies_admin_container_request_patch.py | 223 ++ ...policies_admin_container_response_mixin.py | 256 ++ openapi_client_udm/models/policies_desktop.py | 402 +++ .../models/policies_desktop_list.py | 131 + .../models/policies_desktop_list_embedded.py | 134 + .../models/policies_desktop_request.py | 251 ++ .../models/policies_desktop_request_patch.py | 223 ++ .../models/policies_desktop_response_mixin.py | 256 ++ .../models/policies_dhcp_boot.py | 402 +++ .../models/policies_dhcp_boot_list.py | 131 + .../policies_dhcp_boot_list_embedded.py | 134 + .../models/policies_dhcp_boot_request.py | 251 ++ .../policies_dhcp_boot_request_patch.py | 223 ++ .../policies_dhcp_boot_response_mixin.py | 256 ++ .../models/policies_dhcp_dns.py | 402 +++ .../models/policies_dhcp_dns_list.py | 131 + .../models/policies_dhcp_dns_list_embedded.py | 134 + .../models/policies_dhcp_dns_request.py | 251 ++ .../models/policies_dhcp_dns_request_patch.py | 223 ++ .../policies_dhcp_dns_response_mixin.py | 256 ++ .../models/policies_dhcp_dnsupdate.py | 402 +++ .../models/policies_dhcp_dnsupdate_list.py | 131 + .../policies_dhcp_dnsupdate_list_embedded.py | 134 + .../models/policies_dhcp_dnsupdate_request.py | 251 ++ .../policies_dhcp_dnsupdate_request_patch.py | 223 ++ .../policies_dhcp_dnsupdate_response_mixin.py | 256 ++ .../models/policies_dhcp_leasetime.py | 402 +++ .../models/policies_dhcp_leasetime_list.py | 131 + .../policies_dhcp_leasetime_list_embedded.py | 134 + .../models/policies_dhcp_leasetime_request.py | 251 ++ .../policies_dhcp_leasetime_request_patch.py | 223 ++ .../policies_dhcp_leasetime_response_mixin.py | 256 ++ .../models/policies_dhcp_netbios.py | 402 +++ .../models/policies_dhcp_netbios_list.py | 131 + .../policies_dhcp_netbios_list_embedded.py | 134 + .../models/policies_dhcp_netbios_request.py | 251 ++ .../policies_dhcp_netbios_request_patch.py | 223 ++ .../policies_dhcp_netbios_response_mixin.py | 256 ++ .../models/policies_dhcp_routing.py | 402 +++ .../models/policies_dhcp_routing_list.py | 131 + .../policies_dhcp_routing_list_embedded.py | 134 + .../models/policies_dhcp_routing_request.py | 251 ++ .../policies_dhcp_routing_request_patch.py | 223 ++ .../policies_dhcp_routing_response_mixin.py | 256 ++ .../models/policies_dhcp_scope.py | 402 +++ .../models/policies_dhcp_scope_list.py | 131 + .../policies_dhcp_scope_list_embedded.py | 134 + .../models/policies_dhcp_scope_request.py | 251 ++ .../policies_dhcp_scope_request_patch.py | 223 ++ .../policies_dhcp_scope_response_mixin.py | 256 ++ .../models/policies_dhcp_statements.py | 402 +++ .../models/policies_dhcp_statements_list.py | 131 + .../policies_dhcp_statements_list_embedded.py | 134 + .../policies_dhcp_statements_request.py | 251 ++ .../policies_dhcp_statements_request_patch.py | 223 ++ ...policies_dhcp_statements_response_mixin.py | 256 ++ .../models/policies_ldapserver.py | 402 +++ .../models/policies_ldapserver_list.py | 131 + .../policies_ldapserver_list_embedded.py | 134 + .../models/policies_ldapserver_request.py | 251 ++ .../policies_ldapserver_request_patch.py | 223 ++ .../policies_ldapserver_response_mixin.py | 256 ++ .../models/policies_maintenance.py | 402 +++ .../models/policies_maintenance_list.py | 131 + .../policies_maintenance_list_embedded.py | 134 + .../models/policies_maintenance_request.py | 251 ++ .../policies_maintenance_request_patch.py | 223 ++ .../policies_maintenance_response_mixin.py | 256 ++ .../models/policies_masterpackages.py | 402 +++ .../models/policies_masterpackages_list.py | 131 + .../policies_masterpackages_list_embedded.py | 134 + .../models/policies_masterpackages_request.py | 251 ++ .../policies_masterpackages_request_patch.py | 223 ++ .../policies_masterpackages_response_mixin.py | 256 ++ .../models/policies_memberpackages.py | 402 +++ .../models/policies_memberpackages_list.py | 131 + .../policies_memberpackages_list_embedded.py | 134 + .../models/policies_memberpackages_request.py | 251 ++ .../policies_memberpackages_request_patch.py | 223 ++ .../policies_memberpackages_response_mixin.py | 256 ++ .../models/policies_nfsmounts.py | 402 +++ .../models/policies_nfsmounts_list.py | 131 + .../policies_nfsmounts_list_embedded.py | 134 + .../models/policies_nfsmounts_request.py | 251 ++ .../policies_nfsmounts_request_patch.py | 223 ++ .../policies_nfsmounts_response_mixin.py | 256 ++ openapi_client_udm/models/policies_policy.py | 402 +++ .../models/policies_policy_list.py | 131 + .../models/policies_policy_list_embedded.py | 134 + .../models/policies_policy_request.py | 251 ++ .../models/policies_policy_request_patch.py | 223 ++ .../models/policies_policy_response_mixin.py | 256 ++ .../models/policies_printserver.py | 402 +++ .../models/policies_printserver_list.py | 131 + .../policies_printserver_list_embedded.py | 134 + .../models/policies_printserver_request.py | 251 ++ .../policies_printserver_request_patch.py | 223 ++ .../policies_printserver_response_mixin.py | 256 ++ .../models/policies_pwhistory.py | 402 +++ .../models/policies_pwhistory_list.py | 131 + .../policies_pwhistory_list_embedded.py | 134 + .../models/policies_pwhistory_request.py | 251 ++ .../policies_pwhistory_request_patch.py | 223 ++ .../policies_pwhistory_response_mixin.py | 256 ++ .../models/policies_registry.py | 402 +++ .../models/policies_registry_list.py | 131 + .../models/policies_registry_list_embedded.py | 134 + .../models/policies_registry_request.py | 251 ++ .../models/policies_registry_request_patch.py | 223 ++ .../policies_registry_response_mixin.py | 256 ++ openapi_client_udm/models/policies_release.py | 402 +++ .../models/policies_release_list.py | 131 + .../models/policies_release_list_embedded.py | 134 + .../models/policies_release_request.py | 251 ++ .../models/policies_release_request_patch.py | 223 ++ .../models/policies_release_response_mixin.py | 256 ++ .../models/policies_repositoryserver.py | 402 +++ .../models/policies_repositoryserver_list.py | 131 + ...policies_repositoryserver_list_embedded.py | 134 + .../policies_repositoryserver_request.py | 251 ++ ...policies_repositoryserver_request_patch.py | 223 ++ ...olicies_repositoryserver_response_mixin.py | 256 ++ .../models/policies_repositorysync.py | 402 +++ .../models/policies_repositorysync_list.py | 131 + .../policies_repositorysync_list_embedded.py | 134 + .../models/policies_repositorysync_request.py | 251 ++ .../policies_repositorysync_request_patch.py | 223 ++ .../policies_repositorysync_response_mixin.py | 256 ++ .../models/policies_share_userquota.py | 402 +++ .../models/policies_share_userquota_list.py | 131 + .../policies_share_userquota_list_embedded.py | 134 + .../policies_share_userquota_request.py | 251 ++ .../policies_share_userquota_request_patch.py | 223 ++ ...policies_share_userquota_response_mixin.py | 256 ++ .../models/policies_slavepackages.py | 402 +++ .../models/policies_slavepackages_list.py | 131 + .../policies_slavepackages_list_embedded.py | 134 + .../models/policies_slavepackages_request.py | 251 ++ .../policies_slavepackages_request_patch.py | 223 ++ .../policies_slavepackages_response_mixin.py | 256 ++ openapi_client_udm/models/policies_umc.py | 402 +++ .../models/policies_umc_list.py | 131 + .../models/policies_umc_list_embedded.py | 134 + .../models/policies_umc_request.py | 251 ++ .../models/policies_umc_request_patch.py | 223 ++ .../models/policies_umc_response_mixin.py | 256 ++ openapi_client_udm/models/portals_all.py | 402 +++ openapi_client_udm/models/portals_all_list.py | 131 + .../models/portals_all_list_embedded.py | 134 + .../models/portals_all_request.py | 251 ++ .../models/portals_all_request_patch.py | 223 ++ .../models/portals_all_response_mixin.py | 256 ++ .../models/portals_announcement.py | 402 +++ .../models/portals_announcement_list.py | 131 + .../portals_announcement_list_embedded.py | 134 + .../models/portals_announcement_request.py | 251 ++ .../portals_announcement_request_patch.py | 223 ++ .../portals_announcement_response_mixin.py | 256 ++ openapi_client_udm/models/portals_category.py | 402 +++ .../models/portals_category_list.py | 131 + .../models/portals_category_list_embedded.py | 134 + .../models/portals_category_request.py | 251 ++ .../models/portals_category_request_patch.py | 223 ++ .../models/portals_category_response_mixin.py | 256 ++ openapi_client_udm/models/portals_entry.py | 402 +++ .../models/portals_entry_list.py | 131 + .../models/portals_entry_list_embedded.py | 134 + .../models/portals_entry_request.py | 251 ++ .../models/portals_entry_request_patch.py | 223 ++ .../models/portals_entry_response_mixin.py | 256 ++ openapi_client_udm/models/portals_folder.py | 402 +++ .../models/portals_folder_list.py | 131 + .../models/portals_folder_list_embedded.py | 134 + .../models/portals_folder_request.py | 251 ++ .../models/portals_folder_request_patch.py | 223 ++ .../models/portals_folder_response_mixin.py | 256 ++ openapi_client_udm/models/portals_portal.py | 402 +++ .../models/portals_portal_list.py | 131 + .../models/portals_portal_list_embedded.py | 134 + .../models/portals_portal_request.py | 251 ++ .../models/portals_portal_request_patch.py | 223 ++ .../models/portals_portal_response_mixin.py | 256 ++ openapi_client_udm/models/saml_idpconfig.py | 402 +++ .../models/saml_idpconfig_list.py | 131 + .../models/saml_idpconfig_list_embedded.py | 134 + .../models/saml_idpconfig_request.py | 251 ++ .../models/saml_idpconfig_request_patch.py | 223 ++ .../models/saml_idpconfig_response_mixin.py | 256 ++ .../models/saml_serviceprovider.py | 402 +++ .../models/saml_serviceprovider_list.py | 131 + .../saml_serviceprovider_list_embedded.py | 134 + .../models/saml_serviceprovider_request.py | 251 ++ .../saml_serviceprovider_request_patch.py | 223 ++ .../saml_serviceprovider_response_mixin.py | 256 ++ openapi_client_udm/models/settings_cn.py | 400 +++ openapi_client_udm/models/settings_cn_list.py | 131 + .../models/settings_cn_list_embedded.py | 134 + .../models/settings_cn_policies.py | 921 +++++ .../models/settings_cn_request.py | 249 ++ .../models/settings_cn_request_patch.py | 221 ++ .../models/settings_cn_response_mixin.py | 256 ++ openapi_client_udm/models/settings_data.py | 402 +++ .../models/settings_data_list.py | 131 + .../models/settings_data_list_embedded.py | 134 + .../models/settings_data_request.py | 251 ++ .../models/settings_data_request_patch.py | 223 ++ .../models/settings_data_response_mixin.py | 256 ++ openapi_client_udm/models/settings_default.py | 402 +++ .../models/settings_default_list.py | 131 + .../models/settings_default_list_embedded.py | 134 + .../models/settings_default_request.py | 251 ++ .../models/settings_default_request_patch.py | 223 ++ .../models/settings_default_response_mixin.py | 256 ++ .../models/settings_directory.py | 402 +++ .../models/settings_directory_list.py | 131 + .../settings_directory_list_embedded.py | 134 + .../models/settings_directory_request.py | 251 ++ .../settings_directory_request_patch.py | 223 ++ .../settings_directory_response_mixin.py | 256 ++ .../models/settings_extended_attribute.py | 402 +++ .../settings_extended_attribute_list.py | 131 + ...ttings_extended_attribute_list_embedded.py | 134 + .../settings_extended_attribute_request.py | 251 ++ ...ttings_extended_attribute_request_patch.py | 223 ++ ...tings_extended_attribute_response_mixin.py | 256 ++ .../models/settings_extended_options.py | 402 +++ .../models/settings_extended_options_list.py | 131 + ...settings_extended_options_list_embedded.py | 134 + .../settings_extended_options_request.py | 251 ++ ...settings_extended_options_request_patch.py | 223 ++ ...ettings_extended_options_response_mixin.py | 256 ++ openapi_client_udm/models/settings_ldapacl.py | 402 +++ .../models/settings_ldapacl_list.py | 131 + .../models/settings_ldapacl_list_embedded.py | 134 + .../models/settings_ldapacl_request.py | 251 ++ .../models/settings_ldapacl_request_patch.py | 223 ++ .../models/settings_ldapacl_response_mixin.py | 256 ++ .../models/settings_ldapschema.py | 402 +++ .../models/settings_ldapschema_list.py | 131 + .../settings_ldapschema_list_embedded.py | 134 + .../models/settings_ldapschema_request.py | 251 ++ .../settings_ldapschema_request_patch.py | 223 ++ .../settings_ldapschema_response_mixin.py | 256 ++ openapi_client_udm/models/settings_license.py | 400 +++ .../models/settings_license_list.py | 131 + .../models/settings_license_list_embedded.py | 134 + .../models/settings_license_options.py | 161 + .../models/settings_license_request.py | 249 ++ .../models/settings_license_request_patch.py | 221 ++ .../models/settings_license_response_mixin.py | 256 ++ openapi_client_udm/models/settings_lock.py | 402 +++ .../models/settings_lock_list.py | 131 + .../models/settings_lock_list_embedded.py | 134 + .../models/settings_lock_request.py | 251 ++ .../models/settings_lock_request_patch.py | 223 ++ .../models/settings_lock_response_mixin.py | 256 ++ .../settings_msprintconnectionpolicy.py | 400 +++ .../settings_msprintconnectionpolicy_list.py | 131 + ...s_msprintconnectionpolicy_list_embedded.py | 134 + ...ttings_msprintconnectionpolicy_policies.py | 921 +++++ ...ettings_msprintconnectionpolicy_request.py | 249 ++ ...s_msprintconnectionpolicy_request_patch.py | 221 ++ ..._msprintconnectionpolicy_response_mixin.py | 256 ++ .../models/settings_mswmifilter.py | 400 +++ .../models/settings_mswmifilter_list.py | 131 + .../settings_mswmifilter_list_embedded.py | 134 + .../models/settings_mswmifilter_policies.py | 921 +++++ .../models/settings_mswmifilter_request.py | 249 ++ .../settings_mswmifilter_request_patch.py | 221 ++ .../settings_mswmifilter_response_mixin.py | 256 ++ .../models/settings_packages.py | 402 +++ .../models/settings_packages_list.py | 131 + .../models/settings_packages_list_embedded.py | 134 + .../models/settings_packages_request.py | 251 ++ .../models/settings_packages_request_patch.py | 223 ++ .../settings_packages_response_mixin.py | 256 ++ openapi_client_udm/models/settings_portal.py | 402 +++ .../models/settings_portal_all.py | 402 +++ .../models/settings_portal_all_list.py | 131 + .../settings_portal_all_list_embedded.py | 134 + .../models/settings_portal_all_request.py | 251 ++ .../settings_portal_all_request_patch.py | 223 ++ .../settings_portal_all_response_mixin.py | 256 ++ .../models/settings_portal_category.py | 402 +++ .../models/settings_portal_category_list.py | 131 + .../settings_portal_category_list_embedded.py | 134 + .../settings_portal_category_request.py | 251 ++ .../settings_portal_category_request_patch.py | 223 ++ ...settings_portal_category_response_mixin.py | 256 ++ .../models/settings_portal_entry.py | 402 +++ .../models/settings_portal_entry_list.py | 131 + .../settings_portal_entry_list_embedded.py | 134 + .../models/settings_portal_entry_request.py | 251 ++ .../settings_portal_entry_request_patch.py | 223 ++ .../settings_portal_entry_response_mixin.py | 256 ++ .../models/settings_portal_list.py | 131 + .../models/settings_portal_list_embedded.py | 134 + .../models/settings_portal_request.py | 251 ++ .../models/settings_portal_request_patch.py | 223 ++ .../models/settings_portal_response_mixin.py | 256 ++ .../models/settings_printermodel.py | 402 +++ .../models/settings_printermodel_list.py | 131 + .../settings_printermodel_list_embedded.py | 134 + .../models/settings_printermodel_request.py | 251 ++ .../settings_printermodel_request_patch.py | 223 ++ .../settings_printermodel_response_mixin.py | 256 ++ .../models/settings_printeruri.py | 402 +++ .../models/settings_printeruri_list.py | 131 + .../settings_printeruri_list_embedded.py | 134 + .../models/settings_printeruri_request.py | 251 ++ .../settings_printeruri_request_patch.py | 223 ++ .../settings_printeruri_response_mixin.py | 256 ++ .../models/settings_prohibited_username.py | 402 +++ .../settings_prohibited_username_list.py | 131 + ...tings_prohibited_username_list_embedded.py | 134 + .../settings_prohibited_username_request.py | 251 ++ ...tings_prohibited_username_request_patch.py | 223 ++ ...ings_prohibited_username_response_mixin.py | 256 ++ .../models/settings_sambaconfig.py | 402 +++ .../models/settings_sambaconfig_list.py | 131 + .../settings_sambaconfig_list_embedded.py | 134 + .../models/settings_sambaconfig_request.py | 251 ++ .../settings_sambaconfig_request_patch.py | 223 ++ .../settings_sambaconfig_response_mixin.py | 256 ++ .../models/settings_sambadomain.py | 402 +++ .../models/settings_sambadomain_list.py | 131 + .../settings_sambadomain_list_embedded.py | 134 + .../models/settings_sambadomain_request.py | 251 ++ .../settings_sambadomain_request_patch.py | 223 ++ .../settings_sambadomain_response_mixin.py | 256 ++ openapi_client_udm/models/settings_service.py | 402 +++ .../models/settings_service_list.py | 131 + .../models/settings_service_list_embedded.py | 134 + .../models/settings_service_request.py | 251 ++ .../models/settings_service_request_patch.py | 223 ++ .../models/settings_service_response_mixin.py | 256 ++ .../models/settings_settings.py | 402 +++ .../models/settings_settings_list.py | 131 + .../models/settings_settings_list_embedded.py | 134 + .../models/settings_settings_request.py | 251 ++ .../models/settings_settings_request_patch.py | 223 ++ .../settings_settings_response_mixin.py | 256 ++ openapi_client_udm/models/settings_syntax.py | 402 +++ .../models/settings_syntax_list.py | 131 + .../models/settings_syntax_list_embedded.py | 134 + .../models/settings_syntax_request.py | 251 ++ .../models/settings_syntax_request_patch.py | 223 ++ .../models/settings_syntax_response_mixin.py | 256 ++ .../models/settings_udm_hook.py | 402 +++ .../models/settings_udm_hook_list.py | 131 + .../models/settings_udm_hook_list_embedded.py | 134 + .../models/settings_udm_hook_request.py | 251 ++ .../models/settings_udm_hook_request_patch.py | 223 ++ .../settings_udm_hook_response_mixin.py | 256 ++ .../models/settings_udm_module.py | 402 +++ .../models/settings_udm_module_list.py | 131 + .../settings_udm_module_list_embedded.py | 134 + .../models/settings_udm_module_request.py | 251 ++ .../settings_udm_module_request_patch.py | 223 ++ .../settings_udm_module_response_mixin.py | 256 ++ .../models/settings_udm_syntax.py | 402 +++ .../models/settings_udm_syntax_list.py | 131 + .../settings_udm_syntax_list_embedded.py | 134 + .../models/settings_udm_syntax_request.py | 251 ++ .../settings_udm_syntax_request_patch.py | 223 ++ .../settings_udm_syntax_response_mixin.py | 256 ++ .../models/settings_umc_operationset.py | 402 +++ .../models/settings_umc_operationset_list.py | 131 + ...settings_umc_operationset_list_embedded.py | 134 + .../settings_umc_operationset_request.py | 251 ++ ...settings_umc_operationset_request_patch.py | 223 ++ ...ettings_umc_operationset_response_mixin.py | 256 ++ .../models/settings_usertemplate.py | 402 +++ .../models/settings_usertemplate_list.py | 131 + .../settings_usertemplate_list_embedded.py | 134 + .../models/settings_usertemplate_request.py | 251 ++ .../settings_usertemplate_request_patch.py | 223 ++ .../settings_usertemplate_response_mixin.py | 256 ++ openapi_client_udm/models/shares_print.py | 402 +++ .../models/shares_print_list.py | 131 + .../models/shares_print_list_embedded.py | 134 + .../models/shares_print_request.py | 251 ++ .../models/shares_print_request_patch.py | 223 ++ .../models/shares_print_response_mixin.py | 256 ++ openapi_client_udm/models/shares_printer.py | 402 +++ .../models/shares_printer_list.py | 131 + .../models/shares_printer_list_embedded.py | 134 + .../models/shares_printer_request.py | 251 ++ .../models/shares_printer_request_patch.py | 223 ++ .../models/shares_printer_response_mixin.py | 256 ++ .../models/shares_printergroup.py | 402 +++ .../models/shares_printergroup_list.py | 131 + .../shares_printergroup_list_embedded.py | 134 + .../models/shares_printergroup_request.py | 251 ++ .../shares_printergroup_request_patch.py | 223 ++ .../shares_printergroup_response_mixin.py | 256 ++ openapi_client_udm/models/shares_share.py | 398 +++ .../models/shares_share_list.py | 131 + .../models/shares_share_list_embedded.py | 134 + .../models/shares_share_options.py | 161 + .../models/shares_share_policies.py | 139 + .../models/shares_share_request.py | 247 ++ .../models/shares_share_request_patch.py | 219 ++ .../models/shares_share_response_mixin.py | 256 ++ openapi_client_udm/models/users_contact.py | 402 +++ .../models/users_contact_list.py | 131 + .../models/users_contact_list_embedded.py | 134 + .../models/users_contact_request.py | 251 ++ .../models/users_contact_request_patch.py | 223 ++ .../models/users_contact_response_mixin.py | 256 ++ openapi_client_udm/models/users_ldap.py | 398 +++ openapi_client_udm/models/users_ldap_list.py | 131 + .../models/users_ldap_list_embedded.py | 134 + .../models/users_ldap_options.py | 133 + .../models/users_ldap_policies.py | 173 + .../models/users_ldap_request.py | 247 ++ .../models/users_ldap_request_patch.py | 219 ++ .../models/users_ldap_response_mixin.py | 256 ++ openapi_client_udm/models/users_passwd.py | 402 +++ .../models/users_passwd_list.py | 131 + .../models/users_passwd_list_embedded.py | 134 + .../models/users_passwd_request.py | 251 ++ .../models/users_passwd_request_patch.py | 223 ++ .../models/users_passwd_response_mixin.py | 256 ++ openapi_client_udm/models/users_self.py | 400 +++ openapi_client_udm/models/users_self_list.py | 131 + .../models/users_self_list_embedded.py | 134 + .../models/users_self_options.py | 133 + .../models/users_self_request.py | 249 ++ .../models/users_self_request_patch.py | 221 ++ .../models/users_self_response_mixin.py | 256 ++ openapi_client_udm/models/users_user.py | 398 +++ openapi_client_udm/models/users_user_list.py | 131 + .../models/users_user_list_embedded.py | 134 + .../models/users_user_options.py | 133 + .../models/users_user_policies.py | 207 ++ .../models/users_user_request.py | 247 ++ .../models/users_user_request_patch.py | 219 ++ .../models/users_user_response_mixin.py | 256 ++ .../models/uvmm_cloudconnection.py | 402 +++ .../models/uvmm_cloudconnection_list.py | 131 + .../uvmm_cloudconnection_list_embedded.py | 134 + .../models/uvmm_cloudconnection_request.py | 251 ++ .../uvmm_cloudconnection_request_patch.py | 223 ++ .../uvmm_cloudconnection_response_mixin.py | 256 ++ openapi_client_udm/models/uvmm_cloudtype.py | 402 +++ .../models/uvmm_cloudtype_list.py | 131 + .../models/uvmm_cloudtype_list_embedded.py | 134 + .../models/uvmm_cloudtype_request.py | 251 ++ .../models/uvmm_cloudtype_request_patch.py | 223 ++ .../models/uvmm_cloudtype_response_mixin.py | 256 ++ openapi_client_udm/models/uvmm_info.py | 402 +++ openapi_client_udm/models/uvmm_info_list.py | 131 + .../models/uvmm_info_list_embedded.py | 134 + .../models/uvmm_info_request.py | 251 ++ .../models/uvmm_info_request_patch.py | 223 ++ .../models/uvmm_info_response_mixin.py | 256 ++ openapi_client_udm/models/uvmm_profile.py | 402 +++ .../models/uvmm_profile_list.py | 131 + .../models/uvmm_profile_list_embedded.py | 134 + .../models/uvmm_profile_request.py | 251 ++ .../models/uvmm_profile_request_patch.py | 223 ++ .../models/uvmm_profile_response_mixin.py | 256 ++ openapi_client_udm/rest.py | 247 ++ requirements.txt | 5 + setup.cfg | 2 + setup.py | 42 + test-requirements.txt | 3 + test/__init__.py | 0 test/test_appcenter_app.py | 37 + test/test_appcenter_app_api.py | 82 + test/test_appcenter_app_list.py | 54 + test/test_appcenter_app_list_embedded.py | 53 + test/test_appcenter_app_policies.py | 122 + test/test_appcenter_app_request.py | 37 + test/test_appcenter_app_request_all_of.py | 51 + test/test_appcenter_app_request_patch.py | 54 + test/test_appcenter_app_response_mixin.py | 55 + test/test_computers_computer.py | 37 + test/test_computers_computer_api.py | 47 + test/test_computers_computer_list.py | 54 + test/test_computers_computer_list_embedded.py | 53 + test/test_computers_computer_request.py | 37 + test/test_computers_computer_request_patch.py | 54 + .../test_computers_computer_response_mixin.py | 55 + .../test_computers_domaincontroller_backup.py | 37 + ...t_computers_domaincontroller_backup_api.py | 82 + ..._computers_domaincontroller_backup_list.py | 54 + ...s_domaincontroller_backup_list_embedded.py | 53 + ...mputers_domaincontroller_backup_options.py | 56 + ...puters_domaincontroller_backup_policies.py | 77 + ...mputers_domaincontroller_backup_request.py | 37 + ...s_domaincontroller_backup_request_patch.py | 54 + ..._domaincontroller_backup_response_mixin.py | 55 + .../test_computers_domaincontroller_master.py | 37 + ...t_computers_domaincontroller_master_api.py | 82 + ..._computers_domaincontroller_master_list.py | 54 + ...s_domaincontroller_master_list_embedded.py | 53 + ...mputers_domaincontroller_master_options.py | 56 + ...puters_domaincontroller_master_policies.py | 77 + ...mputers_domaincontroller_master_request.py | 37 + ...s_domaincontroller_master_request_patch.py | 54 + ..._domaincontroller_master_response_mixin.py | 55 + test/test_computers_domaincontroller_slave.py | 37 + ...st_computers_domaincontroller_slave_api.py | 82 + ...t_computers_domaincontroller_slave_list.py | 54 + ...rs_domaincontroller_slave_list_embedded.py | 53 + ...omputers_domaincontroller_slave_options.py | 56 + ...mputers_domaincontroller_slave_policies.py | 77 + ...omputers_domaincontroller_slave_request.py | 37 + ...rs_domaincontroller_slave_request_patch.py | 54 + ...s_domaincontroller_slave_response_mixin.py | 55 + test/test_computers_ipmanagedclient.py | 37 + test/test_computers_ipmanagedclient_api.py | 82 + test/test_computers_ipmanagedclient_list.py | 54 + ...computers_ipmanagedclient_list_embedded.py | 53 + .../test_computers_ipmanagedclient_options.py | 53 + .../test_computers_ipmanagedclient_request.py | 37 + ...computers_ipmanagedclient_request_patch.py | 54 + ...omputers_ipmanagedclient_response_mixin.py | 55 + test/test_computers_linux.py | 37 + test/test_computers_linux_api.py | 82 + test/test_computers_linux_list.py | 54 + test/test_computers_linux_list_embedded.py | 53 + test/test_computers_linux_options.py | 56 + test/test_computers_linux_request.py | 37 + test/test_computers_linux_request_patch.py | 54 + test/test_computers_linux_response_mixin.py | 55 + test/test_computers_macos.py | 37 + test/test_computers_macos_api.py | 82 + test/test_computers_macos_list.py | 54 + test/test_computers_macos_list_embedded.py | 53 + test/test_computers_macos_options.py | 56 + test/test_computers_macos_request.py | 37 + test/test_computers_macos_request_patch.py | 54 + test/test_computers_macos_response_mixin.py | 55 + test/test_computers_memberserver.py | 37 + test/test_computers_memberserver_api.py | 82 + test/test_computers_memberserver_list.py | 54 + ...st_computers_memberserver_list_embedded.py | 53 + test/test_computers_memberserver_options.py | 56 + test/test_computers_memberserver_policies.py | 80 + test/test_computers_memberserver_request.py | 37 + ...st_computers_memberserver_request_patch.py | 54 + ...t_computers_memberserver_response_mixin.py | 55 + test/test_computers_trustaccount.py | 37 + test/test_computers_trustaccount_api.py | 82 + test/test_computers_trustaccount_list.py | 54 + ...st_computers_trustaccount_list_embedded.py | 53 + test/test_computers_trustaccount_options.py | 51 + test/test_computers_trustaccount_request.py | 37 + ...st_computers_trustaccount_request_patch.py | 54 + ...t_computers_trustaccount_response_mixin.py | 55 + test/test_computers_ubuntu.py | 37 + test/test_computers_ubuntu_api.py | 82 + test/test_computers_ubuntu_list.py | 54 + test/test_computers_ubuntu_list_embedded.py | 53 + test/test_computers_ubuntu_options.py | 56 + test/test_computers_ubuntu_request.py | 37 + test/test_computers_ubuntu_request_patch.py | 54 + test/test_computers_ubuntu_response_mixin.py | 55 + test/test_computers_windows.py | 37 + test/test_computers_windows_api.py | 82 + ...test_computers_windows_domaincontroller.py | 37 + ..._computers_windows_domaincontroller_api.py | 82 + ...computers_windows_domaincontroller_list.py | 54 + ..._windows_domaincontroller_list_embedded.py | 53 + ...puters_windows_domaincontroller_options.py | 56 + ...puters_windows_domaincontroller_request.py | 37 + ..._windows_domaincontroller_request_patch.py | 54 + ...windows_domaincontroller_response_mixin.py | 55 + test/test_computers_windows_list.py | 54 + test/test_computers_windows_list_embedded.py | 53 + test/test_computers_windows_options.py | 56 + test/test_computers_windows_request.py | 37 + test/test_computers_windows_request_patch.py | 54 + test/test_computers_windows_response_mixin.py | 55 + test/test_container_cn.py | 37 + test/test_container_cn_api.py | 82 + test/test_container_cn_list.py | 54 + test/test_container_cn_list_embedded.py | 53 + test/test_container_cn_policies.py | 122 + test/test_container_cn_request.py | 37 + test/test_container_cn_request_patch.py | 54 + test/test_container_cn_response_mixin.py | 55 + test/test_container_dc.py | 37 + test/test_container_dc_api.py | 61 + test/test_container_dc_list.py | 54 + test/test_container_dc_list_embedded.py | 53 + test/test_container_dc_options.py | 52 + test/test_container_dc_policies.py | 122 + test/test_container_dc_request.py | 37 + test/test_container_dc_request_patch.py | 54 + test/test_container_dc_response_mixin.py | 55 + test/test_container_msgpo.py | 37 + test/test_container_msgpo_api.py | 82 + test/test_container_msgpo_list.py | 54 + test/test_container_msgpo_list_embedded.py | 53 + test/test_container_msgpo_policies.py | 122 + test/test_container_msgpo_request.py | 37 + test/test_container_msgpo_request_patch.py | 54 + test/test_container_msgpo_response_mixin.py | 55 + test/test_container_ou.py | 37 + test/test_container_ou_api.py | 82 + test/test_container_ou_list.py | 54 + test/test_container_ou_list_embedded.py | 53 + test/test_container_ou_policies.py | 122 + test/test_container_ou_request.py | 37 + test/test_container_ou_request_patch.py | 54 + test/test_container_ou_response_mixin.py | 55 + test/test_dhcp_dhcp.py | 37 + test/test_dhcp_dhcp_api.py | 47 + test/test_dhcp_dhcp_list.py | 54 + test/test_dhcp_dhcp_list_embedded.py | 53 + test/test_dhcp_dhcp_request.py | 37 + test/test_dhcp_dhcp_request_patch.py | 54 + test/test_dhcp_dhcp_response_mixin.py | 55 + test/test_dhcp_host.py | 37 + test/test_dhcp_host_api.py | 82 + test/test_dhcp_host_list.py | 54 + test/test_dhcp_host_list_embedded.py | 53 + test/test_dhcp_host_options.py | 51 + test/test_dhcp_host_policies.py | 74 + test/test_dhcp_host_request.py | 37 + test/test_dhcp_host_request_patch.py | 55 + test/test_dhcp_host_response_mixin.py | 55 + test/test_dhcp_pool.py | 37 + test/test_dhcp_pool_api.py | 82 + test/test_dhcp_pool_list.py | 54 + test/test_dhcp_pool_list_embedded.py | 53 + test/test_dhcp_pool_options.py | 51 + test/test_dhcp_pool_policies.py | 71 + test/test_dhcp_pool_request.py | 37 + test/test_dhcp_pool_request_patch.py | 55 + test/test_dhcp_pool_response_mixin.py | 55 + test/test_dhcp_server.py | 37 + test/test_dhcp_server_api.py | 82 + test/test_dhcp_server_list.py | 54 + test/test_dhcp_server_list_embedded.py | 53 + test/test_dhcp_server_request.py | 37 + test/test_dhcp_server_request_patch.py | 55 + test/test_dhcp_server_response_mixin.py | 55 + test/test_dhcp_service.py | 37 + test/test_dhcp_service_api.py | 82 + test/test_dhcp_service_list.py | 54 + test/test_dhcp_service_list_embedded.py | 53 + test/test_dhcp_service_options.py | 51 + test/test_dhcp_service_policies.py | 74 + test/test_dhcp_service_request.py | 37 + test/test_dhcp_service_request_patch.py | 54 + test/test_dhcp_service_response_mixin.py | 55 + test/test_dhcp_shared.py | 37 + test/test_dhcp_shared_api.py | 82 + test/test_dhcp_shared_list.py | 54 + test/test_dhcp_shared_list_embedded.py | 53 + test/test_dhcp_shared_options.py | 51 + test/test_dhcp_shared_policies.py | 74 + test/test_dhcp_shared_request.py | 37 + test/test_dhcp_shared_request_patch.py | 55 + test/test_dhcp_shared_response_mixin.py | 55 + test/test_dhcp_sharedsubnet.py | 37 + test/test_dhcp_sharedsubnet_api.py | 82 + test/test_dhcp_sharedsubnet_list.py | 54 + test/test_dhcp_sharedsubnet_list_embedded.py | 53 + test/test_dhcp_sharedsubnet_options.py | 51 + test/test_dhcp_sharedsubnet_policies.py | 74 + test/test_dhcp_sharedsubnet_request.py | 37 + test/test_dhcp_sharedsubnet_request_patch.py | 55 + test/test_dhcp_sharedsubnet_response_mixin.py | 55 + test/test_dhcp_subnet.py | 37 + test/test_dhcp_subnet_api.py | 82 + test/test_dhcp_subnet_list.py | 54 + test/test_dhcp_subnet_list_embedded.py | 53 + test/test_dhcp_subnet_options.py | 51 + test/test_dhcp_subnet_policies.py | 74 + test/test_dhcp_subnet_request.py | 37 + test/test_dhcp_subnet_request_patch.py | 55 + test/test_dhcp_subnet_response_mixin.py | 55 + test/test_dns_alias.py | 37 + test/test_dns_alias_api.py | 82 + test/test_dns_alias_list.py | 54 + test/test_dns_alias_list_embedded.py | 53 + test/test_dns_alias_request.py | 37 + test/test_dns_alias_request_patch.py | 55 + test/test_dns_alias_response_mixin.py | 55 + test/test_dns_dns.py | 37 + test/test_dns_dns_api.py | 47 + test/test_dns_dns_list.py | 54 + test/test_dns_dns_list_embedded.py | 53 + test/test_dns_dns_request.py | 37 + test/test_dns_dns_request_patch.py | 54 + test/test_dns_dns_response_mixin.py | 55 + test/test_dns_forward_zone.py | 37 + test/test_dns_forward_zone_api.py | 82 + test/test_dns_forward_zone_list.py | 54 + test/test_dns_forward_zone_list_embedded.py | 53 + test/test_dns_forward_zone_policies.py | 122 + test/test_dns_forward_zone_request.py | 37 + test/test_dns_forward_zone_request_patch.py | 54 + test/test_dns_forward_zone_response_mixin.py | 55 + test/test_dns_host_record.py | 37 + test/test_dns_host_record_api.py | 82 + test/test_dns_host_record_list.py | 54 + test/test_dns_host_record_list_embedded.py | 53 + test/test_dns_host_record_request.py | 37 + test/test_dns_host_record_request_patch.py | 55 + test/test_dns_host_record_response_mixin.py | 55 + test/test_dns_ns_record.py | 37 + test/test_dns_ns_record_api.py | 82 + test/test_dns_ns_record_list.py | 54 + test/test_dns_ns_record_list_embedded.py | 53 + test/test_dns_ns_record_request.py | 37 + test/test_dns_ns_record_request_patch.py | 55 + test/test_dns_ns_record_response_mixin.py | 55 + test/test_dns_ptr_record.py | 37 + test/test_dns_ptr_record_api.py | 82 + test/test_dns_ptr_record_list.py | 54 + test/test_dns_ptr_record_list_embedded.py | 53 + test/test_dns_ptr_record_request.py | 37 + test/test_dns_ptr_record_request_patch.py | 55 + test/test_dns_ptr_record_response_mixin.py | 55 + test/test_dns_reverse_zone.py | 37 + test/test_dns_reverse_zone_api.py | 82 + test/test_dns_reverse_zone_list.py | 54 + test/test_dns_reverse_zone_list_embedded.py | 53 + test/test_dns_reverse_zone_policies.py | 122 + test/test_dns_reverse_zone_request.py | 37 + test/test_dns_reverse_zone_request_patch.py | 54 + test/test_dns_reverse_zone_response_mixin.py | 55 + test/test_dns_srv_record.py | 37 + test/test_dns_srv_record_api.py | 82 + test/test_dns_srv_record_list.py | 54 + test/test_dns_srv_record_list_embedded.py | 53 + test/test_dns_srv_record_request.py | 37 + test/test_dns_srv_record_request_patch.py | 55 + test/test_dns_srv_record_response_mixin.py | 55 + test/test_dns_txt_record.py | 37 + test/test_dns_txt_record_api.py | 82 + test/test_dns_txt_record_list.py | 54 + test/test_dns_txt_record_list_embedded.py | 53 + test/test_dns_txt_record_request.py | 37 + test/test_dns_txt_record_request_patch.py | 55 + test/test_dns_txt_record_response_mixin.py | 55 + test/test_embedded_error.py | 55 + test/test_groups_group.py | 37 + test/test_groups_group_api.py | 82 + test/test_groups_group_list.py | 54 + test/test_groups_group_list_embedded.py | 53 + test/test_groups_group_options.py | 52 + test/test_groups_group_policies.py | 53 + test/test_groups_group_request.py | 37 + test/test_groups_group_request_patch.py | 54 + test/test_groups_group_response_mixin.py | 55 + test/test_inline_response201.py | 52 + test/test_kerberos_kdcentry.py | 37 + test/test_kerberos_kdcentry_api.py | 82 + test/test_kerberos_kdcentry_list.py | 54 + test/test_kerberos_kdcentry_list_embedded.py | 53 + test/test_kerberos_kdcentry_request.py | 37 + test/test_kerberos_kdcentry_request_patch.py | 54 + test/test_kerberos_kdcentry_response_mixin.py | 55 + test/test_links.py | 53 + test/test_mail_domain.py | 37 + test/test_mail_domain_api.py | 82 + test/test_mail_domain_list.py | 54 + test/test_mail_domain_list_embedded.py | 53 + test/test_mail_domain_request.py | 37 + test/test_mail_domain_request_patch.py | 54 + test/test_mail_domain_response_mixin.py | 55 + test/test_mail_folder.py | 37 + test/test_mail_folder_api.py | 82 + test/test_mail_folder_list.py | 54 + test/test_mail_folder_list_embedded.py | 53 + test/test_mail_folder_request.py | 37 + test/test_mail_folder_request_patch.py | 54 + test/test_mail_folder_response_mixin.py | 55 + test/test_mail_lists.py | 37 + test/test_mail_lists_api.py | 82 + test/test_mail_lists_list.py | 54 + test/test_mail_lists_list_embedded.py | 53 + test/test_mail_lists_request.py | 37 + test/test_mail_lists_request_patch.py | 54 + test/test_mail_lists_response_mixin.py | 55 + test/test_mail_mail.py | 37 + test/test_mail_mail_api.py | 47 + test/test_mail_mail_list.py | 54 + test/test_mail_mail_list_embedded.py | 53 + test/test_mail_mail_request.py | 37 + test/test_mail_mail_request_patch.py | 54 + test/test_mail_mail_response_mixin.py | 55 + test/test_monitoring_alert.py | 37 + test/test_monitoring_alert_api.py | 82 + test/test_monitoring_alert_list.py | 54 + test/test_monitoring_alert_list_embedded.py | 53 + test/test_monitoring_alert_request.py | 37 + test/test_monitoring_alert_request_patch.py | 54 + test/test_monitoring_alert_response_mixin.py | 55 + test/test_ms_domainpolicy.py | 37 + test/test_ms_domainpolicy_api.py | 82 + test/test_ms_domainpolicy_list.py | 54 + test/test_ms_domainpolicy_list_embedded.py | 53 + test/test_ms_domainpolicy_policies.py | 122 + test/test_ms_domainpolicy_request.py | 37 + test/test_ms_domainpolicy_request_patch.py | 54 + test/test_ms_domainpolicy_response_mixin.py | 55 + test/test_ms_gpipsec_filter.py | 37 + test/test_ms_gpipsec_filter_api.py | 82 + test/test_ms_gpipsec_filter_list.py | 54 + test/test_ms_gpipsec_filter_list_embedded.py | 53 + test/test_ms_gpipsec_filter_policies.py | 122 + test/test_ms_gpipsec_filter_request.py | 37 + test/test_ms_gpipsec_filter_request_patch.py | 54 + test/test_ms_gpipsec_filter_response_mixin.py | 55 + test/test_ms_gpipsec_isakmp_policy.py | 37 + test/test_ms_gpipsec_isakmp_policy_api.py | 82 + test/test_ms_gpipsec_isakmp_policy_list.py | 54 + ..._ms_gpipsec_isakmp_policy_list_embedded.py | 53 + .../test_ms_gpipsec_isakmp_policy_policies.py | 122 + test/test_ms_gpipsec_isakmp_policy_request.py | 37 + ..._ms_gpipsec_isakmp_policy_request_patch.py | 54 + ...ms_gpipsec_isakmp_policy_response_mixin.py | 55 + test/test_ms_gpipsec_negotiation_policy.py | 37 + .../test_ms_gpipsec_negotiation_policy_api.py | 82 + ...test_ms_gpipsec_negotiation_policy_list.py | 54 + ...pipsec_negotiation_policy_list_embedded.py | 53 + ..._ms_gpipsec_negotiation_policy_policies.py | 122 + ...t_ms_gpipsec_negotiation_policy_request.py | 37 + ...pipsec_negotiation_policy_request_patch.py | 54 + ...ipsec_negotiation_policy_response_mixin.py | 55 + test/test_ms_gpipsec_nfa.py | 37 + test/test_ms_gpipsec_nfa_api.py | 82 + test/test_ms_gpipsec_nfa_list.py | 54 + test/test_ms_gpipsec_nfa_list_embedded.py | 53 + test/test_ms_gpipsec_nfa_policies.py | 122 + test/test_ms_gpipsec_nfa_request.py | 37 + test/test_ms_gpipsec_nfa_request_patch.py | 54 + test/test_ms_gpipsec_nfa_response_mixin.py | 55 + test/test_ms_gpipsec_policy.py | 37 + test/test_ms_gpipsec_policy_api.py | 82 + test/test_ms_gpipsec_policy_list.py | 54 + test/test_ms_gpipsec_policy_list_embedded.py | 53 + test/test_ms_gpipsec_policy_policies.py | 122 + test/test_ms_gpipsec_policy_request.py | 37 + test/test_ms_gpipsec_policy_request_patch.py | 54 + test/test_ms_gpipsec_policy_response_mixin.py | 55 + test/test_ms_gpsi_category_registration.py | 37 + .../test_ms_gpsi_category_registration_api.py | 82 + ...test_ms_gpsi_category_registration_list.py | 54 + ...psi_category_registration_list_embedded.py | 53 + ..._ms_gpsi_category_registration_policies.py | 122 + ...t_ms_gpsi_category_registration_request.py | 37 + ...psi_category_registration_request_patch.py | 54 + ...si_category_registration_response_mixin.py | 55 + test/test_ms_gpsi_class_store.py | 37 + test/test_ms_gpsi_class_store_api.py | 82 + test/test_ms_gpsi_class_store_list.py | 54 + .../test_ms_gpsi_class_store_list_embedded.py | 53 + test/test_ms_gpsi_class_store_policies.py | 122 + test/test_ms_gpsi_class_store_request.py | 37 + .../test_ms_gpsi_class_store_request_patch.py | 54 + ...test_ms_gpsi_class_store_response_mixin.py | 55 + test/test_ms_gpsi_package_registration.py | 37 + test/test_ms_gpsi_package_registration_api.py | 82 + .../test_ms_gpsi_package_registration_list.py | 54 + ...gpsi_package_registration_list_embedded.py | 53 + ...t_ms_gpsi_package_registration_policies.py | 122 + ...st_ms_gpsi_package_registration_request.py | 37 + ...gpsi_package_registration_request_patch.py | 54 + ...psi_package_registration_response_mixin.py | 55 + test/test_ms_gpwl_wired.py | 37 + test/test_ms_gpwl_wired_api.py | 82 + test/test_ms_gpwl_wired_list.py | 54 + test/test_ms_gpwl_wired_list_embedded.py | 53 + test/test_ms_gpwl_wired_policies.py | 122 + test/test_ms_gpwl_wired_request.py | 37 + test/test_ms_gpwl_wired_request_patch.py | 54 + test/test_ms_gpwl_wired_response_mixin.py | 55 + test/test_ms_gpwl_wireless.py | 37 + test/test_ms_gpwl_wireless_api.py | 82 + test/test_ms_gpwl_wireless_blob.py | 37 + test/test_ms_gpwl_wireless_blob_api.py | 82 + test/test_ms_gpwl_wireless_blob_list.py | 54 + ...est_ms_gpwl_wireless_blob_list_embedded.py | 53 + test/test_ms_gpwl_wireless_blob_policies.py | 122 + test/test_ms_gpwl_wireless_blob_request.py | 37 + ...est_ms_gpwl_wireless_blob_request_patch.py | 54 + ...st_ms_gpwl_wireless_blob_response_mixin.py | 55 + test/test_ms_gpwl_wireless_list.py | 54 + test/test_ms_gpwl_wireless_list_embedded.py | 53 + test/test_ms_gpwl_wireless_policies.py | 122 + test/test_ms_gpwl_wireless_request.py | 37 + test/test_ms_gpwl_wireless_request_patch.py | 54 + test/test_ms_gpwl_wireless_response_mixin.py | 55 + test/test_nagios_nagios.py | 37 + test/test_nagios_nagios_api.py | 47 + test/test_nagios_nagios_list.py | 54 + test/test_nagios_nagios_list_embedded.py | 53 + test/test_nagios_nagios_request.py | 37 + test/test_nagios_nagios_request_patch.py | 54 + test/test_nagios_nagios_response_mixin.py | 55 + test/test_nagios_service.py | 37 + test/test_nagios_service_api.py | 82 + test/test_nagios_service_list.py | 54 + test/test_nagios_service_list_embedded.py | 53 + test/test_nagios_service_request.py | 37 + test/test_nagios_service_request_patch.py | 54 + test/test_nagios_service_response_mixin.py | 55 + test/test_nagios_timeperiod.py | 37 + test/test_nagios_timeperiod_api.py | 82 + test/test_nagios_timeperiod_list.py | 54 + test/test_nagios_timeperiod_list_embedded.py | 53 + test/test_nagios_timeperiod_request.py | 37 + test/test_nagios_timeperiod_request_patch.py | 54 + test/test_nagios_timeperiod_response_mixin.py | 55 + test/test_networks_network.py | 37 + test/test_networks_network_api.py | 82 + test/test_networks_network_list.py | 54 + test/test_networks_network_list_embedded.py | 53 + test/test_networks_network_request.py | 37 + test/test_networks_network_request_patch.py | 54 + test/test_networks_network_response_mixin.py | 55 + test/test_policies_admin_container.py | 37 + test/test_policies_admin_container_api.py | 82 + test/test_policies_admin_container_list.py | 54 + ..._policies_admin_container_list_embedded.py | 53 + test/test_policies_admin_container_request.py | 37 + ..._policies_admin_container_request_patch.py | 54 + ...policies_admin_container_response_mixin.py | 55 + test/test_policies_desktop.py | 37 + test/test_policies_desktop_api.py | 82 + test/test_policies_desktop_list.py | 54 + test/test_policies_desktop_list_embedded.py | 53 + test/test_policies_desktop_request.py | 37 + test/test_policies_desktop_request_patch.py | 54 + test/test_policies_desktop_response_mixin.py | 55 + test/test_policies_dhcp_boot.py | 37 + test/test_policies_dhcp_boot_api.py | 82 + test/test_policies_dhcp_boot_list.py | 54 + test/test_policies_dhcp_boot_list_embedded.py | 53 + test/test_policies_dhcp_boot_request.py | 37 + test/test_policies_dhcp_boot_request_patch.py | 54 + .../test_policies_dhcp_boot_response_mixin.py | 55 + test/test_policies_dhcp_dns.py | 37 + test/test_policies_dhcp_dns_api.py | 82 + test/test_policies_dhcp_dns_list.py | 54 + test/test_policies_dhcp_dns_list_embedded.py | 53 + test/test_policies_dhcp_dns_request.py | 37 + test/test_policies_dhcp_dns_request_patch.py | 54 + test/test_policies_dhcp_dns_response_mixin.py | 55 + test/test_policies_dhcp_dnsupdate.py | 37 + test/test_policies_dhcp_dnsupdate_api.py | 82 + test/test_policies_dhcp_dnsupdate_list.py | 54 + ...t_policies_dhcp_dnsupdate_list_embedded.py | 53 + test/test_policies_dhcp_dnsupdate_request.py | 37 + ...t_policies_dhcp_dnsupdate_request_patch.py | 54 + ..._policies_dhcp_dnsupdate_response_mixin.py | 55 + test/test_policies_dhcp_leasetime.py | 37 + test/test_policies_dhcp_leasetime_api.py | 82 + test/test_policies_dhcp_leasetime_list.py | 54 + ...t_policies_dhcp_leasetime_list_embedded.py | 53 + test/test_policies_dhcp_leasetime_request.py | 37 + ...t_policies_dhcp_leasetime_request_patch.py | 54 + ..._policies_dhcp_leasetime_response_mixin.py | 55 + test/test_policies_dhcp_netbios.py | 37 + test/test_policies_dhcp_netbios_api.py | 82 + test/test_policies_dhcp_netbios_list.py | 54 + ...est_policies_dhcp_netbios_list_embedded.py | 53 + test/test_policies_dhcp_netbios_request.py | 37 + ...est_policies_dhcp_netbios_request_patch.py | 54 + ...st_policies_dhcp_netbios_response_mixin.py | 55 + test/test_policies_dhcp_routing.py | 37 + test/test_policies_dhcp_routing_api.py | 82 + test/test_policies_dhcp_routing_list.py | 54 + ...est_policies_dhcp_routing_list_embedded.py | 53 + test/test_policies_dhcp_routing_request.py | 37 + ...est_policies_dhcp_routing_request_patch.py | 54 + ...st_policies_dhcp_routing_response_mixin.py | 55 + test/test_policies_dhcp_scope.py | 37 + test/test_policies_dhcp_scope_api.py | 82 + test/test_policies_dhcp_scope_list.py | 54 + .../test_policies_dhcp_scope_list_embedded.py | 53 + test/test_policies_dhcp_scope_request.py | 37 + .../test_policies_dhcp_scope_request_patch.py | 54 + ...test_policies_dhcp_scope_response_mixin.py | 55 + test/test_policies_dhcp_statements.py | 37 + test/test_policies_dhcp_statements_api.py | 82 + test/test_policies_dhcp_statements_list.py | 54 + ..._policies_dhcp_statements_list_embedded.py | 53 + test/test_policies_dhcp_statements_request.py | 37 + ..._policies_dhcp_statements_request_patch.py | 54 + ...policies_dhcp_statements_response_mixin.py | 55 + test/test_policies_ldapserver.py | 37 + test/test_policies_ldapserver_api.py | 82 + test/test_policies_ldapserver_list.py | 54 + .../test_policies_ldapserver_list_embedded.py | 53 + test/test_policies_ldapserver_request.py | 37 + .../test_policies_ldapserver_request_patch.py | 54 + ...test_policies_ldapserver_response_mixin.py | 55 + test/test_policies_maintenance.py | 37 + test/test_policies_maintenance_api.py | 82 + test/test_policies_maintenance_list.py | 54 + ...test_policies_maintenance_list_embedded.py | 53 + test/test_policies_maintenance_request.py | 37 + ...test_policies_maintenance_request_patch.py | 54 + ...est_policies_maintenance_response_mixin.py | 55 + test/test_policies_masterpackages.py | 37 + test/test_policies_masterpackages_api.py | 82 + test/test_policies_masterpackages_list.py | 54 + ...t_policies_masterpackages_list_embedded.py | 53 + test/test_policies_masterpackages_request.py | 37 + ...t_policies_masterpackages_request_patch.py | 54 + ..._policies_masterpackages_response_mixin.py | 55 + test/test_policies_memberpackages.py | 37 + test/test_policies_memberpackages_api.py | 82 + test/test_policies_memberpackages_list.py | 54 + ...t_policies_memberpackages_list_embedded.py | 53 + test/test_policies_memberpackages_request.py | 37 + ...t_policies_memberpackages_request_patch.py | 54 + ..._policies_memberpackages_response_mixin.py | 55 + test/test_policies_nfsmounts.py | 37 + test/test_policies_nfsmounts_api.py | 82 + test/test_policies_nfsmounts_list.py | 54 + test/test_policies_nfsmounts_list_embedded.py | 53 + test/test_policies_nfsmounts_request.py | 37 + test/test_policies_nfsmounts_request_patch.py | 54 + .../test_policies_nfsmounts_response_mixin.py | 55 + test/test_policies_policy.py | 37 + test/test_policies_policy_api.py | 47 + test/test_policies_policy_list.py | 54 + test/test_policies_policy_list_embedded.py | 53 + test/test_policies_policy_request.py | 37 + test/test_policies_policy_request_patch.py | 54 + test/test_policies_policy_response_mixin.py | 55 + test/test_policies_printserver.py | 37 + test/test_policies_printserver_api.py | 82 + test/test_policies_printserver_list.py | 54 + ...test_policies_printserver_list_embedded.py | 53 + test/test_policies_printserver_request.py | 37 + ...test_policies_printserver_request_patch.py | 54 + ...est_policies_printserver_response_mixin.py | 55 + test/test_policies_pwhistory.py | 37 + test/test_policies_pwhistory_api.py | 82 + test/test_policies_pwhistory_list.py | 54 + test/test_policies_pwhistory_list_embedded.py | 53 + test/test_policies_pwhistory_request.py | 37 + test/test_policies_pwhistory_request_patch.py | 54 + .../test_policies_pwhistory_response_mixin.py | 55 + test/test_policies_registry.py | 37 + test/test_policies_registry_api.py | 82 + test/test_policies_registry_list.py | 54 + test/test_policies_registry_list_embedded.py | 53 + test/test_policies_registry_request.py | 37 + test/test_policies_registry_request_patch.py | 54 + test/test_policies_registry_response_mixin.py | 55 + test/test_policies_release.py | 37 + test/test_policies_release_api.py | 82 + test/test_policies_release_list.py | 54 + test/test_policies_release_list_embedded.py | 53 + test/test_policies_release_request.py | 37 + test/test_policies_release_request_patch.py | 54 + test/test_policies_release_response_mixin.py | 55 + test/test_policies_repositoryserver.py | 37 + test/test_policies_repositoryserver_api.py | 82 + test/test_policies_repositoryserver_list.py | 54 + ...policies_repositoryserver_list_embedded.py | 53 + .../test_policies_repositoryserver_request.py | 37 + ...policies_repositoryserver_request_patch.py | 54 + ...olicies_repositoryserver_response_mixin.py | 55 + test/test_policies_repositorysync.py | 37 + test/test_policies_repositorysync_api.py | 82 + test/test_policies_repositorysync_list.py | 54 + ...t_policies_repositorysync_list_embedded.py | 53 + test/test_policies_repositorysync_request.py | 37 + ...t_policies_repositorysync_request_patch.py | 54 + ..._policies_repositorysync_response_mixin.py | 55 + test/test_policies_share_userquota.py | 37 + test/test_policies_share_userquota_api.py | 82 + test/test_policies_share_userquota_list.py | 54 + ..._policies_share_userquota_list_embedded.py | 53 + test/test_policies_share_userquota_request.py | 37 + ..._policies_share_userquota_request_patch.py | 54 + ...policies_share_userquota_response_mixin.py | 55 + test/test_policies_slavepackages.py | 37 + test/test_policies_slavepackages_api.py | 82 + test/test_policies_slavepackages_list.py | 54 + ...st_policies_slavepackages_list_embedded.py | 53 + test/test_policies_slavepackages_request.py | 37 + ...st_policies_slavepackages_request_patch.py | 54 + ...t_policies_slavepackages_response_mixin.py | 55 + test/test_policies_umc.py | 37 + test/test_policies_umc_api.py | 82 + test/test_policies_umc_list.py | 54 + test/test_policies_umc_list_embedded.py | 53 + test/test_policies_umc_request.py | 37 + test/test_policies_umc_request_patch.py | 54 + test/test_policies_umc_response_mixin.py | 55 + test/test_portals_all.py | 37 + test/test_portals_all_api.py | 47 + test/test_portals_all_list.py | 54 + test/test_portals_all_list_embedded.py | 53 + test/test_portals_all_request.py | 37 + test/test_portals_all_request_patch.py | 54 + test/test_portals_all_response_mixin.py | 55 + test/test_portals_announcement.py | 37 + test/test_portals_announcement_api.py | 82 + test/test_portals_announcement_list.py | 54 + ...test_portals_announcement_list_embedded.py | 53 + test/test_portals_announcement_request.py | 37 + ...test_portals_announcement_request_patch.py | 54 + ...est_portals_announcement_response_mixin.py | 55 + test/test_portals_category.py | 37 + test/test_portals_category_api.py | 82 + test/test_portals_category_list.py | 54 + test/test_portals_category_list_embedded.py | 53 + test/test_portals_category_request.py | 37 + test/test_portals_category_request_patch.py | 54 + test/test_portals_category_response_mixin.py | 55 + test/test_portals_entry.py | 37 + test/test_portals_entry_api.py | 82 + test/test_portals_entry_list.py | 54 + test/test_portals_entry_list_embedded.py | 53 + test/test_portals_entry_request.py | 37 + test/test_portals_entry_request_patch.py | 54 + test/test_portals_entry_response_mixin.py | 55 + test/test_portals_folder.py | 37 + test/test_portals_folder_api.py | 82 + test/test_portals_folder_list.py | 54 + test/test_portals_folder_list_embedded.py | 53 + test/test_portals_folder_request.py | 37 + test/test_portals_folder_request_patch.py | 54 + test/test_portals_folder_response_mixin.py | 55 + test/test_portals_portal.py | 37 + test/test_portals_portal_api.py | 82 + test/test_portals_portal_list.py | 54 + test/test_portals_portal_list_embedded.py | 53 + test/test_portals_portal_request.py | 37 + test/test_portals_portal_request_patch.py | 54 + test/test_portals_portal_response_mixin.py | 55 + test/test_saml_idpconfig.py | 37 + test/test_saml_idpconfig_api.py | 82 + test/test_saml_idpconfig_list.py | 54 + test/test_saml_idpconfig_list_embedded.py | 53 + test/test_saml_idpconfig_request.py | 37 + test/test_saml_idpconfig_request_patch.py | 54 + test/test_saml_idpconfig_response_mixin.py | 55 + test/test_saml_serviceprovider.py | 37 + test/test_saml_serviceprovider_api.py | 82 + test/test_saml_serviceprovider_list.py | 54 + ...test_saml_serviceprovider_list_embedded.py | 53 + test/test_saml_serviceprovider_request.py | 37 + ...test_saml_serviceprovider_request_patch.py | 54 + ...est_saml_serviceprovider_response_mixin.py | 55 + test/test_settings_cn.py | 37 + test/test_settings_cn_api.py | 47 + test/test_settings_cn_list.py | 54 + test/test_settings_cn_list_embedded.py | 53 + test/test_settings_cn_policies.py | 122 + test/test_settings_cn_request.py | 37 + test/test_settings_cn_request_patch.py | 54 + test/test_settings_cn_response_mixin.py | 55 + test/test_settings_data.py | 37 + test/test_settings_data_api.py | 82 + test/test_settings_data_list.py | 54 + test/test_settings_data_list_embedded.py | 53 + test/test_settings_data_request.py | 37 + test/test_settings_data_request_patch.py | 54 + test/test_settings_data_response_mixin.py | 55 + test/test_settings_default.py | 37 + test/test_settings_default_api.py | 61 + test/test_settings_default_list.py | 54 + test/test_settings_default_list_embedded.py | 53 + test/test_settings_default_request.py | 37 + test/test_settings_default_request_patch.py | 54 + test/test_settings_default_response_mixin.py | 55 + test/test_settings_directory.py | 37 + test/test_settings_directory_api.py | 61 + test/test_settings_directory_list.py | 54 + test/test_settings_directory_list_embedded.py | 53 + test/test_settings_directory_request.py | 37 + test/test_settings_directory_request_patch.py | 54 + .../test_settings_directory_response_mixin.py | 55 + test/test_settings_extended_attribute.py | 37 + test/test_settings_extended_attribute_api.py | 82 + test/test_settings_extended_attribute_list.py | 54 + ...ttings_extended_attribute_list_embedded.py | 53 + ...est_settings_extended_attribute_request.py | 37 + ...ttings_extended_attribute_request_patch.py | 54 + ...tings_extended_attribute_response_mixin.py | 55 + test/test_settings_extended_options.py | 37 + test/test_settings_extended_options_api.py | 82 + test/test_settings_extended_options_list.py | 54 + ...settings_extended_options_list_embedded.py | 53 + .../test_settings_extended_options_request.py | 37 + ...settings_extended_options_request_patch.py | 54 + ...ettings_extended_options_response_mixin.py | 55 + test/test_settings_ldapacl.py | 37 + test/test_settings_ldapacl_api.py | 82 + test/test_settings_ldapacl_list.py | 54 + test/test_settings_ldapacl_list_embedded.py | 53 + test/test_settings_ldapacl_request.py | 37 + test/test_settings_ldapacl_request_patch.py | 54 + test/test_settings_ldapacl_response_mixin.py | 55 + test/test_settings_ldapschema.py | 37 + test/test_settings_ldapschema_api.py | 82 + test/test_settings_ldapschema_list.py | 54 + .../test_settings_ldapschema_list_embedded.py | 53 + test/test_settings_ldapschema_request.py | 37 + .../test_settings_ldapschema_request_patch.py | 54 + ...test_settings_ldapschema_response_mixin.py | 55 + test/test_settings_license.py | 37 + test/test_settings_license_api.py | 54 + test/test_settings_license_list.py | 54 + test/test_settings_license_list_embedded.py | 53 + test/test_settings_license_options.py | 52 + test/test_settings_license_request.py | 37 + test/test_settings_license_request_patch.py | 54 + test/test_settings_license_response_mixin.py | 55 + test/test_settings_lock.py | 37 + test/test_settings_lock_api.py | 68 + test/test_settings_lock_list.py | 54 + test/test_settings_lock_list_embedded.py | 53 + test/test_settings_lock_request.py | 37 + test/test_settings_lock_request_patch.py | 54 + test/test_settings_lock_response_mixin.py | 55 + test/test_settings_msprintconnectionpolicy.py | 37 + ...st_settings_msprintconnectionpolicy_api.py | 82 + ...t_settings_msprintconnectionpolicy_list.py | 54 + ...s_msprintconnectionpolicy_list_embedded.py | 53 + ...ttings_msprintconnectionpolicy_policies.py | 122 + ...ettings_msprintconnectionpolicy_request.py | 37 + ...s_msprintconnectionpolicy_request_patch.py | 54 + ..._msprintconnectionpolicy_response_mixin.py | 55 + test/test_settings_mswmifilter.py | 37 + test/test_settings_mswmifilter_api.py | 82 + test/test_settings_mswmifilter_list.py | 54 + ...test_settings_mswmifilter_list_embedded.py | 53 + test/test_settings_mswmifilter_policies.py | 122 + test/test_settings_mswmifilter_request.py | 37 + ...test_settings_mswmifilter_request_patch.py | 54 + ...est_settings_mswmifilter_response_mixin.py | 55 + test/test_settings_packages.py | 37 + test/test_settings_packages_api.py | 82 + test/test_settings_packages_list.py | 54 + test/test_settings_packages_list_embedded.py | 53 + test/test_settings_packages_request.py | 37 + test/test_settings_packages_request_patch.py | 54 + test/test_settings_packages_response_mixin.py | 55 + test/test_settings_portal.py | 37 + test/test_settings_portal_all.py | 37 + test/test_settings_portal_all_api.py | 47 + test/test_settings_portal_all_list.py | 54 + .../test_settings_portal_all_list_embedded.py | 53 + test/test_settings_portal_all_request.py | 37 + .../test_settings_portal_all_request_patch.py | 54 + ...test_settings_portal_all_response_mixin.py | 55 + test/test_settings_portal_api.py | 82 + test/test_settings_portal_category.py | 37 + test/test_settings_portal_category_api.py | 82 + test/test_settings_portal_category_list.py | 54 + ..._settings_portal_category_list_embedded.py | 53 + test/test_settings_portal_category_request.py | 37 + ..._settings_portal_category_request_patch.py | 54 + ...settings_portal_category_response_mixin.py | 55 + test/test_settings_portal_entry.py | 37 + test/test_settings_portal_entry_api.py | 82 + test/test_settings_portal_entry_list.py | 54 + ...est_settings_portal_entry_list_embedded.py | 53 + test/test_settings_portal_entry_request.py | 37 + ...est_settings_portal_entry_request_patch.py | 54 + ...st_settings_portal_entry_response_mixin.py | 55 + test/test_settings_portal_list.py | 54 + test/test_settings_portal_list_embedded.py | 53 + test/test_settings_portal_request.py | 37 + test/test_settings_portal_request_patch.py | 54 + test/test_settings_portal_response_mixin.py | 55 + test/test_settings_printermodel.py | 37 + test/test_settings_printermodel_api.py | 82 + test/test_settings_printermodel_list.py | 54 + ...est_settings_printermodel_list_embedded.py | 53 + test/test_settings_printermodel_request.py | 37 + ...est_settings_printermodel_request_patch.py | 54 + ...st_settings_printermodel_response_mixin.py | 55 + test/test_settings_printeruri.py | 37 + test/test_settings_printeruri_api.py | 82 + test/test_settings_printeruri_list.py | 54 + .../test_settings_printeruri_list_embedded.py | 53 + test/test_settings_printeruri_request.py | 37 + .../test_settings_printeruri_request_patch.py | 54 + ...test_settings_printeruri_response_mixin.py | 55 + test/test_settings_prohibited_username.py | 37 + test/test_settings_prohibited_username_api.py | 82 + .../test_settings_prohibited_username_list.py | 54 + ...tings_prohibited_username_list_embedded.py | 53 + ...st_settings_prohibited_username_request.py | 37 + ...tings_prohibited_username_request_patch.py | 54 + ...ings_prohibited_username_response_mixin.py | 55 + test/test_settings_sambaconfig.py | 37 + test/test_settings_sambaconfig_api.py | 68 + test/test_settings_sambaconfig_list.py | 54 + ...test_settings_sambaconfig_list_embedded.py | 53 + test/test_settings_sambaconfig_request.py | 37 + ...test_settings_sambaconfig_request_patch.py | 54 + ...est_settings_sambaconfig_response_mixin.py | 55 + test/test_settings_sambadomain.py | 37 + test/test_settings_sambadomain_api.py | 82 + test/test_settings_sambadomain_list.py | 54 + ...test_settings_sambadomain_list_embedded.py | 53 + test/test_settings_sambadomain_request.py | 37 + ...test_settings_sambadomain_request_patch.py | 54 + ...est_settings_sambadomain_response_mixin.py | 55 + test/test_settings_service.py | 37 + test/test_settings_service_api.py | 82 + test/test_settings_service_list.py | 54 + test/test_settings_service_list_embedded.py | 53 + test/test_settings_service_request.py | 37 + test/test_settings_service_request_patch.py | 54 + test/test_settings_service_response_mixin.py | 55 + test/test_settings_settings.py | 37 + test/test_settings_settings_api.py | 47 + test/test_settings_settings_list.py | 54 + test/test_settings_settings_list_embedded.py | 53 + test/test_settings_settings_request.py | 37 + test/test_settings_settings_request_patch.py | 54 + test/test_settings_settings_response_mixin.py | 55 + test/test_settings_syntax.py | 37 + test/test_settings_syntax_api.py | 82 + test/test_settings_syntax_list.py | 54 + test/test_settings_syntax_list_embedded.py | 53 + test/test_settings_syntax_request.py | 37 + test/test_settings_syntax_request_patch.py | 54 + test/test_settings_syntax_response_mixin.py | 55 + test/test_settings_udm_hook.py | 37 + test/test_settings_udm_hook_api.py | 82 + test/test_settings_udm_hook_list.py | 54 + test/test_settings_udm_hook_list_embedded.py | 53 + test/test_settings_udm_hook_request.py | 37 + test/test_settings_udm_hook_request_patch.py | 54 + test/test_settings_udm_hook_response_mixin.py | 55 + test/test_settings_udm_module.py | 37 + test/test_settings_udm_module_api.py | 82 + test/test_settings_udm_module_list.py | 54 + .../test_settings_udm_module_list_embedded.py | 53 + test/test_settings_udm_module_request.py | 37 + .../test_settings_udm_module_request_patch.py | 54 + ...test_settings_udm_module_response_mixin.py | 55 + test/test_settings_udm_syntax.py | 37 + test/test_settings_udm_syntax_api.py | 82 + test/test_settings_udm_syntax_list.py | 54 + .../test_settings_udm_syntax_list_embedded.py | 53 + test/test_settings_udm_syntax_request.py | 37 + .../test_settings_udm_syntax_request_patch.py | 54 + ...test_settings_udm_syntax_response_mixin.py | 55 + test/test_settings_umc_operationset.py | 37 + test/test_settings_umc_operationset_api.py | 82 + test/test_settings_umc_operationset_list.py | 54 + ...settings_umc_operationset_list_embedded.py | 53 + .../test_settings_umc_operationset_request.py | 37 + ...settings_umc_operationset_request_patch.py | 54 + ...ettings_umc_operationset_response_mixin.py | 55 + test/test_settings_usertemplate.py | 37 + test/test_settings_usertemplate_api.py | 82 + test/test_settings_usertemplate_list.py | 54 + ...est_settings_usertemplate_list_embedded.py | 53 + test/test_settings_usertemplate_request.py | 37 + ...est_settings_usertemplate_request_patch.py | 54 + ...st_settings_usertemplate_response_mixin.py | 55 + test/test_shares_print.py | 37 + test/test_shares_print_api.py | 47 + test/test_shares_print_list.py | 54 + test/test_shares_print_list_embedded.py | 53 + test/test_shares_print_request.py | 37 + test/test_shares_print_request_patch.py | 54 + test/test_shares_print_response_mixin.py | 55 + test/test_shares_printer.py | 37 + test/test_shares_printer_api.py | 82 + test/test_shares_printer_list.py | 54 + test/test_shares_printer_list_embedded.py | 53 + test/test_shares_printer_request.py | 37 + test/test_shares_printer_request_patch.py | 54 + test/test_shares_printer_response_mixin.py | 55 + test/test_shares_printergroup.py | 37 + test/test_shares_printergroup_api.py | 82 + test/test_shares_printergroup_list.py | 54 + .../test_shares_printergroup_list_embedded.py | 53 + test/test_shares_printergroup_request.py | 37 + .../test_shares_printergroup_request_patch.py | 54 + ...test_shares_printergroup_response_mixin.py | 55 + test/test_shares_share.py | 37 + test/test_shares_share_api.py | 82 + test/test_shares_share_list.py | 54 + test/test_shares_share_list_embedded.py | 53 + test/test_shares_share_options.py | 52 + test/test_shares_share_policies.py | 53 + test/test_shares_share_request.py | 37 + test/test_shares_share_request_patch.py | 54 + test/test_shares_share_response_mixin.py | 55 + test/test_users_contact.py | 37 + test/test_users_contact_api.py | 82 + test/test_users_contact_list.py | 54 + test/test_users_contact_list_embedded.py | 53 + test/test_users_contact_request.py | 37 + test/test_users_contact_request_patch.py | 54 + test/test_users_contact_response_mixin.py | 55 + test/test_users_ldap.py | 37 + test/test_users_ldap_api.py | 82 + test/test_users_ldap_list.py | 54 + test/test_users_ldap_list_embedded.py | 53 + test/test_users_ldap_options.py | 51 + test/test_users_ldap_policies.py | 56 + test/test_users_ldap_request.py | 37 + test/test_users_ldap_request_patch.py | 54 + test/test_users_ldap_response_mixin.py | 55 + test/test_users_passwd.py | 37 + test/test_users_passwd_api.py | 54 + test/test_users_passwd_list.py | 54 + test/test_users_passwd_list_embedded.py | 53 + test/test_users_passwd_request.py | 37 + test/test_users_passwd_request_patch.py | 54 + test/test_users_passwd_response_mixin.py | 55 + test/test_users_self.py | 37 + test/test_users_self_api.py | 61 + test/test_users_self_list.py | 54 + test/test_users_self_list_embedded.py | 53 + test/test_users_self_options.py | 51 + test/test_users_self_request.py | 37 + test/test_users_self_request_patch.py | 54 + test/test_users_self_response_mixin.py | 55 + test/test_users_user.py | 37 + test/test_users_user_api.py | 82 + test/test_users_user_list.py | 54 + test/test_users_user_list_embedded.py | 53 + test/test_users_user_options.py | 51 + test/test_users_user_policies.py | 59 + test/test_users_user_request.py | 37 + test/test_users_user_request_patch.py | 54 + test/test_users_user_response_mixin.py | 55 + test/test_uvmm_cloudconnection.py | 37 + test/test_uvmm_cloudconnection_api.py | 82 + test/test_uvmm_cloudconnection_list.py | 54 + ...test_uvmm_cloudconnection_list_embedded.py | 53 + test/test_uvmm_cloudconnection_request.py | 37 + ...test_uvmm_cloudconnection_request_patch.py | 54 + ...est_uvmm_cloudconnection_response_mixin.py | 55 + test/test_uvmm_cloudtype.py | 37 + test/test_uvmm_cloudtype_api.py | 82 + test/test_uvmm_cloudtype_list.py | 54 + test/test_uvmm_cloudtype_list_embedded.py | 53 + test/test_uvmm_cloudtype_request.py | 37 + test/test_uvmm_cloudtype_request_patch.py | 54 + test/test_uvmm_cloudtype_response_mixin.py | 55 + test/test_uvmm_info.py | 37 + test/test_uvmm_info_api.py | 82 + test/test_uvmm_info_list.py | 54 + test/test_uvmm_info_list_embedded.py | 53 + test/test_uvmm_info_request.py | 37 + test/test_uvmm_info_request_patch.py | 54 + test/test_uvmm_info_response_mixin.py | 55 + test/test_uvmm_profile.py | 37 + test/test_uvmm_profile_api.py | 82 + test/test_uvmm_profile_list.py | 54 + test/test_uvmm_profile_list_embedded.py | 53 + test/test_uvmm_profile_request.py | 37 + test/test_uvmm_profile_request_patch.py | 54 + test/test_uvmm_profile_response_mixin.py | 55 + tox.ini | 9 + 3006 files changed, 555880 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 .openapi-generator-ignore create mode 100644 .openapi-generator/FILES create mode 100644 .openapi-generator/VERSION create mode 100644 .travis.yml create mode 100644 README.md create mode 100644 docs/AppcenterApp.md create mode 100644 docs/AppcenterAppApi.md create mode 100644 docs/AppcenterAppList.md create mode 100644 docs/AppcenterAppListEmbedded.md create mode 100644 docs/AppcenterAppPolicies.md create mode 100644 docs/AppcenterAppRequest.md create mode 100644 docs/AppcenterAppRequestAllOf.md create mode 100644 docs/AppcenterAppRequestPatch.md create mode 100644 docs/AppcenterAppResponseMixin.md create mode 100644 docs/ComputersComputer.md create mode 100644 docs/ComputersComputerApi.md create mode 100644 docs/ComputersComputerList.md create mode 100644 docs/ComputersComputerListEmbedded.md create mode 100644 docs/ComputersComputerRequest.md create mode 100644 docs/ComputersComputerRequestPatch.md create mode 100644 docs/ComputersComputerResponseMixin.md create mode 100644 docs/ComputersDomaincontrollerBackup.md create mode 100644 docs/ComputersDomaincontrollerBackupApi.md create mode 100644 docs/ComputersDomaincontrollerBackupList.md create mode 100644 docs/ComputersDomaincontrollerBackupListEmbedded.md create mode 100644 docs/ComputersDomaincontrollerBackupOptions.md create mode 100644 docs/ComputersDomaincontrollerBackupPolicies.md create mode 100644 docs/ComputersDomaincontrollerBackupRequest.md create mode 100644 docs/ComputersDomaincontrollerBackupRequestPatch.md create mode 100644 docs/ComputersDomaincontrollerBackupResponseMixin.md create mode 100644 docs/ComputersDomaincontrollerMaster.md create mode 100644 docs/ComputersDomaincontrollerMasterApi.md create mode 100644 docs/ComputersDomaincontrollerMasterList.md create mode 100644 docs/ComputersDomaincontrollerMasterListEmbedded.md create mode 100644 docs/ComputersDomaincontrollerMasterOptions.md create mode 100644 docs/ComputersDomaincontrollerMasterPolicies.md create mode 100644 docs/ComputersDomaincontrollerMasterRequest.md create mode 100644 docs/ComputersDomaincontrollerMasterRequestPatch.md create mode 100644 docs/ComputersDomaincontrollerMasterResponseMixin.md create mode 100644 docs/ComputersDomaincontrollerSlave.md create mode 100644 docs/ComputersDomaincontrollerSlaveApi.md create mode 100644 docs/ComputersDomaincontrollerSlaveList.md create mode 100644 docs/ComputersDomaincontrollerSlaveListEmbedded.md create mode 100644 docs/ComputersDomaincontrollerSlaveOptions.md create mode 100644 docs/ComputersDomaincontrollerSlavePolicies.md create mode 100644 docs/ComputersDomaincontrollerSlaveRequest.md create mode 100644 docs/ComputersDomaincontrollerSlaveRequestPatch.md create mode 100644 docs/ComputersDomaincontrollerSlaveResponseMixin.md create mode 100644 docs/ComputersIpmanagedclient.md create mode 100644 docs/ComputersIpmanagedclientApi.md create mode 100644 docs/ComputersIpmanagedclientList.md create mode 100644 docs/ComputersIpmanagedclientListEmbedded.md create mode 100644 docs/ComputersIpmanagedclientOptions.md create mode 100644 docs/ComputersIpmanagedclientRequest.md create mode 100644 docs/ComputersIpmanagedclientRequestPatch.md create mode 100644 docs/ComputersIpmanagedclientResponseMixin.md create mode 100644 docs/ComputersLinux.md create mode 100644 docs/ComputersLinuxApi.md create mode 100644 docs/ComputersLinuxList.md create mode 100644 docs/ComputersLinuxListEmbedded.md create mode 100644 docs/ComputersLinuxOptions.md create mode 100644 docs/ComputersLinuxRequest.md create mode 100644 docs/ComputersLinuxRequestPatch.md create mode 100644 docs/ComputersLinuxResponseMixin.md create mode 100644 docs/ComputersMacos.md create mode 100644 docs/ComputersMacosApi.md create mode 100644 docs/ComputersMacosList.md create mode 100644 docs/ComputersMacosListEmbedded.md create mode 100644 docs/ComputersMacosOptions.md create mode 100644 docs/ComputersMacosRequest.md create mode 100644 docs/ComputersMacosRequestPatch.md create mode 100644 docs/ComputersMacosResponseMixin.md create mode 100644 docs/ComputersMemberserver.md create mode 100644 docs/ComputersMemberserverApi.md create mode 100644 docs/ComputersMemberserverList.md create mode 100644 docs/ComputersMemberserverListEmbedded.md create mode 100644 docs/ComputersMemberserverOptions.md create mode 100644 docs/ComputersMemberserverPolicies.md create mode 100644 docs/ComputersMemberserverRequest.md create mode 100644 docs/ComputersMemberserverRequestPatch.md create mode 100644 docs/ComputersMemberserverResponseMixin.md create mode 100644 docs/ComputersTrustaccount.md create mode 100644 docs/ComputersTrustaccountApi.md create mode 100644 docs/ComputersTrustaccountList.md create mode 100644 docs/ComputersTrustaccountListEmbedded.md create mode 100644 docs/ComputersTrustaccountOptions.md create mode 100644 docs/ComputersTrustaccountRequest.md create mode 100644 docs/ComputersTrustaccountRequestPatch.md create mode 100644 docs/ComputersTrustaccountResponseMixin.md create mode 100644 docs/ComputersUbuntu.md create mode 100644 docs/ComputersUbuntuApi.md create mode 100644 docs/ComputersUbuntuList.md create mode 100644 docs/ComputersUbuntuListEmbedded.md create mode 100644 docs/ComputersUbuntuOptions.md create mode 100644 docs/ComputersUbuntuRequest.md create mode 100644 docs/ComputersUbuntuRequestPatch.md create mode 100644 docs/ComputersUbuntuResponseMixin.md create mode 100644 docs/ComputersWindows.md create mode 100644 docs/ComputersWindowsApi.md create mode 100644 docs/ComputersWindowsDomaincontroller.md create mode 100644 docs/ComputersWindowsDomaincontrollerApi.md create mode 100644 docs/ComputersWindowsDomaincontrollerList.md create mode 100644 docs/ComputersWindowsDomaincontrollerListEmbedded.md create mode 100644 docs/ComputersWindowsDomaincontrollerOptions.md create mode 100644 docs/ComputersWindowsDomaincontrollerRequest.md create mode 100644 docs/ComputersWindowsDomaincontrollerRequestPatch.md create mode 100644 docs/ComputersWindowsDomaincontrollerResponseMixin.md create mode 100644 docs/ComputersWindowsList.md create mode 100644 docs/ComputersWindowsListEmbedded.md create mode 100644 docs/ComputersWindowsOptions.md create mode 100644 docs/ComputersWindowsRequest.md create mode 100644 docs/ComputersWindowsRequestPatch.md create mode 100644 docs/ComputersWindowsResponseMixin.md create mode 100644 docs/ContainerCn.md create mode 100644 docs/ContainerCnApi.md create mode 100644 docs/ContainerCnList.md create mode 100644 docs/ContainerCnListEmbedded.md create mode 100644 docs/ContainerCnPolicies.md create mode 100644 docs/ContainerCnRequest.md create mode 100644 docs/ContainerCnRequestPatch.md create mode 100644 docs/ContainerCnResponseMixin.md create mode 100644 docs/ContainerDc.md create mode 100644 docs/ContainerDcApi.md create mode 100644 docs/ContainerDcList.md create mode 100644 docs/ContainerDcListEmbedded.md create mode 100644 docs/ContainerDcOptions.md create mode 100644 docs/ContainerDcPolicies.md create mode 100644 docs/ContainerDcRequest.md create mode 100644 docs/ContainerDcRequestPatch.md create mode 100644 docs/ContainerDcResponseMixin.md create mode 100644 docs/ContainerMsgpo.md create mode 100644 docs/ContainerMsgpoApi.md create mode 100644 docs/ContainerMsgpoList.md create mode 100644 docs/ContainerMsgpoListEmbedded.md create mode 100644 docs/ContainerMsgpoPolicies.md create mode 100644 docs/ContainerMsgpoRequest.md create mode 100644 docs/ContainerMsgpoRequestPatch.md create mode 100644 docs/ContainerMsgpoResponseMixin.md create mode 100644 docs/ContainerOu.md create mode 100644 docs/ContainerOuApi.md create mode 100644 docs/ContainerOuList.md create mode 100644 docs/ContainerOuListEmbedded.md create mode 100644 docs/ContainerOuPolicies.md create mode 100644 docs/ContainerOuRequest.md create mode 100644 docs/ContainerOuRequestPatch.md create mode 100644 docs/ContainerOuResponseMixin.md create mode 100644 docs/DhcpDhcp.md create mode 100644 docs/DhcpDhcpApi.md create mode 100644 docs/DhcpDhcpList.md create mode 100644 docs/DhcpDhcpListEmbedded.md create mode 100644 docs/DhcpDhcpRequest.md create mode 100644 docs/DhcpDhcpRequestPatch.md create mode 100644 docs/DhcpDhcpResponseMixin.md create mode 100644 docs/DhcpHost.md create mode 100644 docs/DhcpHostApi.md create mode 100644 docs/DhcpHostList.md create mode 100644 docs/DhcpHostListEmbedded.md create mode 100644 docs/DhcpHostOptions.md create mode 100644 docs/DhcpHostPolicies.md create mode 100644 docs/DhcpHostRequest.md create mode 100644 docs/DhcpHostRequestPatch.md create mode 100644 docs/DhcpHostResponseMixin.md create mode 100644 docs/DhcpPool.md create mode 100644 docs/DhcpPoolApi.md create mode 100644 docs/DhcpPoolList.md create mode 100644 docs/DhcpPoolListEmbedded.md create mode 100644 docs/DhcpPoolOptions.md create mode 100644 docs/DhcpPoolPolicies.md create mode 100644 docs/DhcpPoolRequest.md create mode 100644 docs/DhcpPoolRequestPatch.md create mode 100644 docs/DhcpPoolResponseMixin.md create mode 100644 docs/DhcpServer.md create mode 100644 docs/DhcpServerApi.md create mode 100644 docs/DhcpServerList.md create mode 100644 docs/DhcpServerListEmbedded.md create mode 100644 docs/DhcpServerRequest.md create mode 100644 docs/DhcpServerRequestPatch.md create mode 100644 docs/DhcpServerResponseMixin.md create mode 100644 docs/DhcpService.md create mode 100644 docs/DhcpServiceApi.md create mode 100644 docs/DhcpServiceList.md create mode 100644 docs/DhcpServiceListEmbedded.md create mode 100644 docs/DhcpServiceOptions.md create mode 100644 docs/DhcpServicePolicies.md create mode 100644 docs/DhcpServiceRequest.md create mode 100644 docs/DhcpServiceRequestPatch.md create mode 100644 docs/DhcpServiceResponseMixin.md create mode 100644 docs/DhcpShared.md create mode 100644 docs/DhcpSharedApi.md create mode 100644 docs/DhcpSharedList.md create mode 100644 docs/DhcpSharedListEmbedded.md create mode 100644 docs/DhcpSharedOptions.md create mode 100644 docs/DhcpSharedPolicies.md create mode 100644 docs/DhcpSharedRequest.md create mode 100644 docs/DhcpSharedRequestPatch.md create mode 100644 docs/DhcpSharedResponseMixin.md create mode 100644 docs/DhcpSharedsubnet.md create mode 100644 docs/DhcpSharedsubnetApi.md create mode 100644 docs/DhcpSharedsubnetList.md create mode 100644 docs/DhcpSharedsubnetListEmbedded.md create mode 100644 docs/DhcpSharedsubnetOptions.md create mode 100644 docs/DhcpSharedsubnetPolicies.md create mode 100644 docs/DhcpSharedsubnetRequest.md create mode 100644 docs/DhcpSharedsubnetRequestPatch.md create mode 100644 docs/DhcpSharedsubnetResponseMixin.md create mode 100644 docs/DhcpSubnet.md create mode 100644 docs/DhcpSubnetApi.md create mode 100644 docs/DhcpSubnetList.md create mode 100644 docs/DhcpSubnetListEmbedded.md create mode 100644 docs/DhcpSubnetOptions.md create mode 100644 docs/DhcpSubnetPolicies.md create mode 100644 docs/DhcpSubnetRequest.md create mode 100644 docs/DhcpSubnetRequestPatch.md create mode 100644 docs/DhcpSubnetResponseMixin.md create mode 100644 docs/DnsAlias.md create mode 100644 docs/DnsAliasApi.md create mode 100644 docs/DnsAliasList.md create mode 100644 docs/DnsAliasListEmbedded.md create mode 100644 docs/DnsAliasRequest.md create mode 100644 docs/DnsAliasRequestPatch.md create mode 100644 docs/DnsAliasResponseMixin.md create mode 100644 docs/DnsDns.md create mode 100644 docs/DnsDnsApi.md create mode 100644 docs/DnsDnsList.md create mode 100644 docs/DnsDnsListEmbedded.md create mode 100644 docs/DnsDnsRequest.md create mode 100644 docs/DnsDnsRequestPatch.md create mode 100644 docs/DnsDnsResponseMixin.md create mode 100644 docs/DnsForwardZone.md create mode 100644 docs/DnsForwardZoneApi.md create mode 100644 docs/DnsForwardZoneList.md create mode 100644 docs/DnsForwardZoneListEmbedded.md create mode 100644 docs/DnsForwardZonePolicies.md create mode 100644 docs/DnsForwardZoneRequest.md create mode 100644 docs/DnsForwardZoneRequestPatch.md create mode 100644 docs/DnsForwardZoneResponseMixin.md create mode 100644 docs/DnsHostRecord.md create mode 100644 docs/DnsHostRecordApi.md create mode 100644 docs/DnsHostRecordList.md create mode 100644 docs/DnsHostRecordListEmbedded.md create mode 100644 docs/DnsHostRecordRequest.md create mode 100644 docs/DnsHostRecordRequestPatch.md create mode 100644 docs/DnsHostRecordResponseMixin.md create mode 100644 docs/DnsNsRecord.md create mode 100644 docs/DnsNsRecordApi.md create mode 100644 docs/DnsNsRecordList.md create mode 100644 docs/DnsNsRecordListEmbedded.md create mode 100644 docs/DnsNsRecordRequest.md create mode 100644 docs/DnsNsRecordRequestPatch.md create mode 100644 docs/DnsNsRecordResponseMixin.md create mode 100644 docs/DnsPtrRecord.md create mode 100644 docs/DnsPtrRecordApi.md create mode 100644 docs/DnsPtrRecordList.md create mode 100644 docs/DnsPtrRecordListEmbedded.md create mode 100644 docs/DnsPtrRecordRequest.md create mode 100644 docs/DnsPtrRecordRequestPatch.md create mode 100644 docs/DnsPtrRecordResponseMixin.md create mode 100644 docs/DnsReverseZone.md create mode 100644 docs/DnsReverseZoneApi.md create mode 100644 docs/DnsReverseZoneList.md create mode 100644 docs/DnsReverseZoneListEmbedded.md create mode 100644 docs/DnsReverseZonePolicies.md create mode 100644 docs/DnsReverseZoneRequest.md create mode 100644 docs/DnsReverseZoneRequestPatch.md create mode 100644 docs/DnsReverseZoneResponseMixin.md create mode 100644 docs/DnsSrvRecord.md create mode 100644 docs/DnsSrvRecordApi.md create mode 100644 docs/DnsSrvRecordList.md create mode 100644 docs/DnsSrvRecordListEmbedded.md create mode 100644 docs/DnsSrvRecordRequest.md create mode 100644 docs/DnsSrvRecordRequestPatch.md create mode 100644 docs/DnsSrvRecordResponseMixin.md create mode 100644 docs/DnsTxtRecord.md create mode 100644 docs/DnsTxtRecordApi.md create mode 100644 docs/DnsTxtRecordList.md create mode 100644 docs/DnsTxtRecordListEmbedded.md create mode 100644 docs/DnsTxtRecordRequest.md create mode 100644 docs/DnsTxtRecordRequestPatch.md create mode 100644 docs/DnsTxtRecordResponseMixin.md create mode 100644 docs/EmbeddedError.md create mode 100644 docs/GroupsGroup.md create mode 100644 docs/GroupsGroupApi.md create mode 100644 docs/GroupsGroupList.md create mode 100644 docs/GroupsGroupListEmbedded.md create mode 100644 docs/GroupsGroupOptions.md create mode 100644 docs/GroupsGroupPolicies.md create mode 100644 docs/GroupsGroupRequest.md create mode 100644 docs/GroupsGroupRequestPatch.md create mode 100644 docs/GroupsGroupResponseMixin.md create mode 100644 docs/InlineResponse201.md create mode 100644 docs/KerberosKdcentry.md create mode 100644 docs/KerberosKdcentryApi.md create mode 100644 docs/KerberosKdcentryList.md create mode 100644 docs/KerberosKdcentryListEmbedded.md create mode 100644 docs/KerberosKdcentryRequest.md create mode 100644 docs/KerberosKdcentryRequestPatch.md create mode 100644 docs/KerberosKdcentryResponseMixin.md create mode 100644 docs/Links.md create mode 100644 docs/MailDomain.md create mode 100644 docs/MailDomainApi.md create mode 100644 docs/MailDomainList.md create mode 100644 docs/MailDomainListEmbedded.md create mode 100644 docs/MailDomainRequest.md create mode 100644 docs/MailDomainRequestPatch.md create mode 100644 docs/MailDomainResponseMixin.md create mode 100644 docs/MailFolder.md create mode 100644 docs/MailFolderApi.md create mode 100644 docs/MailFolderList.md create mode 100644 docs/MailFolderListEmbedded.md create mode 100644 docs/MailFolderRequest.md create mode 100644 docs/MailFolderRequestPatch.md create mode 100644 docs/MailFolderResponseMixin.md create mode 100644 docs/MailLists.md create mode 100644 docs/MailListsApi.md create mode 100644 docs/MailListsList.md create mode 100644 docs/MailListsListEmbedded.md create mode 100644 docs/MailListsRequest.md create mode 100644 docs/MailListsRequestPatch.md create mode 100644 docs/MailListsResponseMixin.md create mode 100644 docs/MailMail.md create mode 100644 docs/MailMailApi.md create mode 100644 docs/MailMailList.md create mode 100644 docs/MailMailListEmbedded.md create mode 100644 docs/MailMailRequest.md create mode 100644 docs/MailMailRequestPatch.md create mode 100644 docs/MailMailResponseMixin.md create mode 100644 docs/MonitoringAlert.md create mode 100644 docs/MonitoringAlertApi.md create mode 100644 docs/MonitoringAlertList.md create mode 100644 docs/MonitoringAlertListEmbedded.md create mode 100644 docs/MonitoringAlertRequest.md create mode 100644 docs/MonitoringAlertRequestPatch.md create mode 100644 docs/MonitoringAlertResponseMixin.md create mode 100644 docs/MsDomainpolicy.md create mode 100644 docs/MsDomainpolicyApi.md create mode 100644 docs/MsDomainpolicyList.md create mode 100644 docs/MsDomainpolicyListEmbedded.md create mode 100644 docs/MsDomainpolicyPolicies.md create mode 100644 docs/MsDomainpolicyRequest.md create mode 100644 docs/MsDomainpolicyRequestPatch.md create mode 100644 docs/MsDomainpolicyResponseMixin.md create mode 100644 docs/MsGpipsecFilter.md create mode 100644 docs/MsGpipsecFilterApi.md create mode 100644 docs/MsGpipsecFilterList.md create mode 100644 docs/MsGpipsecFilterListEmbedded.md create mode 100644 docs/MsGpipsecFilterPolicies.md create mode 100644 docs/MsGpipsecFilterRequest.md create mode 100644 docs/MsGpipsecFilterRequestPatch.md create mode 100644 docs/MsGpipsecFilterResponseMixin.md create mode 100644 docs/MsGpipsecIsakmpPolicy.md create mode 100644 docs/MsGpipsecIsakmpPolicyApi.md create mode 100644 docs/MsGpipsecIsakmpPolicyList.md create mode 100644 docs/MsGpipsecIsakmpPolicyListEmbedded.md create mode 100644 docs/MsGpipsecIsakmpPolicyPolicies.md create mode 100644 docs/MsGpipsecIsakmpPolicyRequest.md create mode 100644 docs/MsGpipsecIsakmpPolicyRequestPatch.md create mode 100644 docs/MsGpipsecIsakmpPolicyResponseMixin.md create mode 100644 docs/MsGpipsecNegotiationPolicy.md create mode 100644 docs/MsGpipsecNegotiationPolicyApi.md create mode 100644 docs/MsGpipsecNegotiationPolicyList.md create mode 100644 docs/MsGpipsecNegotiationPolicyListEmbedded.md create mode 100644 docs/MsGpipsecNegotiationPolicyPolicies.md create mode 100644 docs/MsGpipsecNegotiationPolicyRequest.md create mode 100644 docs/MsGpipsecNegotiationPolicyRequestPatch.md create mode 100644 docs/MsGpipsecNegotiationPolicyResponseMixin.md create mode 100644 docs/MsGpipsecNfa.md create mode 100644 docs/MsGpipsecNfaApi.md create mode 100644 docs/MsGpipsecNfaList.md create mode 100644 docs/MsGpipsecNfaListEmbedded.md create mode 100644 docs/MsGpipsecNfaPolicies.md create mode 100644 docs/MsGpipsecNfaRequest.md create mode 100644 docs/MsGpipsecNfaRequestPatch.md create mode 100644 docs/MsGpipsecNfaResponseMixin.md create mode 100644 docs/MsGpipsecPolicy.md create mode 100644 docs/MsGpipsecPolicyApi.md create mode 100644 docs/MsGpipsecPolicyList.md create mode 100644 docs/MsGpipsecPolicyListEmbedded.md create mode 100644 docs/MsGpipsecPolicyPolicies.md create mode 100644 docs/MsGpipsecPolicyRequest.md create mode 100644 docs/MsGpipsecPolicyRequestPatch.md create mode 100644 docs/MsGpipsecPolicyResponseMixin.md create mode 100644 docs/MsGpsiCategoryRegistration.md create mode 100644 docs/MsGpsiCategoryRegistrationApi.md create mode 100644 docs/MsGpsiCategoryRegistrationList.md create mode 100644 docs/MsGpsiCategoryRegistrationListEmbedded.md create mode 100644 docs/MsGpsiCategoryRegistrationPolicies.md create mode 100644 docs/MsGpsiCategoryRegistrationRequest.md create mode 100644 docs/MsGpsiCategoryRegistrationRequestPatch.md create mode 100644 docs/MsGpsiCategoryRegistrationResponseMixin.md create mode 100644 docs/MsGpsiClassStore.md create mode 100644 docs/MsGpsiClassStoreApi.md create mode 100644 docs/MsGpsiClassStoreList.md create mode 100644 docs/MsGpsiClassStoreListEmbedded.md create mode 100644 docs/MsGpsiClassStorePolicies.md create mode 100644 docs/MsGpsiClassStoreRequest.md create mode 100644 docs/MsGpsiClassStoreRequestPatch.md create mode 100644 docs/MsGpsiClassStoreResponseMixin.md create mode 100644 docs/MsGpsiPackageRegistration.md create mode 100644 docs/MsGpsiPackageRegistrationApi.md create mode 100644 docs/MsGpsiPackageRegistrationList.md create mode 100644 docs/MsGpsiPackageRegistrationListEmbedded.md create mode 100644 docs/MsGpsiPackageRegistrationPolicies.md create mode 100644 docs/MsGpsiPackageRegistrationRequest.md create mode 100644 docs/MsGpsiPackageRegistrationRequestPatch.md create mode 100644 docs/MsGpsiPackageRegistrationResponseMixin.md create mode 100644 docs/MsGpwlWired.md create mode 100644 docs/MsGpwlWiredApi.md create mode 100644 docs/MsGpwlWiredList.md create mode 100644 docs/MsGpwlWiredListEmbedded.md create mode 100644 docs/MsGpwlWiredPolicies.md create mode 100644 docs/MsGpwlWiredRequest.md create mode 100644 docs/MsGpwlWiredRequestPatch.md create mode 100644 docs/MsGpwlWiredResponseMixin.md create mode 100644 docs/MsGpwlWireless.md create mode 100644 docs/MsGpwlWirelessApi.md create mode 100644 docs/MsGpwlWirelessBlob.md create mode 100644 docs/MsGpwlWirelessBlobApi.md create mode 100644 docs/MsGpwlWirelessBlobList.md create mode 100644 docs/MsGpwlWirelessBlobListEmbedded.md create mode 100644 docs/MsGpwlWirelessBlobPolicies.md create mode 100644 docs/MsGpwlWirelessBlobRequest.md create mode 100644 docs/MsGpwlWirelessBlobRequestPatch.md create mode 100644 docs/MsGpwlWirelessBlobResponseMixin.md create mode 100644 docs/MsGpwlWirelessList.md create mode 100644 docs/MsGpwlWirelessListEmbedded.md create mode 100644 docs/MsGpwlWirelessPolicies.md create mode 100644 docs/MsGpwlWirelessRequest.md create mode 100644 docs/MsGpwlWirelessRequestPatch.md create mode 100644 docs/MsGpwlWirelessResponseMixin.md create mode 100644 docs/NagiosNagios.md create mode 100644 docs/NagiosNagiosApi.md create mode 100644 docs/NagiosNagiosList.md create mode 100644 docs/NagiosNagiosListEmbedded.md create mode 100644 docs/NagiosNagiosRequest.md create mode 100644 docs/NagiosNagiosRequestPatch.md create mode 100644 docs/NagiosNagiosResponseMixin.md create mode 100644 docs/NagiosService.md create mode 100644 docs/NagiosServiceApi.md create mode 100644 docs/NagiosServiceList.md create mode 100644 docs/NagiosServiceListEmbedded.md create mode 100644 docs/NagiosServiceRequest.md create mode 100644 docs/NagiosServiceRequestPatch.md create mode 100644 docs/NagiosServiceResponseMixin.md create mode 100644 docs/NagiosTimeperiod.md create mode 100644 docs/NagiosTimeperiodApi.md create mode 100644 docs/NagiosTimeperiodList.md create mode 100644 docs/NagiosTimeperiodListEmbedded.md create mode 100644 docs/NagiosTimeperiodRequest.md create mode 100644 docs/NagiosTimeperiodRequestPatch.md create mode 100644 docs/NagiosTimeperiodResponseMixin.md create mode 100644 docs/NetworksNetwork.md create mode 100644 docs/NetworksNetworkApi.md create mode 100644 docs/NetworksNetworkList.md create mode 100644 docs/NetworksNetworkListEmbedded.md create mode 100644 docs/NetworksNetworkRequest.md create mode 100644 docs/NetworksNetworkRequestPatch.md create mode 100644 docs/NetworksNetworkResponseMixin.md create mode 100644 docs/PoliciesAdminContainer.md create mode 100644 docs/PoliciesAdminContainerApi.md create mode 100644 docs/PoliciesAdminContainerList.md create mode 100644 docs/PoliciesAdminContainerListEmbedded.md create mode 100644 docs/PoliciesAdminContainerRequest.md create mode 100644 docs/PoliciesAdminContainerRequestPatch.md create mode 100644 docs/PoliciesAdminContainerResponseMixin.md create mode 100644 docs/PoliciesDesktop.md create mode 100644 docs/PoliciesDesktopApi.md create mode 100644 docs/PoliciesDesktopList.md create mode 100644 docs/PoliciesDesktopListEmbedded.md create mode 100644 docs/PoliciesDesktopRequest.md create mode 100644 docs/PoliciesDesktopRequestPatch.md create mode 100644 docs/PoliciesDesktopResponseMixin.md create mode 100644 docs/PoliciesDhcpBoot.md create mode 100644 docs/PoliciesDhcpBootApi.md create mode 100644 docs/PoliciesDhcpBootList.md create mode 100644 docs/PoliciesDhcpBootListEmbedded.md create mode 100644 docs/PoliciesDhcpBootRequest.md create mode 100644 docs/PoliciesDhcpBootRequestPatch.md create mode 100644 docs/PoliciesDhcpBootResponseMixin.md create mode 100644 docs/PoliciesDhcpDns.md create mode 100644 docs/PoliciesDhcpDnsApi.md create mode 100644 docs/PoliciesDhcpDnsList.md create mode 100644 docs/PoliciesDhcpDnsListEmbedded.md create mode 100644 docs/PoliciesDhcpDnsRequest.md create mode 100644 docs/PoliciesDhcpDnsRequestPatch.md create mode 100644 docs/PoliciesDhcpDnsResponseMixin.md create mode 100644 docs/PoliciesDhcpDnsupdate.md create mode 100644 docs/PoliciesDhcpDnsupdateApi.md create mode 100644 docs/PoliciesDhcpDnsupdateList.md create mode 100644 docs/PoliciesDhcpDnsupdateListEmbedded.md create mode 100644 docs/PoliciesDhcpDnsupdateRequest.md create mode 100644 docs/PoliciesDhcpDnsupdateRequestPatch.md create mode 100644 docs/PoliciesDhcpDnsupdateResponseMixin.md create mode 100644 docs/PoliciesDhcpLeasetime.md create mode 100644 docs/PoliciesDhcpLeasetimeApi.md create mode 100644 docs/PoliciesDhcpLeasetimeList.md create mode 100644 docs/PoliciesDhcpLeasetimeListEmbedded.md create mode 100644 docs/PoliciesDhcpLeasetimeRequest.md create mode 100644 docs/PoliciesDhcpLeasetimeRequestPatch.md create mode 100644 docs/PoliciesDhcpLeasetimeResponseMixin.md create mode 100644 docs/PoliciesDhcpNetbios.md create mode 100644 docs/PoliciesDhcpNetbiosApi.md create mode 100644 docs/PoliciesDhcpNetbiosList.md create mode 100644 docs/PoliciesDhcpNetbiosListEmbedded.md create mode 100644 docs/PoliciesDhcpNetbiosRequest.md create mode 100644 docs/PoliciesDhcpNetbiosRequestPatch.md create mode 100644 docs/PoliciesDhcpNetbiosResponseMixin.md create mode 100644 docs/PoliciesDhcpRouting.md create mode 100644 docs/PoliciesDhcpRoutingApi.md create mode 100644 docs/PoliciesDhcpRoutingList.md create mode 100644 docs/PoliciesDhcpRoutingListEmbedded.md create mode 100644 docs/PoliciesDhcpRoutingRequest.md create mode 100644 docs/PoliciesDhcpRoutingRequestPatch.md create mode 100644 docs/PoliciesDhcpRoutingResponseMixin.md create mode 100644 docs/PoliciesDhcpScope.md create mode 100644 docs/PoliciesDhcpScopeApi.md create mode 100644 docs/PoliciesDhcpScopeList.md create mode 100644 docs/PoliciesDhcpScopeListEmbedded.md create mode 100644 docs/PoliciesDhcpScopeRequest.md create mode 100644 docs/PoliciesDhcpScopeRequestPatch.md create mode 100644 docs/PoliciesDhcpScopeResponseMixin.md create mode 100644 docs/PoliciesDhcpStatements.md create mode 100644 docs/PoliciesDhcpStatementsApi.md create mode 100644 docs/PoliciesDhcpStatementsList.md create mode 100644 docs/PoliciesDhcpStatementsListEmbedded.md create mode 100644 docs/PoliciesDhcpStatementsRequest.md create mode 100644 docs/PoliciesDhcpStatementsRequestPatch.md create mode 100644 docs/PoliciesDhcpStatementsResponseMixin.md create mode 100644 docs/PoliciesLdapserver.md create mode 100644 docs/PoliciesLdapserverApi.md create mode 100644 docs/PoliciesLdapserverList.md create mode 100644 docs/PoliciesLdapserverListEmbedded.md create mode 100644 docs/PoliciesLdapserverRequest.md create mode 100644 docs/PoliciesLdapserverRequestPatch.md create mode 100644 docs/PoliciesLdapserverResponseMixin.md create mode 100644 docs/PoliciesMaintenance.md create mode 100644 docs/PoliciesMaintenanceApi.md create mode 100644 docs/PoliciesMaintenanceList.md create mode 100644 docs/PoliciesMaintenanceListEmbedded.md create mode 100644 docs/PoliciesMaintenanceRequest.md create mode 100644 docs/PoliciesMaintenanceRequestPatch.md create mode 100644 docs/PoliciesMaintenanceResponseMixin.md create mode 100644 docs/PoliciesMasterpackages.md create mode 100644 docs/PoliciesMasterpackagesApi.md create mode 100644 docs/PoliciesMasterpackagesList.md create mode 100644 docs/PoliciesMasterpackagesListEmbedded.md create mode 100644 docs/PoliciesMasterpackagesRequest.md create mode 100644 docs/PoliciesMasterpackagesRequestPatch.md create mode 100644 docs/PoliciesMasterpackagesResponseMixin.md create mode 100644 docs/PoliciesMemberpackages.md create mode 100644 docs/PoliciesMemberpackagesApi.md create mode 100644 docs/PoliciesMemberpackagesList.md create mode 100644 docs/PoliciesMemberpackagesListEmbedded.md create mode 100644 docs/PoliciesMemberpackagesRequest.md create mode 100644 docs/PoliciesMemberpackagesRequestPatch.md create mode 100644 docs/PoliciesMemberpackagesResponseMixin.md create mode 100644 docs/PoliciesNfsmounts.md create mode 100644 docs/PoliciesNfsmountsApi.md create mode 100644 docs/PoliciesNfsmountsList.md create mode 100644 docs/PoliciesNfsmountsListEmbedded.md create mode 100644 docs/PoliciesNfsmountsRequest.md create mode 100644 docs/PoliciesNfsmountsRequestPatch.md create mode 100644 docs/PoliciesNfsmountsResponseMixin.md create mode 100644 docs/PoliciesPolicy.md create mode 100644 docs/PoliciesPolicyApi.md create mode 100644 docs/PoliciesPolicyList.md create mode 100644 docs/PoliciesPolicyListEmbedded.md create mode 100644 docs/PoliciesPolicyRequest.md create mode 100644 docs/PoliciesPolicyRequestPatch.md create mode 100644 docs/PoliciesPolicyResponseMixin.md create mode 100644 docs/PoliciesPrintserver.md create mode 100644 docs/PoliciesPrintserverApi.md create mode 100644 docs/PoliciesPrintserverList.md create mode 100644 docs/PoliciesPrintserverListEmbedded.md create mode 100644 docs/PoliciesPrintserverRequest.md create mode 100644 docs/PoliciesPrintserverRequestPatch.md create mode 100644 docs/PoliciesPrintserverResponseMixin.md create mode 100644 docs/PoliciesPwhistory.md create mode 100644 docs/PoliciesPwhistoryApi.md create mode 100644 docs/PoliciesPwhistoryList.md create mode 100644 docs/PoliciesPwhistoryListEmbedded.md create mode 100644 docs/PoliciesPwhistoryRequest.md create mode 100644 docs/PoliciesPwhistoryRequestPatch.md create mode 100644 docs/PoliciesPwhistoryResponseMixin.md create mode 100644 docs/PoliciesRegistry.md create mode 100644 docs/PoliciesRegistryApi.md create mode 100644 docs/PoliciesRegistryList.md create mode 100644 docs/PoliciesRegistryListEmbedded.md create mode 100644 docs/PoliciesRegistryRequest.md create mode 100644 docs/PoliciesRegistryRequestPatch.md create mode 100644 docs/PoliciesRegistryResponseMixin.md create mode 100644 docs/PoliciesRelease.md create mode 100644 docs/PoliciesReleaseApi.md create mode 100644 docs/PoliciesReleaseList.md create mode 100644 docs/PoliciesReleaseListEmbedded.md create mode 100644 docs/PoliciesReleaseRequest.md create mode 100644 docs/PoliciesReleaseRequestPatch.md create mode 100644 docs/PoliciesReleaseResponseMixin.md create mode 100644 docs/PoliciesRepositoryserver.md create mode 100644 docs/PoliciesRepositoryserverApi.md create mode 100644 docs/PoliciesRepositoryserverList.md create mode 100644 docs/PoliciesRepositoryserverListEmbedded.md create mode 100644 docs/PoliciesRepositoryserverRequest.md create mode 100644 docs/PoliciesRepositoryserverRequestPatch.md create mode 100644 docs/PoliciesRepositoryserverResponseMixin.md create mode 100644 docs/PoliciesRepositorysync.md create mode 100644 docs/PoliciesRepositorysyncApi.md create mode 100644 docs/PoliciesRepositorysyncList.md create mode 100644 docs/PoliciesRepositorysyncListEmbedded.md create mode 100644 docs/PoliciesRepositorysyncRequest.md create mode 100644 docs/PoliciesRepositorysyncRequestPatch.md create mode 100644 docs/PoliciesRepositorysyncResponseMixin.md create mode 100644 docs/PoliciesShareUserquota.md create mode 100644 docs/PoliciesShareUserquotaApi.md create mode 100644 docs/PoliciesShareUserquotaList.md create mode 100644 docs/PoliciesShareUserquotaListEmbedded.md create mode 100644 docs/PoliciesShareUserquotaRequest.md create mode 100644 docs/PoliciesShareUserquotaRequestPatch.md create mode 100644 docs/PoliciesShareUserquotaResponseMixin.md create mode 100644 docs/PoliciesSlavepackages.md create mode 100644 docs/PoliciesSlavepackagesApi.md create mode 100644 docs/PoliciesSlavepackagesList.md create mode 100644 docs/PoliciesSlavepackagesListEmbedded.md create mode 100644 docs/PoliciesSlavepackagesRequest.md create mode 100644 docs/PoliciesSlavepackagesRequestPatch.md create mode 100644 docs/PoliciesSlavepackagesResponseMixin.md create mode 100644 docs/PoliciesUmc.md create mode 100644 docs/PoliciesUmcApi.md create mode 100644 docs/PoliciesUmcList.md create mode 100644 docs/PoliciesUmcListEmbedded.md create mode 100644 docs/PoliciesUmcRequest.md create mode 100644 docs/PoliciesUmcRequestPatch.md create mode 100644 docs/PoliciesUmcResponseMixin.md create mode 100644 docs/PortalsAll.md create mode 100644 docs/PortalsAllApi.md create mode 100644 docs/PortalsAllList.md create mode 100644 docs/PortalsAllListEmbedded.md create mode 100644 docs/PortalsAllRequest.md create mode 100644 docs/PortalsAllRequestPatch.md create mode 100644 docs/PortalsAllResponseMixin.md create mode 100644 docs/PortalsAnnouncement.md create mode 100644 docs/PortalsAnnouncementApi.md create mode 100644 docs/PortalsAnnouncementList.md create mode 100644 docs/PortalsAnnouncementListEmbedded.md create mode 100644 docs/PortalsAnnouncementRequest.md create mode 100644 docs/PortalsAnnouncementRequestPatch.md create mode 100644 docs/PortalsAnnouncementResponseMixin.md create mode 100644 docs/PortalsCategory.md create mode 100644 docs/PortalsCategoryApi.md create mode 100644 docs/PortalsCategoryList.md create mode 100644 docs/PortalsCategoryListEmbedded.md create mode 100644 docs/PortalsCategoryRequest.md create mode 100644 docs/PortalsCategoryRequestPatch.md create mode 100644 docs/PortalsCategoryResponseMixin.md create mode 100644 docs/PortalsEntry.md create mode 100644 docs/PortalsEntryApi.md create mode 100644 docs/PortalsEntryList.md create mode 100644 docs/PortalsEntryListEmbedded.md create mode 100644 docs/PortalsEntryRequest.md create mode 100644 docs/PortalsEntryRequestPatch.md create mode 100644 docs/PortalsEntryResponseMixin.md create mode 100644 docs/PortalsFolder.md create mode 100644 docs/PortalsFolderApi.md create mode 100644 docs/PortalsFolderList.md create mode 100644 docs/PortalsFolderListEmbedded.md create mode 100644 docs/PortalsFolderRequest.md create mode 100644 docs/PortalsFolderRequestPatch.md create mode 100644 docs/PortalsFolderResponseMixin.md create mode 100644 docs/PortalsPortal.md create mode 100644 docs/PortalsPortalApi.md create mode 100644 docs/PortalsPortalList.md create mode 100644 docs/PortalsPortalListEmbedded.md create mode 100644 docs/PortalsPortalRequest.md create mode 100644 docs/PortalsPortalRequestPatch.md create mode 100644 docs/PortalsPortalResponseMixin.md create mode 100644 docs/SamlIdpconfig.md create mode 100644 docs/SamlIdpconfigApi.md create mode 100644 docs/SamlIdpconfigList.md create mode 100644 docs/SamlIdpconfigListEmbedded.md create mode 100644 docs/SamlIdpconfigRequest.md create mode 100644 docs/SamlIdpconfigRequestPatch.md create mode 100644 docs/SamlIdpconfigResponseMixin.md create mode 100644 docs/SamlServiceprovider.md create mode 100644 docs/SamlServiceproviderApi.md create mode 100644 docs/SamlServiceproviderList.md create mode 100644 docs/SamlServiceproviderListEmbedded.md create mode 100644 docs/SamlServiceproviderRequest.md create mode 100644 docs/SamlServiceproviderRequestPatch.md create mode 100644 docs/SamlServiceproviderResponseMixin.md create mode 100644 docs/SettingsCn.md create mode 100644 docs/SettingsCnApi.md create mode 100644 docs/SettingsCnList.md create mode 100644 docs/SettingsCnListEmbedded.md create mode 100644 docs/SettingsCnPolicies.md create mode 100644 docs/SettingsCnRequest.md create mode 100644 docs/SettingsCnRequestPatch.md create mode 100644 docs/SettingsCnResponseMixin.md create mode 100644 docs/SettingsData.md create mode 100644 docs/SettingsDataApi.md create mode 100644 docs/SettingsDataList.md create mode 100644 docs/SettingsDataListEmbedded.md create mode 100644 docs/SettingsDataRequest.md create mode 100644 docs/SettingsDataRequestPatch.md create mode 100644 docs/SettingsDataResponseMixin.md create mode 100644 docs/SettingsDefault.md create mode 100644 docs/SettingsDefaultApi.md create mode 100644 docs/SettingsDefaultList.md create mode 100644 docs/SettingsDefaultListEmbedded.md create mode 100644 docs/SettingsDefaultRequest.md create mode 100644 docs/SettingsDefaultRequestPatch.md create mode 100644 docs/SettingsDefaultResponseMixin.md create mode 100644 docs/SettingsDirectory.md create mode 100644 docs/SettingsDirectoryApi.md create mode 100644 docs/SettingsDirectoryList.md create mode 100644 docs/SettingsDirectoryListEmbedded.md create mode 100644 docs/SettingsDirectoryRequest.md create mode 100644 docs/SettingsDirectoryRequestPatch.md create mode 100644 docs/SettingsDirectoryResponseMixin.md create mode 100644 docs/SettingsExtendedAttribute.md create mode 100644 docs/SettingsExtendedAttributeApi.md create mode 100644 docs/SettingsExtendedAttributeList.md create mode 100644 docs/SettingsExtendedAttributeListEmbedded.md create mode 100644 docs/SettingsExtendedAttributeRequest.md create mode 100644 docs/SettingsExtendedAttributeRequestPatch.md create mode 100644 docs/SettingsExtendedAttributeResponseMixin.md create mode 100644 docs/SettingsExtendedOptions.md create mode 100644 docs/SettingsExtendedOptionsApi.md create mode 100644 docs/SettingsExtendedOptionsList.md create mode 100644 docs/SettingsExtendedOptionsListEmbedded.md create mode 100644 docs/SettingsExtendedOptionsRequest.md create mode 100644 docs/SettingsExtendedOptionsRequestPatch.md create mode 100644 docs/SettingsExtendedOptionsResponseMixin.md create mode 100644 docs/SettingsLdapacl.md create mode 100644 docs/SettingsLdapaclApi.md create mode 100644 docs/SettingsLdapaclList.md create mode 100644 docs/SettingsLdapaclListEmbedded.md create mode 100644 docs/SettingsLdapaclRequest.md create mode 100644 docs/SettingsLdapaclRequestPatch.md create mode 100644 docs/SettingsLdapaclResponseMixin.md create mode 100644 docs/SettingsLdapschema.md create mode 100644 docs/SettingsLdapschemaApi.md create mode 100644 docs/SettingsLdapschemaList.md create mode 100644 docs/SettingsLdapschemaListEmbedded.md create mode 100644 docs/SettingsLdapschemaRequest.md create mode 100644 docs/SettingsLdapschemaRequestPatch.md create mode 100644 docs/SettingsLdapschemaResponseMixin.md create mode 100644 docs/SettingsLicense.md create mode 100644 docs/SettingsLicenseApi.md create mode 100644 docs/SettingsLicenseList.md create mode 100644 docs/SettingsLicenseListEmbedded.md create mode 100644 docs/SettingsLicenseOptions.md create mode 100644 docs/SettingsLicenseRequest.md create mode 100644 docs/SettingsLicenseRequestPatch.md create mode 100644 docs/SettingsLicenseResponseMixin.md create mode 100644 docs/SettingsLock.md create mode 100644 docs/SettingsLockApi.md create mode 100644 docs/SettingsLockList.md create mode 100644 docs/SettingsLockListEmbedded.md create mode 100644 docs/SettingsLockRequest.md create mode 100644 docs/SettingsLockRequestPatch.md create mode 100644 docs/SettingsLockResponseMixin.md create mode 100644 docs/SettingsMsprintconnectionpolicy.md create mode 100644 docs/SettingsMsprintconnectionpolicyApi.md create mode 100644 docs/SettingsMsprintconnectionpolicyList.md create mode 100644 docs/SettingsMsprintconnectionpolicyListEmbedded.md create mode 100644 docs/SettingsMsprintconnectionpolicyPolicies.md create mode 100644 docs/SettingsMsprintconnectionpolicyRequest.md create mode 100644 docs/SettingsMsprintconnectionpolicyRequestPatch.md create mode 100644 docs/SettingsMsprintconnectionpolicyResponseMixin.md create mode 100644 docs/SettingsMswmifilter.md create mode 100644 docs/SettingsMswmifilterApi.md create mode 100644 docs/SettingsMswmifilterList.md create mode 100644 docs/SettingsMswmifilterListEmbedded.md create mode 100644 docs/SettingsMswmifilterPolicies.md create mode 100644 docs/SettingsMswmifilterRequest.md create mode 100644 docs/SettingsMswmifilterRequestPatch.md create mode 100644 docs/SettingsMswmifilterResponseMixin.md create mode 100644 docs/SettingsPackages.md create mode 100644 docs/SettingsPackagesApi.md create mode 100644 docs/SettingsPackagesList.md create mode 100644 docs/SettingsPackagesListEmbedded.md create mode 100644 docs/SettingsPackagesRequest.md create mode 100644 docs/SettingsPackagesRequestPatch.md create mode 100644 docs/SettingsPackagesResponseMixin.md create mode 100644 docs/SettingsPortal.md create mode 100644 docs/SettingsPortalAll.md create mode 100644 docs/SettingsPortalAllApi.md create mode 100644 docs/SettingsPortalAllList.md create mode 100644 docs/SettingsPortalAllListEmbedded.md create mode 100644 docs/SettingsPortalAllRequest.md create mode 100644 docs/SettingsPortalAllRequestPatch.md create mode 100644 docs/SettingsPortalAllResponseMixin.md create mode 100644 docs/SettingsPortalApi.md create mode 100644 docs/SettingsPortalCategory.md create mode 100644 docs/SettingsPortalCategoryApi.md create mode 100644 docs/SettingsPortalCategoryList.md create mode 100644 docs/SettingsPortalCategoryListEmbedded.md create mode 100644 docs/SettingsPortalCategoryRequest.md create mode 100644 docs/SettingsPortalCategoryRequestPatch.md create mode 100644 docs/SettingsPortalCategoryResponseMixin.md create mode 100644 docs/SettingsPortalEntry.md create mode 100644 docs/SettingsPortalEntryApi.md create mode 100644 docs/SettingsPortalEntryList.md create mode 100644 docs/SettingsPortalEntryListEmbedded.md create mode 100644 docs/SettingsPortalEntryRequest.md create mode 100644 docs/SettingsPortalEntryRequestPatch.md create mode 100644 docs/SettingsPortalEntryResponseMixin.md create mode 100644 docs/SettingsPortalList.md create mode 100644 docs/SettingsPortalListEmbedded.md create mode 100644 docs/SettingsPortalRequest.md create mode 100644 docs/SettingsPortalRequestPatch.md create mode 100644 docs/SettingsPortalResponseMixin.md create mode 100644 docs/SettingsPrintermodel.md create mode 100644 docs/SettingsPrintermodelApi.md create mode 100644 docs/SettingsPrintermodelList.md create mode 100644 docs/SettingsPrintermodelListEmbedded.md create mode 100644 docs/SettingsPrintermodelRequest.md create mode 100644 docs/SettingsPrintermodelRequestPatch.md create mode 100644 docs/SettingsPrintermodelResponseMixin.md create mode 100644 docs/SettingsPrinteruri.md create mode 100644 docs/SettingsPrinteruriApi.md create mode 100644 docs/SettingsPrinteruriList.md create mode 100644 docs/SettingsPrinteruriListEmbedded.md create mode 100644 docs/SettingsPrinteruriRequest.md create mode 100644 docs/SettingsPrinteruriRequestPatch.md create mode 100644 docs/SettingsPrinteruriResponseMixin.md create mode 100644 docs/SettingsProhibitedUsername.md create mode 100644 docs/SettingsProhibitedUsernameApi.md create mode 100644 docs/SettingsProhibitedUsernameList.md create mode 100644 docs/SettingsProhibitedUsernameListEmbedded.md create mode 100644 docs/SettingsProhibitedUsernameRequest.md create mode 100644 docs/SettingsProhibitedUsernameRequestPatch.md create mode 100644 docs/SettingsProhibitedUsernameResponseMixin.md create mode 100644 docs/SettingsSambaconfig.md create mode 100644 docs/SettingsSambaconfigApi.md create mode 100644 docs/SettingsSambaconfigList.md create mode 100644 docs/SettingsSambaconfigListEmbedded.md create mode 100644 docs/SettingsSambaconfigRequest.md create mode 100644 docs/SettingsSambaconfigRequestPatch.md create mode 100644 docs/SettingsSambaconfigResponseMixin.md create mode 100644 docs/SettingsSambadomain.md create mode 100644 docs/SettingsSambadomainApi.md create mode 100644 docs/SettingsSambadomainList.md create mode 100644 docs/SettingsSambadomainListEmbedded.md create mode 100644 docs/SettingsSambadomainRequest.md create mode 100644 docs/SettingsSambadomainRequestPatch.md create mode 100644 docs/SettingsSambadomainResponseMixin.md create mode 100644 docs/SettingsService.md create mode 100644 docs/SettingsServiceApi.md create mode 100644 docs/SettingsServiceList.md create mode 100644 docs/SettingsServiceListEmbedded.md create mode 100644 docs/SettingsServiceRequest.md create mode 100644 docs/SettingsServiceRequestPatch.md create mode 100644 docs/SettingsServiceResponseMixin.md create mode 100644 docs/SettingsSettings.md create mode 100644 docs/SettingsSettingsApi.md create mode 100644 docs/SettingsSettingsList.md create mode 100644 docs/SettingsSettingsListEmbedded.md create mode 100644 docs/SettingsSettingsRequest.md create mode 100644 docs/SettingsSettingsRequestPatch.md create mode 100644 docs/SettingsSettingsResponseMixin.md create mode 100644 docs/SettingsSyntax.md create mode 100644 docs/SettingsSyntaxApi.md create mode 100644 docs/SettingsSyntaxList.md create mode 100644 docs/SettingsSyntaxListEmbedded.md create mode 100644 docs/SettingsSyntaxRequest.md create mode 100644 docs/SettingsSyntaxRequestPatch.md create mode 100644 docs/SettingsSyntaxResponseMixin.md create mode 100644 docs/SettingsUdmHook.md create mode 100644 docs/SettingsUdmHookApi.md create mode 100644 docs/SettingsUdmHookList.md create mode 100644 docs/SettingsUdmHookListEmbedded.md create mode 100644 docs/SettingsUdmHookRequest.md create mode 100644 docs/SettingsUdmHookRequestPatch.md create mode 100644 docs/SettingsUdmHookResponseMixin.md create mode 100644 docs/SettingsUdmModule.md create mode 100644 docs/SettingsUdmModuleApi.md create mode 100644 docs/SettingsUdmModuleList.md create mode 100644 docs/SettingsUdmModuleListEmbedded.md create mode 100644 docs/SettingsUdmModuleRequest.md create mode 100644 docs/SettingsUdmModuleRequestPatch.md create mode 100644 docs/SettingsUdmModuleResponseMixin.md create mode 100644 docs/SettingsUdmSyntax.md create mode 100644 docs/SettingsUdmSyntaxApi.md create mode 100644 docs/SettingsUdmSyntaxList.md create mode 100644 docs/SettingsUdmSyntaxListEmbedded.md create mode 100644 docs/SettingsUdmSyntaxRequest.md create mode 100644 docs/SettingsUdmSyntaxRequestPatch.md create mode 100644 docs/SettingsUdmSyntaxResponseMixin.md create mode 100644 docs/SettingsUmcOperationset.md create mode 100644 docs/SettingsUmcOperationsetApi.md create mode 100644 docs/SettingsUmcOperationsetList.md create mode 100644 docs/SettingsUmcOperationsetListEmbedded.md create mode 100644 docs/SettingsUmcOperationsetRequest.md create mode 100644 docs/SettingsUmcOperationsetRequestPatch.md create mode 100644 docs/SettingsUmcOperationsetResponseMixin.md create mode 100644 docs/SettingsUsertemplate.md create mode 100644 docs/SettingsUsertemplateApi.md create mode 100644 docs/SettingsUsertemplateList.md create mode 100644 docs/SettingsUsertemplateListEmbedded.md create mode 100644 docs/SettingsUsertemplateRequest.md create mode 100644 docs/SettingsUsertemplateRequestPatch.md create mode 100644 docs/SettingsUsertemplateResponseMixin.md create mode 100644 docs/SharesPrint.md create mode 100644 docs/SharesPrintApi.md create mode 100644 docs/SharesPrintList.md create mode 100644 docs/SharesPrintListEmbedded.md create mode 100644 docs/SharesPrintRequest.md create mode 100644 docs/SharesPrintRequestPatch.md create mode 100644 docs/SharesPrintResponseMixin.md create mode 100644 docs/SharesPrinter.md create mode 100644 docs/SharesPrinterApi.md create mode 100644 docs/SharesPrinterList.md create mode 100644 docs/SharesPrinterListEmbedded.md create mode 100644 docs/SharesPrinterRequest.md create mode 100644 docs/SharesPrinterRequestPatch.md create mode 100644 docs/SharesPrinterResponseMixin.md create mode 100644 docs/SharesPrintergroup.md create mode 100644 docs/SharesPrintergroupApi.md create mode 100644 docs/SharesPrintergroupList.md create mode 100644 docs/SharesPrintergroupListEmbedded.md create mode 100644 docs/SharesPrintergroupRequest.md create mode 100644 docs/SharesPrintergroupRequestPatch.md create mode 100644 docs/SharesPrintergroupResponseMixin.md create mode 100644 docs/SharesShare.md create mode 100644 docs/SharesShareApi.md create mode 100644 docs/SharesShareList.md create mode 100644 docs/SharesShareListEmbedded.md create mode 100644 docs/SharesShareOptions.md create mode 100644 docs/SharesSharePolicies.md create mode 100644 docs/SharesShareRequest.md create mode 100644 docs/SharesShareRequestPatch.md create mode 100644 docs/SharesShareResponseMixin.md create mode 100644 docs/UsersContact.md create mode 100644 docs/UsersContactApi.md create mode 100644 docs/UsersContactList.md create mode 100644 docs/UsersContactListEmbedded.md create mode 100644 docs/UsersContactRequest.md create mode 100644 docs/UsersContactRequestPatch.md create mode 100644 docs/UsersContactResponseMixin.md create mode 100644 docs/UsersLdap.md create mode 100644 docs/UsersLdapApi.md create mode 100644 docs/UsersLdapList.md create mode 100644 docs/UsersLdapListEmbedded.md create mode 100644 docs/UsersLdapOptions.md create mode 100644 docs/UsersLdapPolicies.md create mode 100644 docs/UsersLdapRequest.md create mode 100644 docs/UsersLdapRequestPatch.md create mode 100644 docs/UsersLdapResponseMixin.md create mode 100644 docs/UsersPasswd.md create mode 100644 docs/UsersPasswdApi.md create mode 100644 docs/UsersPasswdList.md create mode 100644 docs/UsersPasswdListEmbedded.md create mode 100644 docs/UsersPasswdRequest.md create mode 100644 docs/UsersPasswdRequestPatch.md create mode 100644 docs/UsersPasswdResponseMixin.md create mode 100644 docs/UsersSelf.md create mode 100644 docs/UsersSelfApi.md create mode 100644 docs/UsersSelfList.md create mode 100644 docs/UsersSelfListEmbedded.md create mode 100644 docs/UsersSelfOptions.md create mode 100644 docs/UsersSelfRequest.md create mode 100644 docs/UsersSelfRequestPatch.md create mode 100644 docs/UsersSelfResponseMixin.md create mode 100644 docs/UsersUser.md create mode 100644 docs/UsersUserApi.md create mode 100644 docs/UsersUserList.md create mode 100644 docs/UsersUserListEmbedded.md create mode 100644 docs/UsersUserOptions.md create mode 100644 docs/UsersUserPolicies.md create mode 100644 docs/UsersUserRequest.md create mode 100644 docs/UsersUserRequestPatch.md create mode 100644 docs/UsersUserResponseMixin.md create mode 100644 docs/UvmmCloudconnection.md create mode 100644 docs/UvmmCloudconnectionApi.md create mode 100644 docs/UvmmCloudconnectionList.md create mode 100644 docs/UvmmCloudconnectionListEmbedded.md create mode 100644 docs/UvmmCloudconnectionRequest.md create mode 100644 docs/UvmmCloudconnectionRequestPatch.md create mode 100644 docs/UvmmCloudconnectionResponseMixin.md create mode 100644 docs/UvmmCloudtype.md create mode 100644 docs/UvmmCloudtypeApi.md create mode 100644 docs/UvmmCloudtypeList.md create mode 100644 docs/UvmmCloudtypeListEmbedded.md create mode 100644 docs/UvmmCloudtypeRequest.md create mode 100644 docs/UvmmCloudtypeRequestPatch.md create mode 100644 docs/UvmmCloudtypeResponseMixin.md create mode 100644 docs/UvmmInfo.md create mode 100644 docs/UvmmInfoApi.md create mode 100644 docs/UvmmInfoList.md create mode 100644 docs/UvmmInfoListEmbedded.md create mode 100644 docs/UvmmInfoRequest.md create mode 100644 docs/UvmmInfoRequestPatch.md create mode 100644 docs/UvmmInfoResponseMixin.md create mode 100644 docs/UvmmProfile.md create mode 100644 docs/UvmmProfileApi.md create mode 100644 docs/UvmmProfileList.md create mode 100644 docs/UvmmProfileListEmbedded.md create mode 100644 docs/UvmmProfileRequest.md create mode 100644 docs/UvmmProfileRequestPatch.md create mode 100644 docs/UvmmProfileResponseMixin.md create mode 100644 git_push.sh create mode 100644 openapi_client_udm/__init__.py create mode 100644 openapi_client_udm/api/__init__.py create mode 100644 openapi_client_udm/api/appcenter_app_api.py create mode 100644 openapi_client_udm/api/computers_computer_api.py create mode 100644 openapi_client_udm/api/computers_domaincontroller_backup_api.py create mode 100644 openapi_client_udm/api/computers_domaincontroller_master_api.py create mode 100644 openapi_client_udm/api/computers_domaincontroller_slave_api.py create mode 100644 openapi_client_udm/api/computers_ipmanagedclient_api.py create mode 100644 openapi_client_udm/api/computers_linux_api.py create mode 100644 openapi_client_udm/api/computers_macos_api.py create mode 100644 openapi_client_udm/api/computers_memberserver_api.py create mode 100644 openapi_client_udm/api/computers_trustaccount_api.py create mode 100644 openapi_client_udm/api/computers_ubuntu_api.py create mode 100644 openapi_client_udm/api/computers_windows_api.py create mode 100644 openapi_client_udm/api/computers_windows_domaincontroller_api.py create mode 100644 openapi_client_udm/api/container_cn_api.py create mode 100644 openapi_client_udm/api/container_dc_api.py create mode 100644 openapi_client_udm/api/container_msgpo_api.py create mode 100644 openapi_client_udm/api/container_ou_api.py create mode 100644 openapi_client_udm/api/dhcp_dhcp_api.py create mode 100644 openapi_client_udm/api/dhcp_host_api.py create mode 100644 openapi_client_udm/api/dhcp_pool_api.py create mode 100644 openapi_client_udm/api/dhcp_server_api.py create mode 100644 openapi_client_udm/api/dhcp_service_api.py create mode 100644 openapi_client_udm/api/dhcp_shared_api.py create mode 100644 openapi_client_udm/api/dhcp_sharedsubnet_api.py create mode 100644 openapi_client_udm/api/dhcp_subnet_api.py create mode 100644 openapi_client_udm/api/dns_alias_api.py create mode 100644 openapi_client_udm/api/dns_dns_api.py create mode 100644 openapi_client_udm/api/dns_forward_zone_api.py create mode 100644 openapi_client_udm/api/dns_host_record_api.py create mode 100644 openapi_client_udm/api/dns_ns_record_api.py create mode 100644 openapi_client_udm/api/dns_ptr_record_api.py create mode 100644 openapi_client_udm/api/dns_reverse_zone_api.py create mode 100644 openapi_client_udm/api/dns_srv_record_api.py create mode 100644 openapi_client_udm/api/dns_txt_record_api.py create mode 100644 openapi_client_udm/api/groups_group_api.py create mode 100644 openapi_client_udm/api/kerberos_kdcentry_api.py create mode 100644 openapi_client_udm/api/mail_domain_api.py create mode 100644 openapi_client_udm/api/mail_folder_api.py create mode 100644 openapi_client_udm/api/mail_lists_api.py create mode 100644 openapi_client_udm/api/mail_mail_api.py create mode 100644 openapi_client_udm/api/monitoring_alert_api.py create mode 100644 openapi_client_udm/api/ms_domainpolicy_api.py create mode 100644 openapi_client_udm/api/ms_gpipsec_filter_api.py create mode 100644 openapi_client_udm/api/ms_gpipsec_isakmp_policy_api.py create mode 100644 openapi_client_udm/api/ms_gpipsec_negotiation_policy_api.py create mode 100644 openapi_client_udm/api/ms_gpipsec_nfa_api.py create mode 100644 openapi_client_udm/api/ms_gpipsec_policy_api.py create mode 100644 openapi_client_udm/api/ms_gpsi_category_registration_api.py create mode 100644 openapi_client_udm/api/ms_gpsi_class_store_api.py create mode 100644 openapi_client_udm/api/ms_gpsi_package_registration_api.py create mode 100644 openapi_client_udm/api/ms_gpwl_wired_api.py create mode 100644 openapi_client_udm/api/ms_gpwl_wireless_api.py create mode 100644 openapi_client_udm/api/ms_gpwl_wireless_blob_api.py create mode 100644 openapi_client_udm/api/nagios_nagios_api.py create mode 100644 openapi_client_udm/api/nagios_service_api.py create mode 100644 openapi_client_udm/api/nagios_timeperiod_api.py create mode 100644 openapi_client_udm/api/networks_network_api.py create mode 100644 openapi_client_udm/api/policies_admin_container_api.py create mode 100644 openapi_client_udm/api/policies_desktop_api.py create mode 100644 openapi_client_udm/api/policies_dhcp_boot_api.py create mode 100644 openapi_client_udm/api/policies_dhcp_dns_api.py create mode 100644 openapi_client_udm/api/policies_dhcp_dnsupdate_api.py create mode 100644 openapi_client_udm/api/policies_dhcp_leasetime_api.py create mode 100644 openapi_client_udm/api/policies_dhcp_netbios_api.py create mode 100644 openapi_client_udm/api/policies_dhcp_routing_api.py create mode 100644 openapi_client_udm/api/policies_dhcp_scope_api.py create mode 100644 openapi_client_udm/api/policies_dhcp_statements_api.py create mode 100644 openapi_client_udm/api/policies_ldapserver_api.py create mode 100644 openapi_client_udm/api/policies_maintenance_api.py create mode 100644 openapi_client_udm/api/policies_masterpackages_api.py create mode 100644 openapi_client_udm/api/policies_memberpackages_api.py create mode 100644 openapi_client_udm/api/policies_nfsmounts_api.py create mode 100644 openapi_client_udm/api/policies_policy_api.py create mode 100644 openapi_client_udm/api/policies_printserver_api.py create mode 100644 openapi_client_udm/api/policies_pwhistory_api.py create mode 100644 openapi_client_udm/api/policies_registry_api.py create mode 100644 openapi_client_udm/api/policies_release_api.py create mode 100644 openapi_client_udm/api/policies_repositoryserver_api.py create mode 100644 openapi_client_udm/api/policies_repositorysync_api.py create mode 100644 openapi_client_udm/api/policies_share_userquota_api.py create mode 100644 openapi_client_udm/api/policies_slavepackages_api.py create mode 100644 openapi_client_udm/api/policies_umc_api.py create mode 100644 openapi_client_udm/api/portals_all_api.py create mode 100644 openapi_client_udm/api/portals_announcement_api.py create mode 100644 openapi_client_udm/api/portals_category_api.py create mode 100644 openapi_client_udm/api/portals_entry_api.py create mode 100644 openapi_client_udm/api/portals_folder_api.py create mode 100644 openapi_client_udm/api/portals_portal_api.py create mode 100644 openapi_client_udm/api/saml_idpconfig_api.py create mode 100644 openapi_client_udm/api/saml_serviceprovider_api.py create mode 100644 openapi_client_udm/api/settings_cn_api.py create mode 100644 openapi_client_udm/api/settings_data_api.py create mode 100644 openapi_client_udm/api/settings_default_api.py create mode 100644 openapi_client_udm/api/settings_directory_api.py create mode 100644 openapi_client_udm/api/settings_extended_attribute_api.py create mode 100644 openapi_client_udm/api/settings_extended_options_api.py create mode 100644 openapi_client_udm/api/settings_ldapacl_api.py create mode 100644 openapi_client_udm/api/settings_ldapschema_api.py create mode 100644 openapi_client_udm/api/settings_license_api.py create mode 100644 openapi_client_udm/api/settings_lock_api.py create mode 100644 openapi_client_udm/api/settings_msprintconnectionpolicy_api.py create mode 100644 openapi_client_udm/api/settings_mswmifilter_api.py create mode 100644 openapi_client_udm/api/settings_packages_api.py create mode 100644 openapi_client_udm/api/settings_portal_all_api.py create mode 100644 openapi_client_udm/api/settings_portal_api.py create mode 100644 openapi_client_udm/api/settings_portal_category_api.py create mode 100644 openapi_client_udm/api/settings_portal_entry_api.py create mode 100644 openapi_client_udm/api/settings_printermodel_api.py create mode 100644 openapi_client_udm/api/settings_printeruri_api.py create mode 100644 openapi_client_udm/api/settings_prohibited_username_api.py create mode 100644 openapi_client_udm/api/settings_sambaconfig_api.py create mode 100644 openapi_client_udm/api/settings_sambadomain_api.py create mode 100644 openapi_client_udm/api/settings_service_api.py create mode 100644 openapi_client_udm/api/settings_settings_api.py create mode 100644 openapi_client_udm/api/settings_syntax_api.py create mode 100644 openapi_client_udm/api/settings_udm_hook_api.py create mode 100644 openapi_client_udm/api/settings_udm_module_api.py create mode 100644 openapi_client_udm/api/settings_udm_syntax_api.py create mode 100644 openapi_client_udm/api/settings_umc_operationset_api.py create mode 100644 openapi_client_udm/api/settings_usertemplate_api.py create mode 100644 openapi_client_udm/api/shares_print_api.py create mode 100644 openapi_client_udm/api/shares_printer_api.py create mode 100644 openapi_client_udm/api/shares_printergroup_api.py create mode 100644 openapi_client_udm/api/shares_share_api.py create mode 100644 openapi_client_udm/api/users_contact_api.py create mode 100644 openapi_client_udm/api/users_ldap_api.py create mode 100644 openapi_client_udm/api/users_passwd_api.py create mode 100644 openapi_client_udm/api/users_self_api.py create mode 100644 openapi_client_udm/api/users_user_api.py create mode 100644 openapi_client_udm/api/uvmm_cloudconnection_api.py create mode 100644 openapi_client_udm/api/uvmm_cloudtype_api.py create mode 100644 openapi_client_udm/api/uvmm_info_api.py create mode 100644 openapi_client_udm/api/uvmm_profile_api.py create mode 100644 openapi_client_udm/api_client.py create mode 100644 openapi_client_udm/configuration.py create mode 100644 openapi_client_udm/exceptions.py create mode 100644 openapi_client_udm/models/__init__.py create mode 100644 openapi_client_udm/models/appcenter_app.py create mode 100644 openapi_client_udm/models/appcenter_app_list.py create mode 100644 openapi_client_udm/models/appcenter_app_list_embedded.py create mode 100644 openapi_client_udm/models/appcenter_app_policies.py create mode 100644 openapi_client_udm/models/appcenter_app_request.py create mode 100644 openapi_client_udm/models/appcenter_app_request_all_of.py create mode 100644 openapi_client_udm/models/appcenter_app_request_patch.py create mode 100644 openapi_client_udm/models/appcenter_app_response_mixin.py create mode 100644 openapi_client_udm/models/computers_computer.py create mode 100644 openapi_client_udm/models/computers_computer_list.py create mode 100644 openapi_client_udm/models/computers_computer_list_embedded.py create mode 100644 openapi_client_udm/models/computers_computer_request.py create mode 100644 openapi_client_udm/models/computers_computer_request_patch.py create mode 100644 openapi_client_udm/models/computers_computer_response_mixin.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_backup.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_backup_list.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_backup_list_embedded.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_backup_options.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_backup_policies.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_backup_request.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_backup_request_patch.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_backup_response_mixin.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_master.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_master_list.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_master_list_embedded.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_master_options.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_master_policies.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_master_request.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_master_request_patch.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_master_response_mixin.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_slave.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_slave_list.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_slave_list_embedded.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_slave_options.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_slave_policies.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_slave_request.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_slave_request_patch.py create mode 100644 openapi_client_udm/models/computers_domaincontroller_slave_response_mixin.py create mode 100644 openapi_client_udm/models/computers_ipmanagedclient.py create mode 100644 openapi_client_udm/models/computers_ipmanagedclient_list.py create mode 100644 openapi_client_udm/models/computers_ipmanagedclient_list_embedded.py create mode 100644 openapi_client_udm/models/computers_ipmanagedclient_options.py create mode 100644 openapi_client_udm/models/computers_ipmanagedclient_request.py create mode 100644 openapi_client_udm/models/computers_ipmanagedclient_request_patch.py create mode 100644 openapi_client_udm/models/computers_ipmanagedclient_response_mixin.py create mode 100644 openapi_client_udm/models/computers_linux.py create mode 100644 openapi_client_udm/models/computers_linux_list.py create mode 100644 openapi_client_udm/models/computers_linux_list_embedded.py create mode 100644 openapi_client_udm/models/computers_linux_options.py create mode 100644 openapi_client_udm/models/computers_linux_request.py create mode 100644 openapi_client_udm/models/computers_linux_request_patch.py create mode 100644 openapi_client_udm/models/computers_linux_response_mixin.py create mode 100644 openapi_client_udm/models/computers_macos.py create mode 100644 openapi_client_udm/models/computers_macos_list.py create mode 100644 openapi_client_udm/models/computers_macos_list_embedded.py create mode 100644 openapi_client_udm/models/computers_macos_options.py create mode 100644 openapi_client_udm/models/computers_macos_request.py create mode 100644 openapi_client_udm/models/computers_macos_request_patch.py create mode 100644 openapi_client_udm/models/computers_macos_response_mixin.py create mode 100644 openapi_client_udm/models/computers_memberserver.py create mode 100644 openapi_client_udm/models/computers_memberserver_list.py create mode 100644 openapi_client_udm/models/computers_memberserver_list_embedded.py create mode 100644 openapi_client_udm/models/computers_memberserver_options.py create mode 100644 openapi_client_udm/models/computers_memberserver_policies.py create mode 100644 openapi_client_udm/models/computers_memberserver_request.py create mode 100644 openapi_client_udm/models/computers_memberserver_request_patch.py create mode 100644 openapi_client_udm/models/computers_memberserver_response_mixin.py create mode 100644 openapi_client_udm/models/computers_trustaccount.py create mode 100644 openapi_client_udm/models/computers_trustaccount_list.py create mode 100644 openapi_client_udm/models/computers_trustaccount_list_embedded.py create mode 100644 openapi_client_udm/models/computers_trustaccount_options.py create mode 100644 openapi_client_udm/models/computers_trustaccount_request.py create mode 100644 openapi_client_udm/models/computers_trustaccount_request_patch.py create mode 100644 openapi_client_udm/models/computers_trustaccount_response_mixin.py create mode 100644 openapi_client_udm/models/computers_ubuntu.py create mode 100644 openapi_client_udm/models/computers_ubuntu_list.py create mode 100644 openapi_client_udm/models/computers_ubuntu_list_embedded.py create mode 100644 openapi_client_udm/models/computers_ubuntu_options.py create mode 100644 openapi_client_udm/models/computers_ubuntu_request.py create mode 100644 openapi_client_udm/models/computers_ubuntu_request_patch.py create mode 100644 openapi_client_udm/models/computers_ubuntu_response_mixin.py create mode 100644 openapi_client_udm/models/computers_windows.py create mode 100644 openapi_client_udm/models/computers_windows_domaincontroller.py create mode 100644 openapi_client_udm/models/computers_windows_domaincontroller_list.py create mode 100644 openapi_client_udm/models/computers_windows_domaincontroller_list_embedded.py create mode 100644 openapi_client_udm/models/computers_windows_domaincontroller_options.py create mode 100644 openapi_client_udm/models/computers_windows_domaincontroller_request.py create mode 100644 openapi_client_udm/models/computers_windows_domaincontroller_request_patch.py create mode 100644 openapi_client_udm/models/computers_windows_domaincontroller_response_mixin.py create mode 100644 openapi_client_udm/models/computers_windows_list.py create mode 100644 openapi_client_udm/models/computers_windows_list_embedded.py create mode 100644 openapi_client_udm/models/computers_windows_options.py create mode 100644 openapi_client_udm/models/computers_windows_request.py create mode 100644 openapi_client_udm/models/computers_windows_request_patch.py create mode 100644 openapi_client_udm/models/computers_windows_response_mixin.py create mode 100644 openapi_client_udm/models/container_cn.py create mode 100644 openapi_client_udm/models/container_cn_list.py create mode 100644 openapi_client_udm/models/container_cn_list_embedded.py create mode 100644 openapi_client_udm/models/container_cn_policies.py create mode 100644 openapi_client_udm/models/container_cn_request.py create mode 100644 openapi_client_udm/models/container_cn_request_patch.py create mode 100644 openapi_client_udm/models/container_cn_response_mixin.py create mode 100644 openapi_client_udm/models/container_dc.py create mode 100644 openapi_client_udm/models/container_dc_list.py create mode 100644 openapi_client_udm/models/container_dc_list_embedded.py create mode 100644 openapi_client_udm/models/container_dc_options.py create mode 100644 openapi_client_udm/models/container_dc_policies.py create mode 100644 openapi_client_udm/models/container_dc_request.py create mode 100644 openapi_client_udm/models/container_dc_request_patch.py create mode 100644 openapi_client_udm/models/container_dc_response_mixin.py create mode 100644 openapi_client_udm/models/container_msgpo.py create mode 100644 openapi_client_udm/models/container_msgpo_list.py create mode 100644 openapi_client_udm/models/container_msgpo_list_embedded.py create mode 100644 openapi_client_udm/models/container_msgpo_policies.py create mode 100644 openapi_client_udm/models/container_msgpo_request.py create mode 100644 openapi_client_udm/models/container_msgpo_request_patch.py create mode 100644 openapi_client_udm/models/container_msgpo_response_mixin.py create mode 100644 openapi_client_udm/models/container_ou.py create mode 100644 openapi_client_udm/models/container_ou_list.py create mode 100644 openapi_client_udm/models/container_ou_list_embedded.py create mode 100644 openapi_client_udm/models/container_ou_policies.py create mode 100644 openapi_client_udm/models/container_ou_request.py create mode 100644 openapi_client_udm/models/container_ou_request_patch.py create mode 100644 openapi_client_udm/models/container_ou_response_mixin.py create mode 100644 openapi_client_udm/models/dhcp_dhcp.py create mode 100644 openapi_client_udm/models/dhcp_dhcp_list.py create mode 100644 openapi_client_udm/models/dhcp_dhcp_list_embedded.py create mode 100644 openapi_client_udm/models/dhcp_dhcp_request.py create mode 100644 openapi_client_udm/models/dhcp_dhcp_request_patch.py create mode 100644 openapi_client_udm/models/dhcp_dhcp_response_mixin.py create mode 100644 openapi_client_udm/models/dhcp_host.py create mode 100644 openapi_client_udm/models/dhcp_host_list.py create mode 100644 openapi_client_udm/models/dhcp_host_list_embedded.py create mode 100644 openapi_client_udm/models/dhcp_host_options.py create mode 100644 openapi_client_udm/models/dhcp_host_policies.py create mode 100644 openapi_client_udm/models/dhcp_host_request.py create mode 100644 openapi_client_udm/models/dhcp_host_request_patch.py create mode 100644 openapi_client_udm/models/dhcp_host_response_mixin.py create mode 100644 openapi_client_udm/models/dhcp_pool.py create mode 100644 openapi_client_udm/models/dhcp_pool_list.py create mode 100644 openapi_client_udm/models/dhcp_pool_list_embedded.py create mode 100644 openapi_client_udm/models/dhcp_pool_options.py create mode 100644 openapi_client_udm/models/dhcp_pool_policies.py create mode 100644 openapi_client_udm/models/dhcp_pool_request.py create mode 100644 openapi_client_udm/models/dhcp_pool_request_patch.py create mode 100644 openapi_client_udm/models/dhcp_pool_response_mixin.py create mode 100644 openapi_client_udm/models/dhcp_server.py create mode 100644 openapi_client_udm/models/dhcp_server_list.py create mode 100644 openapi_client_udm/models/dhcp_server_list_embedded.py create mode 100644 openapi_client_udm/models/dhcp_server_request.py create mode 100644 openapi_client_udm/models/dhcp_server_request_patch.py create mode 100644 openapi_client_udm/models/dhcp_server_response_mixin.py create mode 100644 openapi_client_udm/models/dhcp_service.py create mode 100644 openapi_client_udm/models/dhcp_service_list.py create mode 100644 openapi_client_udm/models/dhcp_service_list_embedded.py create mode 100644 openapi_client_udm/models/dhcp_service_options.py create mode 100644 openapi_client_udm/models/dhcp_service_policies.py create mode 100644 openapi_client_udm/models/dhcp_service_request.py create mode 100644 openapi_client_udm/models/dhcp_service_request_patch.py create mode 100644 openapi_client_udm/models/dhcp_service_response_mixin.py create mode 100644 openapi_client_udm/models/dhcp_shared.py create mode 100644 openapi_client_udm/models/dhcp_shared_list.py create mode 100644 openapi_client_udm/models/dhcp_shared_list_embedded.py create mode 100644 openapi_client_udm/models/dhcp_shared_options.py create mode 100644 openapi_client_udm/models/dhcp_shared_policies.py create mode 100644 openapi_client_udm/models/dhcp_shared_request.py create mode 100644 openapi_client_udm/models/dhcp_shared_request_patch.py create mode 100644 openapi_client_udm/models/dhcp_shared_response_mixin.py create mode 100644 openapi_client_udm/models/dhcp_sharedsubnet.py create mode 100644 openapi_client_udm/models/dhcp_sharedsubnet_list.py create mode 100644 openapi_client_udm/models/dhcp_sharedsubnet_list_embedded.py create mode 100644 openapi_client_udm/models/dhcp_sharedsubnet_options.py create mode 100644 openapi_client_udm/models/dhcp_sharedsubnet_policies.py create mode 100644 openapi_client_udm/models/dhcp_sharedsubnet_request.py create mode 100644 openapi_client_udm/models/dhcp_sharedsubnet_request_patch.py create mode 100644 openapi_client_udm/models/dhcp_sharedsubnet_response_mixin.py create mode 100644 openapi_client_udm/models/dhcp_subnet.py create mode 100644 openapi_client_udm/models/dhcp_subnet_list.py create mode 100644 openapi_client_udm/models/dhcp_subnet_list_embedded.py create mode 100644 openapi_client_udm/models/dhcp_subnet_options.py create mode 100644 openapi_client_udm/models/dhcp_subnet_policies.py create mode 100644 openapi_client_udm/models/dhcp_subnet_request.py create mode 100644 openapi_client_udm/models/dhcp_subnet_request_patch.py create mode 100644 openapi_client_udm/models/dhcp_subnet_response_mixin.py create mode 100644 openapi_client_udm/models/dns_alias.py create mode 100644 openapi_client_udm/models/dns_alias_list.py create mode 100644 openapi_client_udm/models/dns_alias_list_embedded.py create mode 100644 openapi_client_udm/models/dns_alias_request.py create mode 100644 openapi_client_udm/models/dns_alias_request_patch.py create mode 100644 openapi_client_udm/models/dns_alias_response_mixin.py create mode 100644 openapi_client_udm/models/dns_dns.py create mode 100644 openapi_client_udm/models/dns_dns_list.py create mode 100644 openapi_client_udm/models/dns_dns_list_embedded.py create mode 100644 openapi_client_udm/models/dns_dns_request.py create mode 100644 openapi_client_udm/models/dns_dns_request_patch.py create mode 100644 openapi_client_udm/models/dns_dns_response_mixin.py create mode 100644 openapi_client_udm/models/dns_forward_zone.py create mode 100644 openapi_client_udm/models/dns_forward_zone_list.py create mode 100644 openapi_client_udm/models/dns_forward_zone_list_embedded.py create mode 100644 openapi_client_udm/models/dns_forward_zone_policies.py create mode 100644 openapi_client_udm/models/dns_forward_zone_request.py create mode 100644 openapi_client_udm/models/dns_forward_zone_request_patch.py create mode 100644 openapi_client_udm/models/dns_forward_zone_response_mixin.py create mode 100644 openapi_client_udm/models/dns_host_record.py create mode 100644 openapi_client_udm/models/dns_host_record_list.py create mode 100644 openapi_client_udm/models/dns_host_record_list_embedded.py create mode 100644 openapi_client_udm/models/dns_host_record_request.py create mode 100644 openapi_client_udm/models/dns_host_record_request_patch.py create mode 100644 openapi_client_udm/models/dns_host_record_response_mixin.py create mode 100644 openapi_client_udm/models/dns_ns_record.py create mode 100644 openapi_client_udm/models/dns_ns_record_list.py create mode 100644 openapi_client_udm/models/dns_ns_record_list_embedded.py create mode 100644 openapi_client_udm/models/dns_ns_record_request.py create mode 100644 openapi_client_udm/models/dns_ns_record_request_patch.py create mode 100644 openapi_client_udm/models/dns_ns_record_response_mixin.py create mode 100644 openapi_client_udm/models/dns_ptr_record.py create mode 100644 openapi_client_udm/models/dns_ptr_record_list.py create mode 100644 openapi_client_udm/models/dns_ptr_record_list_embedded.py create mode 100644 openapi_client_udm/models/dns_ptr_record_request.py create mode 100644 openapi_client_udm/models/dns_ptr_record_request_patch.py create mode 100644 openapi_client_udm/models/dns_ptr_record_response_mixin.py create mode 100644 openapi_client_udm/models/dns_reverse_zone.py create mode 100644 openapi_client_udm/models/dns_reverse_zone_list.py create mode 100644 openapi_client_udm/models/dns_reverse_zone_list_embedded.py create mode 100644 openapi_client_udm/models/dns_reverse_zone_policies.py create mode 100644 openapi_client_udm/models/dns_reverse_zone_request.py create mode 100644 openapi_client_udm/models/dns_reverse_zone_request_patch.py create mode 100644 openapi_client_udm/models/dns_reverse_zone_response_mixin.py create mode 100644 openapi_client_udm/models/dns_srv_record.py create mode 100644 openapi_client_udm/models/dns_srv_record_list.py create mode 100644 openapi_client_udm/models/dns_srv_record_list_embedded.py create mode 100644 openapi_client_udm/models/dns_srv_record_request.py create mode 100644 openapi_client_udm/models/dns_srv_record_request_patch.py create mode 100644 openapi_client_udm/models/dns_srv_record_response_mixin.py create mode 100644 openapi_client_udm/models/dns_txt_record.py create mode 100644 openapi_client_udm/models/dns_txt_record_list.py create mode 100644 openapi_client_udm/models/dns_txt_record_list_embedded.py create mode 100644 openapi_client_udm/models/dns_txt_record_request.py create mode 100644 openapi_client_udm/models/dns_txt_record_request_patch.py create mode 100644 openapi_client_udm/models/dns_txt_record_response_mixin.py create mode 100644 openapi_client_udm/models/embedded_error.py create mode 100644 openapi_client_udm/models/groups_group.py create mode 100644 openapi_client_udm/models/groups_group_list.py create mode 100644 openapi_client_udm/models/groups_group_list_embedded.py create mode 100644 openapi_client_udm/models/groups_group_options.py create mode 100644 openapi_client_udm/models/groups_group_policies.py create mode 100644 openapi_client_udm/models/groups_group_request.py create mode 100644 openapi_client_udm/models/groups_group_request_patch.py create mode 100644 openapi_client_udm/models/groups_group_response_mixin.py create mode 100644 openapi_client_udm/models/inline_response201.py create mode 100644 openapi_client_udm/models/kerberos_kdcentry.py create mode 100644 openapi_client_udm/models/kerberos_kdcentry_list.py create mode 100644 openapi_client_udm/models/kerberos_kdcentry_list_embedded.py create mode 100644 openapi_client_udm/models/kerberos_kdcentry_request.py create mode 100644 openapi_client_udm/models/kerberos_kdcentry_request_patch.py create mode 100644 openapi_client_udm/models/kerberos_kdcentry_response_mixin.py create mode 100644 openapi_client_udm/models/links.py create mode 100644 openapi_client_udm/models/mail_domain.py create mode 100644 openapi_client_udm/models/mail_domain_list.py create mode 100644 openapi_client_udm/models/mail_domain_list_embedded.py create mode 100644 openapi_client_udm/models/mail_domain_request.py create mode 100644 openapi_client_udm/models/mail_domain_request_patch.py create mode 100644 openapi_client_udm/models/mail_domain_response_mixin.py create mode 100644 openapi_client_udm/models/mail_folder.py create mode 100644 openapi_client_udm/models/mail_folder_list.py create mode 100644 openapi_client_udm/models/mail_folder_list_embedded.py create mode 100644 openapi_client_udm/models/mail_folder_request.py create mode 100644 openapi_client_udm/models/mail_folder_request_patch.py create mode 100644 openapi_client_udm/models/mail_folder_response_mixin.py create mode 100644 openapi_client_udm/models/mail_lists.py create mode 100644 openapi_client_udm/models/mail_lists_list.py create mode 100644 openapi_client_udm/models/mail_lists_list_embedded.py create mode 100644 openapi_client_udm/models/mail_lists_request.py create mode 100644 openapi_client_udm/models/mail_lists_request_patch.py create mode 100644 openapi_client_udm/models/mail_lists_response_mixin.py create mode 100644 openapi_client_udm/models/mail_mail.py create mode 100644 openapi_client_udm/models/mail_mail_list.py create mode 100644 openapi_client_udm/models/mail_mail_list_embedded.py create mode 100644 openapi_client_udm/models/mail_mail_request.py create mode 100644 openapi_client_udm/models/mail_mail_request_patch.py create mode 100644 openapi_client_udm/models/mail_mail_response_mixin.py create mode 100644 openapi_client_udm/models/monitoring_alert.py create mode 100644 openapi_client_udm/models/monitoring_alert_list.py create mode 100644 openapi_client_udm/models/monitoring_alert_list_embedded.py create mode 100644 openapi_client_udm/models/monitoring_alert_request.py create mode 100644 openapi_client_udm/models/monitoring_alert_request_patch.py create mode 100644 openapi_client_udm/models/monitoring_alert_response_mixin.py create mode 100644 openapi_client_udm/models/ms_domainpolicy.py create mode 100644 openapi_client_udm/models/ms_domainpolicy_list.py create mode 100644 openapi_client_udm/models/ms_domainpolicy_list_embedded.py create mode 100644 openapi_client_udm/models/ms_domainpolicy_policies.py create mode 100644 openapi_client_udm/models/ms_domainpolicy_request.py create mode 100644 openapi_client_udm/models/ms_domainpolicy_request_patch.py create mode 100644 openapi_client_udm/models/ms_domainpolicy_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpipsec_filter.py create mode 100644 openapi_client_udm/models/ms_gpipsec_filter_list.py create mode 100644 openapi_client_udm/models/ms_gpipsec_filter_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpipsec_filter_policies.py create mode 100644 openapi_client_udm/models/ms_gpipsec_filter_request.py create mode 100644 openapi_client_udm/models/ms_gpipsec_filter_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpipsec_filter_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpipsec_isakmp_policy.py create mode 100644 openapi_client_udm/models/ms_gpipsec_isakmp_policy_list.py create mode 100644 openapi_client_udm/models/ms_gpipsec_isakmp_policy_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpipsec_isakmp_policy_policies.py create mode 100644 openapi_client_udm/models/ms_gpipsec_isakmp_policy_request.py create mode 100644 openapi_client_udm/models/ms_gpipsec_isakmp_policy_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpipsec_isakmp_policy_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpipsec_negotiation_policy.py create mode 100644 openapi_client_udm/models/ms_gpipsec_negotiation_policy_list.py create mode 100644 openapi_client_udm/models/ms_gpipsec_negotiation_policy_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpipsec_negotiation_policy_policies.py create mode 100644 openapi_client_udm/models/ms_gpipsec_negotiation_policy_request.py create mode 100644 openapi_client_udm/models/ms_gpipsec_negotiation_policy_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpipsec_negotiation_policy_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpipsec_nfa.py create mode 100644 openapi_client_udm/models/ms_gpipsec_nfa_list.py create mode 100644 openapi_client_udm/models/ms_gpipsec_nfa_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpipsec_nfa_policies.py create mode 100644 openapi_client_udm/models/ms_gpipsec_nfa_request.py create mode 100644 openapi_client_udm/models/ms_gpipsec_nfa_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpipsec_nfa_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpipsec_policy.py create mode 100644 openapi_client_udm/models/ms_gpipsec_policy_list.py create mode 100644 openapi_client_udm/models/ms_gpipsec_policy_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpipsec_policy_policies.py create mode 100644 openapi_client_udm/models/ms_gpipsec_policy_request.py create mode 100644 openapi_client_udm/models/ms_gpipsec_policy_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpipsec_policy_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpsi_category_registration.py create mode 100644 openapi_client_udm/models/ms_gpsi_category_registration_list.py create mode 100644 openapi_client_udm/models/ms_gpsi_category_registration_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpsi_category_registration_policies.py create mode 100644 openapi_client_udm/models/ms_gpsi_category_registration_request.py create mode 100644 openapi_client_udm/models/ms_gpsi_category_registration_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpsi_category_registration_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpsi_class_store.py create mode 100644 openapi_client_udm/models/ms_gpsi_class_store_list.py create mode 100644 openapi_client_udm/models/ms_gpsi_class_store_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpsi_class_store_policies.py create mode 100644 openapi_client_udm/models/ms_gpsi_class_store_request.py create mode 100644 openapi_client_udm/models/ms_gpsi_class_store_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpsi_class_store_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpsi_package_registration.py create mode 100644 openapi_client_udm/models/ms_gpsi_package_registration_list.py create mode 100644 openapi_client_udm/models/ms_gpsi_package_registration_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpsi_package_registration_policies.py create mode 100644 openapi_client_udm/models/ms_gpsi_package_registration_request.py create mode 100644 openapi_client_udm/models/ms_gpsi_package_registration_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpsi_package_registration_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpwl_wired.py create mode 100644 openapi_client_udm/models/ms_gpwl_wired_list.py create mode 100644 openapi_client_udm/models/ms_gpwl_wired_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpwl_wired_policies.py create mode 100644 openapi_client_udm/models/ms_gpwl_wired_request.py create mode 100644 openapi_client_udm/models/ms_gpwl_wired_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpwl_wired_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_blob.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_blob_list.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_blob_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_blob_policies.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_blob_request.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_blob_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_blob_response_mixin.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_list.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_list_embedded.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_policies.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_request.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_request_patch.py create mode 100644 openapi_client_udm/models/ms_gpwl_wireless_response_mixin.py create mode 100644 openapi_client_udm/models/nagios_nagios.py create mode 100644 openapi_client_udm/models/nagios_nagios_list.py create mode 100644 openapi_client_udm/models/nagios_nagios_list_embedded.py create mode 100644 openapi_client_udm/models/nagios_nagios_request.py create mode 100644 openapi_client_udm/models/nagios_nagios_request_patch.py create mode 100644 openapi_client_udm/models/nagios_nagios_response_mixin.py create mode 100644 openapi_client_udm/models/nagios_service.py create mode 100644 openapi_client_udm/models/nagios_service_list.py create mode 100644 openapi_client_udm/models/nagios_service_list_embedded.py create mode 100644 openapi_client_udm/models/nagios_service_request.py create mode 100644 openapi_client_udm/models/nagios_service_request_patch.py create mode 100644 openapi_client_udm/models/nagios_service_response_mixin.py create mode 100644 openapi_client_udm/models/nagios_timeperiod.py create mode 100644 openapi_client_udm/models/nagios_timeperiod_list.py create mode 100644 openapi_client_udm/models/nagios_timeperiod_list_embedded.py create mode 100644 openapi_client_udm/models/nagios_timeperiod_request.py create mode 100644 openapi_client_udm/models/nagios_timeperiod_request_patch.py create mode 100644 openapi_client_udm/models/nagios_timeperiod_response_mixin.py create mode 100644 openapi_client_udm/models/networks_network.py create mode 100644 openapi_client_udm/models/networks_network_list.py create mode 100644 openapi_client_udm/models/networks_network_list_embedded.py create mode 100644 openapi_client_udm/models/networks_network_request.py create mode 100644 openapi_client_udm/models/networks_network_request_patch.py create mode 100644 openapi_client_udm/models/networks_network_response_mixin.py create mode 100644 openapi_client_udm/models/policies_admin_container.py create mode 100644 openapi_client_udm/models/policies_admin_container_list.py create mode 100644 openapi_client_udm/models/policies_admin_container_list_embedded.py create mode 100644 openapi_client_udm/models/policies_admin_container_request.py create mode 100644 openapi_client_udm/models/policies_admin_container_request_patch.py create mode 100644 openapi_client_udm/models/policies_admin_container_response_mixin.py create mode 100644 openapi_client_udm/models/policies_desktop.py create mode 100644 openapi_client_udm/models/policies_desktop_list.py create mode 100644 openapi_client_udm/models/policies_desktop_list_embedded.py create mode 100644 openapi_client_udm/models/policies_desktop_request.py create mode 100644 openapi_client_udm/models/policies_desktop_request_patch.py create mode 100644 openapi_client_udm/models/policies_desktop_response_mixin.py create mode 100644 openapi_client_udm/models/policies_dhcp_boot.py create mode 100644 openapi_client_udm/models/policies_dhcp_boot_list.py create mode 100644 openapi_client_udm/models/policies_dhcp_boot_list_embedded.py create mode 100644 openapi_client_udm/models/policies_dhcp_boot_request.py create mode 100644 openapi_client_udm/models/policies_dhcp_boot_request_patch.py create mode 100644 openapi_client_udm/models/policies_dhcp_boot_response_mixin.py create mode 100644 openapi_client_udm/models/policies_dhcp_dns.py create mode 100644 openapi_client_udm/models/policies_dhcp_dns_list.py create mode 100644 openapi_client_udm/models/policies_dhcp_dns_list_embedded.py create mode 100644 openapi_client_udm/models/policies_dhcp_dns_request.py create mode 100644 openapi_client_udm/models/policies_dhcp_dns_request_patch.py create mode 100644 openapi_client_udm/models/policies_dhcp_dns_response_mixin.py create mode 100644 openapi_client_udm/models/policies_dhcp_dnsupdate.py create mode 100644 openapi_client_udm/models/policies_dhcp_dnsupdate_list.py create mode 100644 openapi_client_udm/models/policies_dhcp_dnsupdate_list_embedded.py create mode 100644 openapi_client_udm/models/policies_dhcp_dnsupdate_request.py create mode 100644 openapi_client_udm/models/policies_dhcp_dnsupdate_request_patch.py create mode 100644 openapi_client_udm/models/policies_dhcp_dnsupdate_response_mixin.py create mode 100644 openapi_client_udm/models/policies_dhcp_leasetime.py create mode 100644 openapi_client_udm/models/policies_dhcp_leasetime_list.py create mode 100644 openapi_client_udm/models/policies_dhcp_leasetime_list_embedded.py create mode 100644 openapi_client_udm/models/policies_dhcp_leasetime_request.py create mode 100644 openapi_client_udm/models/policies_dhcp_leasetime_request_patch.py create mode 100644 openapi_client_udm/models/policies_dhcp_leasetime_response_mixin.py create mode 100644 openapi_client_udm/models/policies_dhcp_netbios.py create mode 100644 openapi_client_udm/models/policies_dhcp_netbios_list.py create mode 100644 openapi_client_udm/models/policies_dhcp_netbios_list_embedded.py create mode 100644 openapi_client_udm/models/policies_dhcp_netbios_request.py create mode 100644 openapi_client_udm/models/policies_dhcp_netbios_request_patch.py create mode 100644 openapi_client_udm/models/policies_dhcp_netbios_response_mixin.py create mode 100644 openapi_client_udm/models/policies_dhcp_routing.py create mode 100644 openapi_client_udm/models/policies_dhcp_routing_list.py create mode 100644 openapi_client_udm/models/policies_dhcp_routing_list_embedded.py create mode 100644 openapi_client_udm/models/policies_dhcp_routing_request.py create mode 100644 openapi_client_udm/models/policies_dhcp_routing_request_patch.py create mode 100644 openapi_client_udm/models/policies_dhcp_routing_response_mixin.py create mode 100644 openapi_client_udm/models/policies_dhcp_scope.py create mode 100644 openapi_client_udm/models/policies_dhcp_scope_list.py create mode 100644 openapi_client_udm/models/policies_dhcp_scope_list_embedded.py create mode 100644 openapi_client_udm/models/policies_dhcp_scope_request.py create mode 100644 openapi_client_udm/models/policies_dhcp_scope_request_patch.py create mode 100644 openapi_client_udm/models/policies_dhcp_scope_response_mixin.py create mode 100644 openapi_client_udm/models/policies_dhcp_statements.py create mode 100644 openapi_client_udm/models/policies_dhcp_statements_list.py create mode 100644 openapi_client_udm/models/policies_dhcp_statements_list_embedded.py create mode 100644 openapi_client_udm/models/policies_dhcp_statements_request.py create mode 100644 openapi_client_udm/models/policies_dhcp_statements_request_patch.py create mode 100644 openapi_client_udm/models/policies_dhcp_statements_response_mixin.py create mode 100644 openapi_client_udm/models/policies_ldapserver.py create mode 100644 openapi_client_udm/models/policies_ldapserver_list.py create mode 100644 openapi_client_udm/models/policies_ldapserver_list_embedded.py create mode 100644 openapi_client_udm/models/policies_ldapserver_request.py create mode 100644 openapi_client_udm/models/policies_ldapserver_request_patch.py create mode 100644 openapi_client_udm/models/policies_ldapserver_response_mixin.py create mode 100644 openapi_client_udm/models/policies_maintenance.py create mode 100644 openapi_client_udm/models/policies_maintenance_list.py create mode 100644 openapi_client_udm/models/policies_maintenance_list_embedded.py create mode 100644 openapi_client_udm/models/policies_maintenance_request.py create mode 100644 openapi_client_udm/models/policies_maintenance_request_patch.py create mode 100644 openapi_client_udm/models/policies_maintenance_response_mixin.py create mode 100644 openapi_client_udm/models/policies_masterpackages.py create mode 100644 openapi_client_udm/models/policies_masterpackages_list.py create mode 100644 openapi_client_udm/models/policies_masterpackages_list_embedded.py create mode 100644 openapi_client_udm/models/policies_masterpackages_request.py create mode 100644 openapi_client_udm/models/policies_masterpackages_request_patch.py create mode 100644 openapi_client_udm/models/policies_masterpackages_response_mixin.py create mode 100644 openapi_client_udm/models/policies_memberpackages.py create mode 100644 openapi_client_udm/models/policies_memberpackages_list.py create mode 100644 openapi_client_udm/models/policies_memberpackages_list_embedded.py create mode 100644 openapi_client_udm/models/policies_memberpackages_request.py create mode 100644 openapi_client_udm/models/policies_memberpackages_request_patch.py create mode 100644 openapi_client_udm/models/policies_memberpackages_response_mixin.py create mode 100644 openapi_client_udm/models/policies_nfsmounts.py create mode 100644 openapi_client_udm/models/policies_nfsmounts_list.py create mode 100644 openapi_client_udm/models/policies_nfsmounts_list_embedded.py create mode 100644 openapi_client_udm/models/policies_nfsmounts_request.py create mode 100644 openapi_client_udm/models/policies_nfsmounts_request_patch.py create mode 100644 openapi_client_udm/models/policies_nfsmounts_response_mixin.py create mode 100644 openapi_client_udm/models/policies_policy.py create mode 100644 openapi_client_udm/models/policies_policy_list.py create mode 100644 openapi_client_udm/models/policies_policy_list_embedded.py create mode 100644 openapi_client_udm/models/policies_policy_request.py create mode 100644 openapi_client_udm/models/policies_policy_request_patch.py create mode 100644 openapi_client_udm/models/policies_policy_response_mixin.py create mode 100644 openapi_client_udm/models/policies_printserver.py create mode 100644 openapi_client_udm/models/policies_printserver_list.py create mode 100644 openapi_client_udm/models/policies_printserver_list_embedded.py create mode 100644 openapi_client_udm/models/policies_printserver_request.py create mode 100644 openapi_client_udm/models/policies_printserver_request_patch.py create mode 100644 openapi_client_udm/models/policies_printserver_response_mixin.py create mode 100644 openapi_client_udm/models/policies_pwhistory.py create mode 100644 openapi_client_udm/models/policies_pwhistory_list.py create mode 100644 openapi_client_udm/models/policies_pwhistory_list_embedded.py create mode 100644 openapi_client_udm/models/policies_pwhistory_request.py create mode 100644 openapi_client_udm/models/policies_pwhistory_request_patch.py create mode 100644 openapi_client_udm/models/policies_pwhistory_response_mixin.py create mode 100644 openapi_client_udm/models/policies_registry.py create mode 100644 openapi_client_udm/models/policies_registry_list.py create mode 100644 openapi_client_udm/models/policies_registry_list_embedded.py create mode 100644 openapi_client_udm/models/policies_registry_request.py create mode 100644 openapi_client_udm/models/policies_registry_request_patch.py create mode 100644 openapi_client_udm/models/policies_registry_response_mixin.py create mode 100644 openapi_client_udm/models/policies_release.py create mode 100644 openapi_client_udm/models/policies_release_list.py create mode 100644 openapi_client_udm/models/policies_release_list_embedded.py create mode 100644 openapi_client_udm/models/policies_release_request.py create mode 100644 openapi_client_udm/models/policies_release_request_patch.py create mode 100644 openapi_client_udm/models/policies_release_response_mixin.py create mode 100644 openapi_client_udm/models/policies_repositoryserver.py create mode 100644 openapi_client_udm/models/policies_repositoryserver_list.py create mode 100644 openapi_client_udm/models/policies_repositoryserver_list_embedded.py create mode 100644 openapi_client_udm/models/policies_repositoryserver_request.py create mode 100644 openapi_client_udm/models/policies_repositoryserver_request_patch.py create mode 100644 openapi_client_udm/models/policies_repositoryserver_response_mixin.py create mode 100644 openapi_client_udm/models/policies_repositorysync.py create mode 100644 openapi_client_udm/models/policies_repositorysync_list.py create mode 100644 openapi_client_udm/models/policies_repositorysync_list_embedded.py create mode 100644 openapi_client_udm/models/policies_repositorysync_request.py create mode 100644 openapi_client_udm/models/policies_repositorysync_request_patch.py create mode 100644 openapi_client_udm/models/policies_repositorysync_response_mixin.py create mode 100644 openapi_client_udm/models/policies_share_userquota.py create mode 100644 openapi_client_udm/models/policies_share_userquota_list.py create mode 100644 openapi_client_udm/models/policies_share_userquota_list_embedded.py create mode 100644 openapi_client_udm/models/policies_share_userquota_request.py create mode 100644 openapi_client_udm/models/policies_share_userquota_request_patch.py create mode 100644 openapi_client_udm/models/policies_share_userquota_response_mixin.py create mode 100644 openapi_client_udm/models/policies_slavepackages.py create mode 100644 openapi_client_udm/models/policies_slavepackages_list.py create mode 100644 openapi_client_udm/models/policies_slavepackages_list_embedded.py create mode 100644 openapi_client_udm/models/policies_slavepackages_request.py create mode 100644 openapi_client_udm/models/policies_slavepackages_request_patch.py create mode 100644 openapi_client_udm/models/policies_slavepackages_response_mixin.py create mode 100644 openapi_client_udm/models/policies_umc.py create mode 100644 openapi_client_udm/models/policies_umc_list.py create mode 100644 openapi_client_udm/models/policies_umc_list_embedded.py create mode 100644 openapi_client_udm/models/policies_umc_request.py create mode 100644 openapi_client_udm/models/policies_umc_request_patch.py create mode 100644 openapi_client_udm/models/policies_umc_response_mixin.py create mode 100644 openapi_client_udm/models/portals_all.py create mode 100644 openapi_client_udm/models/portals_all_list.py create mode 100644 openapi_client_udm/models/portals_all_list_embedded.py create mode 100644 openapi_client_udm/models/portals_all_request.py create mode 100644 openapi_client_udm/models/portals_all_request_patch.py create mode 100644 openapi_client_udm/models/portals_all_response_mixin.py create mode 100644 openapi_client_udm/models/portals_announcement.py create mode 100644 openapi_client_udm/models/portals_announcement_list.py create mode 100644 openapi_client_udm/models/portals_announcement_list_embedded.py create mode 100644 openapi_client_udm/models/portals_announcement_request.py create mode 100644 openapi_client_udm/models/portals_announcement_request_patch.py create mode 100644 openapi_client_udm/models/portals_announcement_response_mixin.py create mode 100644 openapi_client_udm/models/portals_category.py create mode 100644 openapi_client_udm/models/portals_category_list.py create mode 100644 openapi_client_udm/models/portals_category_list_embedded.py create mode 100644 openapi_client_udm/models/portals_category_request.py create mode 100644 openapi_client_udm/models/portals_category_request_patch.py create mode 100644 openapi_client_udm/models/portals_category_response_mixin.py create mode 100644 openapi_client_udm/models/portals_entry.py create mode 100644 openapi_client_udm/models/portals_entry_list.py create mode 100644 openapi_client_udm/models/portals_entry_list_embedded.py create mode 100644 openapi_client_udm/models/portals_entry_request.py create mode 100644 openapi_client_udm/models/portals_entry_request_patch.py create mode 100644 openapi_client_udm/models/portals_entry_response_mixin.py create mode 100644 openapi_client_udm/models/portals_folder.py create mode 100644 openapi_client_udm/models/portals_folder_list.py create mode 100644 openapi_client_udm/models/portals_folder_list_embedded.py create mode 100644 openapi_client_udm/models/portals_folder_request.py create mode 100644 openapi_client_udm/models/portals_folder_request_patch.py create mode 100644 openapi_client_udm/models/portals_folder_response_mixin.py create mode 100644 openapi_client_udm/models/portals_portal.py create mode 100644 openapi_client_udm/models/portals_portal_list.py create mode 100644 openapi_client_udm/models/portals_portal_list_embedded.py create mode 100644 openapi_client_udm/models/portals_portal_request.py create mode 100644 openapi_client_udm/models/portals_portal_request_patch.py create mode 100644 openapi_client_udm/models/portals_portal_response_mixin.py create mode 100644 openapi_client_udm/models/saml_idpconfig.py create mode 100644 openapi_client_udm/models/saml_idpconfig_list.py create mode 100644 openapi_client_udm/models/saml_idpconfig_list_embedded.py create mode 100644 openapi_client_udm/models/saml_idpconfig_request.py create mode 100644 openapi_client_udm/models/saml_idpconfig_request_patch.py create mode 100644 openapi_client_udm/models/saml_idpconfig_response_mixin.py create mode 100644 openapi_client_udm/models/saml_serviceprovider.py create mode 100644 openapi_client_udm/models/saml_serviceprovider_list.py create mode 100644 openapi_client_udm/models/saml_serviceprovider_list_embedded.py create mode 100644 openapi_client_udm/models/saml_serviceprovider_request.py create mode 100644 openapi_client_udm/models/saml_serviceprovider_request_patch.py create mode 100644 openapi_client_udm/models/saml_serviceprovider_response_mixin.py create mode 100644 openapi_client_udm/models/settings_cn.py create mode 100644 openapi_client_udm/models/settings_cn_list.py create mode 100644 openapi_client_udm/models/settings_cn_list_embedded.py create mode 100644 openapi_client_udm/models/settings_cn_policies.py create mode 100644 openapi_client_udm/models/settings_cn_request.py create mode 100644 openapi_client_udm/models/settings_cn_request_patch.py create mode 100644 openapi_client_udm/models/settings_cn_response_mixin.py create mode 100644 openapi_client_udm/models/settings_data.py create mode 100644 openapi_client_udm/models/settings_data_list.py create mode 100644 openapi_client_udm/models/settings_data_list_embedded.py create mode 100644 openapi_client_udm/models/settings_data_request.py create mode 100644 openapi_client_udm/models/settings_data_request_patch.py create mode 100644 openapi_client_udm/models/settings_data_response_mixin.py create mode 100644 openapi_client_udm/models/settings_default.py create mode 100644 openapi_client_udm/models/settings_default_list.py create mode 100644 openapi_client_udm/models/settings_default_list_embedded.py create mode 100644 openapi_client_udm/models/settings_default_request.py create mode 100644 openapi_client_udm/models/settings_default_request_patch.py create mode 100644 openapi_client_udm/models/settings_default_response_mixin.py create mode 100644 openapi_client_udm/models/settings_directory.py create mode 100644 openapi_client_udm/models/settings_directory_list.py create mode 100644 openapi_client_udm/models/settings_directory_list_embedded.py create mode 100644 openapi_client_udm/models/settings_directory_request.py create mode 100644 openapi_client_udm/models/settings_directory_request_patch.py create mode 100644 openapi_client_udm/models/settings_directory_response_mixin.py create mode 100644 openapi_client_udm/models/settings_extended_attribute.py create mode 100644 openapi_client_udm/models/settings_extended_attribute_list.py create mode 100644 openapi_client_udm/models/settings_extended_attribute_list_embedded.py create mode 100644 openapi_client_udm/models/settings_extended_attribute_request.py create mode 100644 openapi_client_udm/models/settings_extended_attribute_request_patch.py create mode 100644 openapi_client_udm/models/settings_extended_attribute_response_mixin.py create mode 100644 openapi_client_udm/models/settings_extended_options.py create mode 100644 openapi_client_udm/models/settings_extended_options_list.py create mode 100644 openapi_client_udm/models/settings_extended_options_list_embedded.py create mode 100644 openapi_client_udm/models/settings_extended_options_request.py create mode 100644 openapi_client_udm/models/settings_extended_options_request_patch.py create mode 100644 openapi_client_udm/models/settings_extended_options_response_mixin.py create mode 100644 openapi_client_udm/models/settings_ldapacl.py create mode 100644 openapi_client_udm/models/settings_ldapacl_list.py create mode 100644 openapi_client_udm/models/settings_ldapacl_list_embedded.py create mode 100644 openapi_client_udm/models/settings_ldapacl_request.py create mode 100644 openapi_client_udm/models/settings_ldapacl_request_patch.py create mode 100644 openapi_client_udm/models/settings_ldapacl_response_mixin.py create mode 100644 openapi_client_udm/models/settings_ldapschema.py create mode 100644 openapi_client_udm/models/settings_ldapschema_list.py create mode 100644 openapi_client_udm/models/settings_ldapschema_list_embedded.py create mode 100644 openapi_client_udm/models/settings_ldapschema_request.py create mode 100644 openapi_client_udm/models/settings_ldapschema_request_patch.py create mode 100644 openapi_client_udm/models/settings_ldapschema_response_mixin.py create mode 100644 openapi_client_udm/models/settings_license.py create mode 100644 openapi_client_udm/models/settings_license_list.py create mode 100644 openapi_client_udm/models/settings_license_list_embedded.py create mode 100644 openapi_client_udm/models/settings_license_options.py create mode 100644 openapi_client_udm/models/settings_license_request.py create mode 100644 openapi_client_udm/models/settings_license_request_patch.py create mode 100644 openapi_client_udm/models/settings_license_response_mixin.py create mode 100644 openapi_client_udm/models/settings_lock.py create mode 100644 openapi_client_udm/models/settings_lock_list.py create mode 100644 openapi_client_udm/models/settings_lock_list_embedded.py create mode 100644 openapi_client_udm/models/settings_lock_request.py create mode 100644 openapi_client_udm/models/settings_lock_request_patch.py create mode 100644 openapi_client_udm/models/settings_lock_response_mixin.py create mode 100644 openapi_client_udm/models/settings_msprintconnectionpolicy.py create mode 100644 openapi_client_udm/models/settings_msprintconnectionpolicy_list.py create mode 100644 openapi_client_udm/models/settings_msprintconnectionpolicy_list_embedded.py create mode 100644 openapi_client_udm/models/settings_msprintconnectionpolicy_policies.py create mode 100644 openapi_client_udm/models/settings_msprintconnectionpolicy_request.py create mode 100644 openapi_client_udm/models/settings_msprintconnectionpolicy_request_patch.py create mode 100644 openapi_client_udm/models/settings_msprintconnectionpolicy_response_mixin.py create mode 100644 openapi_client_udm/models/settings_mswmifilter.py create mode 100644 openapi_client_udm/models/settings_mswmifilter_list.py create mode 100644 openapi_client_udm/models/settings_mswmifilter_list_embedded.py create mode 100644 openapi_client_udm/models/settings_mswmifilter_policies.py create mode 100644 openapi_client_udm/models/settings_mswmifilter_request.py create mode 100644 openapi_client_udm/models/settings_mswmifilter_request_patch.py create mode 100644 openapi_client_udm/models/settings_mswmifilter_response_mixin.py create mode 100644 openapi_client_udm/models/settings_packages.py create mode 100644 openapi_client_udm/models/settings_packages_list.py create mode 100644 openapi_client_udm/models/settings_packages_list_embedded.py create mode 100644 openapi_client_udm/models/settings_packages_request.py create mode 100644 openapi_client_udm/models/settings_packages_request_patch.py create mode 100644 openapi_client_udm/models/settings_packages_response_mixin.py create mode 100644 openapi_client_udm/models/settings_portal.py create mode 100644 openapi_client_udm/models/settings_portal_all.py create mode 100644 openapi_client_udm/models/settings_portal_all_list.py create mode 100644 openapi_client_udm/models/settings_portal_all_list_embedded.py create mode 100644 openapi_client_udm/models/settings_portal_all_request.py create mode 100644 openapi_client_udm/models/settings_portal_all_request_patch.py create mode 100644 openapi_client_udm/models/settings_portal_all_response_mixin.py create mode 100644 openapi_client_udm/models/settings_portal_category.py create mode 100644 openapi_client_udm/models/settings_portal_category_list.py create mode 100644 openapi_client_udm/models/settings_portal_category_list_embedded.py create mode 100644 openapi_client_udm/models/settings_portal_category_request.py create mode 100644 openapi_client_udm/models/settings_portal_category_request_patch.py create mode 100644 openapi_client_udm/models/settings_portal_category_response_mixin.py create mode 100644 openapi_client_udm/models/settings_portal_entry.py create mode 100644 openapi_client_udm/models/settings_portal_entry_list.py create mode 100644 openapi_client_udm/models/settings_portal_entry_list_embedded.py create mode 100644 openapi_client_udm/models/settings_portal_entry_request.py create mode 100644 openapi_client_udm/models/settings_portal_entry_request_patch.py create mode 100644 openapi_client_udm/models/settings_portal_entry_response_mixin.py create mode 100644 openapi_client_udm/models/settings_portal_list.py create mode 100644 openapi_client_udm/models/settings_portal_list_embedded.py create mode 100644 openapi_client_udm/models/settings_portal_request.py create mode 100644 openapi_client_udm/models/settings_portal_request_patch.py create mode 100644 openapi_client_udm/models/settings_portal_response_mixin.py create mode 100644 openapi_client_udm/models/settings_printermodel.py create mode 100644 openapi_client_udm/models/settings_printermodel_list.py create mode 100644 openapi_client_udm/models/settings_printermodel_list_embedded.py create mode 100644 openapi_client_udm/models/settings_printermodel_request.py create mode 100644 openapi_client_udm/models/settings_printermodel_request_patch.py create mode 100644 openapi_client_udm/models/settings_printermodel_response_mixin.py create mode 100644 openapi_client_udm/models/settings_printeruri.py create mode 100644 openapi_client_udm/models/settings_printeruri_list.py create mode 100644 openapi_client_udm/models/settings_printeruri_list_embedded.py create mode 100644 openapi_client_udm/models/settings_printeruri_request.py create mode 100644 openapi_client_udm/models/settings_printeruri_request_patch.py create mode 100644 openapi_client_udm/models/settings_printeruri_response_mixin.py create mode 100644 openapi_client_udm/models/settings_prohibited_username.py create mode 100644 openapi_client_udm/models/settings_prohibited_username_list.py create mode 100644 openapi_client_udm/models/settings_prohibited_username_list_embedded.py create mode 100644 openapi_client_udm/models/settings_prohibited_username_request.py create mode 100644 openapi_client_udm/models/settings_prohibited_username_request_patch.py create mode 100644 openapi_client_udm/models/settings_prohibited_username_response_mixin.py create mode 100644 openapi_client_udm/models/settings_sambaconfig.py create mode 100644 openapi_client_udm/models/settings_sambaconfig_list.py create mode 100644 openapi_client_udm/models/settings_sambaconfig_list_embedded.py create mode 100644 openapi_client_udm/models/settings_sambaconfig_request.py create mode 100644 openapi_client_udm/models/settings_sambaconfig_request_patch.py create mode 100644 openapi_client_udm/models/settings_sambaconfig_response_mixin.py create mode 100644 openapi_client_udm/models/settings_sambadomain.py create mode 100644 openapi_client_udm/models/settings_sambadomain_list.py create mode 100644 openapi_client_udm/models/settings_sambadomain_list_embedded.py create mode 100644 openapi_client_udm/models/settings_sambadomain_request.py create mode 100644 openapi_client_udm/models/settings_sambadomain_request_patch.py create mode 100644 openapi_client_udm/models/settings_sambadomain_response_mixin.py create mode 100644 openapi_client_udm/models/settings_service.py create mode 100644 openapi_client_udm/models/settings_service_list.py create mode 100644 openapi_client_udm/models/settings_service_list_embedded.py create mode 100644 openapi_client_udm/models/settings_service_request.py create mode 100644 openapi_client_udm/models/settings_service_request_patch.py create mode 100644 openapi_client_udm/models/settings_service_response_mixin.py create mode 100644 openapi_client_udm/models/settings_settings.py create mode 100644 openapi_client_udm/models/settings_settings_list.py create mode 100644 openapi_client_udm/models/settings_settings_list_embedded.py create mode 100644 openapi_client_udm/models/settings_settings_request.py create mode 100644 openapi_client_udm/models/settings_settings_request_patch.py create mode 100644 openapi_client_udm/models/settings_settings_response_mixin.py create mode 100644 openapi_client_udm/models/settings_syntax.py create mode 100644 openapi_client_udm/models/settings_syntax_list.py create mode 100644 openapi_client_udm/models/settings_syntax_list_embedded.py create mode 100644 openapi_client_udm/models/settings_syntax_request.py create mode 100644 openapi_client_udm/models/settings_syntax_request_patch.py create mode 100644 openapi_client_udm/models/settings_syntax_response_mixin.py create mode 100644 openapi_client_udm/models/settings_udm_hook.py create mode 100644 openapi_client_udm/models/settings_udm_hook_list.py create mode 100644 openapi_client_udm/models/settings_udm_hook_list_embedded.py create mode 100644 openapi_client_udm/models/settings_udm_hook_request.py create mode 100644 openapi_client_udm/models/settings_udm_hook_request_patch.py create mode 100644 openapi_client_udm/models/settings_udm_hook_response_mixin.py create mode 100644 openapi_client_udm/models/settings_udm_module.py create mode 100644 openapi_client_udm/models/settings_udm_module_list.py create mode 100644 openapi_client_udm/models/settings_udm_module_list_embedded.py create mode 100644 openapi_client_udm/models/settings_udm_module_request.py create mode 100644 openapi_client_udm/models/settings_udm_module_request_patch.py create mode 100644 openapi_client_udm/models/settings_udm_module_response_mixin.py create mode 100644 openapi_client_udm/models/settings_udm_syntax.py create mode 100644 openapi_client_udm/models/settings_udm_syntax_list.py create mode 100644 openapi_client_udm/models/settings_udm_syntax_list_embedded.py create mode 100644 openapi_client_udm/models/settings_udm_syntax_request.py create mode 100644 openapi_client_udm/models/settings_udm_syntax_request_patch.py create mode 100644 openapi_client_udm/models/settings_udm_syntax_response_mixin.py create mode 100644 openapi_client_udm/models/settings_umc_operationset.py create mode 100644 openapi_client_udm/models/settings_umc_operationset_list.py create mode 100644 openapi_client_udm/models/settings_umc_operationset_list_embedded.py create mode 100644 openapi_client_udm/models/settings_umc_operationset_request.py create mode 100644 openapi_client_udm/models/settings_umc_operationset_request_patch.py create mode 100644 openapi_client_udm/models/settings_umc_operationset_response_mixin.py create mode 100644 openapi_client_udm/models/settings_usertemplate.py create mode 100644 openapi_client_udm/models/settings_usertemplate_list.py create mode 100644 openapi_client_udm/models/settings_usertemplate_list_embedded.py create mode 100644 openapi_client_udm/models/settings_usertemplate_request.py create mode 100644 openapi_client_udm/models/settings_usertemplate_request_patch.py create mode 100644 openapi_client_udm/models/settings_usertemplate_response_mixin.py create mode 100644 openapi_client_udm/models/shares_print.py create mode 100644 openapi_client_udm/models/shares_print_list.py create mode 100644 openapi_client_udm/models/shares_print_list_embedded.py create mode 100644 openapi_client_udm/models/shares_print_request.py create mode 100644 openapi_client_udm/models/shares_print_request_patch.py create mode 100644 openapi_client_udm/models/shares_print_response_mixin.py create mode 100644 openapi_client_udm/models/shares_printer.py create mode 100644 openapi_client_udm/models/shares_printer_list.py create mode 100644 openapi_client_udm/models/shares_printer_list_embedded.py create mode 100644 openapi_client_udm/models/shares_printer_request.py create mode 100644 openapi_client_udm/models/shares_printer_request_patch.py create mode 100644 openapi_client_udm/models/shares_printer_response_mixin.py create mode 100644 openapi_client_udm/models/shares_printergroup.py create mode 100644 openapi_client_udm/models/shares_printergroup_list.py create mode 100644 openapi_client_udm/models/shares_printergroup_list_embedded.py create mode 100644 openapi_client_udm/models/shares_printergroup_request.py create mode 100644 openapi_client_udm/models/shares_printergroup_request_patch.py create mode 100644 openapi_client_udm/models/shares_printergroup_response_mixin.py create mode 100644 openapi_client_udm/models/shares_share.py create mode 100644 openapi_client_udm/models/shares_share_list.py create mode 100644 openapi_client_udm/models/shares_share_list_embedded.py create mode 100644 openapi_client_udm/models/shares_share_options.py create mode 100644 openapi_client_udm/models/shares_share_policies.py create mode 100644 openapi_client_udm/models/shares_share_request.py create mode 100644 openapi_client_udm/models/shares_share_request_patch.py create mode 100644 openapi_client_udm/models/shares_share_response_mixin.py create mode 100644 openapi_client_udm/models/users_contact.py create mode 100644 openapi_client_udm/models/users_contact_list.py create mode 100644 openapi_client_udm/models/users_contact_list_embedded.py create mode 100644 openapi_client_udm/models/users_contact_request.py create mode 100644 openapi_client_udm/models/users_contact_request_patch.py create mode 100644 openapi_client_udm/models/users_contact_response_mixin.py create mode 100644 openapi_client_udm/models/users_ldap.py create mode 100644 openapi_client_udm/models/users_ldap_list.py create mode 100644 openapi_client_udm/models/users_ldap_list_embedded.py create mode 100644 openapi_client_udm/models/users_ldap_options.py create mode 100644 openapi_client_udm/models/users_ldap_policies.py create mode 100644 openapi_client_udm/models/users_ldap_request.py create mode 100644 openapi_client_udm/models/users_ldap_request_patch.py create mode 100644 openapi_client_udm/models/users_ldap_response_mixin.py create mode 100644 openapi_client_udm/models/users_passwd.py create mode 100644 openapi_client_udm/models/users_passwd_list.py create mode 100644 openapi_client_udm/models/users_passwd_list_embedded.py create mode 100644 openapi_client_udm/models/users_passwd_request.py create mode 100644 openapi_client_udm/models/users_passwd_request_patch.py create mode 100644 openapi_client_udm/models/users_passwd_response_mixin.py create mode 100644 openapi_client_udm/models/users_self.py create mode 100644 openapi_client_udm/models/users_self_list.py create mode 100644 openapi_client_udm/models/users_self_list_embedded.py create mode 100644 openapi_client_udm/models/users_self_options.py create mode 100644 openapi_client_udm/models/users_self_request.py create mode 100644 openapi_client_udm/models/users_self_request_patch.py create mode 100644 openapi_client_udm/models/users_self_response_mixin.py create mode 100644 openapi_client_udm/models/users_user.py create mode 100644 openapi_client_udm/models/users_user_list.py create mode 100644 openapi_client_udm/models/users_user_list_embedded.py create mode 100644 openapi_client_udm/models/users_user_options.py create mode 100644 openapi_client_udm/models/users_user_policies.py create mode 100644 openapi_client_udm/models/users_user_request.py create mode 100644 openapi_client_udm/models/users_user_request_patch.py create mode 100644 openapi_client_udm/models/users_user_response_mixin.py create mode 100644 openapi_client_udm/models/uvmm_cloudconnection.py create mode 100644 openapi_client_udm/models/uvmm_cloudconnection_list.py create mode 100644 openapi_client_udm/models/uvmm_cloudconnection_list_embedded.py create mode 100644 openapi_client_udm/models/uvmm_cloudconnection_request.py create mode 100644 openapi_client_udm/models/uvmm_cloudconnection_request_patch.py create mode 100644 openapi_client_udm/models/uvmm_cloudconnection_response_mixin.py create mode 100644 openapi_client_udm/models/uvmm_cloudtype.py create mode 100644 openapi_client_udm/models/uvmm_cloudtype_list.py create mode 100644 openapi_client_udm/models/uvmm_cloudtype_list_embedded.py create mode 100644 openapi_client_udm/models/uvmm_cloudtype_request.py create mode 100644 openapi_client_udm/models/uvmm_cloudtype_request_patch.py create mode 100644 openapi_client_udm/models/uvmm_cloudtype_response_mixin.py create mode 100644 openapi_client_udm/models/uvmm_info.py create mode 100644 openapi_client_udm/models/uvmm_info_list.py create mode 100644 openapi_client_udm/models/uvmm_info_list_embedded.py create mode 100644 openapi_client_udm/models/uvmm_info_request.py create mode 100644 openapi_client_udm/models/uvmm_info_request_patch.py create mode 100644 openapi_client_udm/models/uvmm_info_response_mixin.py create mode 100644 openapi_client_udm/models/uvmm_profile.py create mode 100644 openapi_client_udm/models/uvmm_profile_list.py create mode 100644 openapi_client_udm/models/uvmm_profile_list_embedded.py create mode 100644 openapi_client_udm/models/uvmm_profile_request.py create mode 100644 openapi_client_udm/models/uvmm_profile_request_patch.py create mode 100644 openapi_client_udm/models/uvmm_profile_response_mixin.py create mode 100644 openapi_client_udm/rest.py create mode 100644 requirements.txt create mode 100644 setup.cfg create mode 100644 setup.py create mode 100644 test-requirements.txt create mode 100644 test/__init__.py create mode 100644 test/test_appcenter_app.py create mode 100644 test/test_appcenter_app_api.py create mode 100644 test/test_appcenter_app_list.py create mode 100644 test/test_appcenter_app_list_embedded.py create mode 100644 test/test_appcenter_app_policies.py create mode 100644 test/test_appcenter_app_request.py create mode 100644 test/test_appcenter_app_request_all_of.py create mode 100644 test/test_appcenter_app_request_patch.py create mode 100644 test/test_appcenter_app_response_mixin.py create mode 100644 test/test_computers_computer.py create mode 100644 test/test_computers_computer_api.py create mode 100644 test/test_computers_computer_list.py create mode 100644 test/test_computers_computer_list_embedded.py create mode 100644 test/test_computers_computer_request.py create mode 100644 test/test_computers_computer_request_patch.py create mode 100644 test/test_computers_computer_response_mixin.py create mode 100644 test/test_computers_domaincontroller_backup.py create mode 100644 test/test_computers_domaincontroller_backup_api.py create mode 100644 test/test_computers_domaincontroller_backup_list.py create mode 100644 test/test_computers_domaincontroller_backup_list_embedded.py create mode 100644 test/test_computers_domaincontroller_backup_options.py create mode 100644 test/test_computers_domaincontroller_backup_policies.py create mode 100644 test/test_computers_domaincontroller_backup_request.py create mode 100644 test/test_computers_domaincontroller_backup_request_patch.py create mode 100644 test/test_computers_domaincontroller_backup_response_mixin.py create mode 100644 test/test_computers_domaincontroller_master.py create mode 100644 test/test_computers_domaincontroller_master_api.py create mode 100644 test/test_computers_domaincontroller_master_list.py create mode 100644 test/test_computers_domaincontroller_master_list_embedded.py create mode 100644 test/test_computers_domaincontroller_master_options.py create mode 100644 test/test_computers_domaincontroller_master_policies.py create mode 100644 test/test_computers_domaincontroller_master_request.py create mode 100644 test/test_computers_domaincontroller_master_request_patch.py create mode 100644 test/test_computers_domaincontroller_master_response_mixin.py create mode 100644 test/test_computers_domaincontroller_slave.py create mode 100644 test/test_computers_domaincontroller_slave_api.py create mode 100644 test/test_computers_domaincontroller_slave_list.py create mode 100644 test/test_computers_domaincontroller_slave_list_embedded.py create mode 100644 test/test_computers_domaincontroller_slave_options.py create mode 100644 test/test_computers_domaincontroller_slave_policies.py create mode 100644 test/test_computers_domaincontroller_slave_request.py create mode 100644 test/test_computers_domaincontroller_slave_request_patch.py create mode 100644 test/test_computers_domaincontroller_slave_response_mixin.py create mode 100644 test/test_computers_ipmanagedclient.py create mode 100644 test/test_computers_ipmanagedclient_api.py create mode 100644 test/test_computers_ipmanagedclient_list.py create mode 100644 test/test_computers_ipmanagedclient_list_embedded.py create mode 100644 test/test_computers_ipmanagedclient_options.py create mode 100644 test/test_computers_ipmanagedclient_request.py create mode 100644 test/test_computers_ipmanagedclient_request_patch.py create mode 100644 test/test_computers_ipmanagedclient_response_mixin.py create mode 100644 test/test_computers_linux.py create mode 100644 test/test_computers_linux_api.py create mode 100644 test/test_computers_linux_list.py create mode 100644 test/test_computers_linux_list_embedded.py create mode 100644 test/test_computers_linux_options.py create mode 100644 test/test_computers_linux_request.py create mode 100644 test/test_computers_linux_request_patch.py create mode 100644 test/test_computers_linux_response_mixin.py create mode 100644 test/test_computers_macos.py create mode 100644 test/test_computers_macos_api.py create mode 100644 test/test_computers_macos_list.py create mode 100644 test/test_computers_macos_list_embedded.py create mode 100644 test/test_computers_macos_options.py create mode 100644 test/test_computers_macos_request.py create mode 100644 test/test_computers_macos_request_patch.py create mode 100644 test/test_computers_macos_response_mixin.py create mode 100644 test/test_computers_memberserver.py create mode 100644 test/test_computers_memberserver_api.py create mode 100644 test/test_computers_memberserver_list.py create mode 100644 test/test_computers_memberserver_list_embedded.py create mode 100644 test/test_computers_memberserver_options.py create mode 100644 test/test_computers_memberserver_policies.py create mode 100644 test/test_computers_memberserver_request.py create mode 100644 test/test_computers_memberserver_request_patch.py create mode 100644 test/test_computers_memberserver_response_mixin.py create mode 100644 test/test_computers_trustaccount.py create mode 100644 test/test_computers_trustaccount_api.py create mode 100644 test/test_computers_trustaccount_list.py create mode 100644 test/test_computers_trustaccount_list_embedded.py create mode 100644 test/test_computers_trustaccount_options.py create mode 100644 test/test_computers_trustaccount_request.py create mode 100644 test/test_computers_trustaccount_request_patch.py create mode 100644 test/test_computers_trustaccount_response_mixin.py create mode 100644 test/test_computers_ubuntu.py create mode 100644 test/test_computers_ubuntu_api.py create mode 100644 test/test_computers_ubuntu_list.py create mode 100644 test/test_computers_ubuntu_list_embedded.py create mode 100644 test/test_computers_ubuntu_options.py create mode 100644 test/test_computers_ubuntu_request.py create mode 100644 test/test_computers_ubuntu_request_patch.py create mode 100644 test/test_computers_ubuntu_response_mixin.py create mode 100644 test/test_computers_windows.py create mode 100644 test/test_computers_windows_api.py create mode 100644 test/test_computers_windows_domaincontroller.py create mode 100644 test/test_computers_windows_domaincontroller_api.py create mode 100644 test/test_computers_windows_domaincontroller_list.py create mode 100644 test/test_computers_windows_domaincontroller_list_embedded.py create mode 100644 test/test_computers_windows_domaincontroller_options.py create mode 100644 test/test_computers_windows_domaincontroller_request.py create mode 100644 test/test_computers_windows_domaincontroller_request_patch.py create mode 100644 test/test_computers_windows_domaincontroller_response_mixin.py create mode 100644 test/test_computers_windows_list.py create mode 100644 test/test_computers_windows_list_embedded.py create mode 100644 test/test_computers_windows_options.py create mode 100644 test/test_computers_windows_request.py create mode 100644 test/test_computers_windows_request_patch.py create mode 100644 test/test_computers_windows_response_mixin.py create mode 100644 test/test_container_cn.py create mode 100644 test/test_container_cn_api.py create mode 100644 test/test_container_cn_list.py create mode 100644 test/test_container_cn_list_embedded.py create mode 100644 test/test_container_cn_policies.py create mode 100644 test/test_container_cn_request.py create mode 100644 test/test_container_cn_request_patch.py create mode 100644 test/test_container_cn_response_mixin.py create mode 100644 test/test_container_dc.py create mode 100644 test/test_container_dc_api.py create mode 100644 test/test_container_dc_list.py create mode 100644 test/test_container_dc_list_embedded.py create mode 100644 test/test_container_dc_options.py create mode 100644 test/test_container_dc_policies.py create mode 100644 test/test_container_dc_request.py create mode 100644 test/test_container_dc_request_patch.py create mode 100644 test/test_container_dc_response_mixin.py create mode 100644 test/test_container_msgpo.py create mode 100644 test/test_container_msgpo_api.py create mode 100644 test/test_container_msgpo_list.py create mode 100644 test/test_container_msgpo_list_embedded.py create mode 100644 test/test_container_msgpo_policies.py create mode 100644 test/test_container_msgpo_request.py create mode 100644 test/test_container_msgpo_request_patch.py create mode 100644 test/test_container_msgpo_response_mixin.py create mode 100644 test/test_container_ou.py create mode 100644 test/test_container_ou_api.py create mode 100644 test/test_container_ou_list.py create mode 100644 test/test_container_ou_list_embedded.py create mode 100644 test/test_container_ou_policies.py create mode 100644 test/test_container_ou_request.py create mode 100644 test/test_container_ou_request_patch.py create mode 100644 test/test_container_ou_response_mixin.py create mode 100644 test/test_dhcp_dhcp.py create mode 100644 test/test_dhcp_dhcp_api.py create mode 100644 test/test_dhcp_dhcp_list.py create mode 100644 test/test_dhcp_dhcp_list_embedded.py create mode 100644 test/test_dhcp_dhcp_request.py create mode 100644 test/test_dhcp_dhcp_request_patch.py create mode 100644 test/test_dhcp_dhcp_response_mixin.py create mode 100644 test/test_dhcp_host.py create mode 100644 test/test_dhcp_host_api.py create mode 100644 test/test_dhcp_host_list.py create mode 100644 test/test_dhcp_host_list_embedded.py create mode 100644 test/test_dhcp_host_options.py create mode 100644 test/test_dhcp_host_policies.py create mode 100644 test/test_dhcp_host_request.py create mode 100644 test/test_dhcp_host_request_patch.py create mode 100644 test/test_dhcp_host_response_mixin.py create mode 100644 test/test_dhcp_pool.py create mode 100644 test/test_dhcp_pool_api.py create mode 100644 test/test_dhcp_pool_list.py create mode 100644 test/test_dhcp_pool_list_embedded.py create mode 100644 test/test_dhcp_pool_options.py create mode 100644 test/test_dhcp_pool_policies.py create mode 100644 test/test_dhcp_pool_request.py create mode 100644 test/test_dhcp_pool_request_patch.py create mode 100644 test/test_dhcp_pool_response_mixin.py create mode 100644 test/test_dhcp_server.py create mode 100644 test/test_dhcp_server_api.py create mode 100644 test/test_dhcp_server_list.py create mode 100644 test/test_dhcp_server_list_embedded.py create mode 100644 test/test_dhcp_server_request.py create mode 100644 test/test_dhcp_server_request_patch.py create mode 100644 test/test_dhcp_server_response_mixin.py create mode 100644 test/test_dhcp_service.py create mode 100644 test/test_dhcp_service_api.py create mode 100644 test/test_dhcp_service_list.py create mode 100644 test/test_dhcp_service_list_embedded.py create mode 100644 test/test_dhcp_service_options.py create mode 100644 test/test_dhcp_service_policies.py create mode 100644 test/test_dhcp_service_request.py create mode 100644 test/test_dhcp_service_request_patch.py create mode 100644 test/test_dhcp_service_response_mixin.py create mode 100644 test/test_dhcp_shared.py create mode 100644 test/test_dhcp_shared_api.py create mode 100644 test/test_dhcp_shared_list.py create mode 100644 test/test_dhcp_shared_list_embedded.py create mode 100644 test/test_dhcp_shared_options.py create mode 100644 test/test_dhcp_shared_policies.py create mode 100644 test/test_dhcp_shared_request.py create mode 100644 test/test_dhcp_shared_request_patch.py create mode 100644 test/test_dhcp_shared_response_mixin.py create mode 100644 test/test_dhcp_sharedsubnet.py create mode 100644 test/test_dhcp_sharedsubnet_api.py create mode 100644 test/test_dhcp_sharedsubnet_list.py create mode 100644 test/test_dhcp_sharedsubnet_list_embedded.py create mode 100644 test/test_dhcp_sharedsubnet_options.py create mode 100644 test/test_dhcp_sharedsubnet_policies.py create mode 100644 test/test_dhcp_sharedsubnet_request.py create mode 100644 test/test_dhcp_sharedsubnet_request_patch.py create mode 100644 test/test_dhcp_sharedsubnet_response_mixin.py create mode 100644 test/test_dhcp_subnet.py create mode 100644 test/test_dhcp_subnet_api.py create mode 100644 test/test_dhcp_subnet_list.py create mode 100644 test/test_dhcp_subnet_list_embedded.py create mode 100644 test/test_dhcp_subnet_options.py create mode 100644 test/test_dhcp_subnet_policies.py create mode 100644 test/test_dhcp_subnet_request.py create mode 100644 test/test_dhcp_subnet_request_patch.py create mode 100644 test/test_dhcp_subnet_response_mixin.py create mode 100644 test/test_dns_alias.py create mode 100644 test/test_dns_alias_api.py create mode 100644 test/test_dns_alias_list.py create mode 100644 test/test_dns_alias_list_embedded.py create mode 100644 test/test_dns_alias_request.py create mode 100644 test/test_dns_alias_request_patch.py create mode 100644 test/test_dns_alias_response_mixin.py create mode 100644 test/test_dns_dns.py create mode 100644 test/test_dns_dns_api.py create mode 100644 test/test_dns_dns_list.py create mode 100644 test/test_dns_dns_list_embedded.py create mode 100644 test/test_dns_dns_request.py create mode 100644 test/test_dns_dns_request_patch.py create mode 100644 test/test_dns_dns_response_mixin.py create mode 100644 test/test_dns_forward_zone.py create mode 100644 test/test_dns_forward_zone_api.py create mode 100644 test/test_dns_forward_zone_list.py create mode 100644 test/test_dns_forward_zone_list_embedded.py create mode 100644 test/test_dns_forward_zone_policies.py create mode 100644 test/test_dns_forward_zone_request.py create mode 100644 test/test_dns_forward_zone_request_patch.py create mode 100644 test/test_dns_forward_zone_response_mixin.py create mode 100644 test/test_dns_host_record.py create mode 100644 test/test_dns_host_record_api.py create mode 100644 test/test_dns_host_record_list.py create mode 100644 test/test_dns_host_record_list_embedded.py create mode 100644 test/test_dns_host_record_request.py create mode 100644 test/test_dns_host_record_request_patch.py create mode 100644 test/test_dns_host_record_response_mixin.py create mode 100644 test/test_dns_ns_record.py create mode 100644 test/test_dns_ns_record_api.py create mode 100644 test/test_dns_ns_record_list.py create mode 100644 test/test_dns_ns_record_list_embedded.py create mode 100644 test/test_dns_ns_record_request.py create mode 100644 test/test_dns_ns_record_request_patch.py create mode 100644 test/test_dns_ns_record_response_mixin.py create mode 100644 test/test_dns_ptr_record.py create mode 100644 test/test_dns_ptr_record_api.py create mode 100644 test/test_dns_ptr_record_list.py create mode 100644 test/test_dns_ptr_record_list_embedded.py create mode 100644 test/test_dns_ptr_record_request.py create mode 100644 test/test_dns_ptr_record_request_patch.py create mode 100644 test/test_dns_ptr_record_response_mixin.py create mode 100644 test/test_dns_reverse_zone.py create mode 100644 test/test_dns_reverse_zone_api.py create mode 100644 test/test_dns_reverse_zone_list.py create mode 100644 test/test_dns_reverse_zone_list_embedded.py create mode 100644 test/test_dns_reverse_zone_policies.py create mode 100644 test/test_dns_reverse_zone_request.py create mode 100644 test/test_dns_reverse_zone_request_patch.py create mode 100644 test/test_dns_reverse_zone_response_mixin.py create mode 100644 test/test_dns_srv_record.py create mode 100644 test/test_dns_srv_record_api.py create mode 100644 test/test_dns_srv_record_list.py create mode 100644 test/test_dns_srv_record_list_embedded.py create mode 100644 test/test_dns_srv_record_request.py create mode 100644 test/test_dns_srv_record_request_patch.py create mode 100644 test/test_dns_srv_record_response_mixin.py create mode 100644 test/test_dns_txt_record.py create mode 100644 test/test_dns_txt_record_api.py create mode 100644 test/test_dns_txt_record_list.py create mode 100644 test/test_dns_txt_record_list_embedded.py create mode 100644 test/test_dns_txt_record_request.py create mode 100644 test/test_dns_txt_record_request_patch.py create mode 100644 test/test_dns_txt_record_response_mixin.py create mode 100644 test/test_embedded_error.py create mode 100644 test/test_groups_group.py create mode 100644 test/test_groups_group_api.py create mode 100644 test/test_groups_group_list.py create mode 100644 test/test_groups_group_list_embedded.py create mode 100644 test/test_groups_group_options.py create mode 100644 test/test_groups_group_policies.py create mode 100644 test/test_groups_group_request.py create mode 100644 test/test_groups_group_request_patch.py create mode 100644 test/test_groups_group_response_mixin.py create mode 100644 test/test_inline_response201.py create mode 100644 test/test_kerberos_kdcentry.py create mode 100644 test/test_kerberos_kdcentry_api.py create mode 100644 test/test_kerberos_kdcentry_list.py create mode 100644 test/test_kerberos_kdcentry_list_embedded.py create mode 100644 test/test_kerberos_kdcentry_request.py create mode 100644 test/test_kerberos_kdcentry_request_patch.py create mode 100644 test/test_kerberos_kdcentry_response_mixin.py create mode 100644 test/test_links.py create mode 100644 test/test_mail_domain.py create mode 100644 test/test_mail_domain_api.py create mode 100644 test/test_mail_domain_list.py create mode 100644 test/test_mail_domain_list_embedded.py create mode 100644 test/test_mail_domain_request.py create mode 100644 test/test_mail_domain_request_patch.py create mode 100644 test/test_mail_domain_response_mixin.py create mode 100644 test/test_mail_folder.py create mode 100644 test/test_mail_folder_api.py create mode 100644 test/test_mail_folder_list.py create mode 100644 test/test_mail_folder_list_embedded.py create mode 100644 test/test_mail_folder_request.py create mode 100644 test/test_mail_folder_request_patch.py create mode 100644 test/test_mail_folder_response_mixin.py create mode 100644 test/test_mail_lists.py create mode 100644 test/test_mail_lists_api.py create mode 100644 test/test_mail_lists_list.py create mode 100644 test/test_mail_lists_list_embedded.py create mode 100644 test/test_mail_lists_request.py create mode 100644 test/test_mail_lists_request_patch.py create mode 100644 test/test_mail_lists_response_mixin.py create mode 100644 test/test_mail_mail.py create mode 100644 test/test_mail_mail_api.py create mode 100644 test/test_mail_mail_list.py create mode 100644 test/test_mail_mail_list_embedded.py create mode 100644 test/test_mail_mail_request.py create mode 100644 test/test_mail_mail_request_patch.py create mode 100644 test/test_mail_mail_response_mixin.py create mode 100644 test/test_monitoring_alert.py create mode 100644 test/test_monitoring_alert_api.py create mode 100644 test/test_monitoring_alert_list.py create mode 100644 test/test_monitoring_alert_list_embedded.py create mode 100644 test/test_monitoring_alert_request.py create mode 100644 test/test_monitoring_alert_request_patch.py create mode 100644 test/test_monitoring_alert_response_mixin.py create mode 100644 test/test_ms_domainpolicy.py create mode 100644 test/test_ms_domainpolicy_api.py create mode 100644 test/test_ms_domainpolicy_list.py create mode 100644 test/test_ms_domainpolicy_list_embedded.py create mode 100644 test/test_ms_domainpolicy_policies.py create mode 100644 test/test_ms_domainpolicy_request.py create mode 100644 test/test_ms_domainpolicy_request_patch.py create mode 100644 test/test_ms_domainpolicy_response_mixin.py create mode 100644 test/test_ms_gpipsec_filter.py create mode 100644 test/test_ms_gpipsec_filter_api.py create mode 100644 test/test_ms_gpipsec_filter_list.py create mode 100644 test/test_ms_gpipsec_filter_list_embedded.py create mode 100644 test/test_ms_gpipsec_filter_policies.py create mode 100644 test/test_ms_gpipsec_filter_request.py create mode 100644 test/test_ms_gpipsec_filter_request_patch.py create mode 100644 test/test_ms_gpipsec_filter_response_mixin.py create mode 100644 test/test_ms_gpipsec_isakmp_policy.py create mode 100644 test/test_ms_gpipsec_isakmp_policy_api.py create mode 100644 test/test_ms_gpipsec_isakmp_policy_list.py create mode 100644 test/test_ms_gpipsec_isakmp_policy_list_embedded.py create mode 100644 test/test_ms_gpipsec_isakmp_policy_policies.py create mode 100644 test/test_ms_gpipsec_isakmp_policy_request.py create mode 100644 test/test_ms_gpipsec_isakmp_policy_request_patch.py create mode 100644 test/test_ms_gpipsec_isakmp_policy_response_mixin.py create mode 100644 test/test_ms_gpipsec_negotiation_policy.py create mode 100644 test/test_ms_gpipsec_negotiation_policy_api.py create mode 100644 test/test_ms_gpipsec_negotiation_policy_list.py create mode 100644 test/test_ms_gpipsec_negotiation_policy_list_embedded.py create mode 100644 test/test_ms_gpipsec_negotiation_policy_policies.py create mode 100644 test/test_ms_gpipsec_negotiation_policy_request.py create mode 100644 test/test_ms_gpipsec_negotiation_policy_request_patch.py create mode 100644 test/test_ms_gpipsec_negotiation_policy_response_mixin.py create mode 100644 test/test_ms_gpipsec_nfa.py create mode 100644 test/test_ms_gpipsec_nfa_api.py create mode 100644 test/test_ms_gpipsec_nfa_list.py create mode 100644 test/test_ms_gpipsec_nfa_list_embedded.py create mode 100644 test/test_ms_gpipsec_nfa_policies.py create mode 100644 test/test_ms_gpipsec_nfa_request.py create mode 100644 test/test_ms_gpipsec_nfa_request_patch.py create mode 100644 test/test_ms_gpipsec_nfa_response_mixin.py create mode 100644 test/test_ms_gpipsec_policy.py create mode 100644 test/test_ms_gpipsec_policy_api.py create mode 100644 test/test_ms_gpipsec_policy_list.py create mode 100644 test/test_ms_gpipsec_policy_list_embedded.py create mode 100644 test/test_ms_gpipsec_policy_policies.py create mode 100644 test/test_ms_gpipsec_policy_request.py create mode 100644 test/test_ms_gpipsec_policy_request_patch.py create mode 100644 test/test_ms_gpipsec_policy_response_mixin.py create mode 100644 test/test_ms_gpsi_category_registration.py create mode 100644 test/test_ms_gpsi_category_registration_api.py create mode 100644 test/test_ms_gpsi_category_registration_list.py create mode 100644 test/test_ms_gpsi_category_registration_list_embedded.py create mode 100644 test/test_ms_gpsi_category_registration_policies.py create mode 100644 test/test_ms_gpsi_category_registration_request.py create mode 100644 test/test_ms_gpsi_category_registration_request_patch.py create mode 100644 test/test_ms_gpsi_category_registration_response_mixin.py create mode 100644 test/test_ms_gpsi_class_store.py create mode 100644 test/test_ms_gpsi_class_store_api.py create mode 100644 test/test_ms_gpsi_class_store_list.py create mode 100644 test/test_ms_gpsi_class_store_list_embedded.py create mode 100644 test/test_ms_gpsi_class_store_policies.py create mode 100644 test/test_ms_gpsi_class_store_request.py create mode 100644 test/test_ms_gpsi_class_store_request_patch.py create mode 100644 test/test_ms_gpsi_class_store_response_mixin.py create mode 100644 test/test_ms_gpsi_package_registration.py create mode 100644 test/test_ms_gpsi_package_registration_api.py create mode 100644 test/test_ms_gpsi_package_registration_list.py create mode 100644 test/test_ms_gpsi_package_registration_list_embedded.py create mode 100644 test/test_ms_gpsi_package_registration_policies.py create mode 100644 test/test_ms_gpsi_package_registration_request.py create mode 100644 test/test_ms_gpsi_package_registration_request_patch.py create mode 100644 test/test_ms_gpsi_package_registration_response_mixin.py create mode 100644 test/test_ms_gpwl_wired.py create mode 100644 test/test_ms_gpwl_wired_api.py create mode 100644 test/test_ms_gpwl_wired_list.py create mode 100644 test/test_ms_gpwl_wired_list_embedded.py create mode 100644 test/test_ms_gpwl_wired_policies.py create mode 100644 test/test_ms_gpwl_wired_request.py create mode 100644 test/test_ms_gpwl_wired_request_patch.py create mode 100644 test/test_ms_gpwl_wired_response_mixin.py create mode 100644 test/test_ms_gpwl_wireless.py create mode 100644 test/test_ms_gpwl_wireless_api.py create mode 100644 test/test_ms_gpwl_wireless_blob.py create mode 100644 test/test_ms_gpwl_wireless_blob_api.py create mode 100644 test/test_ms_gpwl_wireless_blob_list.py create mode 100644 test/test_ms_gpwl_wireless_blob_list_embedded.py create mode 100644 test/test_ms_gpwl_wireless_blob_policies.py create mode 100644 test/test_ms_gpwl_wireless_blob_request.py create mode 100644 test/test_ms_gpwl_wireless_blob_request_patch.py create mode 100644 test/test_ms_gpwl_wireless_blob_response_mixin.py create mode 100644 test/test_ms_gpwl_wireless_list.py create mode 100644 test/test_ms_gpwl_wireless_list_embedded.py create mode 100644 test/test_ms_gpwl_wireless_policies.py create mode 100644 test/test_ms_gpwl_wireless_request.py create mode 100644 test/test_ms_gpwl_wireless_request_patch.py create mode 100644 test/test_ms_gpwl_wireless_response_mixin.py create mode 100644 test/test_nagios_nagios.py create mode 100644 test/test_nagios_nagios_api.py create mode 100644 test/test_nagios_nagios_list.py create mode 100644 test/test_nagios_nagios_list_embedded.py create mode 100644 test/test_nagios_nagios_request.py create mode 100644 test/test_nagios_nagios_request_patch.py create mode 100644 test/test_nagios_nagios_response_mixin.py create mode 100644 test/test_nagios_service.py create mode 100644 test/test_nagios_service_api.py create mode 100644 test/test_nagios_service_list.py create mode 100644 test/test_nagios_service_list_embedded.py create mode 100644 test/test_nagios_service_request.py create mode 100644 test/test_nagios_service_request_patch.py create mode 100644 test/test_nagios_service_response_mixin.py create mode 100644 test/test_nagios_timeperiod.py create mode 100644 test/test_nagios_timeperiod_api.py create mode 100644 test/test_nagios_timeperiod_list.py create mode 100644 test/test_nagios_timeperiod_list_embedded.py create mode 100644 test/test_nagios_timeperiod_request.py create mode 100644 test/test_nagios_timeperiod_request_patch.py create mode 100644 test/test_nagios_timeperiod_response_mixin.py create mode 100644 test/test_networks_network.py create mode 100644 test/test_networks_network_api.py create mode 100644 test/test_networks_network_list.py create mode 100644 test/test_networks_network_list_embedded.py create mode 100644 test/test_networks_network_request.py create mode 100644 test/test_networks_network_request_patch.py create mode 100644 test/test_networks_network_response_mixin.py create mode 100644 test/test_policies_admin_container.py create mode 100644 test/test_policies_admin_container_api.py create mode 100644 test/test_policies_admin_container_list.py create mode 100644 test/test_policies_admin_container_list_embedded.py create mode 100644 test/test_policies_admin_container_request.py create mode 100644 test/test_policies_admin_container_request_patch.py create mode 100644 test/test_policies_admin_container_response_mixin.py create mode 100644 test/test_policies_desktop.py create mode 100644 test/test_policies_desktop_api.py create mode 100644 test/test_policies_desktop_list.py create mode 100644 test/test_policies_desktop_list_embedded.py create mode 100644 test/test_policies_desktop_request.py create mode 100644 test/test_policies_desktop_request_patch.py create mode 100644 test/test_policies_desktop_response_mixin.py create mode 100644 test/test_policies_dhcp_boot.py create mode 100644 test/test_policies_dhcp_boot_api.py create mode 100644 test/test_policies_dhcp_boot_list.py create mode 100644 test/test_policies_dhcp_boot_list_embedded.py create mode 100644 test/test_policies_dhcp_boot_request.py create mode 100644 test/test_policies_dhcp_boot_request_patch.py create mode 100644 test/test_policies_dhcp_boot_response_mixin.py create mode 100644 test/test_policies_dhcp_dns.py create mode 100644 test/test_policies_dhcp_dns_api.py create mode 100644 test/test_policies_dhcp_dns_list.py create mode 100644 test/test_policies_dhcp_dns_list_embedded.py create mode 100644 test/test_policies_dhcp_dns_request.py create mode 100644 test/test_policies_dhcp_dns_request_patch.py create mode 100644 test/test_policies_dhcp_dns_response_mixin.py create mode 100644 test/test_policies_dhcp_dnsupdate.py create mode 100644 test/test_policies_dhcp_dnsupdate_api.py create mode 100644 test/test_policies_dhcp_dnsupdate_list.py create mode 100644 test/test_policies_dhcp_dnsupdate_list_embedded.py create mode 100644 test/test_policies_dhcp_dnsupdate_request.py create mode 100644 test/test_policies_dhcp_dnsupdate_request_patch.py create mode 100644 test/test_policies_dhcp_dnsupdate_response_mixin.py create mode 100644 test/test_policies_dhcp_leasetime.py create mode 100644 test/test_policies_dhcp_leasetime_api.py create mode 100644 test/test_policies_dhcp_leasetime_list.py create mode 100644 test/test_policies_dhcp_leasetime_list_embedded.py create mode 100644 test/test_policies_dhcp_leasetime_request.py create mode 100644 test/test_policies_dhcp_leasetime_request_patch.py create mode 100644 test/test_policies_dhcp_leasetime_response_mixin.py create mode 100644 test/test_policies_dhcp_netbios.py create mode 100644 test/test_policies_dhcp_netbios_api.py create mode 100644 test/test_policies_dhcp_netbios_list.py create mode 100644 test/test_policies_dhcp_netbios_list_embedded.py create mode 100644 test/test_policies_dhcp_netbios_request.py create mode 100644 test/test_policies_dhcp_netbios_request_patch.py create mode 100644 test/test_policies_dhcp_netbios_response_mixin.py create mode 100644 test/test_policies_dhcp_routing.py create mode 100644 test/test_policies_dhcp_routing_api.py create mode 100644 test/test_policies_dhcp_routing_list.py create mode 100644 test/test_policies_dhcp_routing_list_embedded.py create mode 100644 test/test_policies_dhcp_routing_request.py create mode 100644 test/test_policies_dhcp_routing_request_patch.py create mode 100644 test/test_policies_dhcp_routing_response_mixin.py create mode 100644 test/test_policies_dhcp_scope.py create mode 100644 test/test_policies_dhcp_scope_api.py create mode 100644 test/test_policies_dhcp_scope_list.py create mode 100644 test/test_policies_dhcp_scope_list_embedded.py create mode 100644 test/test_policies_dhcp_scope_request.py create mode 100644 test/test_policies_dhcp_scope_request_patch.py create mode 100644 test/test_policies_dhcp_scope_response_mixin.py create mode 100644 test/test_policies_dhcp_statements.py create mode 100644 test/test_policies_dhcp_statements_api.py create mode 100644 test/test_policies_dhcp_statements_list.py create mode 100644 test/test_policies_dhcp_statements_list_embedded.py create mode 100644 test/test_policies_dhcp_statements_request.py create mode 100644 test/test_policies_dhcp_statements_request_patch.py create mode 100644 test/test_policies_dhcp_statements_response_mixin.py create mode 100644 test/test_policies_ldapserver.py create mode 100644 test/test_policies_ldapserver_api.py create mode 100644 test/test_policies_ldapserver_list.py create mode 100644 test/test_policies_ldapserver_list_embedded.py create mode 100644 test/test_policies_ldapserver_request.py create mode 100644 test/test_policies_ldapserver_request_patch.py create mode 100644 test/test_policies_ldapserver_response_mixin.py create mode 100644 test/test_policies_maintenance.py create mode 100644 test/test_policies_maintenance_api.py create mode 100644 test/test_policies_maintenance_list.py create mode 100644 test/test_policies_maintenance_list_embedded.py create mode 100644 test/test_policies_maintenance_request.py create mode 100644 test/test_policies_maintenance_request_patch.py create mode 100644 test/test_policies_maintenance_response_mixin.py create mode 100644 test/test_policies_masterpackages.py create mode 100644 test/test_policies_masterpackages_api.py create mode 100644 test/test_policies_masterpackages_list.py create mode 100644 test/test_policies_masterpackages_list_embedded.py create mode 100644 test/test_policies_masterpackages_request.py create mode 100644 test/test_policies_masterpackages_request_patch.py create mode 100644 test/test_policies_masterpackages_response_mixin.py create mode 100644 test/test_policies_memberpackages.py create mode 100644 test/test_policies_memberpackages_api.py create mode 100644 test/test_policies_memberpackages_list.py create mode 100644 test/test_policies_memberpackages_list_embedded.py create mode 100644 test/test_policies_memberpackages_request.py create mode 100644 test/test_policies_memberpackages_request_patch.py create mode 100644 test/test_policies_memberpackages_response_mixin.py create mode 100644 test/test_policies_nfsmounts.py create mode 100644 test/test_policies_nfsmounts_api.py create mode 100644 test/test_policies_nfsmounts_list.py create mode 100644 test/test_policies_nfsmounts_list_embedded.py create mode 100644 test/test_policies_nfsmounts_request.py create mode 100644 test/test_policies_nfsmounts_request_patch.py create mode 100644 test/test_policies_nfsmounts_response_mixin.py create mode 100644 test/test_policies_policy.py create mode 100644 test/test_policies_policy_api.py create mode 100644 test/test_policies_policy_list.py create mode 100644 test/test_policies_policy_list_embedded.py create mode 100644 test/test_policies_policy_request.py create mode 100644 test/test_policies_policy_request_patch.py create mode 100644 test/test_policies_policy_response_mixin.py create mode 100644 test/test_policies_printserver.py create mode 100644 test/test_policies_printserver_api.py create mode 100644 test/test_policies_printserver_list.py create mode 100644 test/test_policies_printserver_list_embedded.py create mode 100644 test/test_policies_printserver_request.py create mode 100644 test/test_policies_printserver_request_patch.py create mode 100644 test/test_policies_printserver_response_mixin.py create mode 100644 test/test_policies_pwhistory.py create mode 100644 test/test_policies_pwhistory_api.py create mode 100644 test/test_policies_pwhistory_list.py create mode 100644 test/test_policies_pwhistory_list_embedded.py create mode 100644 test/test_policies_pwhistory_request.py create mode 100644 test/test_policies_pwhistory_request_patch.py create mode 100644 test/test_policies_pwhistory_response_mixin.py create mode 100644 test/test_policies_registry.py create mode 100644 test/test_policies_registry_api.py create mode 100644 test/test_policies_registry_list.py create mode 100644 test/test_policies_registry_list_embedded.py create mode 100644 test/test_policies_registry_request.py create mode 100644 test/test_policies_registry_request_patch.py create mode 100644 test/test_policies_registry_response_mixin.py create mode 100644 test/test_policies_release.py create mode 100644 test/test_policies_release_api.py create mode 100644 test/test_policies_release_list.py create mode 100644 test/test_policies_release_list_embedded.py create mode 100644 test/test_policies_release_request.py create mode 100644 test/test_policies_release_request_patch.py create mode 100644 test/test_policies_release_response_mixin.py create mode 100644 test/test_policies_repositoryserver.py create mode 100644 test/test_policies_repositoryserver_api.py create mode 100644 test/test_policies_repositoryserver_list.py create mode 100644 test/test_policies_repositoryserver_list_embedded.py create mode 100644 test/test_policies_repositoryserver_request.py create mode 100644 test/test_policies_repositoryserver_request_patch.py create mode 100644 test/test_policies_repositoryserver_response_mixin.py create mode 100644 test/test_policies_repositorysync.py create mode 100644 test/test_policies_repositorysync_api.py create mode 100644 test/test_policies_repositorysync_list.py create mode 100644 test/test_policies_repositorysync_list_embedded.py create mode 100644 test/test_policies_repositorysync_request.py create mode 100644 test/test_policies_repositorysync_request_patch.py create mode 100644 test/test_policies_repositorysync_response_mixin.py create mode 100644 test/test_policies_share_userquota.py create mode 100644 test/test_policies_share_userquota_api.py create mode 100644 test/test_policies_share_userquota_list.py create mode 100644 test/test_policies_share_userquota_list_embedded.py create mode 100644 test/test_policies_share_userquota_request.py create mode 100644 test/test_policies_share_userquota_request_patch.py create mode 100644 test/test_policies_share_userquota_response_mixin.py create mode 100644 test/test_policies_slavepackages.py create mode 100644 test/test_policies_slavepackages_api.py create mode 100644 test/test_policies_slavepackages_list.py create mode 100644 test/test_policies_slavepackages_list_embedded.py create mode 100644 test/test_policies_slavepackages_request.py create mode 100644 test/test_policies_slavepackages_request_patch.py create mode 100644 test/test_policies_slavepackages_response_mixin.py create mode 100644 test/test_policies_umc.py create mode 100644 test/test_policies_umc_api.py create mode 100644 test/test_policies_umc_list.py create mode 100644 test/test_policies_umc_list_embedded.py create mode 100644 test/test_policies_umc_request.py create mode 100644 test/test_policies_umc_request_patch.py create mode 100644 test/test_policies_umc_response_mixin.py create mode 100644 test/test_portals_all.py create mode 100644 test/test_portals_all_api.py create mode 100644 test/test_portals_all_list.py create mode 100644 test/test_portals_all_list_embedded.py create mode 100644 test/test_portals_all_request.py create mode 100644 test/test_portals_all_request_patch.py create mode 100644 test/test_portals_all_response_mixin.py create mode 100644 test/test_portals_announcement.py create mode 100644 test/test_portals_announcement_api.py create mode 100644 test/test_portals_announcement_list.py create mode 100644 test/test_portals_announcement_list_embedded.py create mode 100644 test/test_portals_announcement_request.py create mode 100644 test/test_portals_announcement_request_patch.py create mode 100644 test/test_portals_announcement_response_mixin.py create mode 100644 test/test_portals_category.py create mode 100644 test/test_portals_category_api.py create mode 100644 test/test_portals_category_list.py create mode 100644 test/test_portals_category_list_embedded.py create mode 100644 test/test_portals_category_request.py create mode 100644 test/test_portals_category_request_patch.py create mode 100644 test/test_portals_category_response_mixin.py create mode 100644 test/test_portals_entry.py create mode 100644 test/test_portals_entry_api.py create mode 100644 test/test_portals_entry_list.py create mode 100644 test/test_portals_entry_list_embedded.py create mode 100644 test/test_portals_entry_request.py create mode 100644 test/test_portals_entry_request_patch.py create mode 100644 test/test_portals_entry_response_mixin.py create mode 100644 test/test_portals_folder.py create mode 100644 test/test_portals_folder_api.py create mode 100644 test/test_portals_folder_list.py create mode 100644 test/test_portals_folder_list_embedded.py create mode 100644 test/test_portals_folder_request.py create mode 100644 test/test_portals_folder_request_patch.py create mode 100644 test/test_portals_folder_response_mixin.py create mode 100644 test/test_portals_portal.py create mode 100644 test/test_portals_portal_api.py create mode 100644 test/test_portals_portal_list.py create mode 100644 test/test_portals_portal_list_embedded.py create mode 100644 test/test_portals_portal_request.py create mode 100644 test/test_portals_portal_request_patch.py create mode 100644 test/test_portals_portal_response_mixin.py create mode 100644 test/test_saml_idpconfig.py create mode 100644 test/test_saml_idpconfig_api.py create mode 100644 test/test_saml_idpconfig_list.py create mode 100644 test/test_saml_idpconfig_list_embedded.py create mode 100644 test/test_saml_idpconfig_request.py create mode 100644 test/test_saml_idpconfig_request_patch.py create mode 100644 test/test_saml_idpconfig_response_mixin.py create mode 100644 test/test_saml_serviceprovider.py create mode 100644 test/test_saml_serviceprovider_api.py create mode 100644 test/test_saml_serviceprovider_list.py create mode 100644 test/test_saml_serviceprovider_list_embedded.py create mode 100644 test/test_saml_serviceprovider_request.py create mode 100644 test/test_saml_serviceprovider_request_patch.py create mode 100644 test/test_saml_serviceprovider_response_mixin.py create mode 100644 test/test_settings_cn.py create mode 100644 test/test_settings_cn_api.py create mode 100644 test/test_settings_cn_list.py create mode 100644 test/test_settings_cn_list_embedded.py create mode 100644 test/test_settings_cn_policies.py create mode 100644 test/test_settings_cn_request.py create mode 100644 test/test_settings_cn_request_patch.py create mode 100644 test/test_settings_cn_response_mixin.py create mode 100644 test/test_settings_data.py create mode 100644 test/test_settings_data_api.py create mode 100644 test/test_settings_data_list.py create mode 100644 test/test_settings_data_list_embedded.py create mode 100644 test/test_settings_data_request.py create mode 100644 test/test_settings_data_request_patch.py create mode 100644 test/test_settings_data_response_mixin.py create mode 100644 test/test_settings_default.py create mode 100644 test/test_settings_default_api.py create mode 100644 test/test_settings_default_list.py create mode 100644 test/test_settings_default_list_embedded.py create mode 100644 test/test_settings_default_request.py create mode 100644 test/test_settings_default_request_patch.py create mode 100644 test/test_settings_default_response_mixin.py create mode 100644 test/test_settings_directory.py create mode 100644 test/test_settings_directory_api.py create mode 100644 test/test_settings_directory_list.py create mode 100644 test/test_settings_directory_list_embedded.py create mode 100644 test/test_settings_directory_request.py create mode 100644 test/test_settings_directory_request_patch.py create mode 100644 test/test_settings_directory_response_mixin.py create mode 100644 test/test_settings_extended_attribute.py create mode 100644 test/test_settings_extended_attribute_api.py create mode 100644 test/test_settings_extended_attribute_list.py create mode 100644 test/test_settings_extended_attribute_list_embedded.py create mode 100644 test/test_settings_extended_attribute_request.py create mode 100644 test/test_settings_extended_attribute_request_patch.py create mode 100644 test/test_settings_extended_attribute_response_mixin.py create mode 100644 test/test_settings_extended_options.py create mode 100644 test/test_settings_extended_options_api.py create mode 100644 test/test_settings_extended_options_list.py create mode 100644 test/test_settings_extended_options_list_embedded.py create mode 100644 test/test_settings_extended_options_request.py create mode 100644 test/test_settings_extended_options_request_patch.py create mode 100644 test/test_settings_extended_options_response_mixin.py create mode 100644 test/test_settings_ldapacl.py create mode 100644 test/test_settings_ldapacl_api.py create mode 100644 test/test_settings_ldapacl_list.py create mode 100644 test/test_settings_ldapacl_list_embedded.py create mode 100644 test/test_settings_ldapacl_request.py create mode 100644 test/test_settings_ldapacl_request_patch.py create mode 100644 test/test_settings_ldapacl_response_mixin.py create mode 100644 test/test_settings_ldapschema.py create mode 100644 test/test_settings_ldapschema_api.py create mode 100644 test/test_settings_ldapschema_list.py create mode 100644 test/test_settings_ldapschema_list_embedded.py create mode 100644 test/test_settings_ldapschema_request.py create mode 100644 test/test_settings_ldapschema_request_patch.py create mode 100644 test/test_settings_ldapschema_response_mixin.py create mode 100644 test/test_settings_license.py create mode 100644 test/test_settings_license_api.py create mode 100644 test/test_settings_license_list.py create mode 100644 test/test_settings_license_list_embedded.py create mode 100644 test/test_settings_license_options.py create mode 100644 test/test_settings_license_request.py create mode 100644 test/test_settings_license_request_patch.py create mode 100644 test/test_settings_license_response_mixin.py create mode 100644 test/test_settings_lock.py create mode 100644 test/test_settings_lock_api.py create mode 100644 test/test_settings_lock_list.py create mode 100644 test/test_settings_lock_list_embedded.py create mode 100644 test/test_settings_lock_request.py create mode 100644 test/test_settings_lock_request_patch.py create mode 100644 test/test_settings_lock_response_mixin.py create mode 100644 test/test_settings_msprintconnectionpolicy.py create mode 100644 test/test_settings_msprintconnectionpolicy_api.py create mode 100644 test/test_settings_msprintconnectionpolicy_list.py create mode 100644 test/test_settings_msprintconnectionpolicy_list_embedded.py create mode 100644 test/test_settings_msprintconnectionpolicy_policies.py create mode 100644 test/test_settings_msprintconnectionpolicy_request.py create mode 100644 test/test_settings_msprintconnectionpolicy_request_patch.py create mode 100644 test/test_settings_msprintconnectionpolicy_response_mixin.py create mode 100644 test/test_settings_mswmifilter.py create mode 100644 test/test_settings_mswmifilter_api.py create mode 100644 test/test_settings_mswmifilter_list.py create mode 100644 test/test_settings_mswmifilter_list_embedded.py create mode 100644 test/test_settings_mswmifilter_policies.py create mode 100644 test/test_settings_mswmifilter_request.py create mode 100644 test/test_settings_mswmifilter_request_patch.py create mode 100644 test/test_settings_mswmifilter_response_mixin.py create mode 100644 test/test_settings_packages.py create mode 100644 test/test_settings_packages_api.py create mode 100644 test/test_settings_packages_list.py create mode 100644 test/test_settings_packages_list_embedded.py create mode 100644 test/test_settings_packages_request.py create mode 100644 test/test_settings_packages_request_patch.py create mode 100644 test/test_settings_packages_response_mixin.py create mode 100644 test/test_settings_portal.py create mode 100644 test/test_settings_portal_all.py create mode 100644 test/test_settings_portal_all_api.py create mode 100644 test/test_settings_portal_all_list.py create mode 100644 test/test_settings_portal_all_list_embedded.py create mode 100644 test/test_settings_portal_all_request.py create mode 100644 test/test_settings_portal_all_request_patch.py create mode 100644 test/test_settings_portal_all_response_mixin.py create mode 100644 test/test_settings_portal_api.py create mode 100644 test/test_settings_portal_category.py create mode 100644 test/test_settings_portal_category_api.py create mode 100644 test/test_settings_portal_category_list.py create mode 100644 test/test_settings_portal_category_list_embedded.py create mode 100644 test/test_settings_portal_category_request.py create mode 100644 test/test_settings_portal_category_request_patch.py create mode 100644 test/test_settings_portal_category_response_mixin.py create mode 100644 test/test_settings_portal_entry.py create mode 100644 test/test_settings_portal_entry_api.py create mode 100644 test/test_settings_portal_entry_list.py create mode 100644 test/test_settings_portal_entry_list_embedded.py create mode 100644 test/test_settings_portal_entry_request.py create mode 100644 test/test_settings_portal_entry_request_patch.py create mode 100644 test/test_settings_portal_entry_response_mixin.py create mode 100644 test/test_settings_portal_list.py create mode 100644 test/test_settings_portal_list_embedded.py create mode 100644 test/test_settings_portal_request.py create mode 100644 test/test_settings_portal_request_patch.py create mode 100644 test/test_settings_portal_response_mixin.py create mode 100644 test/test_settings_printermodel.py create mode 100644 test/test_settings_printermodel_api.py create mode 100644 test/test_settings_printermodel_list.py create mode 100644 test/test_settings_printermodel_list_embedded.py create mode 100644 test/test_settings_printermodel_request.py create mode 100644 test/test_settings_printermodel_request_patch.py create mode 100644 test/test_settings_printermodel_response_mixin.py create mode 100644 test/test_settings_printeruri.py create mode 100644 test/test_settings_printeruri_api.py create mode 100644 test/test_settings_printeruri_list.py create mode 100644 test/test_settings_printeruri_list_embedded.py create mode 100644 test/test_settings_printeruri_request.py create mode 100644 test/test_settings_printeruri_request_patch.py create mode 100644 test/test_settings_printeruri_response_mixin.py create mode 100644 test/test_settings_prohibited_username.py create mode 100644 test/test_settings_prohibited_username_api.py create mode 100644 test/test_settings_prohibited_username_list.py create mode 100644 test/test_settings_prohibited_username_list_embedded.py create mode 100644 test/test_settings_prohibited_username_request.py create mode 100644 test/test_settings_prohibited_username_request_patch.py create mode 100644 test/test_settings_prohibited_username_response_mixin.py create mode 100644 test/test_settings_sambaconfig.py create mode 100644 test/test_settings_sambaconfig_api.py create mode 100644 test/test_settings_sambaconfig_list.py create mode 100644 test/test_settings_sambaconfig_list_embedded.py create mode 100644 test/test_settings_sambaconfig_request.py create mode 100644 test/test_settings_sambaconfig_request_patch.py create mode 100644 test/test_settings_sambaconfig_response_mixin.py create mode 100644 test/test_settings_sambadomain.py create mode 100644 test/test_settings_sambadomain_api.py create mode 100644 test/test_settings_sambadomain_list.py create mode 100644 test/test_settings_sambadomain_list_embedded.py create mode 100644 test/test_settings_sambadomain_request.py create mode 100644 test/test_settings_sambadomain_request_patch.py create mode 100644 test/test_settings_sambadomain_response_mixin.py create mode 100644 test/test_settings_service.py create mode 100644 test/test_settings_service_api.py create mode 100644 test/test_settings_service_list.py create mode 100644 test/test_settings_service_list_embedded.py create mode 100644 test/test_settings_service_request.py create mode 100644 test/test_settings_service_request_patch.py create mode 100644 test/test_settings_service_response_mixin.py create mode 100644 test/test_settings_settings.py create mode 100644 test/test_settings_settings_api.py create mode 100644 test/test_settings_settings_list.py create mode 100644 test/test_settings_settings_list_embedded.py create mode 100644 test/test_settings_settings_request.py create mode 100644 test/test_settings_settings_request_patch.py create mode 100644 test/test_settings_settings_response_mixin.py create mode 100644 test/test_settings_syntax.py create mode 100644 test/test_settings_syntax_api.py create mode 100644 test/test_settings_syntax_list.py create mode 100644 test/test_settings_syntax_list_embedded.py create mode 100644 test/test_settings_syntax_request.py create mode 100644 test/test_settings_syntax_request_patch.py create mode 100644 test/test_settings_syntax_response_mixin.py create mode 100644 test/test_settings_udm_hook.py create mode 100644 test/test_settings_udm_hook_api.py create mode 100644 test/test_settings_udm_hook_list.py create mode 100644 test/test_settings_udm_hook_list_embedded.py create mode 100644 test/test_settings_udm_hook_request.py create mode 100644 test/test_settings_udm_hook_request_patch.py create mode 100644 test/test_settings_udm_hook_response_mixin.py create mode 100644 test/test_settings_udm_module.py create mode 100644 test/test_settings_udm_module_api.py create mode 100644 test/test_settings_udm_module_list.py create mode 100644 test/test_settings_udm_module_list_embedded.py create mode 100644 test/test_settings_udm_module_request.py create mode 100644 test/test_settings_udm_module_request_patch.py create mode 100644 test/test_settings_udm_module_response_mixin.py create mode 100644 test/test_settings_udm_syntax.py create mode 100644 test/test_settings_udm_syntax_api.py create mode 100644 test/test_settings_udm_syntax_list.py create mode 100644 test/test_settings_udm_syntax_list_embedded.py create mode 100644 test/test_settings_udm_syntax_request.py create mode 100644 test/test_settings_udm_syntax_request_patch.py create mode 100644 test/test_settings_udm_syntax_response_mixin.py create mode 100644 test/test_settings_umc_operationset.py create mode 100644 test/test_settings_umc_operationset_api.py create mode 100644 test/test_settings_umc_operationset_list.py create mode 100644 test/test_settings_umc_operationset_list_embedded.py create mode 100644 test/test_settings_umc_operationset_request.py create mode 100644 test/test_settings_umc_operationset_request_patch.py create mode 100644 test/test_settings_umc_operationset_response_mixin.py create mode 100644 test/test_settings_usertemplate.py create mode 100644 test/test_settings_usertemplate_api.py create mode 100644 test/test_settings_usertemplate_list.py create mode 100644 test/test_settings_usertemplate_list_embedded.py create mode 100644 test/test_settings_usertemplate_request.py create mode 100644 test/test_settings_usertemplate_request_patch.py create mode 100644 test/test_settings_usertemplate_response_mixin.py create mode 100644 test/test_shares_print.py create mode 100644 test/test_shares_print_api.py create mode 100644 test/test_shares_print_list.py create mode 100644 test/test_shares_print_list_embedded.py create mode 100644 test/test_shares_print_request.py create mode 100644 test/test_shares_print_request_patch.py create mode 100644 test/test_shares_print_response_mixin.py create mode 100644 test/test_shares_printer.py create mode 100644 test/test_shares_printer_api.py create mode 100644 test/test_shares_printer_list.py create mode 100644 test/test_shares_printer_list_embedded.py create mode 100644 test/test_shares_printer_request.py create mode 100644 test/test_shares_printer_request_patch.py create mode 100644 test/test_shares_printer_response_mixin.py create mode 100644 test/test_shares_printergroup.py create mode 100644 test/test_shares_printergroup_api.py create mode 100644 test/test_shares_printergroup_list.py create mode 100644 test/test_shares_printergroup_list_embedded.py create mode 100644 test/test_shares_printergroup_request.py create mode 100644 test/test_shares_printergroup_request_patch.py create mode 100644 test/test_shares_printergroup_response_mixin.py create mode 100644 test/test_shares_share.py create mode 100644 test/test_shares_share_api.py create mode 100644 test/test_shares_share_list.py create mode 100644 test/test_shares_share_list_embedded.py create mode 100644 test/test_shares_share_options.py create mode 100644 test/test_shares_share_policies.py create mode 100644 test/test_shares_share_request.py create mode 100644 test/test_shares_share_request_patch.py create mode 100644 test/test_shares_share_response_mixin.py create mode 100644 test/test_users_contact.py create mode 100644 test/test_users_contact_api.py create mode 100644 test/test_users_contact_list.py create mode 100644 test/test_users_contact_list_embedded.py create mode 100644 test/test_users_contact_request.py create mode 100644 test/test_users_contact_request_patch.py create mode 100644 test/test_users_contact_response_mixin.py create mode 100644 test/test_users_ldap.py create mode 100644 test/test_users_ldap_api.py create mode 100644 test/test_users_ldap_list.py create mode 100644 test/test_users_ldap_list_embedded.py create mode 100644 test/test_users_ldap_options.py create mode 100644 test/test_users_ldap_policies.py create mode 100644 test/test_users_ldap_request.py create mode 100644 test/test_users_ldap_request_patch.py create mode 100644 test/test_users_ldap_response_mixin.py create mode 100644 test/test_users_passwd.py create mode 100644 test/test_users_passwd_api.py create mode 100644 test/test_users_passwd_list.py create mode 100644 test/test_users_passwd_list_embedded.py create mode 100644 test/test_users_passwd_request.py create mode 100644 test/test_users_passwd_request_patch.py create mode 100644 test/test_users_passwd_response_mixin.py create mode 100644 test/test_users_self.py create mode 100644 test/test_users_self_api.py create mode 100644 test/test_users_self_list.py create mode 100644 test/test_users_self_list_embedded.py create mode 100644 test/test_users_self_options.py create mode 100644 test/test_users_self_request.py create mode 100644 test/test_users_self_request_patch.py create mode 100644 test/test_users_self_response_mixin.py create mode 100644 test/test_users_user.py create mode 100644 test/test_users_user_api.py create mode 100644 test/test_users_user_list.py create mode 100644 test/test_users_user_list_embedded.py create mode 100644 test/test_users_user_options.py create mode 100644 test/test_users_user_policies.py create mode 100644 test/test_users_user_request.py create mode 100644 test/test_users_user_request_patch.py create mode 100644 test/test_users_user_response_mixin.py create mode 100644 test/test_uvmm_cloudconnection.py create mode 100644 test/test_uvmm_cloudconnection_api.py create mode 100644 test/test_uvmm_cloudconnection_list.py create mode 100644 test/test_uvmm_cloudconnection_list_embedded.py create mode 100644 test/test_uvmm_cloudconnection_request.py create mode 100644 test/test_uvmm_cloudconnection_request_patch.py create mode 100644 test/test_uvmm_cloudconnection_response_mixin.py create mode 100644 test/test_uvmm_cloudtype.py create mode 100644 test/test_uvmm_cloudtype_api.py create mode 100644 test/test_uvmm_cloudtype_list.py create mode 100644 test/test_uvmm_cloudtype_list_embedded.py create mode 100644 test/test_uvmm_cloudtype_request.py create mode 100644 test/test_uvmm_cloudtype_request_patch.py create mode 100644 test/test_uvmm_cloudtype_response_mixin.py create mode 100644 test/test_uvmm_info.py create mode 100644 test/test_uvmm_info_api.py create mode 100644 test/test_uvmm_info_list.py create mode 100644 test/test_uvmm_info_list_embedded.py create mode 100644 test/test_uvmm_info_request.py create mode 100644 test/test_uvmm_info_request_patch.py create mode 100644 test/test_uvmm_info_response_mixin.py create mode 100644 test/test_uvmm_profile.py create mode 100644 test/test_uvmm_profile_api.py create mode 100644 test/test_uvmm_profile_list.py create mode 100644 test/test_uvmm_profile_list_embedded.py create mode 100644 test/test_uvmm_profile_request.py create mode 100644 test/test_uvmm_profile_request_patch.py create mode 100644 test/test_uvmm_profile_response_mixin.py create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..43995bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,66 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.venv/ +.python-version +.pytest_cache + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..136f253 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +# ref: https://docs.gitlab.com/ee/ci/README.html + +stages: + - test + +.nosetest: + stage: test + script: + - pip install -r requirements.txt + - pip install -r test-requirements.txt + - pytest --cov=openapi_client_udm + +nosetest-2.7: + extends: .nosetest + image: python:2.7-alpine +nosetest-3.3: + extends: .nosetest + image: python:3.3-alpine +nosetest-3.4: + extends: .nosetest + image: python:3.4-alpine +nosetest-3.5: + extends: .nosetest + image: python:3.5-alpine +nosetest-3.6: + extends: .nosetest + image: python:3.6-alpine +nosetest-3.7: + extends: .nosetest + image: python:3.7-alpine +nosetest-3.8: + extends: .nosetest + image: python:3.8-alpine diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 0000000..a56bac9 --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,3004 @@ +.gitignore +.gitlab-ci.yml +.openapi-generator-ignore +.travis.yml +README.md +docs/AppcenterApp.md +docs/AppcenterAppApi.md +docs/AppcenterAppList.md +docs/AppcenterAppListEmbedded.md +docs/AppcenterAppPolicies.md +docs/AppcenterAppRequest.md +docs/AppcenterAppRequestAllOf.md +docs/AppcenterAppRequestPatch.md +docs/AppcenterAppResponseMixin.md +docs/ComputersComputer.md +docs/ComputersComputerApi.md +docs/ComputersComputerList.md +docs/ComputersComputerListEmbedded.md +docs/ComputersComputerRequest.md +docs/ComputersComputerRequestPatch.md +docs/ComputersComputerResponseMixin.md +docs/ComputersDomaincontrollerBackup.md +docs/ComputersDomaincontrollerBackupApi.md +docs/ComputersDomaincontrollerBackupList.md +docs/ComputersDomaincontrollerBackupListEmbedded.md +docs/ComputersDomaincontrollerBackupOptions.md +docs/ComputersDomaincontrollerBackupPolicies.md +docs/ComputersDomaincontrollerBackupRequest.md +docs/ComputersDomaincontrollerBackupRequestPatch.md +docs/ComputersDomaincontrollerBackupResponseMixin.md +docs/ComputersDomaincontrollerMaster.md +docs/ComputersDomaincontrollerMasterApi.md +docs/ComputersDomaincontrollerMasterList.md +docs/ComputersDomaincontrollerMasterListEmbedded.md +docs/ComputersDomaincontrollerMasterOptions.md +docs/ComputersDomaincontrollerMasterPolicies.md +docs/ComputersDomaincontrollerMasterRequest.md +docs/ComputersDomaincontrollerMasterRequestPatch.md +docs/ComputersDomaincontrollerMasterResponseMixin.md +docs/ComputersDomaincontrollerSlave.md +docs/ComputersDomaincontrollerSlaveApi.md +docs/ComputersDomaincontrollerSlaveList.md +docs/ComputersDomaincontrollerSlaveListEmbedded.md +docs/ComputersDomaincontrollerSlaveOptions.md +docs/ComputersDomaincontrollerSlavePolicies.md +docs/ComputersDomaincontrollerSlaveRequest.md +docs/ComputersDomaincontrollerSlaveRequestPatch.md +docs/ComputersDomaincontrollerSlaveResponseMixin.md +docs/ComputersIpmanagedclient.md +docs/ComputersIpmanagedclientApi.md +docs/ComputersIpmanagedclientList.md +docs/ComputersIpmanagedclientListEmbedded.md +docs/ComputersIpmanagedclientOptions.md +docs/ComputersIpmanagedclientRequest.md +docs/ComputersIpmanagedclientRequestPatch.md +docs/ComputersIpmanagedclientResponseMixin.md +docs/ComputersLinux.md +docs/ComputersLinuxApi.md +docs/ComputersLinuxList.md +docs/ComputersLinuxListEmbedded.md +docs/ComputersLinuxOptions.md +docs/ComputersLinuxRequest.md +docs/ComputersLinuxRequestPatch.md +docs/ComputersLinuxResponseMixin.md +docs/ComputersMacos.md +docs/ComputersMacosApi.md +docs/ComputersMacosList.md +docs/ComputersMacosListEmbedded.md +docs/ComputersMacosOptions.md +docs/ComputersMacosRequest.md +docs/ComputersMacosRequestPatch.md +docs/ComputersMacosResponseMixin.md +docs/ComputersMemberserver.md +docs/ComputersMemberserverApi.md +docs/ComputersMemberserverList.md +docs/ComputersMemberserverListEmbedded.md +docs/ComputersMemberserverOptions.md +docs/ComputersMemberserverPolicies.md +docs/ComputersMemberserverRequest.md +docs/ComputersMemberserverRequestPatch.md +docs/ComputersMemberserverResponseMixin.md +docs/ComputersTrustaccount.md +docs/ComputersTrustaccountApi.md +docs/ComputersTrustaccountList.md +docs/ComputersTrustaccountListEmbedded.md +docs/ComputersTrustaccountOptions.md +docs/ComputersTrustaccountRequest.md +docs/ComputersTrustaccountRequestPatch.md +docs/ComputersTrustaccountResponseMixin.md +docs/ComputersUbuntu.md +docs/ComputersUbuntuApi.md +docs/ComputersUbuntuList.md +docs/ComputersUbuntuListEmbedded.md +docs/ComputersUbuntuOptions.md +docs/ComputersUbuntuRequest.md +docs/ComputersUbuntuRequestPatch.md +docs/ComputersUbuntuResponseMixin.md +docs/ComputersWindows.md +docs/ComputersWindowsApi.md +docs/ComputersWindowsDomaincontroller.md +docs/ComputersWindowsDomaincontrollerApi.md +docs/ComputersWindowsDomaincontrollerList.md +docs/ComputersWindowsDomaincontrollerListEmbedded.md +docs/ComputersWindowsDomaincontrollerOptions.md +docs/ComputersWindowsDomaincontrollerRequest.md +docs/ComputersWindowsDomaincontrollerRequestPatch.md +docs/ComputersWindowsDomaincontrollerResponseMixin.md +docs/ComputersWindowsList.md +docs/ComputersWindowsListEmbedded.md +docs/ComputersWindowsOptions.md +docs/ComputersWindowsRequest.md +docs/ComputersWindowsRequestPatch.md +docs/ComputersWindowsResponseMixin.md +docs/ContainerCn.md +docs/ContainerCnApi.md +docs/ContainerCnList.md +docs/ContainerCnListEmbedded.md +docs/ContainerCnPolicies.md +docs/ContainerCnRequest.md +docs/ContainerCnRequestPatch.md +docs/ContainerCnResponseMixin.md +docs/ContainerDc.md +docs/ContainerDcApi.md +docs/ContainerDcList.md +docs/ContainerDcListEmbedded.md +docs/ContainerDcOptions.md +docs/ContainerDcPolicies.md +docs/ContainerDcRequest.md +docs/ContainerDcRequestPatch.md +docs/ContainerDcResponseMixin.md +docs/ContainerMsgpo.md +docs/ContainerMsgpoApi.md +docs/ContainerMsgpoList.md +docs/ContainerMsgpoListEmbedded.md +docs/ContainerMsgpoPolicies.md +docs/ContainerMsgpoRequest.md +docs/ContainerMsgpoRequestPatch.md +docs/ContainerMsgpoResponseMixin.md +docs/ContainerOu.md +docs/ContainerOuApi.md +docs/ContainerOuList.md +docs/ContainerOuListEmbedded.md +docs/ContainerOuPolicies.md +docs/ContainerOuRequest.md +docs/ContainerOuRequestPatch.md +docs/ContainerOuResponseMixin.md +docs/DhcpDhcp.md +docs/DhcpDhcpApi.md +docs/DhcpDhcpList.md +docs/DhcpDhcpListEmbedded.md +docs/DhcpDhcpRequest.md +docs/DhcpDhcpRequestPatch.md +docs/DhcpDhcpResponseMixin.md +docs/DhcpHost.md +docs/DhcpHostApi.md +docs/DhcpHostList.md +docs/DhcpHostListEmbedded.md +docs/DhcpHostOptions.md +docs/DhcpHostPolicies.md +docs/DhcpHostRequest.md +docs/DhcpHostRequestPatch.md +docs/DhcpHostResponseMixin.md +docs/DhcpPool.md +docs/DhcpPoolApi.md +docs/DhcpPoolList.md +docs/DhcpPoolListEmbedded.md +docs/DhcpPoolOptions.md +docs/DhcpPoolPolicies.md +docs/DhcpPoolRequest.md +docs/DhcpPoolRequestPatch.md +docs/DhcpPoolResponseMixin.md +docs/DhcpServer.md +docs/DhcpServerApi.md +docs/DhcpServerList.md +docs/DhcpServerListEmbedded.md +docs/DhcpServerRequest.md +docs/DhcpServerRequestPatch.md +docs/DhcpServerResponseMixin.md +docs/DhcpService.md +docs/DhcpServiceApi.md +docs/DhcpServiceList.md +docs/DhcpServiceListEmbedded.md +docs/DhcpServiceOptions.md +docs/DhcpServicePolicies.md +docs/DhcpServiceRequest.md +docs/DhcpServiceRequestPatch.md +docs/DhcpServiceResponseMixin.md +docs/DhcpShared.md +docs/DhcpSharedApi.md +docs/DhcpSharedList.md +docs/DhcpSharedListEmbedded.md +docs/DhcpSharedOptions.md +docs/DhcpSharedPolicies.md +docs/DhcpSharedRequest.md +docs/DhcpSharedRequestPatch.md +docs/DhcpSharedResponseMixin.md +docs/DhcpSharedsubnet.md +docs/DhcpSharedsubnetApi.md +docs/DhcpSharedsubnetList.md +docs/DhcpSharedsubnetListEmbedded.md +docs/DhcpSharedsubnetOptions.md +docs/DhcpSharedsubnetPolicies.md +docs/DhcpSharedsubnetRequest.md +docs/DhcpSharedsubnetRequestPatch.md +docs/DhcpSharedsubnetResponseMixin.md +docs/DhcpSubnet.md +docs/DhcpSubnetApi.md +docs/DhcpSubnetList.md +docs/DhcpSubnetListEmbedded.md +docs/DhcpSubnetOptions.md +docs/DhcpSubnetPolicies.md +docs/DhcpSubnetRequest.md +docs/DhcpSubnetRequestPatch.md +docs/DhcpSubnetResponseMixin.md +docs/DnsAlias.md +docs/DnsAliasApi.md +docs/DnsAliasList.md +docs/DnsAliasListEmbedded.md +docs/DnsAliasRequest.md +docs/DnsAliasRequestPatch.md +docs/DnsAliasResponseMixin.md +docs/DnsDns.md +docs/DnsDnsApi.md +docs/DnsDnsList.md +docs/DnsDnsListEmbedded.md +docs/DnsDnsRequest.md +docs/DnsDnsRequestPatch.md +docs/DnsDnsResponseMixin.md +docs/DnsForwardZone.md +docs/DnsForwardZoneApi.md +docs/DnsForwardZoneList.md +docs/DnsForwardZoneListEmbedded.md +docs/DnsForwardZonePolicies.md +docs/DnsForwardZoneRequest.md +docs/DnsForwardZoneRequestPatch.md +docs/DnsForwardZoneResponseMixin.md +docs/DnsHostRecord.md +docs/DnsHostRecordApi.md +docs/DnsHostRecordList.md +docs/DnsHostRecordListEmbedded.md +docs/DnsHostRecordRequest.md +docs/DnsHostRecordRequestPatch.md +docs/DnsHostRecordResponseMixin.md +docs/DnsNsRecord.md +docs/DnsNsRecordApi.md +docs/DnsNsRecordList.md +docs/DnsNsRecordListEmbedded.md +docs/DnsNsRecordRequest.md +docs/DnsNsRecordRequestPatch.md +docs/DnsNsRecordResponseMixin.md +docs/DnsPtrRecord.md +docs/DnsPtrRecordApi.md +docs/DnsPtrRecordList.md +docs/DnsPtrRecordListEmbedded.md +docs/DnsPtrRecordRequest.md +docs/DnsPtrRecordRequestPatch.md +docs/DnsPtrRecordResponseMixin.md +docs/DnsReverseZone.md +docs/DnsReverseZoneApi.md +docs/DnsReverseZoneList.md +docs/DnsReverseZoneListEmbedded.md +docs/DnsReverseZonePolicies.md +docs/DnsReverseZoneRequest.md +docs/DnsReverseZoneRequestPatch.md +docs/DnsReverseZoneResponseMixin.md +docs/DnsSrvRecord.md +docs/DnsSrvRecordApi.md +docs/DnsSrvRecordList.md +docs/DnsSrvRecordListEmbedded.md +docs/DnsSrvRecordRequest.md +docs/DnsSrvRecordRequestPatch.md +docs/DnsSrvRecordResponseMixin.md +docs/DnsTxtRecord.md +docs/DnsTxtRecordApi.md +docs/DnsTxtRecordList.md +docs/DnsTxtRecordListEmbedded.md +docs/DnsTxtRecordRequest.md +docs/DnsTxtRecordRequestPatch.md +docs/DnsTxtRecordResponseMixin.md +docs/EmbeddedError.md +docs/GroupsGroup.md +docs/GroupsGroupApi.md +docs/GroupsGroupList.md +docs/GroupsGroupListEmbedded.md +docs/GroupsGroupOptions.md +docs/GroupsGroupPolicies.md +docs/GroupsGroupRequest.md +docs/GroupsGroupRequestPatch.md +docs/GroupsGroupResponseMixin.md +docs/InlineResponse201.md +docs/KerberosKdcentry.md +docs/KerberosKdcentryApi.md +docs/KerberosKdcentryList.md +docs/KerberosKdcentryListEmbedded.md +docs/KerberosKdcentryRequest.md +docs/KerberosKdcentryRequestPatch.md +docs/KerberosKdcentryResponseMixin.md +docs/Links.md +docs/MailDomain.md +docs/MailDomainApi.md +docs/MailDomainList.md +docs/MailDomainListEmbedded.md +docs/MailDomainRequest.md +docs/MailDomainRequestPatch.md +docs/MailDomainResponseMixin.md +docs/MailFolder.md +docs/MailFolderApi.md +docs/MailFolderList.md +docs/MailFolderListEmbedded.md +docs/MailFolderRequest.md +docs/MailFolderRequestPatch.md +docs/MailFolderResponseMixin.md +docs/MailLists.md +docs/MailListsApi.md +docs/MailListsList.md +docs/MailListsListEmbedded.md +docs/MailListsRequest.md +docs/MailListsRequestPatch.md +docs/MailListsResponseMixin.md +docs/MailMail.md +docs/MailMailApi.md +docs/MailMailList.md +docs/MailMailListEmbedded.md +docs/MailMailRequest.md +docs/MailMailRequestPatch.md +docs/MailMailResponseMixin.md +docs/MonitoringAlert.md +docs/MonitoringAlertApi.md +docs/MonitoringAlertList.md +docs/MonitoringAlertListEmbedded.md +docs/MonitoringAlertRequest.md +docs/MonitoringAlertRequestPatch.md +docs/MonitoringAlertResponseMixin.md +docs/MsDomainpolicy.md +docs/MsDomainpolicyApi.md +docs/MsDomainpolicyList.md +docs/MsDomainpolicyListEmbedded.md +docs/MsDomainpolicyPolicies.md +docs/MsDomainpolicyRequest.md +docs/MsDomainpolicyRequestPatch.md +docs/MsDomainpolicyResponseMixin.md +docs/MsGpipsecFilter.md +docs/MsGpipsecFilterApi.md +docs/MsGpipsecFilterList.md +docs/MsGpipsecFilterListEmbedded.md +docs/MsGpipsecFilterPolicies.md +docs/MsGpipsecFilterRequest.md +docs/MsGpipsecFilterRequestPatch.md +docs/MsGpipsecFilterResponseMixin.md +docs/MsGpipsecIsakmpPolicy.md +docs/MsGpipsecIsakmpPolicyApi.md +docs/MsGpipsecIsakmpPolicyList.md +docs/MsGpipsecIsakmpPolicyListEmbedded.md +docs/MsGpipsecIsakmpPolicyPolicies.md +docs/MsGpipsecIsakmpPolicyRequest.md +docs/MsGpipsecIsakmpPolicyRequestPatch.md +docs/MsGpipsecIsakmpPolicyResponseMixin.md +docs/MsGpipsecNegotiationPolicy.md +docs/MsGpipsecNegotiationPolicyApi.md +docs/MsGpipsecNegotiationPolicyList.md +docs/MsGpipsecNegotiationPolicyListEmbedded.md +docs/MsGpipsecNegotiationPolicyPolicies.md +docs/MsGpipsecNegotiationPolicyRequest.md +docs/MsGpipsecNegotiationPolicyRequestPatch.md +docs/MsGpipsecNegotiationPolicyResponseMixin.md +docs/MsGpipsecNfa.md +docs/MsGpipsecNfaApi.md +docs/MsGpipsecNfaList.md +docs/MsGpipsecNfaListEmbedded.md +docs/MsGpipsecNfaPolicies.md +docs/MsGpipsecNfaRequest.md +docs/MsGpipsecNfaRequestPatch.md +docs/MsGpipsecNfaResponseMixin.md +docs/MsGpipsecPolicy.md +docs/MsGpipsecPolicyApi.md +docs/MsGpipsecPolicyList.md +docs/MsGpipsecPolicyListEmbedded.md +docs/MsGpipsecPolicyPolicies.md +docs/MsGpipsecPolicyRequest.md +docs/MsGpipsecPolicyRequestPatch.md +docs/MsGpipsecPolicyResponseMixin.md +docs/MsGpsiCategoryRegistration.md +docs/MsGpsiCategoryRegistrationApi.md +docs/MsGpsiCategoryRegistrationList.md +docs/MsGpsiCategoryRegistrationListEmbedded.md +docs/MsGpsiCategoryRegistrationPolicies.md +docs/MsGpsiCategoryRegistrationRequest.md +docs/MsGpsiCategoryRegistrationRequestPatch.md +docs/MsGpsiCategoryRegistrationResponseMixin.md +docs/MsGpsiClassStore.md +docs/MsGpsiClassStoreApi.md +docs/MsGpsiClassStoreList.md +docs/MsGpsiClassStoreListEmbedded.md +docs/MsGpsiClassStorePolicies.md +docs/MsGpsiClassStoreRequest.md +docs/MsGpsiClassStoreRequestPatch.md +docs/MsGpsiClassStoreResponseMixin.md +docs/MsGpsiPackageRegistration.md +docs/MsGpsiPackageRegistrationApi.md +docs/MsGpsiPackageRegistrationList.md +docs/MsGpsiPackageRegistrationListEmbedded.md +docs/MsGpsiPackageRegistrationPolicies.md +docs/MsGpsiPackageRegistrationRequest.md +docs/MsGpsiPackageRegistrationRequestPatch.md +docs/MsGpsiPackageRegistrationResponseMixin.md +docs/MsGpwlWired.md +docs/MsGpwlWiredApi.md +docs/MsGpwlWiredList.md +docs/MsGpwlWiredListEmbedded.md +docs/MsGpwlWiredPolicies.md +docs/MsGpwlWiredRequest.md +docs/MsGpwlWiredRequestPatch.md +docs/MsGpwlWiredResponseMixin.md +docs/MsGpwlWireless.md +docs/MsGpwlWirelessApi.md +docs/MsGpwlWirelessBlob.md +docs/MsGpwlWirelessBlobApi.md +docs/MsGpwlWirelessBlobList.md +docs/MsGpwlWirelessBlobListEmbedded.md +docs/MsGpwlWirelessBlobPolicies.md +docs/MsGpwlWirelessBlobRequest.md +docs/MsGpwlWirelessBlobRequestPatch.md +docs/MsGpwlWirelessBlobResponseMixin.md +docs/MsGpwlWirelessList.md +docs/MsGpwlWirelessListEmbedded.md +docs/MsGpwlWirelessPolicies.md +docs/MsGpwlWirelessRequest.md +docs/MsGpwlWirelessRequestPatch.md +docs/MsGpwlWirelessResponseMixin.md +docs/NagiosNagios.md +docs/NagiosNagiosApi.md +docs/NagiosNagiosList.md +docs/NagiosNagiosListEmbedded.md +docs/NagiosNagiosRequest.md +docs/NagiosNagiosRequestPatch.md +docs/NagiosNagiosResponseMixin.md +docs/NagiosService.md +docs/NagiosServiceApi.md +docs/NagiosServiceList.md +docs/NagiosServiceListEmbedded.md +docs/NagiosServiceRequest.md +docs/NagiosServiceRequestPatch.md +docs/NagiosServiceResponseMixin.md +docs/NagiosTimeperiod.md +docs/NagiosTimeperiodApi.md +docs/NagiosTimeperiodList.md +docs/NagiosTimeperiodListEmbedded.md +docs/NagiosTimeperiodRequest.md +docs/NagiosTimeperiodRequestPatch.md +docs/NagiosTimeperiodResponseMixin.md +docs/NetworksNetwork.md +docs/NetworksNetworkApi.md +docs/NetworksNetworkList.md +docs/NetworksNetworkListEmbedded.md +docs/NetworksNetworkRequest.md +docs/NetworksNetworkRequestPatch.md +docs/NetworksNetworkResponseMixin.md +docs/PoliciesAdminContainer.md +docs/PoliciesAdminContainerApi.md +docs/PoliciesAdminContainerList.md +docs/PoliciesAdminContainerListEmbedded.md +docs/PoliciesAdminContainerRequest.md +docs/PoliciesAdminContainerRequestPatch.md +docs/PoliciesAdminContainerResponseMixin.md +docs/PoliciesDesktop.md +docs/PoliciesDesktopApi.md +docs/PoliciesDesktopList.md +docs/PoliciesDesktopListEmbedded.md +docs/PoliciesDesktopRequest.md +docs/PoliciesDesktopRequestPatch.md +docs/PoliciesDesktopResponseMixin.md +docs/PoliciesDhcpBoot.md +docs/PoliciesDhcpBootApi.md +docs/PoliciesDhcpBootList.md +docs/PoliciesDhcpBootListEmbedded.md +docs/PoliciesDhcpBootRequest.md +docs/PoliciesDhcpBootRequestPatch.md +docs/PoliciesDhcpBootResponseMixin.md +docs/PoliciesDhcpDns.md +docs/PoliciesDhcpDnsApi.md +docs/PoliciesDhcpDnsList.md +docs/PoliciesDhcpDnsListEmbedded.md +docs/PoliciesDhcpDnsRequest.md +docs/PoliciesDhcpDnsRequestPatch.md +docs/PoliciesDhcpDnsResponseMixin.md +docs/PoliciesDhcpDnsupdate.md +docs/PoliciesDhcpDnsupdateApi.md +docs/PoliciesDhcpDnsupdateList.md +docs/PoliciesDhcpDnsupdateListEmbedded.md +docs/PoliciesDhcpDnsupdateRequest.md +docs/PoliciesDhcpDnsupdateRequestPatch.md +docs/PoliciesDhcpDnsupdateResponseMixin.md +docs/PoliciesDhcpLeasetime.md +docs/PoliciesDhcpLeasetimeApi.md +docs/PoliciesDhcpLeasetimeList.md +docs/PoliciesDhcpLeasetimeListEmbedded.md +docs/PoliciesDhcpLeasetimeRequest.md +docs/PoliciesDhcpLeasetimeRequestPatch.md +docs/PoliciesDhcpLeasetimeResponseMixin.md +docs/PoliciesDhcpNetbios.md +docs/PoliciesDhcpNetbiosApi.md +docs/PoliciesDhcpNetbiosList.md +docs/PoliciesDhcpNetbiosListEmbedded.md +docs/PoliciesDhcpNetbiosRequest.md +docs/PoliciesDhcpNetbiosRequestPatch.md +docs/PoliciesDhcpNetbiosResponseMixin.md +docs/PoliciesDhcpRouting.md +docs/PoliciesDhcpRoutingApi.md +docs/PoliciesDhcpRoutingList.md +docs/PoliciesDhcpRoutingListEmbedded.md +docs/PoliciesDhcpRoutingRequest.md +docs/PoliciesDhcpRoutingRequestPatch.md +docs/PoliciesDhcpRoutingResponseMixin.md +docs/PoliciesDhcpScope.md +docs/PoliciesDhcpScopeApi.md +docs/PoliciesDhcpScopeList.md +docs/PoliciesDhcpScopeListEmbedded.md +docs/PoliciesDhcpScopeRequest.md +docs/PoliciesDhcpScopeRequestPatch.md +docs/PoliciesDhcpScopeResponseMixin.md +docs/PoliciesDhcpStatements.md +docs/PoliciesDhcpStatementsApi.md +docs/PoliciesDhcpStatementsList.md +docs/PoliciesDhcpStatementsListEmbedded.md +docs/PoliciesDhcpStatementsRequest.md +docs/PoliciesDhcpStatementsRequestPatch.md +docs/PoliciesDhcpStatementsResponseMixin.md +docs/PoliciesLdapserver.md +docs/PoliciesLdapserverApi.md +docs/PoliciesLdapserverList.md +docs/PoliciesLdapserverListEmbedded.md +docs/PoliciesLdapserverRequest.md +docs/PoliciesLdapserverRequestPatch.md +docs/PoliciesLdapserverResponseMixin.md +docs/PoliciesMaintenance.md +docs/PoliciesMaintenanceApi.md +docs/PoliciesMaintenanceList.md +docs/PoliciesMaintenanceListEmbedded.md +docs/PoliciesMaintenanceRequest.md +docs/PoliciesMaintenanceRequestPatch.md +docs/PoliciesMaintenanceResponseMixin.md +docs/PoliciesMasterpackages.md +docs/PoliciesMasterpackagesApi.md +docs/PoliciesMasterpackagesList.md +docs/PoliciesMasterpackagesListEmbedded.md +docs/PoliciesMasterpackagesRequest.md +docs/PoliciesMasterpackagesRequestPatch.md +docs/PoliciesMasterpackagesResponseMixin.md +docs/PoliciesMemberpackages.md +docs/PoliciesMemberpackagesApi.md +docs/PoliciesMemberpackagesList.md +docs/PoliciesMemberpackagesListEmbedded.md +docs/PoliciesMemberpackagesRequest.md +docs/PoliciesMemberpackagesRequestPatch.md +docs/PoliciesMemberpackagesResponseMixin.md +docs/PoliciesNfsmounts.md +docs/PoliciesNfsmountsApi.md +docs/PoliciesNfsmountsList.md +docs/PoliciesNfsmountsListEmbedded.md +docs/PoliciesNfsmountsRequest.md +docs/PoliciesNfsmountsRequestPatch.md +docs/PoliciesNfsmountsResponseMixin.md +docs/PoliciesPolicy.md +docs/PoliciesPolicyApi.md +docs/PoliciesPolicyList.md +docs/PoliciesPolicyListEmbedded.md +docs/PoliciesPolicyRequest.md +docs/PoliciesPolicyRequestPatch.md +docs/PoliciesPolicyResponseMixin.md +docs/PoliciesPrintserver.md +docs/PoliciesPrintserverApi.md +docs/PoliciesPrintserverList.md +docs/PoliciesPrintserverListEmbedded.md +docs/PoliciesPrintserverRequest.md +docs/PoliciesPrintserverRequestPatch.md +docs/PoliciesPrintserverResponseMixin.md +docs/PoliciesPwhistory.md +docs/PoliciesPwhistoryApi.md +docs/PoliciesPwhistoryList.md +docs/PoliciesPwhistoryListEmbedded.md +docs/PoliciesPwhistoryRequest.md +docs/PoliciesPwhistoryRequestPatch.md +docs/PoliciesPwhistoryResponseMixin.md +docs/PoliciesRegistry.md +docs/PoliciesRegistryApi.md +docs/PoliciesRegistryList.md +docs/PoliciesRegistryListEmbedded.md +docs/PoliciesRegistryRequest.md +docs/PoliciesRegistryRequestPatch.md +docs/PoliciesRegistryResponseMixin.md +docs/PoliciesRelease.md +docs/PoliciesReleaseApi.md +docs/PoliciesReleaseList.md +docs/PoliciesReleaseListEmbedded.md +docs/PoliciesReleaseRequest.md +docs/PoliciesReleaseRequestPatch.md +docs/PoliciesReleaseResponseMixin.md +docs/PoliciesRepositoryserver.md +docs/PoliciesRepositoryserverApi.md +docs/PoliciesRepositoryserverList.md +docs/PoliciesRepositoryserverListEmbedded.md +docs/PoliciesRepositoryserverRequest.md +docs/PoliciesRepositoryserverRequestPatch.md +docs/PoliciesRepositoryserverResponseMixin.md +docs/PoliciesRepositorysync.md +docs/PoliciesRepositorysyncApi.md +docs/PoliciesRepositorysyncList.md +docs/PoliciesRepositorysyncListEmbedded.md +docs/PoliciesRepositorysyncRequest.md +docs/PoliciesRepositorysyncRequestPatch.md +docs/PoliciesRepositorysyncResponseMixin.md +docs/PoliciesShareUserquota.md +docs/PoliciesShareUserquotaApi.md +docs/PoliciesShareUserquotaList.md +docs/PoliciesShareUserquotaListEmbedded.md +docs/PoliciesShareUserquotaRequest.md +docs/PoliciesShareUserquotaRequestPatch.md +docs/PoliciesShareUserquotaResponseMixin.md +docs/PoliciesSlavepackages.md +docs/PoliciesSlavepackagesApi.md +docs/PoliciesSlavepackagesList.md +docs/PoliciesSlavepackagesListEmbedded.md +docs/PoliciesSlavepackagesRequest.md +docs/PoliciesSlavepackagesRequestPatch.md +docs/PoliciesSlavepackagesResponseMixin.md +docs/PoliciesUmc.md +docs/PoliciesUmcApi.md +docs/PoliciesUmcList.md +docs/PoliciesUmcListEmbedded.md +docs/PoliciesUmcRequest.md +docs/PoliciesUmcRequestPatch.md +docs/PoliciesUmcResponseMixin.md +docs/PortalsAll.md +docs/PortalsAllApi.md +docs/PortalsAllList.md +docs/PortalsAllListEmbedded.md +docs/PortalsAllRequest.md +docs/PortalsAllRequestPatch.md +docs/PortalsAllResponseMixin.md +docs/PortalsAnnouncement.md +docs/PortalsAnnouncementApi.md +docs/PortalsAnnouncementList.md +docs/PortalsAnnouncementListEmbedded.md +docs/PortalsAnnouncementRequest.md +docs/PortalsAnnouncementRequestPatch.md +docs/PortalsAnnouncementResponseMixin.md +docs/PortalsCategory.md +docs/PortalsCategoryApi.md +docs/PortalsCategoryList.md +docs/PortalsCategoryListEmbedded.md +docs/PortalsCategoryRequest.md +docs/PortalsCategoryRequestPatch.md +docs/PortalsCategoryResponseMixin.md +docs/PortalsEntry.md +docs/PortalsEntryApi.md +docs/PortalsEntryList.md +docs/PortalsEntryListEmbedded.md +docs/PortalsEntryRequest.md +docs/PortalsEntryRequestPatch.md +docs/PortalsEntryResponseMixin.md +docs/PortalsFolder.md +docs/PortalsFolderApi.md +docs/PortalsFolderList.md +docs/PortalsFolderListEmbedded.md +docs/PortalsFolderRequest.md +docs/PortalsFolderRequestPatch.md +docs/PortalsFolderResponseMixin.md +docs/PortalsPortal.md +docs/PortalsPortalApi.md +docs/PortalsPortalList.md +docs/PortalsPortalListEmbedded.md +docs/PortalsPortalRequest.md +docs/PortalsPortalRequestPatch.md +docs/PortalsPortalResponseMixin.md +docs/SamlIdpconfig.md +docs/SamlIdpconfigApi.md +docs/SamlIdpconfigList.md +docs/SamlIdpconfigListEmbedded.md +docs/SamlIdpconfigRequest.md +docs/SamlIdpconfigRequestPatch.md +docs/SamlIdpconfigResponseMixin.md +docs/SamlServiceprovider.md +docs/SamlServiceproviderApi.md +docs/SamlServiceproviderList.md +docs/SamlServiceproviderListEmbedded.md +docs/SamlServiceproviderRequest.md +docs/SamlServiceproviderRequestPatch.md +docs/SamlServiceproviderResponseMixin.md +docs/SettingsCn.md +docs/SettingsCnApi.md +docs/SettingsCnList.md +docs/SettingsCnListEmbedded.md +docs/SettingsCnPolicies.md +docs/SettingsCnRequest.md +docs/SettingsCnRequestPatch.md +docs/SettingsCnResponseMixin.md +docs/SettingsData.md +docs/SettingsDataApi.md +docs/SettingsDataList.md +docs/SettingsDataListEmbedded.md +docs/SettingsDataRequest.md +docs/SettingsDataRequestPatch.md +docs/SettingsDataResponseMixin.md +docs/SettingsDefault.md +docs/SettingsDefaultApi.md +docs/SettingsDefaultList.md +docs/SettingsDefaultListEmbedded.md +docs/SettingsDefaultRequest.md +docs/SettingsDefaultRequestPatch.md +docs/SettingsDefaultResponseMixin.md +docs/SettingsDirectory.md +docs/SettingsDirectoryApi.md +docs/SettingsDirectoryList.md +docs/SettingsDirectoryListEmbedded.md +docs/SettingsDirectoryRequest.md +docs/SettingsDirectoryRequestPatch.md +docs/SettingsDirectoryResponseMixin.md +docs/SettingsExtendedAttribute.md +docs/SettingsExtendedAttributeApi.md +docs/SettingsExtendedAttributeList.md +docs/SettingsExtendedAttributeListEmbedded.md +docs/SettingsExtendedAttributeRequest.md +docs/SettingsExtendedAttributeRequestPatch.md +docs/SettingsExtendedAttributeResponseMixin.md +docs/SettingsExtendedOptions.md +docs/SettingsExtendedOptionsApi.md +docs/SettingsExtendedOptionsList.md +docs/SettingsExtendedOptionsListEmbedded.md +docs/SettingsExtendedOptionsRequest.md +docs/SettingsExtendedOptionsRequestPatch.md +docs/SettingsExtendedOptionsResponseMixin.md +docs/SettingsLdapacl.md +docs/SettingsLdapaclApi.md +docs/SettingsLdapaclList.md +docs/SettingsLdapaclListEmbedded.md +docs/SettingsLdapaclRequest.md +docs/SettingsLdapaclRequestPatch.md +docs/SettingsLdapaclResponseMixin.md +docs/SettingsLdapschema.md +docs/SettingsLdapschemaApi.md +docs/SettingsLdapschemaList.md +docs/SettingsLdapschemaListEmbedded.md +docs/SettingsLdapschemaRequest.md +docs/SettingsLdapschemaRequestPatch.md +docs/SettingsLdapschemaResponseMixin.md +docs/SettingsLicense.md +docs/SettingsLicenseApi.md +docs/SettingsLicenseList.md +docs/SettingsLicenseListEmbedded.md +docs/SettingsLicenseOptions.md +docs/SettingsLicenseRequest.md +docs/SettingsLicenseRequestPatch.md +docs/SettingsLicenseResponseMixin.md +docs/SettingsLock.md +docs/SettingsLockApi.md +docs/SettingsLockList.md +docs/SettingsLockListEmbedded.md +docs/SettingsLockRequest.md +docs/SettingsLockRequestPatch.md +docs/SettingsLockResponseMixin.md +docs/SettingsMsprintconnectionpolicy.md +docs/SettingsMsprintconnectionpolicyApi.md +docs/SettingsMsprintconnectionpolicyList.md +docs/SettingsMsprintconnectionpolicyListEmbedded.md +docs/SettingsMsprintconnectionpolicyPolicies.md +docs/SettingsMsprintconnectionpolicyRequest.md +docs/SettingsMsprintconnectionpolicyRequestPatch.md +docs/SettingsMsprintconnectionpolicyResponseMixin.md +docs/SettingsMswmifilter.md +docs/SettingsMswmifilterApi.md +docs/SettingsMswmifilterList.md +docs/SettingsMswmifilterListEmbedded.md +docs/SettingsMswmifilterPolicies.md +docs/SettingsMswmifilterRequest.md +docs/SettingsMswmifilterRequestPatch.md +docs/SettingsMswmifilterResponseMixin.md +docs/SettingsPackages.md +docs/SettingsPackagesApi.md +docs/SettingsPackagesList.md +docs/SettingsPackagesListEmbedded.md +docs/SettingsPackagesRequest.md +docs/SettingsPackagesRequestPatch.md +docs/SettingsPackagesResponseMixin.md +docs/SettingsPortal.md +docs/SettingsPortalAll.md +docs/SettingsPortalAllApi.md +docs/SettingsPortalAllList.md +docs/SettingsPortalAllListEmbedded.md +docs/SettingsPortalAllRequest.md +docs/SettingsPortalAllRequestPatch.md +docs/SettingsPortalAllResponseMixin.md +docs/SettingsPortalApi.md +docs/SettingsPortalCategory.md +docs/SettingsPortalCategoryApi.md +docs/SettingsPortalCategoryList.md +docs/SettingsPortalCategoryListEmbedded.md +docs/SettingsPortalCategoryRequest.md +docs/SettingsPortalCategoryRequestPatch.md +docs/SettingsPortalCategoryResponseMixin.md +docs/SettingsPortalEntry.md +docs/SettingsPortalEntryApi.md +docs/SettingsPortalEntryList.md +docs/SettingsPortalEntryListEmbedded.md +docs/SettingsPortalEntryRequest.md +docs/SettingsPortalEntryRequestPatch.md +docs/SettingsPortalEntryResponseMixin.md +docs/SettingsPortalList.md +docs/SettingsPortalListEmbedded.md +docs/SettingsPortalRequest.md +docs/SettingsPortalRequestPatch.md +docs/SettingsPortalResponseMixin.md +docs/SettingsPrintermodel.md +docs/SettingsPrintermodelApi.md +docs/SettingsPrintermodelList.md +docs/SettingsPrintermodelListEmbedded.md +docs/SettingsPrintermodelRequest.md +docs/SettingsPrintermodelRequestPatch.md +docs/SettingsPrintermodelResponseMixin.md +docs/SettingsPrinteruri.md +docs/SettingsPrinteruriApi.md +docs/SettingsPrinteruriList.md +docs/SettingsPrinteruriListEmbedded.md +docs/SettingsPrinteruriRequest.md +docs/SettingsPrinteruriRequestPatch.md +docs/SettingsPrinteruriResponseMixin.md +docs/SettingsProhibitedUsername.md +docs/SettingsProhibitedUsernameApi.md +docs/SettingsProhibitedUsernameList.md +docs/SettingsProhibitedUsernameListEmbedded.md +docs/SettingsProhibitedUsernameRequest.md +docs/SettingsProhibitedUsernameRequestPatch.md +docs/SettingsProhibitedUsernameResponseMixin.md +docs/SettingsSambaconfig.md +docs/SettingsSambaconfigApi.md +docs/SettingsSambaconfigList.md +docs/SettingsSambaconfigListEmbedded.md +docs/SettingsSambaconfigRequest.md +docs/SettingsSambaconfigRequestPatch.md +docs/SettingsSambaconfigResponseMixin.md +docs/SettingsSambadomain.md +docs/SettingsSambadomainApi.md +docs/SettingsSambadomainList.md +docs/SettingsSambadomainListEmbedded.md +docs/SettingsSambadomainRequest.md +docs/SettingsSambadomainRequestPatch.md +docs/SettingsSambadomainResponseMixin.md +docs/SettingsService.md +docs/SettingsServiceApi.md +docs/SettingsServiceList.md +docs/SettingsServiceListEmbedded.md +docs/SettingsServiceRequest.md +docs/SettingsServiceRequestPatch.md +docs/SettingsServiceResponseMixin.md +docs/SettingsSettings.md +docs/SettingsSettingsApi.md +docs/SettingsSettingsList.md +docs/SettingsSettingsListEmbedded.md +docs/SettingsSettingsRequest.md +docs/SettingsSettingsRequestPatch.md +docs/SettingsSettingsResponseMixin.md +docs/SettingsSyntax.md +docs/SettingsSyntaxApi.md +docs/SettingsSyntaxList.md +docs/SettingsSyntaxListEmbedded.md +docs/SettingsSyntaxRequest.md +docs/SettingsSyntaxRequestPatch.md +docs/SettingsSyntaxResponseMixin.md +docs/SettingsUdmHook.md +docs/SettingsUdmHookApi.md +docs/SettingsUdmHookList.md +docs/SettingsUdmHookListEmbedded.md +docs/SettingsUdmHookRequest.md +docs/SettingsUdmHookRequestPatch.md +docs/SettingsUdmHookResponseMixin.md +docs/SettingsUdmModule.md +docs/SettingsUdmModuleApi.md +docs/SettingsUdmModuleList.md +docs/SettingsUdmModuleListEmbedded.md +docs/SettingsUdmModuleRequest.md +docs/SettingsUdmModuleRequestPatch.md +docs/SettingsUdmModuleResponseMixin.md +docs/SettingsUdmSyntax.md +docs/SettingsUdmSyntaxApi.md +docs/SettingsUdmSyntaxList.md +docs/SettingsUdmSyntaxListEmbedded.md +docs/SettingsUdmSyntaxRequest.md +docs/SettingsUdmSyntaxRequestPatch.md +docs/SettingsUdmSyntaxResponseMixin.md +docs/SettingsUmcOperationset.md +docs/SettingsUmcOperationsetApi.md +docs/SettingsUmcOperationsetList.md +docs/SettingsUmcOperationsetListEmbedded.md +docs/SettingsUmcOperationsetRequest.md +docs/SettingsUmcOperationsetRequestPatch.md +docs/SettingsUmcOperationsetResponseMixin.md +docs/SettingsUsertemplate.md +docs/SettingsUsertemplateApi.md +docs/SettingsUsertemplateList.md +docs/SettingsUsertemplateListEmbedded.md +docs/SettingsUsertemplateRequest.md +docs/SettingsUsertemplateRequestPatch.md +docs/SettingsUsertemplateResponseMixin.md +docs/SharesPrint.md +docs/SharesPrintApi.md +docs/SharesPrintList.md +docs/SharesPrintListEmbedded.md +docs/SharesPrintRequest.md +docs/SharesPrintRequestPatch.md +docs/SharesPrintResponseMixin.md +docs/SharesPrinter.md +docs/SharesPrinterApi.md +docs/SharesPrinterList.md +docs/SharesPrinterListEmbedded.md +docs/SharesPrinterRequest.md +docs/SharesPrinterRequestPatch.md +docs/SharesPrinterResponseMixin.md +docs/SharesPrintergroup.md +docs/SharesPrintergroupApi.md +docs/SharesPrintergroupList.md +docs/SharesPrintergroupListEmbedded.md +docs/SharesPrintergroupRequest.md +docs/SharesPrintergroupRequestPatch.md +docs/SharesPrintergroupResponseMixin.md +docs/SharesShare.md +docs/SharesShareApi.md +docs/SharesShareList.md +docs/SharesShareListEmbedded.md +docs/SharesShareOptions.md +docs/SharesSharePolicies.md +docs/SharesShareRequest.md +docs/SharesShareRequestPatch.md +docs/SharesShareResponseMixin.md +docs/UsersContact.md +docs/UsersContactApi.md +docs/UsersContactList.md +docs/UsersContactListEmbedded.md +docs/UsersContactRequest.md +docs/UsersContactRequestPatch.md +docs/UsersContactResponseMixin.md +docs/UsersLdap.md +docs/UsersLdapApi.md +docs/UsersLdapList.md +docs/UsersLdapListEmbedded.md +docs/UsersLdapOptions.md +docs/UsersLdapPolicies.md +docs/UsersLdapRequest.md +docs/UsersLdapRequestPatch.md +docs/UsersLdapResponseMixin.md +docs/UsersPasswd.md +docs/UsersPasswdApi.md +docs/UsersPasswdList.md +docs/UsersPasswdListEmbedded.md +docs/UsersPasswdRequest.md +docs/UsersPasswdRequestPatch.md +docs/UsersPasswdResponseMixin.md +docs/UsersSelf.md +docs/UsersSelfApi.md +docs/UsersSelfList.md +docs/UsersSelfListEmbedded.md +docs/UsersSelfOptions.md +docs/UsersSelfRequest.md +docs/UsersSelfRequestPatch.md +docs/UsersSelfResponseMixin.md +docs/UsersUser.md +docs/UsersUserApi.md +docs/UsersUserList.md +docs/UsersUserListEmbedded.md +docs/UsersUserOptions.md +docs/UsersUserPolicies.md +docs/UsersUserRequest.md +docs/UsersUserRequestPatch.md +docs/UsersUserResponseMixin.md +docs/UvmmCloudconnection.md +docs/UvmmCloudconnectionApi.md +docs/UvmmCloudconnectionList.md +docs/UvmmCloudconnectionListEmbedded.md +docs/UvmmCloudconnectionRequest.md +docs/UvmmCloudconnectionRequestPatch.md +docs/UvmmCloudconnectionResponseMixin.md +docs/UvmmCloudtype.md +docs/UvmmCloudtypeApi.md +docs/UvmmCloudtypeList.md +docs/UvmmCloudtypeListEmbedded.md +docs/UvmmCloudtypeRequest.md +docs/UvmmCloudtypeRequestPatch.md +docs/UvmmCloudtypeResponseMixin.md +docs/UvmmInfo.md +docs/UvmmInfoApi.md +docs/UvmmInfoList.md +docs/UvmmInfoListEmbedded.md +docs/UvmmInfoRequest.md +docs/UvmmInfoRequestPatch.md +docs/UvmmInfoResponseMixin.md +docs/UvmmProfile.md +docs/UvmmProfileApi.md +docs/UvmmProfileList.md +docs/UvmmProfileListEmbedded.md +docs/UvmmProfileRequest.md +docs/UvmmProfileRequestPatch.md +docs/UvmmProfileResponseMixin.md +git_push.sh +openapi_client_udm/__init__.py +openapi_client_udm/api/__init__.py +openapi_client_udm/api/appcenter_app_api.py +openapi_client_udm/api/computers_computer_api.py +openapi_client_udm/api/computers_domaincontroller_backup_api.py +openapi_client_udm/api/computers_domaincontroller_master_api.py +openapi_client_udm/api/computers_domaincontroller_slave_api.py +openapi_client_udm/api/computers_ipmanagedclient_api.py +openapi_client_udm/api/computers_linux_api.py +openapi_client_udm/api/computers_macos_api.py +openapi_client_udm/api/computers_memberserver_api.py +openapi_client_udm/api/computers_trustaccount_api.py +openapi_client_udm/api/computers_ubuntu_api.py +openapi_client_udm/api/computers_windows_api.py +openapi_client_udm/api/computers_windows_domaincontroller_api.py +openapi_client_udm/api/container_cn_api.py +openapi_client_udm/api/container_dc_api.py +openapi_client_udm/api/container_msgpo_api.py +openapi_client_udm/api/container_ou_api.py +openapi_client_udm/api/dhcp_dhcp_api.py +openapi_client_udm/api/dhcp_host_api.py +openapi_client_udm/api/dhcp_pool_api.py +openapi_client_udm/api/dhcp_server_api.py +openapi_client_udm/api/dhcp_service_api.py +openapi_client_udm/api/dhcp_shared_api.py +openapi_client_udm/api/dhcp_sharedsubnet_api.py +openapi_client_udm/api/dhcp_subnet_api.py +openapi_client_udm/api/dns_alias_api.py +openapi_client_udm/api/dns_dns_api.py +openapi_client_udm/api/dns_forward_zone_api.py +openapi_client_udm/api/dns_host_record_api.py +openapi_client_udm/api/dns_ns_record_api.py +openapi_client_udm/api/dns_ptr_record_api.py +openapi_client_udm/api/dns_reverse_zone_api.py +openapi_client_udm/api/dns_srv_record_api.py +openapi_client_udm/api/dns_txt_record_api.py +openapi_client_udm/api/groups_group_api.py +openapi_client_udm/api/kerberos_kdcentry_api.py +openapi_client_udm/api/mail_domain_api.py +openapi_client_udm/api/mail_folder_api.py +openapi_client_udm/api/mail_lists_api.py +openapi_client_udm/api/mail_mail_api.py +openapi_client_udm/api/monitoring_alert_api.py +openapi_client_udm/api/ms_domainpolicy_api.py +openapi_client_udm/api/ms_gpipsec_filter_api.py +openapi_client_udm/api/ms_gpipsec_isakmp_policy_api.py +openapi_client_udm/api/ms_gpipsec_negotiation_policy_api.py +openapi_client_udm/api/ms_gpipsec_nfa_api.py +openapi_client_udm/api/ms_gpipsec_policy_api.py +openapi_client_udm/api/ms_gpsi_category_registration_api.py +openapi_client_udm/api/ms_gpsi_class_store_api.py +openapi_client_udm/api/ms_gpsi_package_registration_api.py +openapi_client_udm/api/ms_gpwl_wired_api.py +openapi_client_udm/api/ms_gpwl_wireless_api.py +openapi_client_udm/api/ms_gpwl_wireless_blob_api.py +openapi_client_udm/api/nagios_nagios_api.py +openapi_client_udm/api/nagios_service_api.py +openapi_client_udm/api/nagios_timeperiod_api.py +openapi_client_udm/api/networks_network_api.py +openapi_client_udm/api/policies_admin_container_api.py +openapi_client_udm/api/policies_desktop_api.py +openapi_client_udm/api/policies_dhcp_boot_api.py +openapi_client_udm/api/policies_dhcp_dns_api.py +openapi_client_udm/api/policies_dhcp_dnsupdate_api.py +openapi_client_udm/api/policies_dhcp_leasetime_api.py +openapi_client_udm/api/policies_dhcp_netbios_api.py +openapi_client_udm/api/policies_dhcp_routing_api.py +openapi_client_udm/api/policies_dhcp_scope_api.py +openapi_client_udm/api/policies_dhcp_statements_api.py +openapi_client_udm/api/policies_ldapserver_api.py +openapi_client_udm/api/policies_maintenance_api.py +openapi_client_udm/api/policies_masterpackages_api.py +openapi_client_udm/api/policies_memberpackages_api.py +openapi_client_udm/api/policies_nfsmounts_api.py +openapi_client_udm/api/policies_policy_api.py +openapi_client_udm/api/policies_printserver_api.py +openapi_client_udm/api/policies_pwhistory_api.py +openapi_client_udm/api/policies_registry_api.py +openapi_client_udm/api/policies_release_api.py +openapi_client_udm/api/policies_repositoryserver_api.py +openapi_client_udm/api/policies_repositorysync_api.py +openapi_client_udm/api/policies_share_userquota_api.py +openapi_client_udm/api/policies_slavepackages_api.py +openapi_client_udm/api/policies_umc_api.py +openapi_client_udm/api/portals_all_api.py +openapi_client_udm/api/portals_announcement_api.py +openapi_client_udm/api/portals_category_api.py +openapi_client_udm/api/portals_entry_api.py +openapi_client_udm/api/portals_folder_api.py +openapi_client_udm/api/portals_portal_api.py +openapi_client_udm/api/saml_idpconfig_api.py +openapi_client_udm/api/saml_serviceprovider_api.py +openapi_client_udm/api/settings_cn_api.py +openapi_client_udm/api/settings_data_api.py +openapi_client_udm/api/settings_default_api.py +openapi_client_udm/api/settings_directory_api.py +openapi_client_udm/api/settings_extended_attribute_api.py +openapi_client_udm/api/settings_extended_options_api.py +openapi_client_udm/api/settings_ldapacl_api.py +openapi_client_udm/api/settings_ldapschema_api.py +openapi_client_udm/api/settings_license_api.py +openapi_client_udm/api/settings_lock_api.py +openapi_client_udm/api/settings_msprintconnectionpolicy_api.py +openapi_client_udm/api/settings_mswmifilter_api.py +openapi_client_udm/api/settings_packages_api.py +openapi_client_udm/api/settings_portal_all_api.py +openapi_client_udm/api/settings_portal_api.py +openapi_client_udm/api/settings_portal_category_api.py +openapi_client_udm/api/settings_portal_entry_api.py +openapi_client_udm/api/settings_printermodel_api.py +openapi_client_udm/api/settings_printeruri_api.py +openapi_client_udm/api/settings_prohibited_username_api.py +openapi_client_udm/api/settings_sambaconfig_api.py +openapi_client_udm/api/settings_sambadomain_api.py +openapi_client_udm/api/settings_service_api.py +openapi_client_udm/api/settings_settings_api.py +openapi_client_udm/api/settings_syntax_api.py +openapi_client_udm/api/settings_udm_hook_api.py +openapi_client_udm/api/settings_udm_module_api.py +openapi_client_udm/api/settings_udm_syntax_api.py +openapi_client_udm/api/settings_umc_operationset_api.py +openapi_client_udm/api/settings_usertemplate_api.py +openapi_client_udm/api/shares_print_api.py +openapi_client_udm/api/shares_printer_api.py +openapi_client_udm/api/shares_printergroup_api.py +openapi_client_udm/api/shares_share_api.py +openapi_client_udm/api/users_contact_api.py +openapi_client_udm/api/users_ldap_api.py +openapi_client_udm/api/users_passwd_api.py +openapi_client_udm/api/users_self_api.py +openapi_client_udm/api/users_user_api.py +openapi_client_udm/api/uvmm_cloudconnection_api.py +openapi_client_udm/api/uvmm_cloudtype_api.py +openapi_client_udm/api/uvmm_info_api.py +openapi_client_udm/api/uvmm_profile_api.py +openapi_client_udm/api_client.py +openapi_client_udm/configuration.py +openapi_client_udm/exceptions.py +openapi_client_udm/models/__init__.py +openapi_client_udm/models/appcenter_app.py +openapi_client_udm/models/appcenter_app_list.py +openapi_client_udm/models/appcenter_app_list_embedded.py +openapi_client_udm/models/appcenter_app_policies.py +openapi_client_udm/models/appcenter_app_request.py +openapi_client_udm/models/appcenter_app_request_all_of.py +openapi_client_udm/models/appcenter_app_request_patch.py +openapi_client_udm/models/appcenter_app_response_mixin.py +openapi_client_udm/models/computers_computer.py +openapi_client_udm/models/computers_computer_list.py +openapi_client_udm/models/computers_computer_list_embedded.py +openapi_client_udm/models/computers_computer_request.py +openapi_client_udm/models/computers_computer_request_patch.py +openapi_client_udm/models/computers_computer_response_mixin.py +openapi_client_udm/models/computers_domaincontroller_backup.py +openapi_client_udm/models/computers_domaincontroller_backup_list.py +openapi_client_udm/models/computers_domaincontroller_backup_list_embedded.py +openapi_client_udm/models/computers_domaincontroller_backup_options.py +openapi_client_udm/models/computers_domaincontroller_backup_policies.py +openapi_client_udm/models/computers_domaincontroller_backup_request.py +openapi_client_udm/models/computers_domaincontroller_backup_request_patch.py +openapi_client_udm/models/computers_domaincontroller_backup_response_mixin.py +openapi_client_udm/models/computers_domaincontroller_master.py +openapi_client_udm/models/computers_domaincontroller_master_list.py +openapi_client_udm/models/computers_domaincontroller_master_list_embedded.py +openapi_client_udm/models/computers_domaincontroller_master_options.py +openapi_client_udm/models/computers_domaincontroller_master_policies.py +openapi_client_udm/models/computers_domaincontroller_master_request.py +openapi_client_udm/models/computers_domaincontroller_master_request_patch.py +openapi_client_udm/models/computers_domaincontroller_master_response_mixin.py +openapi_client_udm/models/computers_domaincontroller_slave.py +openapi_client_udm/models/computers_domaincontroller_slave_list.py +openapi_client_udm/models/computers_domaincontroller_slave_list_embedded.py +openapi_client_udm/models/computers_domaincontroller_slave_options.py +openapi_client_udm/models/computers_domaincontroller_slave_policies.py +openapi_client_udm/models/computers_domaincontroller_slave_request.py +openapi_client_udm/models/computers_domaincontroller_slave_request_patch.py +openapi_client_udm/models/computers_domaincontroller_slave_response_mixin.py +openapi_client_udm/models/computers_ipmanagedclient.py +openapi_client_udm/models/computers_ipmanagedclient_list.py +openapi_client_udm/models/computers_ipmanagedclient_list_embedded.py +openapi_client_udm/models/computers_ipmanagedclient_options.py +openapi_client_udm/models/computers_ipmanagedclient_request.py +openapi_client_udm/models/computers_ipmanagedclient_request_patch.py +openapi_client_udm/models/computers_ipmanagedclient_response_mixin.py +openapi_client_udm/models/computers_linux.py +openapi_client_udm/models/computers_linux_list.py +openapi_client_udm/models/computers_linux_list_embedded.py +openapi_client_udm/models/computers_linux_options.py +openapi_client_udm/models/computers_linux_request.py +openapi_client_udm/models/computers_linux_request_patch.py +openapi_client_udm/models/computers_linux_response_mixin.py +openapi_client_udm/models/computers_macos.py +openapi_client_udm/models/computers_macos_list.py +openapi_client_udm/models/computers_macos_list_embedded.py +openapi_client_udm/models/computers_macos_options.py +openapi_client_udm/models/computers_macos_request.py +openapi_client_udm/models/computers_macos_request_patch.py +openapi_client_udm/models/computers_macos_response_mixin.py +openapi_client_udm/models/computers_memberserver.py +openapi_client_udm/models/computers_memberserver_list.py +openapi_client_udm/models/computers_memberserver_list_embedded.py +openapi_client_udm/models/computers_memberserver_options.py +openapi_client_udm/models/computers_memberserver_policies.py +openapi_client_udm/models/computers_memberserver_request.py +openapi_client_udm/models/computers_memberserver_request_patch.py +openapi_client_udm/models/computers_memberserver_response_mixin.py +openapi_client_udm/models/computers_trustaccount.py +openapi_client_udm/models/computers_trustaccount_list.py +openapi_client_udm/models/computers_trustaccount_list_embedded.py +openapi_client_udm/models/computers_trustaccount_options.py +openapi_client_udm/models/computers_trustaccount_request.py +openapi_client_udm/models/computers_trustaccount_request_patch.py +openapi_client_udm/models/computers_trustaccount_response_mixin.py +openapi_client_udm/models/computers_ubuntu.py +openapi_client_udm/models/computers_ubuntu_list.py +openapi_client_udm/models/computers_ubuntu_list_embedded.py +openapi_client_udm/models/computers_ubuntu_options.py +openapi_client_udm/models/computers_ubuntu_request.py +openapi_client_udm/models/computers_ubuntu_request_patch.py +openapi_client_udm/models/computers_ubuntu_response_mixin.py +openapi_client_udm/models/computers_windows.py +openapi_client_udm/models/computers_windows_domaincontroller.py +openapi_client_udm/models/computers_windows_domaincontroller_list.py +openapi_client_udm/models/computers_windows_domaincontroller_list_embedded.py +openapi_client_udm/models/computers_windows_domaincontroller_options.py +openapi_client_udm/models/computers_windows_domaincontroller_request.py +openapi_client_udm/models/computers_windows_domaincontroller_request_patch.py +openapi_client_udm/models/computers_windows_domaincontroller_response_mixin.py +openapi_client_udm/models/computers_windows_list.py +openapi_client_udm/models/computers_windows_list_embedded.py +openapi_client_udm/models/computers_windows_options.py +openapi_client_udm/models/computers_windows_request.py +openapi_client_udm/models/computers_windows_request_patch.py +openapi_client_udm/models/computers_windows_response_mixin.py +openapi_client_udm/models/container_cn.py +openapi_client_udm/models/container_cn_list.py +openapi_client_udm/models/container_cn_list_embedded.py +openapi_client_udm/models/container_cn_policies.py +openapi_client_udm/models/container_cn_request.py +openapi_client_udm/models/container_cn_request_patch.py +openapi_client_udm/models/container_cn_response_mixin.py +openapi_client_udm/models/container_dc.py +openapi_client_udm/models/container_dc_list.py +openapi_client_udm/models/container_dc_list_embedded.py +openapi_client_udm/models/container_dc_options.py +openapi_client_udm/models/container_dc_policies.py +openapi_client_udm/models/container_dc_request.py +openapi_client_udm/models/container_dc_request_patch.py +openapi_client_udm/models/container_dc_response_mixin.py +openapi_client_udm/models/container_msgpo.py +openapi_client_udm/models/container_msgpo_list.py +openapi_client_udm/models/container_msgpo_list_embedded.py +openapi_client_udm/models/container_msgpo_policies.py +openapi_client_udm/models/container_msgpo_request.py +openapi_client_udm/models/container_msgpo_request_patch.py +openapi_client_udm/models/container_msgpo_response_mixin.py +openapi_client_udm/models/container_ou.py +openapi_client_udm/models/container_ou_list.py +openapi_client_udm/models/container_ou_list_embedded.py +openapi_client_udm/models/container_ou_policies.py +openapi_client_udm/models/container_ou_request.py +openapi_client_udm/models/container_ou_request_patch.py +openapi_client_udm/models/container_ou_response_mixin.py +openapi_client_udm/models/dhcp_dhcp.py +openapi_client_udm/models/dhcp_dhcp_list.py +openapi_client_udm/models/dhcp_dhcp_list_embedded.py +openapi_client_udm/models/dhcp_dhcp_request.py +openapi_client_udm/models/dhcp_dhcp_request_patch.py +openapi_client_udm/models/dhcp_dhcp_response_mixin.py +openapi_client_udm/models/dhcp_host.py +openapi_client_udm/models/dhcp_host_list.py +openapi_client_udm/models/dhcp_host_list_embedded.py +openapi_client_udm/models/dhcp_host_options.py +openapi_client_udm/models/dhcp_host_policies.py +openapi_client_udm/models/dhcp_host_request.py +openapi_client_udm/models/dhcp_host_request_patch.py +openapi_client_udm/models/dhcp_host_response_mixin.py +openapi_client_udm/models/dhcp_pool.py +openapi_client_udm/models/dhcp_pool_list.py +openapi_client_udm/models/dhcp_pool_list_embedded.py +openapi_client_udm/models/dhcp_pool_options.py +openapi_client_udm/models/dhcp_pool_policies.py +openapi_client_udm/models/dhcp_pool_request.py +openapi_client_udm/models/dhcp_pool_request_patch.py +openapi_client_udm/models/dhcp_pool_response_mixin.py +openapi_client_udm/models/dhcp_server.py +openapi_client_udm/models/dhcp_server_list.py +openapi_client_udm/models/dhcp_server_list_embedded.py +openapi_client_udm/models/dhcp_server_request.py +openapi_client_udm/models/dhcp_server_request_patch.py +openapi_client_udm/models/dhcp_server_response_mixin.py +openapi_client_udm/models/dhcp_service.py +openapi_client_udm/models/dhcp_service_list.py +openapi_client_udm/models/dhcp_service_list_embedded.py +openapi_client_udm/models/dhcp_service_options.py +openapi_client_udm/models/dhcp_service_policies.py +openapi_client_udm/models/dhcp_service_request.py +openapi_client_udm/models/dhcp_service_request_patch.py +openapi_client_udm/models/dhcp_service_response_mixin.py +openapi_client_udm/models/dhcp_shared.py +openapi_client_udm/models/dhcp_shared_list.py +openapi_client_udm/models/dhcp_shared_list_embedded.py +openapi_client_udm/models/dhcp_shared_options.py +openapi_client_udm/models/dhcp_shared_policies.py +openapi_client_udm/models/dhcp_shared_request.py +openapi_client_udm/models/dhcp_shared_request_patch.py +openapi_client_udm/models/dhcp_shared_response_mixin.py +openapi_client_udm/models/dhcp_sharedsubnet.py +openapi_client_udm/models/dhcp_sharedsubnet_list.py +openapi_client_udm/models/dhcp_sharedsubnet_list_embedded.py +openapi_client_udm/models/dhcp_sharedsubnet_options.py +openapi_client_udm/models/dhcp_sharedsubnet_policies.py +openapi_client_udm/models/dhcp_sharedsubnet_request.py +openapi_client_udm/models/dhcp_sharedsubnet_request_patch.py +openapi_client_udm/models/dhcp_sharedsubnet_response_mixin.py +openapi_client_udm/models/dhcp_subnet.py +openapi_client_udm/models/dhcp_subnet_list.py +openapi_client_udm/models/dhcp_subnet_list_embedded.py +openapi_client_udm/models/dhcp_subnet_options.py +openapi_client_udm/models/dhcp_subnet_policies.py +openapi_client_udm/models/dhcp_subnet_request.py +openapi_client_udm/models/dhcp_subnet_request_patch.py +openapi_client_udm/models/dhcp_subnet_response_mixin.py +openapi_client_udm/models/dns_alias.py +openapi_client_udm/models/dns_alias_list.py +openapi_client_udm/models/dns_alias_list_embedded.py +openapi_client_udm/models/dns_alias_request.py +openapi_client_udm/models/dns_alias_request_patch.py +openapi_client_udm/models/dns_alias_response_mixin.py +openapi_client_udm/models/dns_dns.py +openapi_client_udm/models/dns_dns_list.py +openapi_client_udm/models/dns_dns_list_embedded.py +openapi_client_udm/models/dns_dns_request.py +openapi_client_udm/models/dns_dns_request_patch.py +openapi_client_udm/models/dns_dns_response_mixin.py +openapi_client_udm/models/dns_forward_zone.py +openapi_client_udm/models/dns_forward_zone_list.py +openapi_client_udm/models/dns_forward_zone_list_embedded.py +openapi_client_udm/models/dns_forward_zone_policies.py +openapi_client_udm/models/dns_forward_zone_request.py +openapi_client_udm/models/dns_forward_zone_request_patch.py +openapi_client_udm/models/dns_forward_zone_response_mixin.py +openapi_client_udm/models/dns_host_record.py +openapi_client_udm/models/dns_host_record_list.py +openapi_client_udm/models/dns_host_record_list_embedded.py +openapi_client_udm/models/dns_host_record_request.py +openapi_client_udm/models/dns_host_record_request_patch.py +openapi_client_udm/models/dns_host_record_response_mixin.py +openapi_client_udm/models/dns_ns_record.py +openapi_client_udm/models/dns_ns_record_list.py +openapi_client_udm/models/dns_ns_record_list_embedded.py +openapi_client_udm/models/dns_ns_record_request.py +openapi_client_udm/models/dns_ns_record_request_patch.py +openapi_client_udm/models/dns_ns_record_response_mixin.py +openapi_client_udm/models/dns_ptr_record.py +openapi_client_udm/models/dns_ptr_record_list.py +openapi_client_udm/models/dns_ptr_record_list_embedded.py +openapi_client_udm/models/dns_ptr_record_request.py +openapi_client_udm/models/dns_ptr_record_request_patch.py +openapi_client_udm/models/dns_ptr_record_response_mixin.py +openapi_client_udm/models/dns_reverse_zone.py +openapi_client_udm/models/dns_reverse_zone_list.py +openapi_client_udm/models/dns_reverse_zone_list_embedded.py +openapi_client_udm/models/dns_reverse_zone_policies.py +openapi_client_udm/models/dns_reverse_zone_request.py +openapi_client_udm/models/dns_reverse_zone_request_patch.py +openapi_client_udm/models/dns_reverse_zone_response_mixin.py +openapi_client_udm/models/dns_srv_record.py +openapi_client_udm/models/dns_srv_record_list.py +openapi_client_udm/models/dns_srv_record_list_embedded.py +openapi_client_udm/models/dns_srv_record_request.py +openapi_client_udm/models/dns_srv_record_request_patch.py +openapi_client_udm/models/dns_srv_record_response_mixin.py +openapi_client_udm/models/dns_txt_record.py +openapi_client_udm/models/dns_txt_record_list.py +openapi_client_udm/models/dns_txt_record_list_embedded.py +openapi_client_udm/models/dns_txt_record_request.py +openapi_client_udm/models/dns_txt_record_request_patch.py +openapi_client_udm/models/dns_txt_record_response_mixin.py +openapi_client_udm/models/embedded_error.py +openapi_client_udm/models/groups_group.py +openapi_client_udm/models/groups_group_list.py +openapi_client_udm/models/groups_group_list_embedded.py +openapi_client_udm/models/groups_group_options.py +openapi_client_udm/models/groups_group_policies.py +openapi_client_udm/models/groups_group_request.py +openapi_client_udm/models/groups_group_request_patch.py +openapi_client_udm/models/groups_group_response_mixin.py +openapi_client_udm/models/inline_response201.py +openapi_client_udm/models/kerberos_kdcentry.py +openapi_client_udm/models/kerberos_kdcentry_list.py +openapi_client_udm/models/kerberos_kdcentry_list_embedded.py +openapi_client_udm/models/kerberos_kdcentry_request.py +openapi_client_udm/models/kerberos_kdcentry_request_patch.py +openapi_client_udm/models/kerberos_kdcentry_response_mixin.py +openapi_client_udm/models/links.py +openapi_client_udm/models/mail_domain.py +openapi_client_udm/models/mail_domain_list.py +openapi_client_udm/models/mail_domain_list_embedded.py +openapi_client_udm/models/mail_domain_request.py +openapi_client_udm/models/mail_domain_request_patch.py +openapi_client_udm/models/mail_domain_response_mixin.py +openapi_client_udm/models/mail_folder.py +openapi_client_udm/models/mail_folder_list.py +openapi_client_udm/models/mail_folder_list_embedded.py +openapi_client_udm/models/mail_folder_request.py +openapi_client_udm/models/mail_folder_request_patch.py +openapi_client_udm/models/mail_folder_response_mixin.py +openapi_client_udm/models/mail_lists.py +openapi_client_udm/models/mail_lists_list.py +openapi_client_udm/models/mail_lists_list_embedded.py +openapi_client_udm/models/mail_lists_request.py +openapi_client_udm/models/mail_lists_request_patch.py +openapi_client_udm/models/mail_lists_response_mixin.py +openapi_client_udm/models/mail_mail.py +openapi_client_udm/models/mail_mail_list.py +openapi_client_udm/models/mail_mail_list_embedded.py +openapi_client_udm/models/mail_mail_request.py +openapi_client_udm/models/mail_mail_request_patch.py +openapi_client_udm/models/mail_mail_response_mixin.py +openapi_client_udm/models/monitoring_alert.py +openapi_client_udm/models/monitoring_alert_list.py +openapi_client_udm/models/monitoring_alert_list_embedded.py +openapi_client_udm/models/monitoring_alert_request.py +openapi_client_udm/models/monitoring_alert_request_patch.py +openapi_client_udm/models/monitoring_alert_response_mixin.py +openapi_client_udm/models/ms_domainpolicy.py +openapi_client_udm/models/ms_domainpolicy_list.py +openapi_client_udm/models/ms_domainpolicy_list_embedded.py +openapi_client_udm/models/ms_domainpolicy_policies.py +openapi_client_udm/models/ms_domainpolicy_request.py +openapi_client_udm/models/ms_domainpolicy_request_patch.py +openapi_client_udm/models/ms_domainpolicy_response_mixin.py +openapi_client_udm/models/ms_gpipsec_filter.py +openapi_client_udm/models/ms_gpipsec_filter_list.py +openapi_client_udm/models/ms_gpipsec_filter_list_embedded.py +openapi_client_udm/models/ms_gpipsec_filter_policies.py +openapi_client_udm/models/ms_gpipsec_filter_request.py +openapi_client_udm/models/ms_gpipsec_filter_request_patch.py +openapi_client_udm/models/ms_gpipsec_filter_response_mixin.py +openapi_client_udm/models/ms_gpipsec_isakmp_policy.py +openapi_client_udm/models/ms_gpipsec_isakmp_policy_list.py +openapi_client_udm/models/ms_gpipsec_isakmp_policy_list_embedded.py +openapi_client_udm/models/ms_gpipsec_isakmp_policy_policies.py +openapi_client_udm/models/ms_gpipsec_isakmp_policy_request.py +openapi_client_udm/models/ms_gpipsec_isakmp_policy_request_patch.py +openapi_client_udm/models/ms_gpipsec_isakmp_policy_response_mixin.py +openapi_client_udm/models/ms_gpipsec_negotiation_policy.py +openapi_client_udm/models/ms_gpipsec_negotiation_policy_list.py +openapi_client_udm/models/ms_gpipsec_negotiation_policy_list_embedded.py +openapi_client_udm/models/ms_gpipsec_negotiation_policy_policies.py +openapi_client_udm/models/ms_gpipsec_negotiation_policy_request.py +openapi_client_udm/models/ms_gpipsec_negotiation_policy_request_patch.py +openapi_client_udm/models/ms_gpipsec_negotiation_policy_response_mixin.py +openapi_client_udm/models/ms_gpipsec_nfa.py +openapi_client_udm/models/ms_gpipsec_nfa_list.py +openapi_client_udm/models/ms_gpipsec_nfa_list_embedded.py +openapi_client_udm/models/ms_gpipsec_nfa_policies.py +openapi_client_udm/models/ms_gpipsec_nfa_request.py +openapi_client_udm/models/ms_gpipsec_nfa_request_patch.py +openapi_client_udm/models/ms_gpipsec_nfa_response_mixin.py +openapi_client_udm/models/ms_gpipsec_policy.py +openapi_client_udm/models/ms_gpipsec_policy_list.py +openapi_client_udm/models/ms_gpipsec_policy_list_embedded.py +openapi_client_udm/models/ms_gpipsec_policy_policies.py +openapi_client_udm/models/ms_gpipsec_policy_request.py +openapi_client_udm/models/ms_gpipsec_policy_request_patch.py +openapi_client_udm/models/ms_gpipsec_policy_response_mixin.py +openapi_client_udm/models/ms_gpsi_category_registration.py +openapi_client_udm/models/ms_gpsi_category_registration_list.py +openapi_client_udm/models/ms_gpsi_category_registration_list_embedded.py +openapi_client_udm/models/ms_gpsi_category_registration_policies.py +openapi_client_udm/models/ms_gpsi_category_registration_request.py +openapi_client_udm/models/ms_gpsi_category_registration_request_patch.py +openapi_client_udm/models/ms_gpsi_category_registration_response_mixin.py +openapi_client_udm/models/ms_gpsi_class_store.py +openapi_client_udm/models/ms_gpsi_class_store_list.py +openapi_client_udm/models/ms_gpsi_class_store_list_embedded.py +openapi_client_udm/models/ms_gpsi_class_store_policies.py +openapi_client_udm/models/ms_gpsi_class_store_request.py +openapi_client_udm/models/ms_gpsi_class_store_request_patch.py +openapi_client_udm/models/ms_gpsi_class_store_response_mixin.py +openapi_client_udm/models/ms_gpsi_package_registration.py +openapi_client_udm/models/ms_gpsi_package_registration_list.py +openapi_client_udm/models/ms_gpsi_package_registration_list_embedded.py +openapi_client_udm/models/ms_gpsi_package_registration_policies.py +openapi_client_udm/models/ms_gpsi_package_registration_request.py +openapi_client_udm/models/ms_gpsi_package_registration_request_patch.py +openapi_client_udm/models/ms_gpsi_package_registration_response_mixin.py +openapi_client_udm/models/ms_gpwl_wired.py +openapi_client_udm/models/ms_gpwl_wired_list.py +openapi_client_udm/models/ms_gpwl_wired_list_embedded.py +openapi_client_udm/models/ms_gpwl_wired_policies.py +openapi_client_udm/models/ms_gpwl_wired_request.py +openapi_client_udm/models/ms_gpwl_wired_request_patch.py +openapi_client_udm/models/ms_gpwl_wired_response_mixin.py +openapi_client_udm/models/ms_gpwl_wireless.py +openapi_client_udm/models/ms_gpwl_wireless_blob.py +openapi_client_udm/models/ms_gpwl_wireless_blob_list.py +openapi_client_udm/models/ms_gpwl_wireless_blob_list_embedded.py +openapi_client_udm/models/ms_gpwl_wireless_blob_policies.py +openapi_client_udm/models/ms_gpwl_wireless_blob_request.py +openapi_client_udm/models/ms_gpwl_wireless_blob_request_patch.py +openapi_client_udm/models/ms_gpwl_wireless_blob_response_mixin.py +openapi_client_udm/models/ms_gpwl_wireless_list.py +openapi_client_udm/models/ms_gpwl_wireless_list_embedded.py +openapi_client_udm/models/ms_gpwl_wireless_policies.py +openapi_client_udm/models/ms_gpwl_wireless_request.py +openapi_client_udm/models/ms_gpwl_wireless_request_patch.py +openapi_client_udm/models/ms_gpwl_wireless_response_mixin.py +openapi_client_udm/models/nagios_nagios.py +openapi_client_udm/models/nagios_nagios_list.py +openapi_client_udm/models/nagios_nagios_list_embedded.py +openapi_client_udm/models/nagios_nagios_request.py +openapi_client_udm/models/nagios_nagios_request_patch.py +openapi_client_udm/models/nagios_nagios_response_mixin.py +openapi_client_udm/models/nagios_service.py +openapi_client_udm/models/nagios_service_list.py +openapi_client_udm/models/nagios_service_list_embedded.py +openapi_client_udm/models/nagios_service_request.py +openapi_client_udm/models/nagios_service_request_patch.py +openapi_client_udm/models/nagios_service_response_mixin.py +openapi_client_udm/models/nagios_timeperiod.py +openapi_client_udm/models/nagios_timeperiod_list.py +openapi_client_udm/models/nagios_timeperiod_list_embedded.py +openapi_client_udm/models/nagios_timeperiod_request.py +openapi_client_udm/models/nagios_timeperiod_request_patch.py +openapi_client_udm/models/nagios_timeperiod_response_mixin.py +openapi_client_udm/models/networks_network.py +openapi_client_udm/models/networks_network_list.py +openapi_client_udm/models/networks_network_list_embedded.py +openapi_client_udm/models/networks_network_request.py +openapi_client_udm/models/networks_network_request_patch.py +openapi_client_udm/models/networks_network_response_mixin.py +openapi_client_udm/models/policies_admin_container.py +openapi_client_udm/models/policies_admin_container_list.py +openapi_client_udm/models/policies_admin_container_list_embedded.py +openapi_client_udm/models/policies_admin_container_request.py +openapi_client_udm/models/policies_admin_container_request_patch.py +openapi_client_udm/models/policies_admin_container_response_mixin.py +openapi_client_udm/models/policies_desktop.py +openapi_client_udm/models/policies_desktop_list.py +openapi_client_udm/models/policies_desktop_list_embedded.py +openapi_client_udm/models/policies_desktop_request.py +openapi_client_udm/models/policies_desktop_request_patch.py +openapi_client_udm/models/policies_desktop_response_mixin.py +openapi_client_udm/models/policies_dhcp_boot.py +openapi_client_udm/models/policies_dhcp_boot_list.py +openapi_client_udm/models/policies_dhcp_boot_list_embedded.py +openapi_client_udm/models/policies_dhcp_boot_request.py +openapi_client_udm/models/policies_dhcp_boot_request_patch.py +openapi_client_udm/models/policies_dhcp_boot_response_mixin.py +openapi_client_udm/models/policies_dhcp_dns.py +openapi_client_udm/models/policies_dhcp_dns_list.py +openapi_client_udm/models/policies_dhcp_dns_list_embedded.py +openapi_client_udm/models/policies_dhcp_dns_request.py +openapi_client_udm/models/policies_dhcp_dns_request_patch.py +openapi_client_udm/models/policies_dhcp_dns_response_mixin.py +openapi_client_udm/models/policies_dhcp_dnsupdate.py +openapi_client_udm/models/policies_dhcp_dnsupdate_list.py +openapi_client_udm/models/policies_dhcp_dnsupdate_list_embedded.py +openapi_client_udm/models/policies_dhcp_dnsupdate_request.py +openapi_client_udm/models/policies_dhcp_dnsupdate_request_patch.py +openapi_client_udm/models/policies_dhcp_dnsupdate_response_mixin.py +openapi_client_udm/models/policies_dhcp_leasetime.py +openapi_client_udm/models/policies_dhcp_leasetime_list.py +openapi_client_udm/models/policies_dhcp_leasetime_list_embedded.py +openapi_client_udm/models/policies_dhcp_leasetime_request.py +openapi_client_udm/models/policies_dhcp_leasetime_request_patch.py +openapi_client_udm/models/policies_dhcp_leasetime_response_mixin.py +openapi_client_udm/models/policies_dhcp_netbios.py +openapi_client_udm/models/policies_dhcp_netbios_list.py +openapi_client_udm/models/policies_dhcp_netbios_list_embedded.py +openapi_client_udm/models/policies_dhcp_netbios_request.py +openapi_client_udm/models/policies_dhcp_netbios_request_patch.py +openapi_client_udm/models/policies_dhcp_netbios_response_mixin.py +openapi_client_udm/models/policies_dhcp_routing.py +openapi_client_udm/models/policies_dhcp_routing_list.py +openapi_client_udm/models/policies_dhcp_routing_list_embedded.py +openapi_client_udm/models/policies_dhcp_routing_request.py +openapi_client_udm/models/policies_dhcp_routing_request_patch.py +openapi_client_udm/models/policies_dhcp_routing_response_mixin.py +openapi_client_udm/models/policies_dhcp_scope.py +openapi_client_udm/models/policies_dhcp_scope_list.py +openapi_client_udm/models/policies_dhcp_scope_list_embedded.py +openapi_client_udm/models/policies_dhcp_scope_request.py +openapi_client_udm/models/policies_dhcp_scope_request_patch.py +openapi_client_udm/models/policies_dhcp_scope_response_mixin.py +openapi_client_udm/models/policies_dhcp_statements.py +openapi_client_udm/models/policies_dhcp_statements_list.py +openapi_client_udm/models/policies_dhcp_statements_list_embedded.py +openapi_client_udm/models/policies_dhcp_statements_request.py +openapi_client_udm/models/policies_dhcp_statements_request_patch.py +openapi_client_udm/models/policies_dhcp_statements_response_mixin.py +openapi_client_udm/models/policies_ldapserver.py +openapi_client_udm/models/policies_ldapserver_list.py +openapi_client_udm/models/policies_ldapserver_list_embedded.py +openapi_client_udm/models/policies_ldapserver_request.py +openapi_client_udm/models/policies_ldapserver_request_patch.py +openapi_client_udm/models/policies_ldapserver_response_mixin.py +openapi_client_udm/models/policies_maintenance.py +openapi_client_udm/models/policies_maintenance_list.py +openapi_client_udm/models/policies_maintenance_list_embedded.py +openapi_client_udm/models/policies_maintenance_request.py +openapi_client_udm/models/policies_maintenance_request_patch.py +openapi_client_udm/models/policies_maintenance_response_mixin.py +openapi_client_udm/models/policies_masterpackages.py +openapi_client_udm/models/policies_masterpackages_list.py +openapi_client_udm/models/policies_masterpackages_list_embedded.py +openapi_client_udm/models/policies_masterpackages_request.py +openapi_client_udm/models/policies_masterpackages_request_patch.py +openapi_client_udm/models/policies_masterpackages_response_mixin.py +openapi_client_udm/models/policies_memberpackages.py +openapi_client_udm/models/policies_memberpackages_list.py +openapi_client_udm/models/policies_memberpackages_list_embedded.py +openapi_client_udm/models/policies_memberpackages_request.py +openapi_client_udm/models/policies_memberpackages_request_patch.py +openapi_client_udm/models/policies_memberpackages_response_mixin.py +openapi_client_udm/models/policies_nfsmounts.py +openapi_client_udm/models/policies_nfsmounts_list.py +openapi_client_udm/models/policies_nfsmounts_list_embedded.py +openapi_client_udm/models/policies_nfsmounts_request.py +openapi_client_udm/models/policies_nfsmounts_request_patch.py +openapi_client_udm/models/policies_nfsmounts_response_mixin.py +openapi_client_udm/models/policies_policy.py +openapi_client_udm/models/policies_policy_list.py +openapi_client_udm/models/policies_policy_list_embedded.py +openapi_client_udm/models/policies_policy_request.py +openapi_client_udm/models/policies_policy_request_patch.py +openapi_client_udm/models/policies_policy_response_mixin.py +openapi_client_udm/models/policies_printserver.py +openapi_client_udm/models/policies_printserver_list.py +openapi_client_udm/models/policies_printserver_list_embedded.py +openapi_client_udm/models/policies_printserver_request.py +openapi_client_udm/models/policies_printserver_request_patch.py +openapi_client_udm/models/policies_printserver_response_mixin.py +openapi_client_udm/models/policies_pwhistory.py +openapi_client_udm/models/policies_pwhistory_list.py +openapi_client_udm/models/policies_pwhistory_list_embedded.py +openapi_client_udm/models/policies_pwhistory_request.py +openapi_client_udm/models/policies_pwhistory_request_patch.py +openapi_client_udm/models/policies_pwhistory_response_mixin.py +openapi_client_udm/models/policies_registry.py +openapi_client_udm/models/policies_registry_list.py +openapi_client_udm/models/policies_registry_list_embedded.py +openapi_client_udm/models/policies_registry_request.py +openapi_client_udm/models/policies_registry_request_patch.py +openapi_client_udm/models/policies_registry_response_mixin.py +openapi_client_udm/models/policies_release.py +openapi_client_udm/models/policies_release_list.py +openapi_client_udm/models/policies_release_list_embedded.py +openapi_client_udm/models/policies_release_request.py +openapi_client_udm/models/policies_release_request_patch.py +openapi_client_udm/models/policies_release_response_mixin.py +openapi_client_udm/models/policies_repositoryserver.py +openapi_client_udm/models/policies_repositoryserver_list.py +openapi_client_udm/models/policies_repositoryserver_list_embedded.py +openapi_client_udm/models/policies_repositoryserver_request.py +openapi_client_udm/models/policies_repositoryserver_request_patch.py +openapi_client_udm/models/policies_repositoryserver_response_mixin.py +openapi_client_udm/models/policies_repositorysync.py +openapi_client_udm/models/policies_repositorysync_list.py +openapi_client_udm/models/policies_repositorysync_list_embedded.py +openapi_client_udm/models/policies_repositorysync_request.py +openapi_client_udm/models/policies_repositorysync_request_patch.py +openapi_client_udm/models/policies_repositorysync_response_mixin.py +openapi_client_udm/models/policies_share_userquota.py +openapi_client_udm/models/policies_share_userquota_list.py +openapi_client_udm/models/policies_share_userquota_list_embedded.py +openapi_client_udm/models/policies_share_userquota_request.py +openapi_client_udm/models/policies_share_userquota_request_patch.py +openapi_client_udm/models/policies_share_userquota_response_mixin.py +openapi_client_udm/models/policies_slavepackages.py +openapi_client_udm/models/policies_slavepackages_list.py +openapi_client_udm/models/policies_slavepackages_list_embedded.py +openapi_client_udm/models/policies_slavepackages_request.py +openapi_client_udm/models/policies_slavepackages_request_patch.py +openapi_client_udm/models/policies_slavepackages_response_mixin.py +openapi_client_udm/models/policies_umc.py +openapi_client_udm/models/policies_umc_list.py +openapi_client_udm/models/policies_umc_list_embedded.py +openapi_client_udm/models/policies_umc_request.py +openapi_client_udm/models/policies_umc_request_patch.py +openapi_client_udm/models/policies_umc_response_mixin.py +openapi_client_udm/models/portals_all.py +openapi_client_udm/models/portals_all_list.py +openapi_client_udm/models/portals_all_list_embedded.py +openapi_client_udm/models/portals_all_request.py +openapi_client_udm/models/portals_all_request_patch.py +openapi_client_udm/models/portals_all_response_mixin.py +openapi_client_udm/models/portals_announcement.py +openapi_client_udm/models/portals_announcement_list.py +openapi_client_udm/models/portals_announcement_list_embedded.py +openapi_client_udm/models/portals_announcement_request.py +openapi_client_udm/models/portals_announcement_request_patch.py +openapi_client_udm/models/portals_announcement_response_mixin.py +openapi_client_udm/models/portals_category.py +openapi_client_udm/models/portals_category_list.py +openapi_client_udm/models/portals_category_list_embedded.py +openapi_client_udm/models/portals_category_request.py +openapi_client_udm/models/portals_category_request_patch.py +openapi_client_udm/models/portals_category_response_mixin.py +openapi_client_udm/models/portals_entry.py +openapi_client_udm/models/portals_entry_list.py +openapi_client_udm/models/portals_entry_list_embedded.py +openapi_client_udm/models/portals_entry_request.py +openapi_client_udm/models/portals_entry_request_patch.py +openapi_client_udm/models/portals_entry_response_mixin.py +openapi_client_udm/models/portals_folder.py +openapi_client_udm/models/portals_folder_list.py +openapi_client_udm/models/portals_folder_list_embedded.py +openapi_client_udm/models/portals_folder_request.py +openapi_client_udm/models/portals_folder_request_patch.py +openapi_client_udm/models/portals_folder_response_mixin.py +openapi_client_udm/models/portals_portal.py +openapi_client_udm/models/portals_portal_list.py +openapi_client_udm/models/portals_portal_list_embedded.py +openapi_client_udm/models/portals_portal_request.py +openapi_client_udm/models/portals_portal_request_patch.py +openapi_client_udm/models/portals_portal_response_mixin.py +openapi_client_udm/models/saml_idpconfig.py +openapi_client_udm/models/saml_idpconfig_list.py +openapi_client_udm/models/saml_idpconfig_list_embedded.py +openapi_client_udm/models/saml_idpconfig_request.py +openapi_client_udm/models/saml_idpconfig_request_patch.py +openapi_client_udm/models/saml_idpconfig_response_mixin.py +openapi_client_udm/models/saml_serviceprovider.py +openapi_client_udm/models/saml_serviceprovider_list.py +openapi_client_udm/models/saml_serviceprovider_list_embedded.py +openapi_client_udm/models/saml_serviceprovider_request.py +openapi_client_udm/models/saml_serviceprovider_request_patch.py +openapi_client_udm/models/saml_serviceprovider_response_mixin.py +openapi_client_udm/models/settings_cn.py +openapi_client_udm/models/settings_cn_list.py +openapi_client_udm/models/settings_cn_list_embedded.py +openapi_client_udm/models/settings_cn_policies.py +openapi_client_udm/models/settings_cn_request.py +openapi_client_udm/models/settings_cn_request_patch.py +openapi_client_udm/models/settings_cn_response_mixin.py +openapi_client_udm/models/settings_data.py +openapi_client_udm/models/settings_data_list.py +openapi_client_udm/models/settings_data_list_embedded.py +openapi_client_udm/models/settings_data_request.py +openapi_client_udm/models/settings_data_request_patch.py +openapi_client_udm/models/settings_data_response_mixin.py +openapi_client_udm/models/settings_default.py +openapi_client_udm/models/settings_default_list.py +openapi_client_udm/models/settings_default_list_embedded.py +openapi_client_udm/models/settings_default_request.py +openapi_client_udm/models/settings_default_request_patch.py +openapi_client_udm/models/settings_default_response_mixin.py +openapi_client_udm/models/settings_directory.py +openapi_client_udm/models/settings_directory_list.py +openapi_client_udm/models/settings_directory_list_embedded.py +openapi_client_udm/models/settings_directory_request.py +openapi_client_udm/models/settings_directory_request_patch.py +openapi_client_udm/models/settings_directory_response_mixin.py +openapi_client_udm/models/settings_extended_attribute.py +openapi_client_udm/models/settings_extended_attribute_list.py +openapi_client_udm/models/settings_extended_attribute_list_embedded.py +openapi_client_udm/models/settings_extended_attribute_request.py +openapi_client_udm/models/settings_extended_attribute_request_patch.py +openapi_client_udm/models/settings_extended_attribute_response_mixin.py +openapi_client_udm/models/settings_extended_options.py +openapi_client_udm/models/settings_extended_options_list.py +openapi_client_udm/models/settings_extended_options_list_embedded.py +openapi_client_udm/models/settings_extended_options_request.py +openapi_client_udm/models/settings_extended_options_request_patch.py +openapi_client_udm/models/settings_extended_options_response_mixin.py +openapi_client_udm/models/settings_ldapacl.py +openapi_client_udm/models/settings_ldapacl_list.py +openapi_client_udm/models/settings_ldapacl_list_embedded.py +openapi_client_udm/models/settings_ldapacl_request.py +openapi_client_udm/models/settings_ldapacl_request_patch.py +openapi_client_udm/models/settings_ldapacl_response_mixin.py +openapi_client_udm/models/settings_ldapschema.py +openapi_client_udm/models/settings_ldapschema_list.py +openapi_client_udm/models/settings_ldapschema_list_embedded.py +openapi_client_udm/models/settings_ldapschema_request.py +openapi_client_udm/models/settings_ldapschema_request_patch.py +openapi_client_udm/models/settings_ldapschema_response_mixin.py +openapi_client_udm/models/settings_license.py +openapi_client_udm/models/settings_license_list.py +openapi_client_udm/models/settings_license_list_embedded.py +openapi_client_udm/models/settings_license_options.py +openapi_client_udm/models/settings_license_request.py +openapi_client_udm/models/settings_license_request_patch.py +openapi_client_udm/models/settings_license_response_mixin.py +openapi_client_udm/models/settings_lock.py +openapi_client_udm/models/settings_lock_list.py +openapi_client_udm/models/settings_lock_list_embedded.py +openapi_client_udm/models/settings_lock_request.py +openapi_client_udm/models/settings_lock_request_patch.py +openapi_client_udm/models/settings_lock_response_mixin.py +openapi_client_udm/models/settings_msprintconnectionpolicy.py +openapi_client_udm/models/settings_msprintconnectionpolicy_list.py +openapi_client_udm/models/settings_msprintconnectionpolicy_list_embedded.py +openapi_client_udm/models/settings_msprintconnectionpolicy_policies.py +openapi_client_udm/models/settings_msprintconnectionpolicy_request.py +openapi_client_udm/models/settings_msprintconnectionpolicy_request_patch.py +openapi_client_udm/models/settings_msprintconnectionpolicy_response_mixin.py +openapi_client_udm/models/settings_mswmifilter.py +openapi_client_udm/models/settings_mswmifilter_list.py +openapi_client_udm/models/settings_mswmifilter_list_embedded.py +openapi_client_udm/models/settings_mswmifilter_policies.py +openapi_client_udm/models/settings_mswmifilter_request.py +openapi_client_udm/models/settings_mswmifilter_request_patch.py +openapi_client_udm/models/settings_mswmifilter_response_mixin.py +openapi_client_udm/models/settings_packages.py +openapi_client_udm/models/settings_packages_list.py +openapi_client_udm/models/settings_packages_list_embedded.py +openapi_client_udm/models/settings_packages_request.py +openapi_client_udm/models/settings_packages_request_patch.py +openapi_client_udm/models/settings_packages_response_mixin.py +openapi_client_udm/models/settings_portal.py +openapi_client_udm/models/settings_portal_all.py +openapi_client_udm/models/settings_portal_all_list.py +openapi_client_udm/models/settings_portal_all_list_embedded.py +openapi_client_udm/models/settings_portal_all_request.py +openapi_client_udm/models/settings_portal_all_request_patch.py +openapi_client_udm/models/settings_portal_all_response_mixin.py +openapi_client_udm/models/settings_portal_category.py +openapi_client_udm/models/settings_portal_category_list.py +openapi_client_udm/models/settings_portal_category_list_embedded.py +openapi_client_udm/models/settings_portal_category_request.py +openapi_client_udm/models/settings_portal_category_request_patch.py +openapi_client_udm/models/settings_portal_category_response_mixin.py +openapi_client_udm/models/settings_portal_entry.py +openapi_client_udm/models/settings_portal_entry_list.py +openapi_client_udm/models/settings_portal_entry_list_embedded.py +openapi_client_udm/models/settings_portal_entry_request.py +openapi_client_udm/models/settings_portal_entry_request_patch.py +openapi_client_udm/models/settings_portal_entry_response_mixin.py +openapi_client_udm/models/settings_portal_list.py +openapi_client_udm/models/settings_portal_list_embedded.py +openapi_client_udm/models/settings_portal_request.py +openapi_client_udm/models/settings_portal_request_patch.py +openapi_client_udm/models/settings_portal_response_mixin.py +openapi_client_udm/models/settings_printermodel.py +openapi_client_udm/models/settings_printermodel_list.py +openapi_client_udm/models/settings_printermodel_list_embedded.py +openapi_client_udm/models/settings_printermodel_request.py +openapi_client_udm/models/settings_printermodel_request_patch.py +openapi_client_udm/models/settings_printermodel_response_mixin.py +openapi_client_udm/models/settings_printeruri.py +openapi_client_udm/models/settings_printeruri_list.py +openapi_client_udm/models/settings_printeruri_list_embedded.py +openapi_client_udm/models/settings_printeruri_request.py +openapi_client_udm/models/settings_printeruri_request_patch.py +openapi_client_udm/models/settings_printeruri_response_mixin.py +openapi_client_udm/models/settings_prohibited_username.py +openapi_client_udm/models/settings_prohibited_username_list.py +openapi_client_udm/models/settings_prohibited_username_list_embedded.py +openapi_client_udm/models/settings_prohibited_username_request.py +openapi_client_udm/models/settings_prohibited_username_request_patch.py +openapi_client_udm/models/settings_prohibited_username_response_mixin.py +openapi_client_udm/models/settings_sambaconfig.py +openapi_client_udm/models/settings_sambaconfig_list.py +openapi_client_udm/models/settings_sambaconfig_list_embedded.py +openapi_client_udm/models/settings_sambaconfig_request.py +openapi_client_udm/models/settings_sambaconfig_request_patch.py +openapi_client_udm/models/settings_sambaconfig_response_mixin.py +openapi_client_udm/models/settings_sambadomain.py +openapi_client_udm/models/settings_sambadomain_list.py +openapi_client_udm/models/settings_sambadomain_list_embedded.py +openapi_client_udm/models/settings_sambadomain_request.py +openapi_client_udm/models/settings_sambadomain_request_patch.py +openapi_client_udm/models/settings_sambadomain_response_mixin.py +openapi_client_udm/models/settings_service.py +openapi_client_udm/models/settings_service_list.py +openapi_client_udm/models/settings_service_list_embedded.py +openapi_client_udm/models/settings_service_request.py +openapi_client_udm/models/settings_service_request_patch.py +openapi_client_udm/models/settings_service_response_mixin.py +openapi_client_udm/models/settings_settings.py +openapi_client_udm/models/settings_settings_list.py +openapi_client_udm/models/settings_settings_list_embedded.py +openapi_client_udm/models/settings_settings_request.py +openapi_client_udm/models/settings_settings_request_patch.py +openapi_client_udm/models/settings_settings_response_mixin.py +openapi_client_udm/models/settings_syntax.py +openapi_client_udm/models/settings_syntax_list.py +openapi_client_udm/models/settings_syntax_list_embedded.py +openapi_client_udm/models/settings_syntax_request.py +openapi_client_udm/models/settings_syntax_request_patch.py +openapi_client_udm/models/settings_syntax_response_mixin.py +openapi_client_udm/models/settings_udm_hook.py +openapi_client_udm/models/settings_udm_hook_list.py +openapi_client_udm/models/settings_udm_hook_list_embedded.py +openapi_client_udm/models/settings_udm_hook_request.py +openapi_client_udm/models/settings_udm_hook_request_patch.py +openapi_client_udm/models/settings_udm_hook_response_mixin.py +openapi_client_udm/models/settings_udm_module.py +openapi_client_udm/models/settings_udm_module_list.py +openapi_client_udm/models/settings_udm_module_list_embedded.py +openapi_client_udm/models/settings_udm_module_request.py +openapi_client_udm/models/settings_udm_module_request_patch.py +openapi_client_udm/models/settings_udm_module_response_mixin.py +openapi_client_udm/models/settings_udm_syntax.py +openapi_client_udm/models/settings_udm_syntax_list.py +openapi_client_udm/models/settings_udm_syntax_list_embedded.py +openapi_client_udm/models/settings_udm_syntax_request.py +openapi_client_udm/models/settings_udm_syntax_request_patch.py +openapi_client_udm/models/settings_udm_syntax_response_mixin.py +openapi_client_udm/models/settings_umc_operationset.py +openapi_client_udm/models/settings_umc_operationset_list.py +openapi_client_udm/models/settings_umc_operationset_list_embedded.py +openapi_client_udm/models/settings_umc_operationset_request.py +openapi_client_udm/models/settings_umc_operationset_request_patch.py +openapi_client_udm/models/settings_umc_operationset_response_mixin.py +openapi_client_udm/models/settings_usertemplate.py +openapi_client_udm/models/settings_usertemplate_list.py +openapi_client_udm/models/settings_usertemplate_list_embedded.py +openapi_client_udm/models/settings_usertemplate_request.py +openapi_client_udm/models/settings_usertemplate_request_patch.py +openapi_client_udm/models/settings_usertemplate_response_mixin.py +openapi_client_udm/models/shares_print.py +openapi_client_udm/models/shares_print_list.py +openapi_client_udm/models/shares_print_list_embedded.py +openapi_client_udm/models/shares_print_request.py +openapi_client_udm/models/shares_print_request_patch.py +openapi_client_udm/models/shares_print_response_mixin.py +openapi_client_udm/models/shares_printer.py +openapi_client_udm/models/shares_printer_list.py +openapi_client_udm/models/shares_printer_list_embedded.py +openapi_client_udm/models/shares_printer_request.py +openapi_client_udm/models/shares_printer_request_patch.py +openapi_client_udm/models/shares_printer_response_mixin.py +openapi_client_udm/models/shares_printergroup.py +openapi_client_udm/models/shares_printergroup_list.py +openapi_client_udm/models/shares_printergroup_list_embedded.py +openapi_client_udm/models/shares_printergroup_request.py +openapi_client_udm/models/shares_printergroup_request_patch.py +openapi_client_udm/models/shares_printergroup_response_mixin.py +openapi_client_udm/models/shares_share.py +openapi_client_udm/models/shares_share_list.py +openapi_client_udm/models/shares_share_list_embedded.py +openapi_client_udm/models/shares_share_options.py +openapi_client_udm/models/shares_share_policies.py +openapi_client_udm/models/shares_share_request.py +openapi_client_udm/models/shares_share_request_patch.py +openapi_client_udm/models/shares_share_response_mixin.py +openapi_client_udm/models/users_contact.py +openapi_client_udm/models/users_contact_list.py +openapi_client_udm/models/users_contact_list_embedded.py +openapi_client_udm/models/users_contact_request.py +openapi_client_udm/models/users_contact_request_patch.py +openapi_client_udm/models/users_contact_response_mixin.py +openapi_client_udm/models/users_ldap.py +openapi_client_udm/models/users_ldap_list.py +openapi_client_udm/models/users_ldap_list_embedded.py +openapi_client_udm/models/users_ldap_options.py +openapi_client_udm/models/users_ldap_policies.py +openapi_client_udm/models/users_ldap_request.py +openapi_client_udm/models/users_ldap_request_patch.py +openapi_client_udm/models/users_ldap_response_mixin.py +openapi_client_udm/models/users_passwd.py +openapi_client_udm/models/users_passwd_list.py +openapi_client_udm/models/users_passwd_list_embedded.py +openapi_client_udm/models/users_passwd_request.py +openapi_client_udm/models/users_passwd_request_patch.py +openapi_client_udm/models/users_passwd_response_mixin.py +openapi_client_udm/models/users_self.py +openapi_client_udm/models/users_self_list.py +openapi_client_udm/models/users_self_list_embedded.py +openapi_client_udm/models/users_self_options.py +openapi_client_udm/models/users_self_request.py +openapi_client_udm/models/users_self_request_patch.py +openapi_client_udm/models/users_self_response_mixin.py +openapi_client_udm/models/users_user.py +openapi_client_udm/models/users_user_list.py +openapi_client_udm/models/users_user_list_embedded.py +openapi_client_udm/models/users_user_options.py +openapi_client_udm/models/users_user_policies.py +openapi_client_udm/models/users_user_request.py +openapi_client_udm/models/users_user_request_patch.py +openapi_client_udm/models/users_user_response_mixin.py +openapi_client_udm/models/uvmm_cloudconnection.py +openapi_client_udm/models/uvmm_cloudconnection_list.py +openapi_client_udm/models/uvmm_cloudconnection_list_embedded.py +openapi_client_udm/models/uvmm_cloudconnection_request.py +openapi_client_udm/models/uvmm_cloudconnection_request_patch.py +openapi_client_udm/models/uvmm_cloudconnection_response_mixin.py +openapi_client_udm/models/uvmm_cloudtype.py +openapi_client_udm/models/uvmm_cloudtype_list.py +openapi_client_udm/models/uvmm_cloudtype_list_embedded.py +openapi_client_udm/models/uvmm_cloudtype_request.py +openapi_client_udm/models/uvmm_cloudtype_request_patch.py +openapi_client_udm/models/uvmm_cloudtype_response_mixin.py +openapi_client_udm/models/uvmm_info.py +openapi_client_udm/models/uvmm_info_list.py +openapi_client_udm/models/uvmm_info_list_embedded.py +openapi_client_udm/models/uvmm_info_request.py +openapi_client_udm/models/uvmm_info_request_patch.py +openapi_client_udm/models/uvmm_info_response_mixin.py +openapi_client_udm/models/uvmm_profile.py +openapi_client_udm/models/uvmm_profile_list.py +openapi_client_udm/models/uvmm_profile_list_embedded.py +openapi_client_udm/models/uvmm_profile_request.py +openapi_client_udm/models/uvmm_profile_request_patch.py +openapi_client_udm/models/uvmm_profile_response_mixin.py +openapi_client_udm/rest.py +requirements.txt +setup.cfg +setup.py +test-requirements.txt +test/__init__.py +test/test_appcenter_app.py +test/test_appcenter_app_api.py +test/test_appcenter_app_list.py +test/test_appcenter_app_list_embedded.py +test/test_appcenter_app_policies.py +test/test_appcenter_app_request.py +test/test_appcenter_app_request_all_of.py +test/test_appcenter_app_request_patch.py +test/test_appcenter_app_response_mixin.py +test/test_computers_computer.py +test/test_computers_computer_api.py +test/test_computers_computer_list.py +test/test_computers_computer_list_embedded.py +test/test_computers_computer_request.py +test/test_computers_computer_request_patch.py +test/test_computers_computer_response_mixin.py +test/test_computers_domaincontroller_backup.py +test/test_computers_domaincontroller_backup_api.py +test/test_computers_domaincontroller_backup_list.py +test/test_computers_domaincontroller_backup_list_embedded.py +test/test_computers_domaincontroller_backup_options.py +test/test_computers_domaincontroller_backup_policies.py +test/test_computers_domaincontroller_backup_request.py +test/test_computers_domaincontroller_backup_request_patch.py +test/test_computers_domaincontroller_backup_response_mixin.py +test/test_computers_domaincontroller_master.py +test/test_computers_domaincontroller_master_api.py +test/test_computers_domaincontroller_master_list.py +test/test_computers_domaincontroller_master_list_embedded.py +test/test_computers_domaincontroller_master_options.py +test/test_computers_domaincontroller_master_policies.py +test/test_computers_domaincontroller_master_request.py +test/test_computers_domaincontroller_master_request_patch.py +test/test_computers_domaincontroller_master_response_mixin.py +test/test_computers_domaincontroller_slave.py +test/test_computers_domaincontroller_slave_api.py +test/test_computers_domaincontroller_slave_list.py +test/test_computers_domaincontroller_slave_list_embedded.py +test/test_computers_domaincontroller_slave_options.py +test/test_computers_domaincontroller_slave_policies.py +test/test_computers_domaincontroller_slave_request.py +test/test_computers_domaincontroller_slave_request_patch.py +test/test_computers_domaincontroller_slave_response_mixin.py +test/test_computers_ipmanagedclient.py +test/test_computers_ipmanagedclient_api.py +test/test_computers_ipmanagedclient_list.py +test/test_computers_ipmanagedclient_list_embedded.py +test/test_computers_ipmanagedclient_options.py +test/test_computers_ipmanagedclient_request.py +test/test_computers_ipmanagedclient_request_patch.py +test/test_computers_ipmanagedclient_response_mixin.py +test/test_computers_linux.py +test/test_computers_linux_api.py +test/test_computers_linux_list.py +test/test_computers_linux_list_embedded.py +test/test_computers_linux_options.py +test/test_computers_linux_request.py +test/test_computers_linux_request_patch.py +test/test_computers_linux_response_mixin.py +test/test_computers_macos.py +test/test_computers_macos_api.py +test/test_computers_macos_list.py +test/test_computers_macos_list_embedded.py +test/test_computers_macos_options.py +test/test_computers_macos_request.py +test/test_computers_macos_request_patch.py +test/test_computers_macos_response_mixin.py +test/test_computers_memberserver.py +test/test_computers_memberserver_api.py +test/test_computers_memberserver_list.py +test/test_computers_memberserver_list_embedded.py +test/test_computers_memberserver_options.py +test/test_computers_memberserver_policies.py +test/test_computers_memberserver_request.py +test/test_computers_memberserver_request_patch.py +test/test_computers_memberserver_response_mixin.py +test/test_computers_trustaccount.py +test/test_computers_trustaccount_api.py +test/test_computers_trustaccount_list.py +test/test_computers_trustaccount_list_embedded.py +test/test_computers_trustaccount_options.py +test/test_computers_trustaccount_request.py +test/test_computers_trustaccount_request_patch.py +test/test_computers_trustaccount_response_mixin.py +test/test_computers_ubuntu.py +test/test_computers_ubuntu_api.py +test/test_computers_ubuntu_list.py +test/test_computers_ubuntu_list_embedded.py +test/test_computers_ubuntu_options.py +test/test_computers_ubuntu_request.py +test/test_computers_ubuntu_request_patch.py +test/test_computers_ubuntu_response_mixin.py +test/test_computers_windows.py +test/test_computers_windows_api.py +test/test_computers_windows_domaincontroller.py +test/test_computers_windows_domaincontroller_api.py +test/test_computers_windows_domaincontroller_list.py +test/test_computers_windows_domaincontroller_list_embedded.py +test/test_computers_windows_domaincontroller_options.py +test/test_computers_windows_domaincontroller_request.py +test/test_computers_windows_domaincontroller_request_patch.py +test/test_computers_windows_domaincontroller_response_mixin.py +test/test_computers_windows_list.py +test/test_computers_windows_list_embedded.py +test/test_computers_windows_options.py +test/test_computers_windows_request.py +test/test_computers_windows_request_patch.py +test/test_computers_windows_response_mixin.py +test/test_container_cn.py +test/test_container_cn_api.py +test/test_container_cn_list.py +test/test_container_cn_list_embedded.py +test/test_container_cn_policies.py +test/test_container_cn_request.py +test/test_container_cn_request_patch.py +test/test_container_cn_response_mixin.py +test/test_container_dc.py +test/test_container_dc_api.py +test/test_container_dc_list.py +test/test_container_dc_list_embedded.py +test/test_container_dc_options.py +test/test_container_dc_policies.py +test/test_container_dc_request.py +test/test_container_dc_request_patch.py +test/test_container_dc_response_mixin.py +test/test_container_msgpo.py +test/test_container_msgpo_api.py +test/test_container_msgpo_list.py +test/test_container_msgpo_list_embedded.py +test/test_container_msgpo_policies.py +test/test_container_msgpo_request.py +test/test_container_msgpo_request_patch.py +test/test_container_msgpo_response_mixin.py +test/test_container_ou.py +test/test_container_ou_api.py +test/test_container_ou_list.py +test/test_container_ou_list_embedded.py +test/test_container_ou_policies.py +test/test_container_ou_request.py +test/test_container_ou_request_patch.py +test/test_container_ou_response_mixin.py +test/test_dhcp_dhcp.py +test/test_dhcp_dhcp_api.py +test/test_dhcp_dhcp_list.py +test/test_dhcp_dhcp_list_embedded.py +test/test_dhcp_dhcp_request.py +test/test_dhcp_dhcp_request_patch.py +test/test_dhcp_dhcp_response_mixin.py +test/test_dhcp_host.py +test/test_dhcp_host_api.py +test/test_dhcp_host_list.py +test/test_dhcp_host_list_embedded.py +test/test_dhcp_host_options.py +test/test_dhcp_host_policies.py +test/test_dhcp_host_request.py +test/test_dhcp_host_request_patch.py +test/test_dhcp_host_response_mixin.py +test/test_dhcp_pool.py +test/test_dhcp_pool_api.py +test/test_dhcp_pool_list.py +test/test_dhcp_pool_list_embedded.py +test/test_dhcp_pool_options.py +test/test_dhcp_pool_policies.py +test/test_dhcp_pool_request.py +test/test_dhcp_pool_request_patch.py +test/test_dhcp_pool_response_mixin.py +test/test_dhcp_server.py +test/test_dhcp_server_api.py +test/test_dhcp_server_list.py +test/test_dhcp_server_list_embedded.py +test/test_dhcp_server_request.py +test/test_dhcp_server_request_patch.py +test/test_dhcp_server_response_mixin.py +test/test_dhcp_service.py +test/test_dhcp_service_api.py +test/test_dhcp_service_list.py +test/test_dhcp_service_list_embedded.py +test/test_dhcp_service_options.py +test/test_dhcp_service_policies.py +test/test_dhcp_service_request.py +test/test_dhcp_service_request_patch.py +test/test_dhcp_service_response_mixin.py +test/test_dhcp_shared.py +test/test_dhcp_shared_api.py +test/test_dhcp_shared_list.py +test/test_dhcp_shared_list_embedded.py +test/test_dhcp_shared_options.py +test/test_dhcp_shared_policies.py +test/test_dhcp_shared_request.py +test/test_dhcp_shared_request_patch.py +test/test_dhcp_shared_response_mixin.py +test/test_dhcp_sharedsubnet.py +test/test_dhcp_sharedsubnet_api.py +test/test_dhcp_sharedsubnet_list.py +test/test_dhcp_sharedsubnet_list_embedded.py +test/test_dhcp_sharedsubnet_options.py +test/test_dhcp_sharedsubnet_policies.py +test/test_dhcp_sharedsubnet_request.py +test/test_dhcp_sharedsubnet_request_patch.py +test/test_dhcp_sharedsubnet_response_mixin.py +test/test_dhcp_subnet.py +test/test_dhcp_subnet_api.py +test/test_dhcp_subnet_list.py +test/test_dhcp_subnet_list_embedded.py +test/test_dhcp_subnet_options.py +test/test_dhcp_subnet_policies.py +test/test_dhcp_subnet_request.py +test/test_dhcp_subnet_request_patch.py +test/test_dhcp_subnet_response_mixin.py +test/test_dns_alias.py +test/test_dns_alias_api.py +test/test_dns_alias_list.py +test/test_dns_alias_list_embedded.py +test/test_dns_alias_request.py +test/test_dns_alias_request_patch.py +test/test_dns_alias_response_mixin.py +test/test_dns_dns.py +test/test_dns_dns_api.py +test/test_dns_dns_list.py +test/test_dns_dns_list_embedded.py +test/test_dns_dns_request.py +test/test_dns_dns_request_patch.py +test/test_dns_dns_response_mixin.py +test/test_dns_forward_zone.py +test/test_dns_forward_zone_api.py +test/test_dns_forward_zone_list.py +test/test_dns_forward_zone_list_embedded.py +test/test_dns_forward_zone_policies.py +test/test_dns_forward_zone_request.py +test/test_dns_forward_zone_request_patch.py +test/test_dns_forward_zone_response_mixin.py +test/test_dns_host_record.py +test/test_dns_host_record_api.py +test/test_dns_host_record_list.py +test/test_dns_host_record_list_embedded.py +test/test_dns_host_record_request.py +test/test_dns_host_record_request_patch.py +test/test_dns_host_record_response_mixin.py +test/test_dns_ns_record.py +test/test_dns_ns_record_api.py +test/test_dns_ns_record_list.py +test/test_dns_ns_record_list_embedded.py +test/test_dns_ns_record_request.py +test/test_dns_ns_record_request_patch.py +test/test_dns_ns_record_response_mixin.py +test/test_dns_ptr_record.py +test/test_dns_ptr_record_api.py +test/test_dns_ptr_record_list.py +test/test_dns_ptr_record_list_embedded.py +test/test_dns_ptr_record_request.py +test/test_dns_ptr_record_request_patch.py +test/test_dns_ptr_record_response_mixin.py +test/test_dns_reverse_zone.py +test/test_dns_reverse_zone_api.py +test/test_dns_reverse_zone_list.py +test/test_dns_reverse_zone_list_embedded.py +test/test_dns_reverse_zone_policies.py +test/test_dns_reverse_zone_request.py +test/test_dns_reverse_zone_request_patch.py +test/test_dns_reverse_zone_response_mixin.py +test/test_dns_srv_record.py +test/test_dns_srv_record_api.py +test/test_dns_srv_record_list.py +test/test_dns_srv_record_list_embedded.py +test/test_dns_srv_record_request.py +test/test_dns_srv_record_request_patch.py +test/test_dns_srv_record_response_mixin.py +test/test_dns_txt_record.py +test/test_dns_txt_record_api.py +test/test_dns_txt_record_list.py +test/test_dns_txt_record_list_embedded.py +test/test_dns_txt_record_request.py +test/test_dns_txt_record_request_patch.py +test/test_dns_txt_record_response_mixin.py +test/test_embedded_error.py +test/test_groups_group.py +test/test_groups_group_api.py +test/test_groups_group_list.py +test/test_groups_group_list_embedded.py +test/test_groups_group_options.py +test/test_groups_group_policies.py +test/test_groups_group_request.py +test/test_groups_group_request_patch.py +test/test_groups_group_response_mixin.py +test/test_inline_response201.py +test/test_kerberos_kdcentry.py +test/test_kerberos_kdcentry_api.py +test/test_kerberos_kdcentry_list.py +test/test_kerberos_kdcentry_list_embedded.py +test/test_kerberos_kdcentry_request.py +test/test_kerberos_kdcentry_request_patch.py +test/test_kerberos_kdcentry_response_mixin.py +test/test_links.py +test/test_mail_domain.py +test/test_mail_domain_api.py +test/test_mail_domain_list.py +test/test_mail_domain_list_embedded.py +test/test_mail_domain_request.py +test/test_mail_domain_request_patch.py +test/test_mail_domain_response_mixin.py +test/test_mail_folder.py +test/test_mail_folder_api.py +test/test_mail_folder_list.py +test/test_mail_folder_list_embedded.py +test/test_mail_folder_request.py +test/test_mail_folder_request_patch.py +test/test_mail_folder_response_mixin.py +test/test_mail_lists.py +test/test_mail_lists_api.py +test/test_mail_lists_list.py +test/test_mail_lists_list_embedded.py +test/test_mail_lists_request.py +test/test_mail_lists_request_patch.py +test/test_mail_lists_response_mixin.py +test/test_mail_mail.py +test/test_mail_mail_api.py +test/test_mail_mail_list.py +test/test_mail_mail_list_embedded.py +test/test_mail_mail_request.py +test/test_mail_mail_request_patch.py +test/test_mail_mail_response_mixin.py +test/test_monitoring_alert.py +test/test_monitoring_alert_api.py +test/test_monitoring_alert_list.py +test/test_monitoring_alert_list_embedded.py +test/test_monitoring_alert_request.py +test/test_monitoring_alert_request_patch.py +test/test_monitoring_alert_response_mixin.py +test/test_ms_domainpolicy.py +test/test_ms_domainpolicy_api.py +test/test_ms_domainpolicy_list.py +test/test_ms_domainpolicy_list_embedded.py +test/test_ms_domainpolicy_policies.py +test/test_ms_domainpolicy_request.py +test/test_ms_domainpolicy_request_patch.py +test/test_ms_domainpolicy_response_mixin.py +test/test_ms_gpipsec_filter.py +test/test_ms_gpipsec_filter_api.py +test/test_ms_gpipsec_filter_list.py +test/test_ms_gpipsec_filter_list_embedded.py +test/test_ms_gpipsec_filter_policies.py +test/test_ms_gpipsec_filter_request.py +test/test_ms_gpipsec_filter_request_patch.py +test/test_ms_gpipsec_filter_response_mixin.py +test/test_ms_gpipsec_isakmp_policy.py +test/test_ms_gpipsec_isakmp_policy_api.py +test/test_ms_gpipsec_isakmp_policy_list.py +test/test_ms_gpipsec_isakmp_policy_list_embedded.py +test/test_ms_gpipsec_isakmp_policy_policies.py +test/test_ms_gpipsec_isakmp_policy_request.py +test/test_ms_gpipsec_isakmp_policy_request_patch.py +test/test_ms_gpipsec_isakmp_policy_response_mixin.py +test/test_ms_gpipsec_negotiation_policy.py +test/test_ms_gpipsec_negotiation_policy_api.py +test/test_ms_gpipsec_negotiation_policy_list.py +test/test_ms_gpipsec_negotiation_policy_list_embedded.py +test/test_ms_gpipsec_negotiation_policy_policies.py +test/test_ms_gpipsec_negotiation_policy_request.py +test/test_ms_gpipsec_negotiation_policy_request_patch.py +test/test_ms_gpipsec_negotiation_policy_response_mixin.py +test/test_ms_gpipsec_nfa.py +test/test_ms_gpipsec_nfa_api.py +test/test_ms_gpipsec_nfa_list.py +test/test_ms_gpipsec_nfa_list_embedded.py +test/test_ms_gpipsec_nfa_policies.py +test/test_ms_gpipsec_nfa_request.py +test/test_ms_gpipsec_nfa_request_patch.py +test/test_ms_gpipsec_nfa_response_mixin.py +test/test_ms_gpipsec_policy.py +test/test_ms_gpipsec_policy_api.py +test/test_ms_gpipsec_policy_list.py +test/test_ms_gpipsec_policy_list_embedded.py +test/test_ms_gpipsec_policy_policies.py +test/test_ms_gpipsec_policy_request.py +test/test_ms_gpipsec_policy_request_patch.py +test/test_ms_gpipsec_policy_response_mixin.py +test/test_ms_gpsi_category_registration.py +test/test_ms_gpsi_category_registration_api.py +test/test_ms_gpsi_category_registration_list.py +test/test_ms_gpsi_category_registration_list_embedded.py +test/test_ms_gpsi_category_registration_policies.py +test/test_ms_gpsi_category_registration_request.py +test/test_ms_gpsi_category_registration_request_patch.py +test/test_ms_gpsi_category_registration_response_mixin.py +test/test_ms_gpsi_class_store.py +test/test_ms_gpsi_class_store_api.py +test/test_ms_gpsi_class_store_list.py +test/test_ms_gpsi_class_store_list_embedded.py +test/test_ms_gpsi_class_store_policies.py +test/test_ms_gpsi_class_store_request.py +test/test_ms_gpsi_class_store_request_patch.py +test/test_ms_gpsi_class_store_response_mixin.py +test/test_ms_gpsi_package_registration.py +test/test_ms_gpsi_package_registration_api.py +test/test_ms_gpsi_package_registration_list.py +test/test_ms_gpsi_package_registration_list_embedded.py +test/test_ms_gpsi_package_registration_policies.py +test/test_ms_gpsi_package_registration_request.py +test/test_ms_gpsi_package_registration_request_patch.py +test/test_ms_gpsi_package_registration_response_mixin.py +test/test_ms_gpwl_wired.py +test/test_ms_gpwl_wired_api.py +test/test_ms_gpwl_wired_list.py +test/test_ms_gpwl_wired_list_embedded.py +test/test_ms_gpwl_wired_policies.py +test/test_ms_gpwl_wired_request.py +test/test_ms_gpwl_wired_request_patch.py +test/test_ms_gpwl_wired_response_mixin.py +test/test_ms_gpwl_wireless.py +test/test_ms_gpwl_wireless_api.py +test/test_ms_gpwl_wireless_blob.py +test/test_ms_gpwl_wireless_blob_api.py +test/test_ms_gpwl_wireless_blob_list.py +test/test_ms_gpwl_wireless_blob_list_embedded.py +test/test_ms_gpwl_wireless_blob_policies.py +test/test_ms_gpwl_wireless_blob_request.py +test/test_ms_gpwl_wireless_blob_request_patch.py +test/test_ms_gpwl_wireless_blob_response_mixin.py +test/test_ms_gpwl_wireless_list.py +test/test_ms_gpwl_wireless_list_embedded.py +test/test_ms_gpwl_wireless_policies.py +test/test_ms_gpwl_wireless_request.py +test/test_ms_gpwl_wireless_request_patch.py +test/test_ms_gpwl_wireless_response_mixin.py +test/test_nagios_nagios.py +test/test_nagios_nagios_api.py +test/test_nagios_nagios_list.py +test/test_nagios_nagios_list_embedded.py +test/test_nagios_nagios_request.py +test/test_nagios_nagios_request_patch.py +test/test_nagios_nagios_response_mixin.py +test/test_nagios_service.py +test/test_nagios_service_api.py +test/test_nagios_service_list.py +test/test_nagios_service_list_embedded.py +test/test_nagios_service_request.py +test/test_nagios_service_request_patch.py +test/test_nagios_service_response_mixin.py +test/test_nagios_timeperiod.py +test/test_nagios_timeperiod_api.py +test/test_nagios_timeperiod_list.py +test/test_nagios_timeperiod_list_embedded.py +test/test_nagios_timeperiod_request.py +test/test_nagios_timeperiod_request_patch.py +test/test_nagios_timeperiod_response_mixin.py +test/test_networks_network.py +test/test_networks_network_api.py +test/test_networks_network_list.py +test/test_networks_network_list_embedded.py +test/test_networks_network_request.py +test/test_networks_network_request_patch.py +test/test_networks_network_response_mixin.py +test/test_policies_admin_container.py +test/test_policies_admin_container_api.py +test/test_policies_admin_container_list.py +test/test_policies_admin_container_list_embedded.py +test/test_policies_admin_container_request.py +test/test_policies_admin_container_request_patch.py +test/test_policies_admin_container_response_mixin.py +test/test_policies_desktop.py +test/test_policies_desktop_api.py +test/test_policies_desktop_list.py +test/test_policies_desktop_list_embedded.py +test/test_policies_desktop_request.py +test/test_policies_desktop_request_patch.py +test/test_policies_desktop_response_mixin.py +test/test_policies_dhcp_boot.py +test/test_policies_dhcp_boot_api.py +test/test_policies_dhcp_boot_list.py +test/test_policies_dhcp_boot_list_embedded.py +test/test_policies_dhcp_boot_request.py +test/test_policies_dhcp_boot_request_patch.py +test/test_policies_dhcp_boot_response_mixin.py +test/test_policies_dhcp_dns.py +test/test_policies_dhcp_dns_api.py +test/test_policies_dhcp_dns_list.py +test/test_policies_dhcp_dns_list_embedded.py +test/test_policies_dhcp_dns_request.py +test/test_policies_dhcp_dns_request_patch.py +test/test_policies_dhcp_dns_response_mixin.py +test/test_policies_dhcp_dnsupdate.py +test/test_policies_dhcp_dnsupdate_api.py +test/test_policies_dhcp_dnsupdate_list.py +test/test_policies_dhcp_dnsupdate_list_embedded.py +test/test_policies_dhcp_dnsupdate_request.py +test/test_policies_dhcp_dnsupdate_request_patch.py +test/test_policies_dhcp_dnsupdate_response_mixin.py +test/test_policies_dhcp_leasetime.py +test/test_policies_dhcp_leasetime_api.py +test/test_policies_dhcp_leasetime_list.py +test/test_policies_dhcp_leasetime_list_embedded.py +test/test_policies_dhcp_leasetime_request.py +test/test_policies_dhcp_leasetime_request_patch.py +test/test_policies_dhcp_leasetime_response_mixin.py +test/test_policies_dhcp_netbios.py +test/test_policies_dhcp_netbios_api.py +test/test_policies_dhcp_netbios_list.py +test/test_policies_dhcp_netbios_list_embedded.py +test/test_policies_dhcp_netbios_request.py +test/test_policies_dhcp_netbios_request_patch.py +test/test_policies_dhcp_netbios_response_mixin.py +test/test_policies_dhcp_routing.py +test/test_policies_dhcp_routing_api.py +test/test_policies_dhcp_routing_list.py +test/test_policies_dhcp_routing_list_embedded.py +test/test_policies_dhcp_routing_request.py +test/test_policies_dhcp_routing_request_patch.py +test/test_policies_dhcp_routing_response_mixin.py +test/test_policies_dhcp_scope.py +test/test_policies_dhcp_scope_api.py +test/test_policies_dhcp_scope_list.py +test/test_policies_dhcp_scope_list_embedded.py +test/test_policies_dhcp_scope_request.py +test/test_policies_dhcp_scope_request_patch.py +test/test_policies_dhcp_scope_response_mixin.py +test/test_policies_dhcp_statements.py +test/test_policies_dhcp_statements_api.py +test/test_policies_dhcp_statements_list.py +test/test_policies_dhcp_statements_list_embedded.py +test/test_policies_dhcp_statements_request.py +test/test_policies_dhcp_statements_request_patch.py +test/test_policies_dhcp_statements_response_mixin.py +test/test_policies_ldapserver.py +test/test_policies_ldapserver_api.py +test/test_policies_ldapserver_list.py +test/test_policies_ldapserver_list_embedded.py +test/test_policies_ldapserver_request.py +test/test_policies_ldapserver_request_patch.py +test/test_policies_ldapserver_response_mixin.py +test/test_policies_maintenance.py +test/test_policies_maintenance_api.py +test/test_policies_maintenance_list.py +test/test_policies_maintenance_list_embedded.py +test/test_policies_maintenance_request.py +test/test_policies_maintenance_request_patch.py +test/test_policies_maintenance_response_mixin.py +test/test_policies_masterpackages.py +test/test_policies_masterpackages_api.py +test/test_policies_masterpackages_list.py +test/test_policies_masterpackages_list_embedded.py +test/test_policies_masterpackages_request.py +test/test_policies_masterpackages_request_patch.py +test/test_policies_masterpackages_response_mixin.py +test/test_policies_memberpackages.py +test/test_policies_memberpackages_api.py +test/test_policies_memberpackages_list.py +test/test_policies_memberpackages_list_embedded.py +test/test_policies_memberpackages_request.py +test/test_policies_memberpackages_request_patch.py +test/test_policies_memberpackages_response_mixin.py +test/test_policies_nfsmounts.py +test/test_policies_nfsmounts_api.py +test/test_policies_nfsmounts_list.py +test/test_policies_nfsmounts_list_embedded.py +test/test_policies_nfsmounts_request.py +test/test_policies_nfsmounts_request_patch.py +test/test_policies_nfsmounts_response_mixin.py +test/test_policies_policy.py +test/test_policies_policy_api.py +test/test_policies_policy_list.py +test/test_policies_policy_list_embedded.py +test/test_policies_policy_request.py +test/test_policies_policy_request_patch.py +test/test_policies_policy_response_mixin.py +test/test_policies_printserver.py +test/test_policies_printserver_api.py +test/test_policies_printserver_list.py +test/test_policies_printserver_list_embedded.py +test/test_policies_printserver_request.py +test/test_policies_printserver_request_patch.py +test/test_policies_printserver_response_mixin.py +test/test_policies_pwhistory.py +test/test_policies_pwhistory_api.py +test/test_policies_pwhistory_list.py +test/test_policies_pwhistory_list_embedded.py +test/test_policies_pwhistory_request.py +test/test_policies_pwhistory_request_patch.py +test/test_policies_pwhistory_response_mixin.py +test/test_policies_registry.py +test/test_policies_registry_api.py +test/test_policies_registry_list.py +test/test_policies_registry_list_embedded.py +test/test_policies_registry_request.py +test/test_policies_registry_request_patch.py +test/test_policies_registry_response_mixin.py +test/test_policies_release.py +test/test_policies_release_api.py +test/test_policies_release_list.py +test/test_policies_release_list_embedded.py +test/test_policies_release_request.py +test/test_policies_release_request_patch.py +test/test_policies_release_response_mixin.py +test/test_policies_repositoryserver.py +test/test_policies_repositoryserver_api.py +test/test_policies_repositoryserver_list.py +test/test_policies_repositoryserver_list_embedded.py +test/test_policies_repositoryserver_request.py +test/test_policies_repositoryserver_request_patch.py +test/test_policies_repositoryserver_response_mixin.py +test/test_policies_repositorysync.py +test/test_policies_repositorysync_api.py +test/test_policies_repositorysync_list.py +test/test_policies_repositorysync_list_embedded.py +test/test_policies_repositorysync_request.py +test/test_policies_repositorysync_request_patch.py +test/test_policies_repositorysync_response_mixin.py +test/test_policies_share_userquota.py +test/test_policies_share_userquota_api.py +test/test_policies_share_userquota_list.py +test/test_policies_share_userquota_list_embedded.py +test/test_policies_share_userquota_request.py +test/test_policies_share_userquota_request_patch.py +test/test_policies_share_userquota_response_mixin.py +test/test_policies_slavepackages.py +test/test_policies_slavepackages_api.py +test/test_policies_slavepackages_list.py +test/test_policies_slavepackages_list_embedded.py +test/test_policies_slavepackages_request.py +test/test_policies_slavepackages_request_patch.py +test/test_policies_slavepackages_response_mixin.py +test/test_policies_umc.py +test/test_policies_umc_api.py +test/test_policies_umc_list.py +test/test_policies_umc_list_embedded.py +test/test_policies_umc_request.py +test/test_policies_umc_request_patch.py +test/test_policies_umc_response_mixin.py +test/test_portals_all.py +test/test_portals_all_api.py +test/test_portals_all_list.py +test/test_portals_all_list_embedded.py +test/test_portals_all_request.py +test/test_portals_all_request_patch.py +test/test_portals_all_response_mixin.py +test/test_portals_announcement.py +test/test_portals_announcement_api.py +test/test_portals_announcement_list.py +test/test_portals_announcement_list_embedded.py +test/test_portals_announcement_request.py +test/test_portals_announcement_request_patch.py +test/test_portals_announcement_response_mixin.py +test/test_portals_category.py +test/test_portals_category_api.py +test/test_portals_category_list.py +test/test_portals_category_list_embedded.py +test/test_portals_category_request.py +test/test_portals_category_request_patch.py +test/test_portals_category_response_mixin.py +test/test_portals_entry.py +test/test_portals_entry_api.py +test/test_portals_entry_list.py +test/test_portals_entry_list_embedded.py +test/test_portals_entry_request.py +test/test_portals_entry_request_patch.py +test/test_portals_entry_response_mixin.py +test/test_portals_folder.py +test/test_portals_folder_api.py +test/test_portals_folder_list.py +test/test_portals_folder_list_embedded.py +test/test_portals_folder_request.py +test/test_portals_folder_request_patch.py +test/test_portals_folder_response_mixin.py +test/test_portals_portal.py +test/test_portals_portal_api.py +test/test_portals_portal_list.py +test/test_portals_portal_list_embedded.py +test/test_portals_portal_request.py +test/test_portals_portal_request_patch.py +test/test_portals_portal_response_mixin.py +test/test_saml_idpconfig.py +test/test_saml_idpconfig_api.py +test/test_saml_idpconfig_list.py +test/test_saml_idpconfig_list_embedded.py +test/test_saml_idpconfig_request.py +test/test_saml_idpconfig_request_patch.py +test/test_saml_idpconfig_response_mixin.py +test/test_saml_serviceprovider.py +test/test_saml_serviceprovider_api.py +test/test_saml_serviceprovider_list.py +test/test_saml_serviceprovider_list_embedded.py +test/test_saml_serviceprovider_request.py +test/test_saml_serviceprovider_request_patch.py +test/test_saml_serviceprovider_response_mixin.py +test/test_settings_cn.py +test/test_settings_cn_api.py +test/test_settings_cn_list.py +test/test_settings_cn_list_embedded.py +test/test_settings_cn_policies.py +test/test_settings_cn_request.py +test/test_settings_cn_request_patch.py +test/test_settings_cn_response_mixin.py +test/test_settings_data.py +test/test_settings_data_api.py +test/test_settings_data_list.py +test/test_settings_data_list_embedded.py +test/test_settings_data_request.py +test/test_settings_data_request_patch.py +test/test_settings_data_response_mixin.py +test/test_settings_default.py +test/test_settings_default_api.py +test/test_settings_default_list.py +test/test_settings_default_list_embedded.py +test/test_settings_default_request.py +test/test_settings_default_request_patch.py +test/test_settings_default_response_mixin.py +test/test_settings_directory.py +test/test_settings_directory_api.py +test/test_settings_directory_list.py +test/test_settings_directory_list_embedded.py +test/test_settings_directory_request.py +test/test_settings_directory_request_patch.py +test/test_settings_directory_response_mixin.py +test/test_settings_extended_attribute.py +test/test_settings_extended_attribute_api.py +test/test_settings_extended_attribute_list.py +test/test_settings_extended_attribute_list_embedded.py +test/test_settings_extended_attribute_request.py +test/test_settings_extended_attribute_request_patch.py +test/test_settings_extended_attribute_response_mixin.py +test/test_settings_extended_options.py +test/test_settings_extended_options_api.py +test/test_settings_extended_options_list.py +test/test_settings_extended_options_list_embedded.py +test/test_settings_extended_options_request.py +test/test_settings_extended_options_request_patch.py +test/test_settings_extended_options_response_mixin.py +test/test_settings_ldapacl.py +test/test_settings_ldapacl_api.py +test/test_settings_ldapacl_list.py +test/test_settings_ldapacl_list_embedded.py +test/test_settings_ldapacl_request.py +test/test_settings_ldapacl_request_patch.py +test/test_settings_ldapacl_response_mixin.py +test/test_settings_ldapschema.py +test/test_settings_ldapschema_api.py +test/test_settings_ldapschema_list.py +test/test_settings_ldapschema_list_embedded.py +test/test_settings_ldapschema_request.py +test/test_settings_ldapschema_request_patch.py +test/test_settings_ldapschema_response_mixin.py +test/test_settings_license.py +test/test_settings_license_api.py +test/test_settings_license_list.py +test/test_settings_license_list_embedded.py +test/test_settings_license_options.py +test/test_settings_license_request.py +test/test_settings_license_request_patch.py +test/test_settings_license_response_mixin.py +test/test_settings_lock.py +test/test_settings_lock_api.py +test/test_settings_lock_list.py +test/test_settings_lock_list_embedded.py +test/test_settings_lock_request.py +test/test_settings_lock_request_patch.py +test/test_settings_lock_response_mixin.py +test/test_settings_msprintconnectionpolicy.py +test/test_settings_msprintconnectionpolicy_api.py +test/test_settings_msprintconnectionpolicy_list.py +test/test_settings_msprintconnectionpolicy_list_embedded.py +test/test_settings_msprintconnectionpolicy_policies.py +test/test_settings_msprintconnectionpolicy_request.py +test/test_settings_msprintconnectionpolicy_request_patch.py +test/test_settings_msprintconnectionpolicy_response_mixin.py +test/test_settings_mswmifilter.py +test/test_settings_mswmifilter_api.py +test/test_settings_mswmifilter_list.py +test/test_settings_mswmifilter_list_embedded.py +test/test_settings_mswmifilter_policies.py +test/test_settings_mswmifilter_request.py +test/test_settings_mswmifilter_request_patch.py +test/test_settings_mswmifilter_response_mixin.py +test/test_settings_packages.py +test/test_settings_packages_api.py +test/test_settings_packages_list.py +test/test_settings_packages_list_embedded.py +test/test_settings_packages_request.py +test/test_settings_packages_request_patch.py +test/test_settings_packages_response_mixin.py +test/test_settings_portal.py +test/test_settings_portal_all.py +test/test_settings_portal_all_api.py +test/test_settings_portal_all_list.py +test/test_settings_portal_all_list_embedded.py +test/test_settings_portal_all_request.py +test/test_settings_portal_all_request_patch.py +test/test_settings_portal_all_response_mixin.py +test/test_settings_portal_api.py +test/test_settings_portal_category.py +test/test_settings_portal_category_api.py +test/test_settings_portal_category_list.py +test/test_settings_portal_category_list_embedded.py +test/test_settings_portal_category_request.py +test/test_settings_portal_category_request_patch.py +test/test_settings_portal_category_response_mixin.py +test/test_settings_portal_entry.py +test/test_settings_portal_entry_api.py +test/test_settings_portal_entry_list.py +test/test_settings_portal_entry_list_embedded.py +test/test_settings_portal_entry_request.py +test/test_settings_portal_entry_request_patch.py +test/test_settings_portal_entry_response_mixin.py +test/test_settings_portal_list.py +test/test_settings_portal_list_embedded.py +test/test_settings_portal_request.py +test/test_settings_portal_request_patch.py +test/test_settings_portal_response_mixin.py +test/test_settings_printermodel.py +test/test_settings_printermodel_api.py +test/test_settings_printermodel_list.py +test/test_settings_printermodel_list_embedded.py +test/test_settings_printermodel_request.py +test/test_settings_printermodel_request_patch.py +test/test_settings_printermodel_response_mixin.py +test/test_settings_printeruri.py +test/test_settings_printeruri_api.py +test/test_settings_printeruri_list.py +test/test_settings_printeruri_list_embedded.py +test/test_settings_printeruri_request.py +test/test_settings_printeruri_request_patch.py +test/test_settings_printeruri_response_mixin.py +test/test_settings_prohibited_username.py +test/test_settings_prohibited_username_api.py +test/test_settings_prohibited_username_list.py +test/test_settings_prohibited_username_list_embedded.py +test/test_settings_prohibited_username_request.py +test/test_settings_prohibited_username_request_patch.py +test/test_settings_prohibited_username_response_mixin.py +test/test_settings_sambaconfig.py +test/test_settings_sambaconfig_api.py +test/test_settings_sambaconfig_list.py +test/test_settings_sambaconfig_list_embedded.py +test/test_settings_sambaconfig_request.py +test/test_settings_sambaconfig_request_patch.py +test/test_settings_sambaconfig_response_mixin.py +test/test_settings_sambadomain.py +test/test_settings_sambadomain_api.py +test/test_settings_sambadomain_list.py +test/test_settings_sambadomain_list_embedded.py +test/test_settings_sambadomain_request.py +test/test_settings_sambadomain_request_patch.py +test/test_settings_sambadomain_response_mixin.py +test/test_settings_service.py +test/test_settings_service_api.py +test/test_settings_service_list.py +test/test_settings_service_list_embedded.py +test/test_settings_service_request.py +test/test_settings_service_request_patch.py +test/test_settings_service_response_mixin.py +test/test_settings_settings.py +test/test_settings_settings_api.py +test/test_settings_settings_list.py +test/test_settings_settings_list_embedded.py +test/test_settings_settings_request.py +test/test_settings_settings_request_patch.py +test/test_settings_settings_response_mixin.py +test/test_settings_syntax.py +test/test_settings_syntax_api.py +test/test_settings_syntax_list.py +test/test_settings_syntax_list_embedded.py +test/test_settings_syntax_request.py +test/test_settings_syntax_request_patch.py +test/test_settings_syntax_response_mixin.py +test/test_settings_udm_hook.py +test/test_settings_udm_hook_api.py +test/test_settings_udm_hook_list.py +test/test_settings_udm_hook_list_embedded.py +test/test_settings_udm_hook_request.py +test/test_settings_udm_hook_request_patch.py +test/test_settings_udm_hook_response_mixin.py +test/test_settings_udm_module.py +test/test_settings_udm_module_api.py +test/test_settings_udm_module_list.py +test/test_settings_udm_module_list_embedded.py +test/test_settings_udm_module_request.py +test/test_settings_udm_module_request_patch.py +test/test_settings_udm_module_response_mixin.py +test/test_settings_udm_syntax.py +test/test_settings_udm_syntax_api.py +test/test_settings_udm_syntax_list.py +test/test_settings_udm_syntax_list_embedded.py +test/test_settings_udm_syntax_request.py +test/test_settings_udm_syntax_request_patch.py +test/test_settings_udm_syntax_response_mixin.py +test/test_settings_umc_operationset.py +test/test_settings_umc_operationset_api.py +test/test_settings_umc_operationset_list.py +test/test_settings_umc_operationset_list_embedded.py +test/test_settings_umc_operationset_request.py +test/test_settings_umc_operationset_request_patch.py +test/test_settings_umc_operationset_response_mixin.py +test/test_settings_usertemplate.py +test/test_settings_usertemplate_api.py +test/test_settings_usertemplate_list.py +test/test_settings_usertemplate_list_embedded.py +test/test_settings_usertemplate_request.py +test/test_settings_usertemplate_request_patch.py +test/test_settings_usertemplate_response_mixin.py +test/test_shares_print.py +test/test_shares_print_api.py +test/test_shares_print_list.py +test/test_shares_print_list_embedded.py +test/test_shares_print_request.py +test/test_shares_print_request_patch.py +test/test_shares_print_response_mixin.py +test/test_shares_printer.py +test/test_shares_printer_api.py +test/test_shares_printer_list.py +test/test_shares_printer_list_embedded.py +test/test_shares_printer_request.py +test/test_shares_printer_request_patch.py +test/test_shares_printer_response_mixin.py +test/test_shares_printergroup.py +test/test_shares_printergroup_api.py +test/test_shares_printergroup_list.py +test/test_shares_printergroup_list_embedded.py +test/test_shares_printergroup_request.py +test/test_shares_printergroup_request_patch.py +test/test_shares_printergroup_response_mixin.py +test/test_shares_share.py +test/test_shares_share_api.py +test/test_shares_share_list.py +test/test_shares_share_list_embedded.py +test/test_shares_share_options.py +test/test_shares_share_policies.py +test/test_shares_share_request.py +test/test_shares_share_request_patch.py +test/test_shares_share_response_mixin.py +test/test_users_contact.py +test/test_users_contact_api.py +test/test_users_contact_list.py +test/test_users_contact_list_embedded.py +test/test_users_contact_request.py +test/test_users_contact_request_patch.py +test/test_users_contact_response_mixin.py +test/test_users_ldap.py +test/test_users_ldap_api.py +test/test_users_ldap_list.py +test/test_users_ldap_list_embedded.py +test/test_users_ldap_options.py +test/test_users_ldap_policies.py +test/test_users_ldap_request.py +test/test_users_ldap_request_patch.py +test/test_users_ldap_response_mixin.py +test/test_users_passwd.py +test/test_users_passwd_api.py +test/test_users_passwd_list.py +test/test_users_passwd_list_embedded.py +test/test_users_passwd_request.py +test/test_users_passwd_request_patch.py +test/test_users_passwd_response_mixin.py +test/test_users_self.py +test/test_users_self_api.py +test/test_users_self_list.py +test/test_users_self_list_embedded.py +test/test_users_self_options.py +test/test_users_self_request.py +test/test_users_self_request_patch.py +test/test_users_self_response_mixin.py +test/test_users_user.py +test/test_users_user_api.py +test/test_users_user_list.py +test/test_users_user_list_embedded.py +test/test_users_user_options.py +test/test_users_user_policies.py +test/test_users_user_request.py +test/test_users_user_request_patch.py +test/test_users_user_response_mixin.py +test/test_uvmm_cloudconnection.py +test/test_uvmm_cloudconnection_api.py +test/test_uvmm_cloudconnection_list.py +test/test_uvmm_cloudconnection_list_embedded.py +test/test_uvmm_cloudconnection_request.py +test/test_uvmm_cloudconnection_request_patch.py +test/test_uvmm_cloudconnection_response_mixin.py +test/test_uvmm_cloudtype.py +test/test_uvmm_cloudtype_api.py +test/test_uvmm_cloudtype_list.py +test/test_uvmm_cloudtype_list_embedded.py +test/test_uvmm_cloudtype_request.py +test/test_uvmm_cloudtype_request_patch.py +test/test_uvmm_cloudtype_response_mixin.py +test/test_uvmm_info.py +test/test_uvmm_info_api.py +test/test_uvmm_info_list.py +test/test_uvmm_info_list_embedded.py +test/test_uvmm_info_request.py +test/test_uvmm_info_request_patch.py +test/test_uvmm_info_response_mixin.py +test/test_uvmm_profile.py +test/test_uvmm_profile_api.py +test/test_uvmm_profile_list.py +test/test_uvmm_profile_list_embedded.py +test/test_uvmm_profile_request.py +test/test_uvmm_profile_request_patch.py +test/test_uvmm_profile_response_mixin.py +tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..1e20ec3 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.4.0 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..445673d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + - "3.6" + - "3.7" + - "3.8" +# command to install dependencies +install: + - "pip install -r requirements.txt" + - "pip install -r test-requirements.txt" +# command to run tests +script: pytest --cov=openapi_client_udm diff --git a/README.md b/README.md new file mode 100644 index 0000000..b0f288d --- /dev/null +++ b/README.md @@ -0,0 +1,1831 @@ +# openapi-client-udm +Schema definition for the objects in the Univention Directory Manager REST interface. + +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: 1.0.2 +- Package version: 1.0.2 +- Build package: org.openapitools.codegen.languages.PythonLegacyClientCodegen + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +If the python package is hosted on a repository, you can install directly using: + +```sh +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) + +Then import the package: +```python +import openapi_client_udm +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import openapi_client_udm +``` + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function + +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.AppcenterAppApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the App Metadata object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_appcenter_app_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppcenterAppApi->udm_appcenter_app_object: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AppcenterAppApi* | [**udm_appcenter_app_object**](docs/AppcenterAppApi.md#udm_appcenter_app_object) | **GET** /appcenter/app/{dn} | Get a representation of the App Metadata object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*AppcenterAppApi* | [**udm_appcenter_app_object_create**](docs/AppcenterAppApi.md#udm_appcenter_app_object_create) | **POST** /appcenter/app/ | Create a new App Metadata object +*AppcenterAppApi* | [**udm_appcenter_app_object_modify**](docs/AppcenterAppApi.md#udm_appcenter_app_object_modify) | **PUT** /appcenter/app/{dn} | Modify or move an App Metadata object +*AppcenterAppApi* | [**udm_appcenter_app_object_remove**](docs/AppcenterAppApi.md#udm_appcenter_app_object_remove) | **DELETE** /appcenter/app/{dn} | Remove a App Metadata object +*AppcenterAppApi* | [**udm_appcenter_app_object_search**](docs/AppcenterAppApi.md#udm_appcenter_app_object_search) | **GET** /appcenter/app/ | Search for App Metadata objects +*AppcenterAppApi* | [**udm_appcenter_app_object_template**](docs/AppcenterAppApi.md#udm_appcenter_app_object_template) | **GET** /appcenter/app/add | Get a template for creating an App Metadata object (contains all properties and their default values) +*AppcenterAppApi* | [**udm_appcenter_app_object_update**](docs/AppcenterAppApi.md#udm_appcenter_app_object_update) | **PATCH** /appcenter/app/{dn} | Modify an App Metadata object (moving is currently not possible) +*ComputersComputerApi* | [**udm_computers_computer_object**](docs/ComputersComputerApi.md#udm_computers_computer_object) | **GET** /computers/computer/{dn} | Get a representation of the Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersComputerApi* | [**udm_computers_computer_object_search**](docs/ComputersComputerApi.md#udm_computers_computer_object_search) | **GET** /computers/computer/ | Search for Computers objects +*ComputersDomaincontrollerBackupApi* | [**udm_computers_domaincontroller_backup_object**](docs/ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object) | **GET** /computers/domaincontroller_backup/{dn} | Get a representation of the Backup Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersDomaincontrollerBackupApi* | [**udm_computers_domaincontroller_backup_object_create**](docs/ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_create) | **POST** /computers/domaincontroller_backup/ | Create a new Backup Directory Node object +*ComputersDomaincontrollerBackupApi* | [**udm_computers_domaincontroller_backup_object_modify**](docs/ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_modify) | **PUT** /computers/domaincontroller_backup/{dn} | Modify or move an Backup Directory Node object +*ComputersDomaincontrollerBackupApi* | [**udm_computers_domaincontroller_backup_object_remove**](docs/ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_remove) | **DELETE** /computers/domaincontroller_backup/{dn} | Remove a Backup Directory Nodes object +*ComputersDomaincontrollerBackupApi* | [**udm_computers_domaincontroller_backup_object_search**](docs/ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_search) | **GET** /computers/domaincontroller_backup/ | Search for Backup Directory Nodes objects +*ComputersDomaincontrollerBackupApi* | [**udm_computers_domaincontroller_backup_object_template**](docs/ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_template) | **GET** /computers/domaincontroller_backup/add | Get a template for creating an Backup Directory Node object (contains all properties and their default values) +*ComputersDomaincontrollerBackupApi* | [**udm_computers_domaincontroller_backup_object_update**](docs/ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_update) | **PATCH** /computers/domaincontroller_backup/{dn} | Modify an Backup Directory Node object (moving is currently not possible) +*ComputersDomaincontrollerMasterApi* | [**udm_computers_domaincontroller_master_object**](docs/ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object) | **GET** /computers/domaincontroller_master/{dn} | Get a representation of the Primary Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersDomaincontrollerMasterApi* | [**udm_computers_domaincontroller_master_object_create**](docs/ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_create) | **POST** /computers/domaincontroller_master/ | Create a new Primary Directory Node object +*ComputersDomaincontrollerMasterApi* | [**udm_computers_domaincontroller_master_object_modify**](docs/ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_modify) | **PUT** /computers/domaincontroller_master/{dn} | Modify or move an Primary Directory Node object +*ComputersDomaincontrollerMasterApi* | [**udm_computers_domaincontroller_master_object_remove**](docs/ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_remove) | **DELETE** /computers/domaincontroller_master/{dn} | Remove a Primary Directory Nodes object +*ComputersDomaincontrollerMasterApi* | [**udm_computers_domaincontroller_master_object_search**](docs/ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_search) | **GET** /computers/domaincontroller_master/ | Search for Primary Directory Nodes objects +*ComputersDomaincontrollerMasterApi* | [**udm_computers_domaincontroller_master_object_template**](docs/ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_template) | **GET** /computers/domaincontroller_master/add | Get a template for creating an Primary Directory Node object (contains all properties and their default values) +*ComputersDomaincontrollerMasterApi* | [**udm_computers_domaincontroller_master_object_update**](docs/ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_update) | **PATCH** /computers/domaincontroller_master/{dn} | Modify an Primary Directory Node object (moving is currently not possible) +*ComputersDomaincontrollerSlaveApi* | [**udm_computers_domaincontroller_slave_object**](docs/ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object) | **GET** /computers/domaincontroller_slave/{dn} | Get a representation of the Replica Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersDomaincontrollerSlaveApi* | [**udm_computers_domaincontroller_slave_object_create**](docs/ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_create) | **POST** /computers/domaincontroller_slave/ | Create a new Replica Directory Node object +*ComputersDomaincontrollerSlaveApi* | [**udm_computers_domaincontroller_slave_object_modify**](docs/ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_modify) | **PUT** /computers/domaincontroller_slave/{dn} | Modify or move an Replica Directory Node object +*ComputersDomaincontrollerSlaveApi* | [**udm_computers_domaincontroller_slave_object_remove**](docs/ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_remove) | **DELETE** /computers/domaincontroller_slave/{dn} | Remove a Replica Directory Nodes object +*ComputersDomaincontrollerSlaveApi* | [**udm_computers_domaincontroller_slave_object_search**](docs/ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_search) | **GET** /computers/domaincontroller_slave/ | Search for Replica Directory Nodes objects +*ComputersDomaincontrollerSlaveApi* | [**udm_computers_domaincontroller_slave_object_template**](docs/ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_template) | **GET** /computers/domaincontroller_slave/add | Get a template for creating an Replica Directory Node object (contains all properties and their default values) +*ComputersDomaincontrollerSlaveApi* | [**udm_computers_domaincontroller_slave_object_update**](docs/ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_update) | **PATCH** /computers/domaincontroller_slave/{dn} | Modify an Replica Directory Node object (moving is currently not possible) +*ComputersIpmanagedclientApi* | [**udm_computers_ipmanagedclient_object**](docs/ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object) | **GET** /computers/ipmanagedclient/{dn} | Get a representation of the IP client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersIpmanagedclientApi* | [**udm_computers_ipmanagedclient_object_create**](docs/ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_create) | **POST** /computers/ipmanagedclient/ | Create a new IP client object +*ComputersIpmanagedclientApi* | [**udm_computers_ipmanagedclient_object_modify**](docs/ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_modify) | **PUT** /computers/ipmanagedclient/{dn} | Modify or move an IP client object +*ComputersIpmanagedclientApi* | [**udm_computers_ipmanagedclient_object_remove**](docs/ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_remove) | **DELETE** /computers/ipmanagedclient/{dn} | Remove a IP clients object +*ComputersIpmanagedclientApi* | [**udm_computers_ipmanagedclient_object_search**](docs/ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_search) | **GET** /computers/ipmanagedclient/ | Search for IP clients objects +*ComputersIpmanagedclientApi* | [**udm_computers_ipmanagedclient_object_template**](docs/ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_template) | **GET** /computers/ipmanagedclient/add | Get a template for creating an IP client object (contains all properties and their default values) +*ComputersIpmanagedclientApi* | [**udm_computers_ipmanagedclient_object_update**](docs/ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_update) | **PATCH** /computers/ipmanagedclient/{dn} | Modify an IP client object (moving is currently not possible) +*ComputersLinuxApi* | [**udm_computers_linux_object**](docs/ComputersLinuxApi.md#udm_computers_linux_object) | **GET** /computers/linux/{dn} | Get a representation of the Linux Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersLinuxApi* | [**udm_computers_linux_object_create**](docs/ComputersLinuxApi.md#udm_computers_linux_object_create) | **POST** /computers/linux/ | Create a new Linux Computer object +*ComputersLinuxApi* | [**udm_computers_linux_object_modify**](docs/ComputersLinuxApi.md#udm_computers_linux_object_modify) | **PUT** /computers/linux/{dn} | Modify or move an Linux Computer object +*ComputersLinuxApi* | [**udm_computers_linux_object_remove**](docs/ComputersLinuxApi.md#udm_computers_linux_object_remove) | **DELETE** /computers/linux/{dn} | Remove a Linux Computers object +*ComputersLinuxApi* | [**udm_computers_linux_object_search**](docs/ComputersLinuxApi.md#udm_computers_linux_object_search) | **GET** /computers/linux/ | Search for Linux Computers objects +*ComputersLinuxApi* | [**udm_computers_linux_object_template**](docs/ComputersLinuxApi.md#udm_computers_linux_object_template) | **GET** /computers/linux/add | Get a template for creating an Linux Computer object (contains all properties and their default values) +*ComputersLinuxApi* | [**udm_computers_linux_object_update**](docs/ComputersLinuxApi.md#udm_computers_linux_object_update) | **PATCH** /computers/linux/{dn} | Modify an Linux Computer object (moving is currently not possible) +*ComputersMacosApi* | [**udm_computers_macos_object**](docs/ComputersMacosApi.md#udm_computers_macos_object) | **GET** /computers/macos/{dn} | Get a representation of the macOS Client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersMacosApi* | [**udm_computers_macos_object_create**](docs/ComputersMacosApi.md#udm_computers_macos_object_create) | **POST** /computers/macos/ | Create a new macOS Client object +*ComputersMacosApi* | [**udm_computers_macos_object_modify**](docs/ComputersMacosApi.md#udm_computers_macos_object_modify) | **PUT** /computers/macos/{dn} | Modify or move an macOS Client object +*ComputersMacosApi* | [**udm_computers_macos_object_remove**](docs/ComputersMacosApi.md#udm_computers_macos_object_remove) | **DELETE** /computers/macos/{dn} | Remove a macOS Clients object +*ComputersMacosApi* | [**udm_computers_macos_object_search**](docs/ComputersMacosApi.md#udm_computers_macos_object_search) | **GET** /computers/macos/ | Search for macOS Clients objects +*ComputersMacosApi* | [**udm_computers_macos_object_template**](docs/ComputersMacosApi.md#udm_computers_macos_object_template) | **GET** /computers/macos/add | Get a template for creating an macOS Client object (contains all properties and their default values) +*ComputersMacosApi* | [**udm_computers_macos_object_update**](docs/ComputersMacosApi.md#udm_computers_macos_object_update) | **PATCH** /computers/macos/{dn} | Modify an macOS Client object (moving is currently not possible) +*ComputersMemberserverApi* | [**udm_computers_memberserver_object**](docs/ComputersMemberserverApi.md#udm_computers_memberserver_object) | **GET** /computers/memberserver/{dn} | Get a representation of the Managed Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersMemberserverApi* | [**udm_computers_memberserver_object_create**](docs/ComputersMemberserverApi.md#udm_computers_memberserver_object_create) | **POST** /computers/memberserver/ | Create a new Managed Node object +*ComputersMemberserverApi* | [**udm_computers_memberserver_object_modify**](docs/ComputersMemberserverApi.md#udm_computers_memberserver_object_modify) | **PUT** /computers/memberserver/{dn} | Modify or move an Managed Node object +*ComputersMemberserverApi* | [**udm_computers_memberserver_object_remove**](docs/ComputersMemberserverApi.md#udm_computers_memberserver_object_remove) | **DELETE** /computers/memberserver/{dn} | Remove a Managed Nodes object +*ComputersMemberserverApi* | [**udm_computers_memberserver_object_search**](docs/ComputersMemberserverApi.md#udm_computers_memberserver_object_search) | **GET** /computers/memberserver/ | Search for Managed Nodes objects +*ComputersMemberserverApi* | [**udm_computers_memberserver_object_template**](docs/ComputersMemberserverApi.md#udm_computers_memberserver_object_template) | **GET** /computers/memberserver/add | Get a template for creating an Managed Node object (contains all properties and their default values) +*ComputersMemberserverApi* | [**udm_computers_memberserver_object_update**](docs/ComputersMemberserverApi.md#udm_computers_memberserver_object_update) | **PATCH** /computers/memberserver/{dn} | Modify an Managed Node object (moving is currently not possible) +*ComputersTrustaccountApi* | [**udm_computers_trustaccount_object**](docs/ComputersTrustaccountApi.md#udm_computers_trustaccount_object) | **GET** /computers/trustaccount/{dn} | Get a representation of the Domain trust account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersTrustaccountApi* | [**udm_computers_trustaccount_object_create**](docs/ComputersTrustaccountApi.md#udm_computers_trustaccount_object_create) | **POST** /computers/trustaccount/ | Create a new Domain trust account object +*ComputersTrustaccountApi* | [**udm_computers_trustaccount_object_modify**](docs/ComputersTrustaccountApi.md#udm_computers_trustaccount_object_modify) | **PUT** /computers/trustaccount/{dn} | Modify or move an Domain trust account object +*ComputersTrustaccountApi* | [**udm_computers_trustaccount_object_remove**](docs/ComputersTrustaccountApi.md#udm_computers_trustaccount_object_remove) | **DELETE** /computers/trustaccount/{dn} | Remove a Domain trust accounts object +*ComputersTrustaccountApi* | [**udm_computers_trustaccount_object_search**](docs/ComputersTrustaccountApi.md#udm_computers_trustaccount_object_search) | **GET** /computers/trustaccount/ | Search for Domain trust accounts objects +*ComputersTrustaccountApi* | [**udm_computers_trustaccount_object_template**](docs/ComputersTrustaccountApi.md#udm_computers_trustaccount_object_template) | **GET** /computers/trustaccount/add | Get a template for creating an Domain trust account object (contains all properties and their default values) +*ComputersTrustaccountApi* | [**udm_computers_trustaccount_object_update**](docs/ComputersTrustaccountApi.md#udm_computers_trustaccount_object_update) | **PATCH** /computers/trustaccount/{dn} | Modify an Domain trust account object (moving is currently not possible) +*ComputersUbuntuApi* | [**udm_computers_ubuntu_object**](docs/ComputersUbuntuApi.md#udm_computers_ubuntu_object) | **GET** /computers/ubuntu/{dn} | Get a representation of the Ubuntu Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersUbuntuApi* | [**udm_computers_ubuntu_object_create**](docs/ComputersUbuntuApi.md#udm_computers_ubuntu_object_create) | **POST** /computers/ubuntu/ | Create a new Ubuntu Computer object +*ComputersUbuntuApi* | [**udm_computers_ubuntu_object_modify**](docs/ComputersUbuntuApi.md#udm_computers_ubuntu_object_modify) | **PUT** /computers/ubuntu/{dn} | Modify or move an Ubuntu Computer object +*ComputersUbuntuApi* | [**udm_computers_ubuntu_object_remove**](docs/ComputersUbuntuApi.md#udm_computers_ubuntu_object_remove) | **DELETE** /computers/ubuntu/{dn} | Remove a Ubuntu Computers object +*ComputersUbuntuApi* | [**udm_computers_ubuntu_object_search**](docs/ComputersUbuntuApi.md#udm_computers_ubuntu_object_search) | **GET** /computers/ubuntu/ | Search for Ubuntu Computers objects +*ComputersUbuntuApi* | [**udm_computers_ubuntu_object_template**](docs/ComputersUbuntuApi.md#udm_computers_ubuntu_object_template) | **GET** /computers/ubuntu/add | Get a template for creating an Ubuntu Computer object (contains all properties and their default values) +*ComputersUbuntuApi* | [**udm_computers_ubuntu_object_update**](docs/ComputersUbuntuApi.md#udm_computers_ubuntu_object_update) | **PATCH** /computers/ubuntu/{dn} | Modify an Ubuntu Computer object (moving is currently not possible) +*ComputersWindowsApi* | [**udm_computers_windows_object**](docs/ComputersWindowsApi.md#udm_computers_windows_object) | **GET** /computers/windows/{dn} | Get a representation of the Windows Workstation/Server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersWindowsApi* | [**udm_computers_windows_object_create**](docs/ComputersWindowsApi.md#udm_computers_windows_object_create) | **POST** /computers/windows/ | Create a new Windows Workstation/Server object +*ComputersWindowsApi* | [**udm_computers_windows_object_modify**](docs/ComputersWindowsApi.md#udm_computers_windows_object_modify) | **PUT** /computers/windows/{dn} | Modify or move an Windows Workstation/Server object +*ComputersWindowsApi* | [**udm_computers_windows_object_remove**](docs/ComputersWindowsApi.md#udm_computers_windows_object_remove) | **DELETE** /computers/windows/{dn} | Remove a Windows Workstations/Servers object +*ComputersWindowsApi* | [**udm_computers_windows_object_search**](docs/ComputersWindowsApi.md#udm_computers_windows_object_search) | **GET** /computers/windows/ | Search for Windows Workstations/Servers objects +*ComputersWindowsApi* | [**udm_computers_windows_object_template**](docs/ComputersWindowsApi.md#udm_computers_windows_object_template) | **GET** /computers/windows/add | Get a template for creating an Windows Workstation/Server object (contains all properties and their default values) +*ComputersWindowsApi* | [**udm_computers_windows_object_update**](docs/ComputersWindowsApi.md#udm_computers_windows_object_update) | **PATCH** /computers/windows/{dn} | Modify an Windows Workstation/Server object (moving is currently not possible) +*ComputersWindowsDomaincontrollerApi* | [**udm_computers_windows_domaincontroller_object**](docs/ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object) | **GET** /computers/windows_domaincontroller/{dn} | Get a representation of the Windows Domaincontroller object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ComputersWindowsDomaincontrollerApi* | [**udm_computers_windows_domaincontroller_object_create**](docs/ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_create) | **POST** /computers/windows_domaincontroller/ | Create a new Windows Domaincontroller object +*ComputersWindowsDomaincontrollerApi* | [**udm_computers_windows_domaincontroller_object_modify**](docs/ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_modify) | **PUT** /computers/windows_domaincontroller/{dn} | Modify or move an Windows Domaincontroller object +*ComputersWindowsDomaincontrollerApi* | [**udm_computers_windows_domaincontroller_object_remove**](docs/ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_remove) | **DELETE** /computers/windows_domaincontroller/{dn} | Remove a Windows Domaincontrollers object +*ComputersWindowsDomaincontrollerApi* | [**udm_computers_windows_domaincontroller_object_search**](docs/ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_search) | **GET** /computers/windows_domaincontroller/ | Search for Windows Domaincontrollers objects +*ComputersWindowsDomaincontrollerApi* | [**udm_computers_windows_domaincontroller_object_template**](docs/ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_template) | **GET** /computers/windows_domaincontroller/add | Get a template for creating an Windows Domaincontroller object (contains all properties and their default values) +*ComputersWindowsDomaincontrollerApi* | [**udm_computers_windows_domaincontroller_object_update**](docs/ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_update) | **PATCH** /computers/windows_domaincontroller/{dn} | Modify an Windows Domaincontroller object (moving is currently not possible) +*ContainerCnApi* | [**udm_container_cn_object**](docs/ContainerCnApi.md#udm_container_cn_object) | **GET** /container/cn/{dn} | Get a representation of the Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ContainerCnApi* | [**udm_container_cn_object_create**](docs/ContainerCnApi.md#udm_container_cn_object_create) | **POST** /container/cn/ | Create a new Container object +*ContainerCnApi* | [**udm_container_cn_object_modify**](docs/ContainerCnApi.md#udm_container_cn_object_modify) | **PUT** /container/cn/{dn} | Modify or move an Container object +*ContainerCnApi* | [**udm_container_cn_object_remove**](docs/ContainerCnApi.md#udm_container_cn_object_remove) | **DELETE** /container/cn/{dn} | Remove a Containers object +*ContainerCnApi* | [**udm_container_cn_object_search**](docs/ContainerCnApi.md#udm_container_cn_object_search) | **GET** /container/cn/ | Search for Containers objects +*ContainerCnApi* | [**udm_container_cn_object_template**](docs/ContainerCnApi.md#udm_container_cn_object_template) | **GET** /container/cn/add | Get a template for creating an Container object (contains all properties and their default values) +*ContainerCnApi* | [**udm_container_cn_object_update**](docs/ContainerCnApi.md#udm_container_cn_object_update) | **PATCH** /container/cn/{dn} | Modify an Container object (moving is currently not possible) +*ContainerDcApi* | [**udm_container_dc_object**](docs/ContainerDcApi.md#udm_container_dc_object) | **GET** /container/dc/{dn} | Get a representation of the Domain Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ContainerDcApi* | [**udm_container_dc_object_modify**](docs/ContainerDcApi.md#udm_container_dc_object_modify) | **PUT** /container/dc/{dn} | Modify or move an Domain Container object +*ContainerDcApi* | [**udm_container_dc_object_search**](docs/ContainerDcApi.md#udm_container_dc_object_search) | **GET** /container/dc/ | Search for Domain Containers objects +*ContainerDcApi* | [**udm_container_dc_object_update**](docs/ContainerDcApi.md#udm_container_dc_object_update) | **PATCH** /container/dc/{dn} | Modify an Domain Container object (moving is currently not possible) +*ContainerMsgpoApi* | [**udm_container_msgpo_object**](docs/ContainerMsgpoApi.md#udm_container_msgpo_object) | **GET** /container/msgpo/{dn} | Get a representation of the Container: MS Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ContainerMsgpoApi* | [**udm_container_msgpo_object_create**](docs/ContainerMsgpoApi.md#udm_container_msgpo_object_create) | **POST** /container/msgpo/ | Create a new Container: MS Group Policy object +*ContainerMsgpoApi* | [**udm_container_msgpo_object_modify**](docs/ContainerMsgpoApi.md#udm_container_msgpo_object_modify) | **PUT** /container/msgpo/{dn} | Modify or move an Container: MS Group Policy object +*ContainerMsgpoApi* | [**udm_container_msgpo_object_remove**](docs/ContainerMsgpoApi.md#udm_container_msgpo_object_remove) | **DELETE** /container/msgpo/{dn} | Remove a Container: MS Group Policy object +*ContainerMsgpoApi* | [**udm_container_msgpo_object_search**](docs/ContainerMsgpoApi.md#udm_container_msgpo_object_search) | **GET** /container/msgpo/ | Search for Container: MS Group Policy objects +*ContainerMsgpoApi* | [**udm_container_msgpo_object_template**](docs/ContainerMsgpoApi.md#udm_container_msgpo_object_template) | **GET** /container/msgpo/add | Get a template for creating an Container: MS Group Policy object (contains all properties and their default values) +*ContainerMsgpoApi* | [**udm_container_msgpo_object_update**](docs/ContainerMsgpoApi.md#udm_container_msgpo_object_update) | **PATCH** /container/msgpo/{dn} | Modify an Container: MS Group Policy object (moving is currently not possible) +*ContainerOuApi* | [**udm_container_ou_object**](docs/ContainerOuApi.md#udm_container_ou_object) | **GET** /container/ou/{dn} | Get a representation of the Organisational Unit object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*ContainerOuApi* | [**udm_container_ou_object_create**](docs/ContainerOuApi.md#udm_container_ou_object_create) | **POST** /container/ou/ | Create a new Organisational Unit object +*ContainerOuApi* | [**udm_container_ou_object_modify**](docs/ContainerOuApi.md#udm_container_ou_object_modify) | **PUT** /container/ou/{dn} | Modify or move an Organisational Unit object +*ContainerOuApi* | [**udm_container_ou_object_remove**](docs/ContainerOuApi.md#udm_container_ou_object_remove) | **DELETE** /container/ou/{dn} | Remove a Organisational Units object +*ContainerOuApi* | [**udm_container_ou_object_search**](docs/ContainerOuApi.md#udm_container_ou_object_search) | **GET** /container/ou/ | Search for Organisational Units objects +*ContainerOuApi* | [**udm_container_ou_object_template**](docs/ContainerOuApi.md#udm_container_ou_object_template) | **GET** /container/ou/add | Get a template for creating an Organisational Unit object (contains all properties and their default values) +*ContainerOuApi* | [**udm_container_ou_object_update**](docs/ContainerOuApi.md#udm_container_ou_object_update) | **PATCH** /container/ou/{dn} | Modify an Organisational Unit object (moving is currently not possible) +*DhcpDhcpApi* | [**udm_dhcp_dhcp_object**](docs/DhcpDhcpApi.md#udm_dhcp_dhcp_object) | **GET** /dhcp/dhcp/{dn} | Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DhcpDhcpApi* | [**udm_dhcp_dhcp_object_search**](docs/DhcpDhcpApi.md#udm_dhcp_dhcp_object_search) | **GET** /dhcp/dhcp/ | Search for DHCP services objects +*DhcpHostApi* | [**udm_dhcp_host_object**](docs/DhcpHostApi.md#udm_dhcp_host_object) | **GET** /dhcp/host/{dn} | Get a representation of the DHCP host object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DhcpHostApi* | [**udm_dhcp_host_object_create**](docs/DhcpHostApi.md#udm_dhcp_host_object_create) | **POST** /dhcp/host/ | Create a new DHCP host object +*DhcpHostApi* | [**udm_dhcp_host_object_modify**](docs/DhcpHostApi.md#udm_dhcp_host_object_modify) | **PUT** /dhcp/host/{dn} | Modify or move an DHCP host object +*DhcpHostApi* | [**udm_dhcp_host_object_remove**](docs/DhcpHostApi.md#udm_dhcp_host_object_remove) | **DELETE** /dhcp/host/{dn} | Remove a DHCP hosts object +*DhcpHostApi* | [**udm_dhcp_host_object_search**](docs/DhcpHostApi.md#udm_dhcp_host_object_search) | **GET** /dhcp/host/ | Search for DHCP hosts objects +*DhcpHostApi* | [**udm_dhcp_host_object_template**](docs/DhcpHostApi.md#udm_dhcp_host_object_template) | **GET** /dhcp/host/add | Get a template for creating an DHCP host object (contains all properties and their default values) +*DhcpHostApi* | [**udm_dhcp_host_object_update**](docs/DhcpHostApi.md#udm_dhcp_host_object_update) | **PATCH** /dhcp/host/{dn} | Modify an DHCP host object (moving is currently not possible) +*DhcpPoolApi* | [**udm_dhcp_pool_object**](docs/DhcpPoolApi.md#udm_dhcp_pool_object) | **GET** /dhcp/pool/{dn} | Get a representation of the DHCP pool object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DhcpPoolApi* | [**udm_dhcp_pool_object_create**](docs/DhcpPoolApi.md#udm_dhcp_pool_object_create) | **POST** /dhcp/pool/ | Create a new DHCP pool object +*DhcpPoolApi* | [**udm_dhcp_pool_object_modify**](docs/DhcpPoolApi.md#udm_dhcp_pool_object_modify) | **PUT** /dhcp/pool/{dn} | Modify or move an DHCP pool object +*DhcpPoolApi* | [**udm_dhcp_pool_object_remove**](docs/DhcpPoolApi.md#udm_dhcp_pool_object_remove) | **DELETE** /dhcp/pool/{dn} | Remove a DHCP pools object +*DhcpPoolApi* | [**udm_dhcp_pool_object_search**](docs/DhcpPoolApi.md#udm_dhcp_pool_object_search) | **GET** /dhcp/pool/ | Search for DHCP pools objects +*DhcpPoolApi* | [**udm_dhcp_pool_object_template**](docs/DhcpPoolApi.md#udm_dhcp_pool_object_template) | **GET** /dhcp/pool/add | Get a template for creating an DHCP pool object (contains all properties and their default values) +*DhcpPoolApi* | [**udm_dhcp_pool_object_update**](docs/DhcpPoolApi.md#udm_dhcp_pool_object_update) | **PATCH** /dhcp/pool/{dn} | Modify an DHCP pool object (moving is currently not possible) +*DhcpServerApi* | [**udm_dhcp_server_object**](docs/DhcpServerApi.md#udm_dhcp_server_object) | **GET** /dhcp/server/{dn} | Get a representation of the DHCP server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DhcpServerApi* | [**udm_dhcp_server_object_create**](docs/DhcpServerApi.md#udm_dhcp_server_object_create) | **POST** /dhcp/server/ | Create a new DHCP server object +*DhcpServerApi* | [**udm_dhcp_server_object_modify**](docs/DhcpServerApi.md#udm_dhcp_server_object_modify) | **PUT** /dhcp/server/{dn} | Modify or move an DHCP server object +*DhcpServerApi* | [**udm_dhcp_server_object_remove**](docs/DhcpServerApi.md#udm_dhcp_server_object_remove) | **DELETE** /dhcp/server/{dn} | Remove a DHCP servers object +*DhcpServerApi* | [**udm_dhcp_server_object_search**](docs/DhcpServerApi.md#udm_dhcp_server_object_search) | **GET** /dhcp/server/ | Search for DHCP servers objects +*DhcpServerApi* | [**udm_dhcp_server_object_template**](docs/DhcpServerApi.md#udm_dhcp_server_object_template) | **GET** /dhcp/server/add | Get a template for creating an DHCP server object (contains all properties and their default values) +*DhcpServerApi* | [**udm_dhcp_server_object_update**](docs/DhcpServerApi.md#udm_dhcp_server_object_update) | **PATCH** /dhcp/server/{dn} | Modify an DHCP server object (moving is currently not possible) +*DhcpServiceApi* | [**udm_dhcp_service_object**](docs/DhcpServiceApi.md#udm_dhcp_service_object) | **GET** /dhcp/service/{dn} | Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DhcpServiceApi* | [**udm_dhcp_service_object_create**](docs/DhcpServiceApi.md#udm_dhcp_service_object_create) | **POST** /dhcp/service/ | Create a new DHCP service object +*DhcpServiceApi* | [**udm_dhcp_service_object_modify**](docs/DhcpServiceApi.md#udm_dhcp_service_object_modify) | **PUT** /dhcp/service/{dn} | Modify or move an DHCP service object +*DhcpServiceApi* | [**udm_dhcp_service_object_remove**](docs/DhcpServiceApi.md#udm_dhcp_service_object_remove) | **DELETE** /dhcp/service/{dn} | Remove a DHCP services object +*DhcpServiceApi* | [**udm_dhcp_service_object_search**](docs/DhcpServiceApi.md#udm_dhcp_service_object_search) | **GET** /dhcp/service/ | Search for DHCP services objects +*DhcpServiceApi* | [**udm_dhcp_service_object_template**](docs/DhcpServiceApi.md#udm_dhcp_service_object_template) | **GET** /dhcp/service/add | Get a template for creating an DHCP service object (contains all properties and their default values) +*DhcpServiceApi* | [**udm_dhcp_service_object_update**](docs/DhcpServiceApi.md#udm_dhcp_service_object_update) | **PATCH** /dhcp/service/{dn} | Modify an DHCP service object (moving is currently not possible) +*DhcpSharedApi* | [**udm_dhcp_shared_object**](docs/DhcpSharedApi.md#udm_dhcp_shared_object) | **GET** /dhcp/shared/{dn} | Get a representation of the Shared network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DhcpSharedApi* | [**udm_dhcp_shared_object_create**](docs/DhcpSharedApi.md#udm_dhcp_shared_object_create) | **POST** /dhcp/shared/ | Create a new Shared network object +*DhcpSharedApi* | [**udm_dhcp_shared_object_modify**](docs/DhcpSharedApi.md#udm_dhcp_shared_object_modify) | **PUT** /dhcp/shared/{dn} | Modify or move an Shared network object +*DhcpSharedApi* | [**udm_dhcp_shared_object_remove**](docs/DhcpSharedApi.md#udm_dhcp_shared_object_remove) | **DELETE** /dhcp/shared/{dn} | Remove a Shared network object +*DhcpSharedApi* | [**udm_dhcp_shared_object_search**](docs/DhcpSharedApi.md#udm_dhcp_shared_object_search) | **GET** /dhcp/shared/ | Search for Shared network objects +*DhcpSharedApi* | [**udm_dhcp_shared_object_template**](docs/DhcpSharedApi.md#udm_dhcp_shared_object_template) | **GET** /dhcp/shared/add | Get a template for creating an Shared network object (contains all properties and their default values) +*DhcpSharedApi* | [**udm_dhcp_shared_object_update**](docs/DhcpSharedApi.md#udm_dhcp_shared_object_update) | **PATCH** /dhcp/shared/{dn} | Modify an Shared network object (moving is currently not possible) +*DhcpSharedsubnetApi* | [**udm_dhcp_sharedsubnet_object**](docs/DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object) | **GET** /dhcp/sharedsubnet/{dn} | Get a representation of the Shared DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DhcpSharedsubnetApi* | [**udm_dhcp_sharedsubnet_object_create**](docs/DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_create) | **POST** /dhcp/sharedsubnet/ | Create a new Shared DHCP subnet object +*DhcpSharedsubnetApi* | [**udm_dhcp_sharedsubnet_object_modify**](docs/DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_modify) | **PUT** /dhcp/sharedsubnet/{dn} | Modify or move an Shared DHCP subnet object +*DhcpSharedsubnetApi* | [**udm_dhcp_sharedsubnet_object_remove**](docs/DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_remove) | **DELETE** /dhcp/sharedsubnet/{dn} | Remove a Shared DHCP subnets object +*DhcpSharedsubnetApi* | [**udm_dhcp_sharedsubnet_object_search**](docs/DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_search) | **GET** /dhcp/sharedsubnet/ | Search for Shared DHCP subnets objects +*DhcpSharedsubnetApi* | [**udm_dhcp_sharedsubnet_object_template**](docs/DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_template) | **GET** /dhcp/sharedsubnet/add | Get a template for creating an Shared DHCP subnet object (contains all properties and their default values) +*DhcpSharedsubnetApi* | [**udm_dhcp_sharedsubnet_object_update**](docs/DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_update) | **PATCH** /dhcp/sharedsubnet/{dn} | Modify an Shared DHCP subnet object (moving is currently not possible) +*DhcpSubnetApi* | [**udm_dhcp_subnet_object**](docs/DhcpSubnetApi.md#udm_dhcp_subnet_object) | **GET** /dhcp/subnet/{dn} | Get a representation of the DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DhcpSubnetApi* | [**udm_dhcp_subnet_object_create**](docs/DhcpSubnetApi.md#udm_dhcp_subnet_object_create) | **POST** /dhcp/subnet/ | Create a new DHCP subnet object +*DhcpSubnetApi* | [**udm_dhcp_subnet_object_modify**](docs/DhcpSubnetApi.md#udm_dhcp_subnet_object_modify) | **PUT** /dhcp/subnet/{dn} | Modify or move an DHCP subnet object +*DhcpSubnetApi* | [**udm_dhcp_subnet_object_remove**](docs/DhcpSubnetApi.md#udm_dhcp_subnet_object_remove) | **DELETE** /dhcp/subnet/{dn} | Remove a DHCP subnets object +*DhcpSubnetApi* | [**udm_dhcp_subnet_object_search**](docs/DhcpSubnetApi.md#udm_dhcp_subnet_object_search) | **GET** /dhcp/subnet/ | Search for DHCP subnets objects +*DhcpSubnetApi* | [**udm_dhcp_subnet_object_template**](docs/DhcpSubnetApi.md#udm_dhcp_subnet_object_template) | **GET** /dhcp/subnet/add | Get a template for creating an DHCP subnet object (contains all properties and their default values) +*DhcpSubnetApi* | [**udm_dhcp_subnet_object_update**](docs/DhcpSubnetApi.md#udm_dhcp_subnet_object_update) | **PATCH** /dhcp/subnet/{dn} | Modify an DHCP subnet object (moving is currently not possible) +*DnsAliasApi* | [**udm_dns_alias_object**](docs/DnsAliasApi.md#udm_dns_alias_object) | **GET** /dns/alias/{dn} | Get a representation of the Alias record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsAliasApi* | [**udm_dns_alias_object_create**](docs/DnsAliasApi.md#udm_dns_alias_object_create) | **POST** /dns/alias/ | Create a new Alias record object +*DnsAliasApi* | [**udm_dns_alias_object_modify**](docs/DnsAliasApi.md#udm_dns_alias_object_modify) | **PUT** /dns/alias/{dn} | Modify or move an Alias record object +*DnsAliasApi* | [**udm_dns_alias_object_remove**](docs/DnsAliasApi.md#udm_dns_alias_object_remove) | **DELETE** /dns/alias/{dn} | Remove a Alias records object +*DnsAliasApi* | [**udm_dns_alias_object_search**](docs/DnsAliasApi.md#udm_dns_alias_object_search) | **GET** /dns/alias/ | Search for Alias records objects +*DnsAliasApi* | [**udm_dns_alias_object_template**](docs/DnsAliasApi.md#udm_dns_alias_object_template) | **GET** /dns/alias/add | Get a template for creating an Alias record object (contains all properties and their default values) +*DnsAliasApi* | [**udm_dns_alias_object_update**](docs/DnsAliasApi.md#udm_dns_alias_object_update) | **PATCH** /dns/alias/{dn} | Modify an Alias record object (moving is currently not possible) +*DnsDnsApi* | [**udm_dns_dns_object**](docs/DnsDnsApi.md#udm_dns_dns_object) | **GET** /dns/dns/{dn} | Get a representation of the DNS zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsDnsApi* | [**udm_dns_dns_object_search**](docs/DnsDnsApi.md#udm_dns_dns_object_search) | **GET** /dns/dns/ | Search for DNS zones objects +*DnsForwardZoneApi* | [**udm_dns_forward_zone_object**](docs/DnsForwardZoneApi.md#udm_dns_forward_zone_object) | **GET** /dns/forward_zone/{dn} | Get a representation of the Forward lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsForwardZoneApi* | [**udm_dns_forward_zone_object_create**](docs/DnsForwardZoneApi.md#udm_dns_forward_zone_object_create) | **POST** /dns/forward_zone/ | Create a new Forward lookup zone object +*DnsForwardZoneApi* | [**udm_dns_forward_zone_object_modify**](docs/DnsForwardZoneApi.md#udm_dns_forward_zone_object_modify) | **PUT** /dns/forward_zone/{dn} | Modify or move an Forward lookup zone object +*DnsForwardZoneApi* | [**udm_dns_forward_zone_object_remove**](docs/DnsForwardZoneApi.md#udm_dns_forward_zone_object_remove) | **DELETE** /dns/forward_zone/{dn} | Remove a Forward lookup zones object +*DnsForwardZoneApi* | [**udm_dns_forward_zone_object_search**](docs/DnsForwardZoneApi.md#udm_dns_forward_zone_object_search) | **GET** /dns/forward_zone/ | Search for Forward lookup zones objects +*DnsForwardZoneApi* | [**udm_dns_forward_zone_object_template**](docs/DnsForwardZoneApi.md#udm_dns_forward_zone_object_template) | **GET** /dns/forward_zone/add | Get a template for creating an Forward lookup zone object (contains all properties and their default values) +*DnsForwardZoneApi* | [**udm_dns_forward_zone_object_update**](docs/DnsForwardZoneApi.md#udm_dns_forward_zone_object_update) | **PATCH** /dns/forward_zone/{dn} | Modify an Forward lookup zone object (moving is currently not possible) +*DnsHostRecordApi* | [**udm_dns_host_record_object**](docs/DnsHostRecordApi.md#udm_dns_host_record_object) | **GET** /dns/host_record/{dn} | Get a representation of the Host record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsHostRecordApi* | [**udm_dns_host_record_object_create**](docs/DnsHostRecordApi.md#udm_dns_host_record_object_create) | **POST** /dns/host_record/ | Create a new Host record object +*DnsHostRecordApi* | [**udm_dns_host_record_object_modify**](docs/DnsHostRecordApi.md#udm_dns_host_record_object_modify) | **PUT** /dns/host_record/{dn} | Modify or move an Host record object +*DnsHostRecordApi* | [**udm_dns_host_record_object_remove**](docs/DnsHostRecordApi.md#udm_dns_host_record_object_remove) | **DELETE** /dns/host_record/{dn} | Remove a Host records object +*DnsHostRecordApi* | [**udm_dns_host_record_object_search**](docs/DnsHostRecordApi.md#udm_dns_host_record_object_search) | **GET** /dns/host_record/ | Search for Host records objects +*DnsHostRecordApi* | [**udm_dns_host_record_object_template**](docs/DnsHostRecordApi.md#udm_dns_host_record_object_template) | **GET** /dns/host_record/add | Get a template for creating an Host record object (contains all properties and their default values) +*DnsHostRecordApi* | [**udm_dns_host_record_object_update**](docs/DnsHostRecordApi.md#udm_dns_host_record_object_update) | **PATCH** /dns/host_record/{dn} | Modify an Host record object (moving is currently not possible) +*DnsNsRecordApi* | [**udm_dns_ns_record_object**](docs/DnsNsRecordApi.md#udm_dns_ns_record_object) | **GET** /dns/ns_record/{dn} | Get a representation of the Nameserver record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsNsRecordApi* | [**udm_dns_ns_record_object_create**](docs/DnsNsRecordApi.md#udm_dns_ns_record_object_create) | **POST** /dns/ns_record/ | Create a new Nameserver record object +*DnsNsRecordApi* | [**udm_dns_ns_record_object_modify**](docs/DnsNsRecordApi.md#udm_dns_ns_record_object_modify) | **PUT** /dns/ns_record/{dn} | Modify or move an Nameserver record object +*DnsNsRecordApi* | [**udm_dns_ns_record_object_remove**](docs/DnsNsRecordApi.md#udm_dns_ns_record_object_remove) | **DELETE** /dns/ns_record/{dn} | Remove a Nameserver records object +*DnsNsRecordApi* | [**udm_dns_ns_record_object_search**](docs/DnsNsRecordApi.md#udm_dns_ns_record_object_search) | **GET** /dns/ns_record/ | Search for Nameserver records objects +*DnsNsRecordApi* | [**udm_dns_ns_record_object_template**](docs/DnsNsRecordApi.md#udm_dns_ns_record_object_template) | **GET** /dns/ns_record/add | Get a template for creating an Nameserver record object (contains all properties and their default values) +*DnsNsRecordApi* | [**udm_dns_ns_record_object_update**](docs/DnsNsRecordApi.md#udm_dns_ns_record_object_update) | **PATCH** /dns/ns_record/{dn} | Modify an Nameserver record object (moving is currently not possible) +*DnsPtrRecordApi* | [**udm_dns_ptr_record_object**](docs/DnsPtrRecordApi.md#udm_dns_ptr_record_object) | **GET** /dns/ptr_record/{dn} | Get a representation of the Pointer record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsPtrRecordApi* | [**udm_dns_ptr_record_object_create**](docs/DnsPtrRecordApi.md#udm_dns_ptr_record_object_create) | **POST** /dns/ptr_record/ | Create a new Pointer record object +*DnsPtrRecordApi* | [**udm_dns_ptr_record_object_modify**](docs/DnsPtrRecordApi.md#udm_dns_ptr_record_object_modify) | **PUT** /dns/ptr_record/{dn} | Modify or move an Pointer record object +*DnsPtrRecordApi* | [**udm_dns_ptr_record_object_remove**](docs/DnsPtrRecordApi.md#udm_dns_ptr_record_object_remove) | **DELETE** /dns/ptr_record/{dn} | Remove a Pointer records object +*DnsPtrRecordApi* | [**udm_dns_ptr_record_object_search**](docs/DnsPtrRecordApi.md#udm_dns_ptr_record_object_search) | **GET** /dns/ptr_record/ | Search for Pointer records objects +*DnsPtrRecordApi* | [**udm_dns_ptr_record_object_template**](docs/DnsPtrRecordApi.md#udm_dns_ptr_record_object_template) | **GET** /dns/ptr_record/add | Get a template for creating an Pointer record object (contains all properties and their default values) +*DnsPtrRecordApi* | [**udm_dns_ptr_record_object_update**](docs/DnsPtrRecordApi.md#udm_dns_ptr_record_object_update) | **PATCH** /dns/ptr_record/{dn} | Modify an Pointer record object (moving is currently not possible) +*DnsReverseZoneApi* | [**udm_dns_reverse_zone_object**](docs/DnsReverseZoneApi.md#udm_dns_reverse_zone_object) | **GET** /dns/reverse_zone/{dn} | Get a representation of the Reverse lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsReverseZoneApi* | [**udm_dns_reverse_zone_object_create**](docs/DnsReverseZoneApi.md#udm_dns_reverse_zone_object_create) | **POST** /dns/reverse_zone/ | Create a new Reverse lookup zone object +*DnsReverseZoneApi* | [**udm_dns_reverse_zone_object_modify**](docs/DnsReverseZoneApi.md#udm_dns_reverse_zone_object_modify) | **PUT** /dns/reverse_zone/{dn} | Modify or move an Reverse lookup zone object +*DnsReverseZoneApi* | [**udm_dns_reverse_zone_object_remove**](docs/DnsReverseZoneApi.md#udm_dns_reverse_zone_object_remove) | **DELETE** /dns/reverse_zone/{dn} | Remove a Reverse lookup zones object +*DnsReverseZoneApi* | [**udm_dns_reverse_zone_object_search**](docs/DnsReverseZoneApi.md#udm_dns_reverse_zone_object_search) | **GET** /dns/reverse_zone/ | Search for Reverse lookup zones objects +*DnsReverseZoneApi* | [**udm_dns_reverse_zone_object_template**](docs/DnsReverseZoneApi.md#udm_dns_reverse_zone_object_template) | **GET** /dns/reverse_zone/add | Get a template for creating an Reverse lookup zone object (contains all properties and their default values) +*DnsReverseZoneApi* | [**udm_dns_reverse_zone_object_update**](docs/DnsReverseZoneApi.md#udm_dns_reverse_zone_object_update) | **PATCH** /dns/reverse_zone/{dn} | Modify an Reverse lookup zone object (moving is currently not possible) +*DnsSrvRecordApi* | [**udm_dns_srv_record_object**](docs/DnsSrvRecordApi.md#udm_dns_srv_record_object) | **GET** /dns/srv_record/{dn} | Get a representation of the Service record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsSrvRecordApi* | [**udm_dns_srv_record_object_create**](docs/DnsSrvRecordApi.md#udm_dns_srv_record_object_create) | **POST** /dns/srv_record/ | Create a new Service record object +*DnsSrvRecordApi* | [**udm_dns_srv_record_object_modify**](docs/DnsSrvRecordApi.md#udm_dns_srv_record_object_modify) | **PUT** /dns/srv_record/{dn} | Modify or move an Service record object +*DnsSrvRecordApi* | [**udm_dns_srv_record_object_remove**](docs/DnsSrvRecordApi.md#udm_dns_srv_record_object_remove) | **DELETE** /dns/srv_record/{dn} | Remove a Service records object +*DnsSrvRecordApi* | [**udm_dns_srv_record_object_search**](docs/DnsSrvRecordApi.md#udm_dns_srv_record_object_search) | **GET** /dns/srv_record/ | Search for Service records objects +*DnsSrvRecordApi* | [**udm_dns_srv_record_object_template**](docs/DnsSrvRecordApi.md#udm_dns_srv_record_object_template) | **GET** /dns/srv_record/add | Get a template for creating an Service record object (contains all properties and their default values) +*DnsSrvRecordApi* | [**udm_dns_srv_record_object_update**](docs/DnsSrvRecordApi.md#udm_dns_srv_record_object_update) | **PATCH** /dns/srv_record/{dn} | Modify an Service record object (moving is currently not possible) +*DnsTxtRecordApi* | [**udm_dns_txt_record_object**](docs/DnsTxtRecordApi.md#udm_dns_txt_record_object) | **GET** /dns/txt_record/{dn} | Get a representation of the TXT record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*DnsTxtRecordApi* | [**udm_dns_txt_record_object_create**](docs/DnsTxtRecordApi.md#udm_dns_txt_record_object_create) | **POST** /dns/txt_record/ | Create a new TXT record object +*DnsTxtRecordApi* | [**udm_dns_txt_record_object_modify**](docs/DnsTxtRecordApi.md#udm_dns_txt_record_object_modify) | **PUT** /dns/txt_record/{dn} | Modify or move an TXT record object +*DnsTxtRecordApi* | [**udm_dns_txt_record_object_remove**](docs/DnsTxtRecordApi.md#udm_dns_txt_record_object_remove) | **DELETE** /dns/txt_record/{dn} | Remove a TXT record object +*DnsTxtRecordApi* | [**udm_dns_txt_record_object_search**](docs/DnsTxtRecordApi.md#udm_dns_txt_record_object_search) | **GET** /dns/txt_record/ | Search for TXT record objects +*DnsTxtRecordApi* | [**udm_dns_txt_record_object_template**](docs/DnsTxtRecordApi.md#udm_dns_txt_record_object_template) | **GET** /dns/txt_record/add | Get a template for creating an TXT record object (contains all properties and their default values) +*DnsTxtRecordApi* | [**udm_dns_txt_record_object_update**](docs/DnsTxtRecordApi.md#udm_dns_txt_record_object_update) | **PATCH** /dns/txt_record/{dn} | Modify an TXT record object (moving is currently not possible) +*GroupsGroupApi* | [**udm_groups_group_object**](docs/GroupsGroupApi.md#udm_groups_group_object) | **GET** /groups/group/{dn} | Get a representation of the Group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*GroupsGroupApi* | [**udm_groups_group_object_create**](docs/GroupsGroupApi.md#udm_groups_group_object_create) | **POST** /groups/group/ | Create a new Group object +*GroupsGroupApi* | [**udm_groups_group_object_modify**](docs/GroupsGroupApi.md#udm_groups_group_object_modify) | **PUT** /groups/group/{dn} | Modify or move an Group object +*GroupsGroupApi* | [**udm_groups_group_object_remove**](docs/GroupsGroupApi.md#udm_groups_group_object_remove) | **DELETE** /groups/group/{dn} | Remove a Groups object +*GroupsGroupApi* | [**udm_groups_group_object_search**](docs/GroupsGroupApi.md#udm_groups_group_object_search) | **GET** /groups/group/ | Search for Groups objects +*GroupsGroupApi* | [**udm_groups_group_object_template**](docs/GroupsGroupApi.md#udm_groups_group_object_template) | **GET** /groups/group/add | Get a template for creating an Group object (contains all properties and their default values) +*GroupsGroupApi* | [**udm_groups_group_object_update**](docs/GroupsGroupApi.md#udm_groups_group_object_update) | **PATCH** /groups/group/{dn} | Modify an Group object (moving is currently not possible) +*KerberosKdcentryApi* | [**udm_kerberos_kdcentry_object**](docs/KerberosKdcentryApi.md#udm_kerberos_kdcentry_object) | **GET** /kerberos/kdcentry/{dn} | Get a representation of the KDC Entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*KerberosKdcentryApi* | [**udm_kerberos_kdcentry_object_create**](docs/KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_create) | **POST** /kerberos/kdcentry/ | Create a new KDC Entry object +*KerberosKdcentryApi* | [**udm_kerberos_kdcentry_object_modify**](docs/KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_modify) | **PUT** /kerberos/kdcentry/{dn} | Modify or move an KDC Entry object +*KerberosKdcentryApi* | [**udm_kerberos_kdcentry_object_remove**](docs/KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_remove) | **DELETE** /kerberos/kdcentry/{dn} | Remove a KDC Entries object +*KerberosKdcentryApi* | [**udm_kerberos_kdcentry_object_search**](docs/KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_search) | **GET** /kerberos/kdcentry/ | Search for KDC Entries objects +*KerberosKdcentryApi* | [**udm_kerberos_kdcentry_object_template**](docs/KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_template) | **GET** /kerberos/kdcentry/add | Get a template for creating an KDC Entry object (contains all properties and their default values) +*KerberosKdcentryApi* | [**udm_kerberos_kdcentry_object_update**](docs/KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_update) | **PATCH** /kerberos/kdcentry/{dn} | Modify an KDC Entry object (moving is currently not possible) +*MailDomainApi* | [**udm_mail_domain_object**](docs/MailDomainApi.md#udm_mail_domain_object) | **GET** /mail/domain/{dn} | Get a representation of the Mail domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MailDomainApi* | [**udm_mail_domain_object_create**](docs/MailDomainApi.md#udm_mail_domain_object_create) | **POST** /mail/domain/ | Create a new Mail domain object +*MailDomainApi* | [**udm_mail_domain_object_modify**](docs/MailDomainApi.md#udm_mail_domain_object_modify) | **PUT** /mail/domain/{dn} | Modify or move an Mail domain object +*MailDomainApi* | [**udm_mail_domain_object_remove**](docs/MailDomainApi.md#udm_mail_domain_object_remove) | **DELETE** /mail/domain/{dn} | Remove a Mail domains object +*MailDomainApi* | [**udm_mail_domain_object_search**](docs/MailDomainApi.md#udm_mail_domain_object_search) | **GET** /mail/domain/ | Search for Mail domains objects +*MailDomainApi* | [**udm_mail_domain_object_template**](docs/MailDomainApi.md#udm_mail_domain_object_template) | **GET** /mail/domain/add | Get a template for creating an Mail domain object (contains all properties and their default values) +*MailDomainApi* | [**udm_mail_domain_object_update**](docs/MailDomainApi.md#udm_mail_domain_object_update) | **PATCH** /mail/domain/{dn} | Modify an Mail domain object (moving is currently not possible) +*MailFolderApi* | [**udm_mail_folder_object**](docs/MailFolderApi.md#udm_mail_folder_object) | **GET** /mail/folder/{dn} | Get a representation of the IMAP mail folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MailFolderApi* | [**udm_mail_folder_object_create**](docs/MailFolderApi.md#udm_mail_folder_object_create) | **POST** /mail/folder/ | Create a new IMAP mail folder object +*MailFolderApi* | [**udm_mail_folder_object_modify**](docs/MailFolderApi.md#udm_mail_folder_object_modify) | **PUT** /mail/folder/{dn} | Modify or move an IMAP mail folder object +*MailFolderApi* | [**udm_mail_folder_object_remove**](docs/MailFolderApi.md#udm_mail_folder_object_remove) | **DELETE** /mail/folder/{dn} | Remove a IMAP mail folders object +*MailFolderApi* | [**udm_mail_folder_object_search**](docs/MailFolderApi.md#udm_mail_folder_object_search) | **GET** /mail/folder/ | Search for IMAP mail folders objects +*MailFolderApi* | [**udm_mail_folder_object_template**](docs/MailFolderApi.md#udm_mail_folder_object_template) | **GET** /mail/folder/add | Get a template for creating an IMAP mail folder object (contains all properties and their default values) +*MailFolderApi* | [**udm_mail_folder_object_update**](docs/MailFolderApi.md#udm_mail_folder_object_update) | **PATCH** /mail/folder/{dn} | Modify an IMAP mail folder object (moving is currently not possible) +*MailListsApi* | [**udm_mail_lists_object**](docs/MailListsApi.md#udm_mail_lists_object) | **GET** /mail/lists/{dn} | Get a representation of the Mailing list object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MailListsApi* | [**udm_mail_lists_object_create**](docs/MailListsApi.md#udm_mail_lists_object_create) | **POST** /mail/lists/ | Create a new Mailing list object +*MailListsApi* | [**udm_mail_lists_object_modify**](docs/MailListsApi.md#udm_mail_lists_object_modify) | **PUT** /mail/lists/{dn} | Modify or move an Mailing list object +*MailListsApi* | [**udm_mail_lists_object_remove**](docs/MailListsApi.md#udm_mail_lists_object_remove) | **DELETE** /mail/lists/{dn} | Remove a Mailing lists object +*MailListsApi* | [**udm_mail_lists_object_search**](docs/MailListsApi.md#udm_mail_lists_object_search) | **GET** /mail/lists/ | Search for Mailing lists objects +*MailListsApi* | [**udm_mail_lists_object_template**](docs/MailListsApi.md#udm_mail_lists_object_template) | **GET** /mail/lists/add | Get a template for creating an Mailing list object (contains all properties and their default values) +*MailListsApi* | [**udm_mail_lists_object_update**](docs/MailListsApi.md#udm_mail_lists_object_update) | **PATCH** /mail/lists/{dn} | Modify an Mailing list object (moving is currently not possible) +*MailMailApi* | [**udm_mail_mail_object**](docs/MailMailApi.md#udm_mail_mail_object) | **GET** /mail/mail/{dn} | Get a representation of the Mail object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MailMailApi* | [**udm_mail_mail_object_search**](docs/MailMailApi.md#udm_mail_mail_object_search) | **GET** /mail/mail/ | Search for Mail objects objects +*MonitoringAlertApi* | [**udm_monitoring_alert_object**](docs/MonitoringAlertApi.md#udm_monitoring_alert_object) | **GET** /monitoring/alert/{dn} | Get a representation of the Alert object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MonitoringAlertApi* | [**udm_monitoring_alert_object_create**](docs/MonitoringAlertApi.md#udm_monitoring_alert_object_create) | **POST** /monitoring/alert/ | Create a new Alert object +*MonitoringAlertApi* | [**udm_monitoring_alert_object_modify**](docs/MonitoringAlertApi.md#udm_monitoring_alert_object_modify) | **PUT** /monitoring/alert/{dn} | Modify or move an Alert object +*MonitoringAlertApi* | [**udm_monitoring_alert_object_remove**](docs/MonitoringAlertApi.md#udm_monitoring_alert_object_remove) | **DELETE** /monitoring/alert/{dn} | Remove a Alerts object +*MonitoringAlertApi* | [**udm_monitoring_alert_object_search**](docs/MonitoringAlertApi.md#udm_monitoring_alert_object_search) | **GET** /monitoring/alert/ | Search for Alerts objects +*MonitoringAlertApi* | [**udm_monitoring_alert_object_template**](docs/MonitoringAlertApi.md#udm_monitoring_alert_object_template) | **GET** /monitoring/alert/add | Get a template for creating an Alert object (contains all properties and their default values) +*MonitoringAlertApi* | [**udm_monitoring_alert_object_update**](docs/MonitoringAlertApi.md#udm_monitoring_alert_object_update) | **PATCH** /monitoring/alert/{dn} | Modify an Alert object (moving is currently not possible) +*MsDomainpolicyApi* | [**udm_ms_domainpolicy_object**](docs/MsDomainpolicyApi.md#udm_ms_domainpolicy_object) | **GET** /ms/domainpolicy/{dn} | Get a representation of the MS Domain Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsDomainpolicyApi* | [**udm_ms_domainpolicy_object_create**](docs/MsDomainpolicyApi.md#udm_ms_domainpolicy_object_create) | **POST** /ms/domainpolicy/ | Create a new MS Domain Policy object +*MsDomainpolicyApi* | [**udm_ms_domainpolicy_object_modify**](docs/MsDomainpolicyApi.md#udm_ms_domainpolicy_object_modify) | **PUT** /ms/domainpolicy/{dn} | Modify or move an MS Domain Policy object +*MsDomainpolicyApi* | [**udm_ms_domainpolicy_object_remove**](docs/MsDomainpolicyApi.md#udm_ms_domainpolicy_object_remove) | **DELETE** /ms/domainpolicy/{dn} | Remove a MS Domain Policy object +*MsDomainpolicyApi* | [**udm_ms_domainpolicy_object_search**](docs/MsDomainpolicyApi.md#udm_ms_domainpolicy_object_search) | **GET** /ms/domainpolicy/ | Search for MS Domain Policy objects +*MsDomainpolicyApi* | [**udm_ms_domainpolicy_object_template**](docs/MsDomainpolicyApi.md#udm_ms_domainpolicy_object_template) | **GET** /ms/domainpolicy/add | Get a template for creating an MS Domain Policy object (contains all properties and their default values) +*MsDomainpolicyApi* | [**udm_ms_domainpolicy_object_update**](docs/MsDomainpolicyApi.md#udm_ms_domainpolicy_object_update) | **PATCH** /ms/domainpolicy/{dn} | Modify an MS Domain Policy object (moving is currently not possible) +*MsGpipsecFilterApi* | [**udm_ms_gpipsec_filter_object**](docs/MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object) | **GET** /ms/gpipsec-filter/{dn} | Get a representation of the MS IPsec policy: filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpipsecFilterApi* | [**udm_ms_gpipsec_filter_object_create**](docs/MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_create) | **POST** /ms/gpipsec-filter/ | Create a new MS IPsec policy: filter object +*MsGpipsecFilterApi* | [**udm_ms_gpipsec_filter_object_modify**](docs/MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_modify) | **PUT** /ms/gpipsec-filter/{dn} | Modify or move an MS IPsec policy: filter object +*MsGpipsecFilterApi* | [**udm_ms_gpipsec_filter_object_remove**](docs/MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_remove) | **DELETE** /ms/gpipsec-filter/{dn} | Remove a MS IPsec policy: filter object +*MsGpipsecFilterApi* | [**udm_ms_gpipsec_filter_object_search**](docs/MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_search) | **GET** /ms/gpipsec-filter/ | Search for MS IPsec policy: filter objects +*MsGpipsecFilterApi* | [**udm_ms_gpipsec_filter_object_template**](docs/MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_template) | **GET** /ms/gpipsec-filter/add | Get a template for creating an MS IPsec policy: filter object (contains all properties and their default values) +*MsGpipsecFilterApi* | [**udm_ms_gpipsec_filter_object_update**](docs/MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_update) | **PATCH** /ms/gpipsec-filter/{dn} | Modify an MS IPsec policy: filter object (moving is currently not possible) +*MsGpipsecIsakmpPolicyApi* | [**udm_ms_gpipsec_isakmp_policy_object**](docs/MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object) | **GET** /ms/gpipsec-isakmp-policy/{dn} | Get a representation of the MS IPsec policy: ISAKMP Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpipsecIsakmpPolicyApi* | [**udm_ms_gpipsec_isakmp_policy_object_create**](docs/MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_create) | **POST** /ms/gpipsec-isakmp-policy/ | Create a new MS IPsec policy: ISAKMP Policy object +*MsGpipsecIsakmpPolicyApi* | [**udm_ms_gpipsec_isakmp_policy_object_modify**](docs/MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_modify) | **PUT** /ms/gpipsec-isakmp-policy/{dn} | Modify or move an MS IPsec policy: ISAKMP Policy object +*MsGpipsecIsakmpPolicyApi* | [**udm_ms_gpipsec_isakmp_policy_object_remove**](docs/MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_remove) | **DELETE** /ms/gpipsec-isakmp-policy/{dn} | Remove a MS IPsec policy: ISAKMP Policy object +*MsGpipsecIsakmpPolicyApi* | [**udm_ms_gpipsec_isakmp_policy_object_search**](docs/MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_search) | **GET** /ms/gpipsec-isakmp-policy/ | Search for MS IPsec policy: ISAKMP Policy objects +*MsGpipsecIsakmpPolicyApi* | [**udm_ms_gpipsec_isakmp_policy_object_template**](docs/MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_template) | **GET** /ms/gpipsec-isakmp-policy/add | Get a template for creating an MS IPsec policy: ISAKMP Policy object (contains all properties and their default values) +*MsGpipsecIsakmpPolicyApi* | [**udm_ms_gpipsec_isakmp_policy_object_update**](docs/MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_update) | **PATCH** /ms/gpipsec-isakmp-policy/{dn} | Modify an MS IPsec policy: ISAKMP Policy object (moving is currently not possible) +*MsGpipsecNegotiationPolicyApi* | [**udm_ms_gpipsec_negotiation_policy_object**](docs/MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object) | **GET** /ms/gpipsec-negotiation-policy/{dn} | Get a representation of the MS IPsec policy: Negotiation Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpipsecNegotiationPolicyApi* | [**udm_ms_gpipsec_negotiation_policy_object_create**](docs/MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_create) | **POST** /ms/gpipsec-negotiation-policy/ | Create a new MS IPsec policy: Negotiation Policy object +*MsGpipsecNegotiationPolicyApi* | [**udm_ms_gpipsec_negotiation_policy_object_modify**](docs/MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_modify) | **PUT** /ms/gpipsec-negotiation-policy/{dn} | Modify or move an MS IPsec policy: Negotiation Policy object +*MsGpipsecNegotiationPolicyApi* | [**udm_ms_gpipsec_negotiation_policy_object_remove**](docs/MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_remove) | **DELETE** /ms/gpipsec-negotiation-policy/{dn} | Remove a MS IPsec policy: Negotiation Policy object +*MsGpipsecNegotiationPolicyApi* | [**udm_ms_gpipsec_negotiation_policy_object_search**](docs/MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_search) | **GET** /ms/gpipsec-negotiation-policy/ | Search for MS IPsec policy: Negotiation Policy objects +*MsGpipsecNegotiationPolicyApi* | [**udm_ms_gpipsec_negotiation_policy_object_template**](docs/MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_template) | **GET** /ms/gpipsec-negotiation-policy/add | Get a template for creating an MS IPsec policy: Negotiation Policy object (contains all properties and their default values) +*MsGpipsecNegotiationPolicyApi* | [**udm_ms_gpipsec_negotiation_policy_object_update**](docs/MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_update) | **PATCH** /ms/gpipsec-negotiation-policy/{dn} | Modify an MS IPsec policy: Negotiation Policy object (moving is currently not possible) +*MsGpipsecNfaApi* | [**udm_ms_gpipsec_nfa_object**](docs/MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object) | **GET** /ms/gpipsec-nfa/{dn} | Get a representation of the MS IPsec policy: NFA object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpipsecNfaApi* | [**udm_ms_gpipsec_nfa_object_create**](docs/MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_create) | **POST** /ms/gpipsec-nfa/ | Create a new MS IPsec policy: NFA object +*MsGpipsecNfaApi* | [**udm_ms_gpipsec_nfa_object_modify**](docs/MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_modify) | **PUT** /ms/gpipsec-nfa/{dn} | Modify or move an MS IPsec policy: NFA object +*MsGpipsecNfaApi* | [**udm_ms_gpipsec_nfa_object_remove**](docs/MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_remove) | **DELETE** /ms/gpipsec-nfa/{dn} | Remove a MS IPsec policy: NFA object +*MsGpipsecNfaApi* | [**udm_ms_gpipsec_nfa_object_search**](docs/MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_search) | **GET** /ms/gpipsec-nfa/ | Search for MS IPsec policy: NFA objects +*MsGpipsecNfaApi* | [**udm_ms_gpipsec_nfa_object_template**](docs/MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_template) | **GET** /ms/gpipsec-nfa/add | Get a template for creating an MS IPsec policy: NFA object (contains all properties and their default values) +*MsGpipsecNfaApi* | [**udm_ms_gpipsec_nfa_object_update**](docs/MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_update) | **PATCH** /ms/gpipsec-nfa/{dn} | Modify an MS IPsec policy: NFA object (moving is currently not possible) +*MsGpipsecPolicyApi* | [**udm_ms_gpipsec_policy_object**](docs/MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object) | **GET** /ms/gpipsec-policy/{dn} | Get a representation of the MS IPsec policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpipsecPolicyApi* | [**udm_ms_gpipsec_policy_object_create**](docs/MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_create) | **POST** /ms/gpipsec-policy/ | Create a new MS IPsec policy object +*MsGpipsecPolicyApi* | [**udm_ms_gpipsec_policy_object_modify**](docs/MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_modify) | **PUT** /ms/gpipsec-policy/{dn} | Modify or move an MS IPsec policy object +*MsGpipsecPolicyApi* | [**udm_ms_gpipsec_policy_object_remove**](docs/MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_remove) | **DELETE** /ms/gpipsec-policy/{dn} | Remove a MS IPsec policy object +*MsGpipsecPolicyApi* | [**udm_ms_gpipsec_policy_object_search**](docs/MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_search) | **GET** /ms/gpipsec-policy/ | Search for MS IPsec policy objects +*MsGpipsecPolicyApi* | [**udm_ms_gpipsec_policy_object_template**](docs/MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_template) | **GET** /ms/gpipsec-policy/add | Get a template for creating an MS IPsec policy object (contains all properties and their default values) +*MsGpipsecPolicyApi* | [**udm_ms_gpipsec_policy_object_update**](docs/MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_update) | **PATCH** /ms/gpipsec-policy/{dn} | Modify an MS IPsec policy object (moving is currently not possible) +*MsGpsiCategoryRegistrationApi* | [**udm_ms_gpsi_category_registration_object**](docs/MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object) | **GET** /ms/gpsi-category-registration/{dn} | Get a representation of the MS Software Installation Group Policy: Category Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpsiCategoryRegistrationApi* | [**udm_ms_gpsi_category_registration_object_create**](docs/MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_create) | **POST** /ms/gpsi-category-registration/ | Create a new MS Software Installation Group Policy: Category Registration object +*MsGpsiCategoryRegistrationApi* | [**udm_ms_gpsi_category_registration_object_modify**](docs/MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_modify) | **PUT** /ms/gpsi-category-registration/{dn} | Modify or move an MS Software Installation Group Policy: Category Registration object +*MsGpsiCategoryRegistrationApi* | [**udm_ms_gpsi_category_registration_object_remove**](docs/MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_remove) | **DELETE** /ms/gpsi-category-registration/{dn} | Remove a MS Software Installation Group Policy: Category Registration object +*MsGpsiCategoryRegistrationApi* | [**udm_ms_gpsi_category_registration_object_search**](docs/MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_search) | **GET** /ms/gpsi-category-registration/ | Search for MS Software Installation Group Policy: Category Registration objects +*MsGpsiCategoryRegistrationApi* | [**udm_ms_gpsi_category_registration_object_template**](docs/MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_template) | **GET** /ms/gpsi-category-registration/add | Get a template for creating an MS Software Installation Group Policy: Category Registration object (contains all properties and their default values) +*MsGpsiCategoryRegistrationApi* | [**udm_ms_gpsi_category_registration_object_update**](docs/MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_update) | **PATCH** /ms/gpsi-category-registration/{dn} | Modify an MS Software Installation Group Policy: Category Registration object (moving is currently not possible) +*MsGpsiClassStoreApi* | [**udm_ms_gpsi_class_store_object**](docs/MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object) | **GET** /ms/gpsi-class-store/{dn} | Get a representation of the Software Installation Group Policy: Class Store object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpsiClassStoreApi* | [**udm_ms_gpsi_class_store_object_create**](docs/MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_create) | **POST** /ms/gpsi-class-store/ | Create a new Software Installation Group Policy: Class Store object +*MsGpsiClassStoreApi* | [**udm_ms_gpsi_class_store_object_modify**](docs/MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_modify) | **PUT** /ms/gpsi-class-store/{dn} | Modify or move an Software Installation Group Policy: Class Store object +*MsGpsiClassStoreApi* | [**udm_ms_gpsi_class_store_object_remove**](docs/MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_remove) | **DELETE** /ms/gpsi-class-store/{dn} | Remove a Software Installation Group Policy: Class Store object +*MsGpsiClassStoreApi* | [**udm_ms_gpsi_class_store_object_search**](docs/MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_search) | **GET** /ms/gpsi-class-store/ | Search for Software Installation Group Policy: Class Store objects +*MsGpsiClassStoreApi* | [**udm_ms_gpsi_class_store_object_template**](docs/MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_template) | **GET** /ms/gpsi-class-store/add | Get a template for creating an Software Installation Group Policy: Class Store object (contains all properties and their default values) +*MsGpsiClassStoreApi* | [**udm_ms_gpsi_class_store_object_update**](docs/MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_update) | **PATCH** /ms/gpsi-class-store/{dn} | Modify an Software Installation Group Policy: Class Store object (moving is currently not possible) +*MsGpsiPackageRegistrationApi* | [**udm_ms_gpsi_package_registration_object**](docs/MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object) | **GET** /ms/gpsi-package-registration/{dn} | Get a representation of the Software Installation Group Policy: Package Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpsiPackageRegistrationApi* | [**udm_ms_gpsi_package_registration_object_create**](docs/MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_create) | **POST** /ms/gpsi-package-registration/ | Create a new Software Installation Group Policy: Package Registration object +*MsGpsiPackageRegistrationApi* | [**udm_ms_gpsi_package_registration_object_modify**](docs/MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_modify) | **PUT** /ms/gpsi-package-registration/{dn} | Modify or move an Software Installation Group Policy: Package Registration object +*MsGpsiPackageRegistrationApi* | [**udm_ms_gpsi_package_registration_object_remove**](docs/MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_remove) | **DELETE** /ms/gpsi-package-registration/{dn} | Remove a Software Installation Group Policy: Package Registration object +*MsGpsiPackageRegistrationApi* | [**udm_ms_gpsi_package_registration_object_search**](docs/MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_search) | **GET** /ms/gpsi-package-registration/ | Search for Software Installation Group Policy: Package Registration objects +*MsGpsiPackageRegistrationApi* | [**udm_ms_gpsi_package_registration_object_template**](docs/MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_template) | **GET** /ms/gpsi-package-registration/add | Get a template for creating an Software Installation Group Policy: Package Registration object (contains all properties and their default values) +*MsGpsiPackageRegistrationApi* | [**udm_ms_gpsi_package_registration_object_update**](docs/MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_update) | **PATCH** /ms/gpsi-package-registration/{dn} | Modify an Software Installation Group Policy: Package Registration object (moving is currently not possible) +*MsGpwlWiredApi* | [**udm_ms_gpwl_wired_object**](docs/MsGpwlWiredApi.md#udm_ms_gpwl_wired_object) | **GET** /ms/gpwl-wired/{dn} | Get a representation of the MS wired Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpwlWiredApi* | [**udm_ms_gpwl_wired_object_create**](docs/MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_create) | **POST** /ms/gpwl-wired/ | Create a new MS wired Group Policy object +*MsGpwlWiredApi* | [**udm_ms_gpwl_wired_object_modify**](docs/MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_modify) | **PUT** /ms/gpwl-wired/{dn} | Modify or move an MS wired Group Policy object +*MsGpwlWiredApi* | [**udm_ms_gpwl_wired_object_remove**](docs/MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_remove) | **DELETE** /ms/gpwl-wired/{dn} | Remove a MS wired Group Policy object +*MsGpwlWiredApi* | [**udm_ms_gpwl_wired_object_search**](docs/MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_search) | **GET** /ms/gpwl-wired/ | Search for MS wired Group Policy objects +*MsGpwlWiredApi* | [**udm_ms_gpwl_wired_object_template**](docs/MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_template) | **GET** /ms/gpwl-wired/add | Get a template for creating an MS wired Group Policy object (contains all properties and their default values) +*MsGpwlWiredApi* | [**udm_ms_gpwl_wired_object_update**](docs/MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_update) | **PATCH** /ms/gpwl-wired/{dn} | Modify an MS wired Group Policy object (moving is currently not possible) +*MsGpwlWirelessApi* | [**udm_ms_gpwl_wireless_object**](docs/MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object) | **GET** /ms/gpwl-wireless/{dn} | Get a representation of the MS wireless Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpwlWirelessApi* | [**udm_ms_gpwl_wireless_object_create**](docs/MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_create) | **POST** /ms/gpwl-wireless/ | Create a new MS wireless Group Policy object +*MsGpwlWirelessApi* | [**udm_ms_gpwl_wireless_object_modify**](docs/MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_modify) | **PUT** /ms/gpwl-wireless/{dn} | Modify or move an MS wireless Group Policy object +*MsGpwlWirelessApi* | [**udm_ms_gpwl_wireless_object_remove**](docs/MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_remove) | **DELETE** /ms/gpwl-wireless/{dn} | Remove a MS wireless Group Policy object +*MsGpwlWirelessApi* | [**udm_ms_gpwl_wireless_object_search**](docs/MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_search) | **GET** /ms/gpwl-wireless/ | Search for MS wireless Group Policy objects +*MsGpwlWirelessApi* | [**udm_ms_gpwl_wireless_object_template**](docs/MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_template) | **GET** /ms/gpwl-wireless/add | Get a template for creating an MS wireless Group Policy object (contains all properties and their default values) +*MsGpwlWirelessApi* | [**udm_ms_gpwl_wireless_object_update**](docs/MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_update) | **PATCH** /ms/gpwl-wireless/{dn} | Modify an MS wireless Group Policy object (moving is currently not possible) +*MsGpwlWirelessBlobApi* | [**udm_ms_gpwl_wireless_blob_object**](docs/MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object) | **GET** /ms/gpwl-wireless-blob/{dn} | Get a representation of the MS wireless Group Policy blob object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*MsGpwlWirelessBlobApi* | [**udm_ms_gpwl_wireless_blob_object_create**](docs/MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_create) | **POST** /ms/gpwl-wireless-blob/ | Create a new MS wireless Group Policy blob object +*MsGpwlWirelessBlobApi* | [**udm_ms_gpwl_wireless_blob_object_modify**](docs/MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_modify) | **PUT** /ms/gpwl-wireless-blob/{dn} | Modify or move an MS wireless Group Policy blob object +*MsGpwlWirelessBlobApi* | [**udm_ms_gpwl_wireless_blob_object_remove**](docs/MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_remove) | **DELETE** /ms/gpwl-wireless-blob/{dn} | Remove a MS wireless Group Policy blob object +*MsGpwlWirelessBlobApi* | [**udm_ms_gpwl_wireless_blob_object_search**](docs/MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_search) | **GET** /ms/gpwl-wireless-blob/ | Search for MS wireless Group Policy blob objects +*MsGpwlWirelessBlobApi* | [**udm_ms_gpwl_wireless_blob_object_template**](docs/MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_template) | **GET** /ms/gpwl-wireless-blob/add | Get a template for creating an MS wireless Group Policy blob object (contains all properties and their default values) +*MsGpwlWirelessBlobApi* | [**udm_ms_gpwl_wireless_blob_object_update**](docs/MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_update) | **PATCH** /ms/gpwl-wireless-blob/{dn} | Modify an MS wireless Group Policy blob object (moving is currently not possible) +*NagiosNagiosApi* | [**udm_nagios_nagios_object**](docs/NagiosNagiosApi.md#udm_nagios_nagios_object) | **GET** /nagios/nagios/{dn} | Get a representation of the Nagios object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*NagiosNagiosApi* | [**udm_nagios_nagios_object_search**](docs/NagiosNagiosApi.md#udm_nagios_nagios_object_search) | **GET** /nagios/nagios/ | Search for Nagios objects objects +*NagiosServiceApi* | [**udm_nagios_service_object**](docs/NagiosServiceApi.md#udm_nagios_service_object) | **GET** /nagios/service/{dn} | Get a representation of the Nagios service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*NagiosServiceApi* | [**udm_nagios_service_object_create**](docs/NagiosServiceApi.md#udm_nagios_service_object_create) | **POST** /nagios/service/ | Create a new Nagios service object +*NagiosServiceApi* | [**udm_nagios_service_object_modify**](docs/NagiosServiceApi.md#udm_nagios_service_object_modify) | **PUT** /nagios/service/{dn} | Modify or move an Nagios service object +*NagiosServiceApi* | [**udm_nagios_service_object_remove**](docs/NagiosServiceApi.md#udm_nagios_service_object_remove) | **DELETE** /nagios/service/{dn} | Remove a Nagios services object +*NagiosServiceApi* | [**udm_nagios_service_object_search**](docs/NagiosServiceApi.md#udm_nagios_service_object_search) | **GET** /nagios/service/ | Search for Nagios services objects +*NagiosServiceApi* | [**udm_nagios_service_object_template**](docs/NagiosServiceApi.md#udm_nagios_service_object_template) | **GET** /nagios/service/add | Get a template for creating an Nagios service object (contains all properties and their default values) +*NagiosServiceApi* | [**udm_nagios_service_object_update**](docs/NagiosServiceApi.md#udm_nagios_service_object_update) | **PATCH** /nagios/service/{dn} | Modify an Nagios service object (moving is currently not possible) +*NagiosTimeperiodApi* | [**udm_nagios_timeperiod_object**](docs/NagiosTimeperiodApi.md#udm_nagios_timeperiod_object) | **GET** /nagios/timeperiod/{dn} | Get a representation of the Nagios time period object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*NagiosTimeperiodApi* | [**udm_nagios_timeperiod_object_create**](docs/NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_create) | **POST** /nagios/timeperiod/ | Create a new Nagios time period object +*NagiosTimeperiodApi* | [**udm_nagios_timeperiod_object_modify**](docs/NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_modify) | **PUT** /nagios/timeperiod/{dn} | Modify or move an Nagios time period object +*NagiosTimeperiodApi* | [**udm_nagios_timeperiod_object_remove**](docs/NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_remove) | **DELETE** /nagios/timeperiod/{dn} | Remove a Nagios time periods object +*NagiosTimeperiodApi* | [**udm_nagios_timeperiod_object_search**](docs/NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_search) | **GET** /nagios/timeperiod/ | Search for Nagios time periods objects +*NagiosTimeperiodApi* | [**udm_nagios_timeperiod_object_template**](docs/NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_template) | **GET** /nagios/timeperiod/add | Get a template for creating an Nagios time period object (contains all properties and their default values) +*NagiosTimeperiodApi* | [**udm_nagios_timeperiod_object_update**](docs/NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_update) | **PATCH** /nagios/timeperiod/{dn} | Modify an Nagios time period object (moving is currently not possible) +*NetworksNetworkApi* | [**udm_networks_network_object**](docs/NetworksNetworkApi.md#udm_networks_network_object) | **GET** /networks/network/{dn} | Get a representation of the Network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*NetworksNetworkApi* | [**udm_networks_network_object_create**](docs/NetworksNetworkApi.md#udm_networks_network_object_create) | **POST** /networks/network/ | Create a new Network object +*NetworksNetworkApi* | [**udm_networks_network_object_modify**](docs/NetworksNetworkApi.md#udm_networks_network_object_modify) | **PUT** /networks/network/{dn} | Modify or move an Network object +*NetworksNetworkApi* | [**udm_networks_network_object_remove**](docs/NetworksNetworkApi.md#udm_networks_network_object_remove) | **DELETE** /networks/network/{dn} | Remove a Networks object +*NetworksNetworkApi* | [**udm_networks_network_object_search**](docs/NetworksNetworkApi.md#udm_networks_network_object_search) | **GET** /networks/network/ | Search for Networks objects +*NetworksNetworkApi* | [**udm_networks_network_object_template**](docs/NetworksNetworkApi.md#udm_networks_network_object_template) | **GET** /networks/network/add | Get a template for creating an Network object (contains all properties and their default values) +*NetworksNetworkApi* | [**udm_networks_network_object_update**](docs/NetworksNetworkApi.md#udm_networks_network_object_update) | **PATCH** /networks/network/{dn} | Modify an Network object (moving is currently not possible) +*PoliciesAdminContainerApi* | [**udm_policies_admin_container_object**](docs/PoliciesAdminContainerApi.md#udm_policies_admin_container_object) | **GET** /policies/admin_container/{dn} | Get a representation of the Univention Directory Manager container settings policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesAdminContainerApi* | [**udm_policies_admin_container_object_create**](docs/PoliciesAdminContainerApi.md#udm_policies_admin_container_object_create) | **POST** /policies/admin_container/ | Create a new Univention Directory Manager container settings policy object +*PoliciesAdminContainerApi* | [**udm_policies_admin_container_object_modify**](docs/PoliciesAdminContainerApi.md#udm_policies_admin_container_object_modify) | **PUT** /policies/admin_container/{dn} | Modify or move an Univention Directory Manager container settings policy object +*PoliciesAdminContainerApi* | [**udm_policies_admin_container_object_remove**](docs/PoliciesAdminContainerApi.md#udm_policies_admin_container_object_remove) | **DELETE** /policies/admin_container/{dn} | Remove a Univention Directory Manager container settings policies object +*PoliciesAdminContainerApi* | [**udm_policies_admin_container_object_search**](docs/PoliciesAdminContainerApi.md#udm_policies_admin_container_object_search) | **GET** /policies/admin_container/ | Search for Univention Directory Manager container settings policies objects +*PoliciesAdminContainerApi* | [**udm_policies_admin_container_object_template**](docs/PoliciesAdminContainerApi.md#udm_policies_admin_container_object_template) | **GET** /policies/admin_container/add | Get a template for creating an Univention Directory Manager container settings policy object (contains all properties and their default values) +*PoliciesAdminContainerApi* | [**udm_policies_admin_container_object_update**](docs/PoliciesAdminContainerApi.md#udm_policies_admin_container_object_update) | **PATCH** /policies/admin_container/{dn} | Modify an Univention Directory Manager container settings policy object (moving is currently not possible) +*PoliciesDesktopApi* | [**udm_policies_desktop_object**](docs/PoliciesDesktopApi.md#udm_policies_desktop_object) | **GET** /policies/desktop/{dn} | Get a representation of the Desktop policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDesktopApi* | [**udm_policies_desktop_object_create**](docs/PoliciesDesktopApi.md#udm_policies_desktop_object_create) | **POST** /policies/desktop/ | Create a new Desktop policy object +*PoliciesDesktopApi* | [**udm_policies_desktop_object_modify**](docs/PoliciesDesktopApi.md#udm_policies_desktop_object_modify) | **PUT** /policies/desktop/{dn} | Modify or move an Desktop policy object +*PoliciesDesktopApi* | [**udm_policies_desktop_object_remove**](docs/PoliciesDesktopApi.md#udm_policies_desktop_object_remove) | **DELETE** /policies/desktop/{dn} | Remove a Desktop policies object +*PoliciesDesktopApi* | [**udm_policies_desktop_object_search**](docs/PoliciesDesktopApi.md#udm_policies_desktop_object_search) | **GET** /policies/desktop/ | Search for Desktop policies objects +*PoliciesDesktopApi* | [**udm_policies_desktop_object_template**](docs/PoliciesDesktopApi.md#udm_policies_desktop_object_template) | **GET** /policies/desktop/add | Get a template for creating an Desktop policy object (contains all properties and their default values) +*PoliciesDesktopApi* | [**udm_policies_desktop_object_update**](docs/PoliciesDesktopApi.md#udm_policies_desktop_object_update) | **PATCH** /policies/desktop/{dn} | Modify an Desktop policy object (moving is currently not possible) +*PoliciesDhcpBootApi* | [**udm_policies_dhcp_boot_object**](docs/PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object) | **GET** /policies/dhcp_boot/{dn} | Get a representation of the DHCP Boot policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDhcpBootApi* | [**udm_policies_dhcp_boot_object_create**](docs/PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_create) | **POST** /policies/dhcp_boot/ | Create a new DHCP Boot policy object +*PoliciesDhcpBootApi* | [**udm_policies_dhcp_boot_object_modify**](docs/PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_modify) | **PUT** /policies/dhcp_boot/{dn} | Modify or move an DHCP Boot policy object +*PoliciesDhcpBootApi* | [**udm_policies_dhcp_boot_object_remove**](docs/PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_remove) | **DELETE** /policies/dhcp_boot/{dn} | Remove a DHCP Boot policies object +*PoliciesDhcpBootApi* | [**udm_policies_dhcp_boot_object_search**](docs/PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_search) | **GET** /policies/dhcp_boot/ | Search for DHCP Boot policies objects +*PoliciesDhcpBootApi* | [**udm_policies_dhcp_boot_object_template**](docs/PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_template) | **GET** /policies/dhcp_boot/add | Get a template for creating an DHCP Boot policy object (contains all properties and their default values) +*PoliciesDhcpBootApi* | [**udm_policies_dhcp_boot_object_update**](docs/PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_update) | **PATCH** /policies/dhcp_boot/{dn} | Modify an DHCP Boot policy object (moving is currently not possible) +*PoliciesDhcpDnsApi* | [**udm_policies_dhcp_dns_object**](docs/PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object) | **GET** /policies/dhcp_dns/{dn} | Get a representation of the DHCP DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDhcpDnsApi* | [**udm_policies_dhcp_dns_object_create**](docs/PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_create) | **POST** /policies/dhcp_dns/ | Create a new DHCP DNS policy object +*PoliciesDhcpDnsApi* | [**udm_policies_dhcp_dns_object_modify**](docs/PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_modify) | **PUT** /policies/dhcp_dns/{dn} | Modify or move an DHCP DNS policy object +*PoliciesDhcpDnsApi* | [**udm_policies_dhcp_dns_object_remove**](docs/PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_remove) | **DELETE** /policies/dhcp_dns/{dn} | Remove a DHCP DNS policies object +*PoliciesDhcpDnsApi* | [**udm_policies_dhcp_dns_object_search**](docs/PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_search) | **GET** /policies/dhcp_dns/ | Search for DHCP DNS policies objects +*PoliciesDhcpDnsApi* | [**udm_policies_dhcp_dns_object_template**](docs/PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_template) | **GET** /policies/dhcp_dns/add | Get a template for creating an DHCP DNS policy object (contains all properties and their default values) +*PoliciesDhcpDnsApi* | [**udm_policies_dhcp_dns_object_update**](docs/PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_update) | **PATCH** /policies/dhcp_dns/{dn} | Modify an DHCP DNS policy object (moving is currently not possible) +*PoliciesDhcpDnsupdateApi* | [**udm_policies_dhcp_dnsupdate_object**](docs/PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object) | **GET** /policies/dhcp_dnsupdate/{dn} | Get a representation of the DHCP Dynamic DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDhcpDnsupdateApi* | [**udm_policies_dhcp_dnsupdate_object_create**](docs/PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_create) | **POST** /policies/dhcp_dnsupdate/ | Create a new DHCP Dynamic DNS policy object +*PoliciesDhcpDnsupdateApi* | [**udm_policies_dhcp_dnsupdate_object_modify**](docs/PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_modify) | **PUT** /policies/dhcp_dnsupdate/{dn} | Modify or move an DHCP Dynamic DNS policy object +*PoliciesDhcpDnsupdateApi* | [**udm_policies_dhcp_dnsupdate_object_remove**](docs/PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_remove) | **DELETE** /policies/dhcp_dnsupdate/{dn} | Remove a DHCP Dynamic DNS policies object +*PoliciesDhcpDnsupdateApi* | [**udm_policies_dhcp_dnsupdate_object_search**](docs/PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_search) | **GET** /policies/dhcp_dnsupdate/ | Search for DHCP Dynamic DNS policies objects +*PoliciesDhcpDnsupdateApi* | [**udm_policies_dhcp_dnsupdate_object_template**](docs/PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_template) | **GET** /policies/dhcp_dnsupdate/add | Get a template for creating an DHCP Dynamic DNS policy object (contains all properties and their default values) +*PoliciesDhcpDnsupdateApi* | [**udm_policies_dhcp_dnsupdate_object_update**](docs/PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_update) | **PATCH** /policies/dhcp_dnsupdate/{dn} | Modify an DHCP Dynamic DNS policy object (moving is currently not possible) +*PoliciesDhcpLeasetimeApi* | [**udm_policies_dhcp_leasetime_object**](docs/PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object) | **GET** /policies/dhcp_leasetime/{dn} | Get a representation of the DHCP lease time policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDhcpLeasetimeApi* | [**udm_policies_dhcp_leasetime_object_create**](docs/PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_create) | **POST** /policies/dhcp_leasetime/ | Create a new DHCP lease time policy object +*PoliciesDhcpLeasetimeApi* | [**udm_policies_dhcp_leasetime_object_modify**](docs/PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_modify) | **PUT** /policies/dhcp_leasetime/{dn} | Modify or move an DHCP lease time policy object +*PoliciesDhcpLeasetimeApi* | [**udm_policies_dhcp_leasetime_object_remove**](docs/PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_remove) | **DELETE** /policies/dhcp_leasetime/{dn} | Remove a DHCP lease time policies object +*PoliciesDhcpLeasetimeApi* | [**udm_policies_dhcp_leasetime_object_search**](docs/PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_search) | **GET** /policies/dhcp_leasetime/ | Search for DHCP lease time policies objects +*PoliciesDhcpLeasetimeApi* | [**udm_policies_dhcp_leasetime_object_template**](docs/PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_template) | **GET** /policies/dhcp_leasetime/add | Get a template for creating an DHCP lease time policy object (contains all properties and their default values) +*PoliciesDhcpLeasetimeApi* | [**udm_policies_dhcp_leasetime_object_update**](docs/PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_update) | **PATCH** /policies/dhcp_leasetime/{dn} | Modify an DHCP lease time policy object (moving is currently not possible) +*PoliciesDhcpNetbiosApi* | [**udm_policies_dhcp_netbios_object**](docs/PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object) | **GET** /policies/dhcp_netbios/{dn} | Get a representation of the DHCP NetBIOS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDhcpNetbiosApi* | [**udm_policies_dhcp_netbios_object_create**](docs/PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_create) | **POST** /policies/dhcp_netbios/ | Create a new DHCP NetBIOS policy object +*PoliciesDhcpNetbiosApi* | [**udm_policies_dhcp_netbios_object_modify**](docs/PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_modify) | **PUT** /policies/dhcp_netbios/{dn} | Modify or move an DHCP NetBIOS policy object +*PoliciesDhcpNetbiosApi* | [**udm_policies_dhcp_netbios_object_remove**](docs/PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_remove) | **DELETE** /policies/dhcp_netbios/{dn} | Remove a DHCP NetBIOS policies object +*PoliciesDhcpNetbiosApi* | [**udm_policies_dhcp_netbios_object_search**](docs/PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_search) | **GET** /policies/dhcp_netbios/ | Search for DHCP NetBIOS policies objects +*PoliciesDhcpNetbiosApi* | [**udm_policies_dhcp_netbios_object_template**](docs/PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_template) | **GET** /policies/dhcp_netbios/add | Get a template for creating an DHCP NetBIOS policy object (contains all properties and their default values) +*PoliciesDhcpNetbiosApi* | [**udm_policies_dhcp_netbios_object_update**](docs/PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_update) | **PATCH** /policies/dhcp_netbios/{dn} | Modify an DHCP NetBIOS policy object (moving is currently not possible) +*PoliciesDhcpRoutingApi* | [**udm_policies_dhcp_routing_object**](docs/PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object) | **GET** /policies/dhcp_routing/{dn} | Get a representation of the DHCP routing policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDhcpRoutingApi* | [**udm_policies_dhcp_routing_object_create**](docs/PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_create) | **POST** /policies/dhcp_routing/ | Create a new DHCP routing policy object +*PoliciesDhcpRoutingApi* | [**udm_policies_dhcp_routing_object_modify**](docs/PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_modify) | **PUT** /policies/dhcp_routing/{dn} | Modify or move an DHCP routing policy object +*PoliciesDhcpRoutingApi* | [**udm_policies_dhcp_routing_object_remove**](docs/PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_remove) | **DELETE** /policies/dhcp_routing/{dn} | Remove a DHCP routing policies object +*PoliciesDhcpRoutingApi* | [**udm_policies_dhcp_routing_object_search**](docs/PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_search) | **GET** /policies/dhcp_routing/ | Search for DHCP routing policies objects +*PoliciesDhcpRoutingApi* | [**udm_policies_dhcp_routing_object_template**](docs/PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_template) | **GET** /policies/dhcp_routing/add | Get a template for creating an DHCP routing policy object (contains all properties and their default values) +*PoliciesDhcpRoutingApi* | [**udm_policies_dhcp_routing_object_update**](docs/PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_update) | **PATCH** /policies/dhcp_routing/{dn} | Modify an DHCP routing policy object (moving is currently not possible) +*PoliciesDhcpScopeApi* | [**udm_policies_dhcp_scope_object**](docs/PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object) | **GET** /policies/dhcp_scope/{dn} | Get a representation of the DHCP Allow/Deny policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDhcpScopeApi* | [**udm_policies_dhcp_scope_object_create**](docs/PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_create) | **POST** /policies/dhcp_scope/ | Create a new DHCP Allow/Deny policy object +*PoliciesDhcpScopeApi* | [**udm_policies_dhcp_scope_object_modify**](docs/PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_modify) | **PUT** /policies/dhcp_scope/{dn} | Modify or move an DHCP Allow/Deny policy object +*PoliciesDhcpScopeApi* | [**udm_policies_dhcp_scope_object_remove**](docs/PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_remove) | **DELETE** /policies/dhcp_scope/{dn} | Remove a DHCP Allow/Deny policies object +*PoliciesDhcpScopeApi* | [**udm_policies_dhcp_scope_object_search**](docs/PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_search) | **GET** /policies/dhcp_scope/ | Search for DHCP Allow/Deny policies objects +*PoliciesDhcpScopeApi* | [**udm_policies_dhcp_scope_object_template**](docs/PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_template) | **GET** /policies/dhcp_scope/add | Get a template for creating an DHCP Allow/Deny policy object (contains all properties and their default values) +*PoliciesDhcpScopeApi* | [**udm_policies_dhcp_scope_object_update**](docs/PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_update) | **PATCH** /policies/dhcp_scope/{dn} | Modify an DHCP Allow/Deny policy object (moving is currently not possible) +*PoliciesDhcpStatementsApi* | [**udm_policies_dhcp_statements_object**](docs/PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object) | **GET** /policies/dhcp_statements/{dn} | Get a representation of the DHCP statements policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesDhcpStatementsApi* | [**udm_policies_dhcp_statements_object_create**](docs/PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_create) | **POST** /policies/dhcp_statements/ | Create a new DHCP statements policy object +*PoliciesDhcpStatementsApi* | [**udm_policies_dhcp_statements_object_modify**](docs/PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_modify) | **PUT** /policies/dhcp_statements/{dn} | Modify or move an DHCP statements policy object +*PoliciesDhcpStatementsApi* | [**udm_policies_dhcp_statements_object_remove**](docs/PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_remove) | **DELETE** /policies/dhcp_statements/{dn} | Remove a DHCP statements policies object +*PoliciesDhcpStatementsApi* | [**udm_policies_dhcp_statements_object_search**](docs/PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_search) | **GET** /policies/dhcp_statements/ | Search for DHCP statements policies objects +*PoliciesDhcpStatementsApi* | [**udm_policies_dhcp_statements_object_template**](docs/PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_template) | **GET** /policies/dhcp_statements/add | Get a template for creating an DHCP statements policy object (contains all properties and their default values) +*PoliciesDhcpStatementsApi* | [**udm_policies_dhcp_statements_object_update**](docs/PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_update) | **PATCH** /policies/dhcp_statements/{dn} | Modify an DHCP statements policy object (moving is currently not possible) +*PoliciesLdapserverApi* | [**udm_policies_ldapserver_object**](docs/PoliciesLdapserverApi.md#udm_policies_ldapserver_object) | **GET** /policies/ldapserver/{dn} | Get a representation of the LDAP server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesLdapserverApi* | [**udm_policies_ldapserver_object_create**](docs/PoliciesLdapserverApi.md#udm_policies_ldapserver_object_create) | **POST** /policies/ldapserver/ | Create a new LDAP server policy object +*PoliciesLdapserverApi* | [**udm_policies_ldapserver_object_modify**](docs/PoliciesLdapserverApi.md#udm_policies_ldapserver_object_modify) | **PUT** /policies/ldapserver/{dn} | Modify or move an LDAP server policy object +*PoliciesLdapserverApi* | [**udm_policies_ldapserver_object_remove**](docs/PoliciesLdapserverApi.md#udm_policies_ldapserver_object_remove) | **DELETE** /policies/ldapserver/{dn} | Remove a LDAP server policies object +*PoliciesLdapserverApi* | [**udm_policies_ldapserver_object_search**](docs/PoliciesLdapserverApi.md#udm_policies_ldapserver_object_search) | **GET** /policies/ldapserver/ | Search for LDAP server policies objects +*PoliciesLdapserverApi* | [**udm_policies_ldapserver_object_template**](docs/PoliciesLdapserverApi.md#udm_policies_ldapserver_object_template) | **GET** /policies/ldapserver/add | Get a template for creating an LDAP server policy object (contains all properties and their default values) +*PoliciesLdapserverApi* | [**udm_policies_ldapserver_object_update**](docs/PoliciesLdapserverApi.md#udm_policies_ldapserver_object_update) | **PATCH** /policies/ldapserver/{dn} | Modify an LDAP server policy object (moving is currently not possible) +*PoliciesMaintenanceApi* | [**udm_policies_maintenance_object**](docs/PoliciesMaintenanceApi.md#udm_policies_maintenance_object) | **GET** /policies/maintenance/{dn} | Get a representation of the Maintenance policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesMaintenanceApi* | [**udm_policies_maintenance_object_create**](docs/PoliciesMaintenanceApi.md#udm_policies_maintenance_object_create) | **POST** /policies/maintenance/ | Create a new Maintenance policy object +*PoliciesMaintenanceApi* | [**udm_policies_maintenance_object_modify**](docs/PoliciesMaintenanceApi.md#udm_policies_maintenance_object_modify) | **PUT** /policies/maintenance/{dn} | Modify or move an Maintenance policy object +*PoliciesMaintenanceApi* | [**udm_policies_maintenance_object_remove**](docs/PoliciesMaintenanceApi.md#udm_policies_maintenance_object_remove) | **DELETE** /policies/maintenance/{dn} | Remove a Maintenance policies object +*PoliciesMaintenanceApi* | [**udm_policies_maintenance_object_search**](docs/PoliciesMaintenanceApi.md#udm_policies_maintenance_object_search) | **GET** /policies/maintenance/ | Search for Maintenance policies objects +*PoliciesMaintenanceApi* | [**udm_policies_maintenance_object_template**](docs/PoliciesMaintenanceApi.md#udm_policies_maintenance_object_template) | **GET** /policies/maintenance/add | Get a template for creating an Maintenance policy object (contains all properties and their default values) +*PoliciesMaintenanceApi* | [**udm_policies_maintenance_object_update**](docs/PoliciesMaintenanceApi.md#udm_policies_maintenance_object_update) | **PATCH** /policies/maintenance/{dn} | Modify an Maintenance policy object (moving is currently not possible) +*PoliciesMasterpackagesApi* | [**udm_policies_masterpackages_object**](docs/PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object) | **GET** /policies/masterpackages/{dn} | Get a representation of the Primary/Backup Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesMasterpackagesApi* | [**udm_policies_masterpackages_object_create**](docs/PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_create) | **POST** /policies/masterpackages/ | Create a new Primary/Backup Node packages policy object +*PoliciesMasterpackagesApi* | [**udm_policies_masterpackages_object_modify**](docs/PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_modify) | **PUT** /policies/masterpackages/{dn} | Modify or move an Primary/Backup Node packages policy object +*PoliciesMasterpackagesApi* | [**udm_policies_masterpackages_object_remove**](docs/PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_remove) | **DELETE** /policies/masterpackages/{dn} | Remove a Primary/Backup Node packages policies object +*PoliciesMasterpackagesApi* | [**udm_policies_masterpackages_object_search**](docs/PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_search) | **GET** /policies/masterpackages/ | Search for Primary/Backup Node packages policies objects +*PoliciesMasterpackagesApi* | [**udm_policies_masterpackages_object_template**](docs/PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_template) | **GET** /policies/masterpackages/add | Get a template for creating an Primary/Backup Node packages policy object (contains all properties and their default values) +*PoliciesMasterpackagesApi* | [**udm_policies_masterpackages_object_update**](docs/PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_update) | **PATCH** /policies/masterpackages/{dn} | Modify an Primary/Backup Node packages policy object (moving is currently not possible) +*PoliciesMemberpackagesApi* | [**udm_policies_memberpackages_object**](docs/PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object) | **GET** /policies/memberpackages/{dn} | Get a representation of the Managed Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesMemberpackagesApi* | [**udm_policies_memberpackages_object_create**](docs/PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_create) | **POST** /policies/memberpackages/ | Create a new Managed Node packages policy object +*PoliciesMemberpackagesApi* | [**udm_policies_memberpackages_object_modify**](docs/PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_modify) | **PUT** /policies/memberpackages/{dn} | Modify or move an Managed Node packages policy object +*PoliciesMemberpackagesApi* | [**udm_policies_memberpackages_object_remove**](docs/PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_remove) | **DELETE** /policies/memberpackages/{dn} | Remove a Managed Node packages policies object +*PoliciesMemberpackagesApi* | [**udm_policies_memberpackages_object_search**](docs/PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_search) | **GET** /policies/memberpackages/ | Search for Managed Node packages policies objects +*PoliciesMemberpackagesApi* | [**udm_policies_memberpackages_object_template**](docs/PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_template) | **GET** /policies/memberpackages/add | Get a template for creating an Managed Node packages policy object (contains all properties and their default values) +*PoliciesMemberpackagesApi* | [**udm_policies_memberpackages_object_update**](docs/PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_update) | **PATCH** /policies/memberpackages/{dn} | Modify an Managed Node packages policy object (moving is currently not possible) +*PoliciesNfsmountsApi* | [**udm_policies_nfsmounts_object**](docs/PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object) | **GET** /policies/nfsmounts/{dn} | Get a representation of the NFS mounts policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesNfsmountsApi* | [**udm_policies_nfsmounts_object_create**](docs/PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_create) | **POST** /policies/nfsmounts/ | Create a new NFS mounts policy object +*PoliciesNfsmountsApi* | [**udm_policies_nfsmounts_object_modify**](docs/PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_modify) | **PUT** /policies/nfsmounts/{dn} | Modify or move an NFS mounts policy object +*PoliciesNfsmountsApi* | [**udm_policies_nfsmounts_object_remove**](docs/PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_remove) | **DELETE** /policies/nfsmounts/{dn} | Remove a NFS mounts policies object +*PoliciesNfsmountsApi* | [**udm_policies_nfsmounts_object_search**](docs/PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_search) | **GET** /policies/nfsmounts/ | Search for NFS mounts policies objects +*PoliciesNfsmountsApi* | [**udm_policies_nfsmounts_object_template**](docs/PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_template) | **GET** /policies/nfsmounts/add | Get a template for creating an NFS mounts policy object (contains all properties and their default values) +*PoliciesNfsmountsApi* | [**udm_policies_nfsmounts_object_update**](docs/PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_update) | **PATCH** /policies/nfsmounts/{dn} | Modify an NFS mounts policy object (moving is currently not possible) +*PoliciesPolicyApi* | [**udm_policies_policy_object**](docs/PoliciesPolicyApi.md#udm_policies_policy_object) | **GET** /policies/policy/{dn} | Get a representation of the Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesPolicyApi* | [**udm_policies_policy_object_search**](docs/PoliciesPolicyApi.md#udm_policies_policy_object_search) | **GET** /policies/policy/ | Search for Policies objects +*PoliciesPrintserverApi* | [**udm_policies_printserver_object**](docs/PoliciesPrintserverApi.md#udm_policies_printserver_object) | **GET** /policies/printserver/{dn} | Get a representation of the Print server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesPrintserverApi* | [**udm_policies_printserver_object_create**](docs/PoliciesPrintserverApi.md#udm_policies_printserver_object_create) | **POST** /policies/printserver/ | Create a new Print server policy object +*PoliciesPrintserverApi* | [**udm_policies_printserver_object_modify**](docs/PoliciesPrintserverApi.md#udm_policies_printserver_object_modify) | **PUT** /policies/printserver/{dn} | Modify or move an Print server policy object +*PoliciesPrintserverApi* | [**udm_policies_printserver_object_remove**](docs/PoliciesPrintserverApi.md#udm_policies_printserver_object_remove) | **DELETE** /policies/printserver/{dn} | Remove a Print server policies object +*PoliciesPrintserverApi* | [**udm_policies_printserver_object_search**](docs/PoliciesPrintserverApi.md#udm_policies_printserver_object_search) | **GET** /policies/printserver/ | Search for Print server policies objects +*PoliciesPrintserverApi* | [**udm_policies_printserver_object_template**](docs/PoliciesPrintserverApi.md#udm_policies_printserver_object_template) | **GET** /policies/printserver/add | Get a template for creating an Print server policy object (contains all properties and their default values) +*PoliciesPrintserverApi* | [**udm_policies_printserver_object_update**](docs/PoliciesPrintserverApi.md#udm_policies_printserver_object_update) | **PATCH** /policies/printserver/{dn} | Modify an Print server policy object (moving is currently not possible) +*PoliciesPwhistoryApi* | [**udm_policies_pwhistory_object**](docs/PoliciesPwhistoryApi.md#udm_policies_pwhistory_object) | **GET** /policies/pwhistory/{dn} | Get a representation of the Passwords policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesPwhistoryApi* | [**udm_policies_pwhistory_object_create**](docs/PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_create) | **POST** /policies/pwhistory/ | Create a new Passwords policy object +*PoliciesPwhistoryApi* | [**udm_policies_pwhistory_object_modify**](docs/PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_modify) | **PUT** /policies/pwhistory/{dn} | Modify or move an Passwords policy object +*PoliciesPwhistoryApi* | [**udm_policies_pwhistory_object_remove**](docs/PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_remove) | **DELETE** /policies/pwhistory/{dn} | Remove a Passwords policies object +*PoliciesPwhistoryApi* | [**udm_policies_pwhistory_object_search**](docs/PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_search) | **GET** /policies/pwhistory/ | Search for Passwords policies objects +*PoliciesPwhistoryApi* | [**udm_policies_pwhistory_object_template**](docs/PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_template) | **GET** /policies/pwhistory/add | Get a template for creating an Passwords policy object (contains all properties and their default values) +*PoliciesPwhistoryApi* | [**udm_policies_pwhistory_object_update**](docs/PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_update) | **PATCH** /policies/pwhistory/{dn} | Modify an Passwords policy object (moving is currently not possible) +*PoliciesRegistryApi* | [**udm_policies_registry_object**](docs/PoliciesRegistryApi.md#udm_policies_registry_object) | **GET** /policies/registry/{dn} | Get a representation of the Univention Configuration Registry policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesRegistryApi* | [**udm_policies_registry_object_create**](docs/PoliciesRegistryApi.md#udm_policies_registry_object_create) | **POST** /policies/registry/ | Create a new Univention Configuration Registry policy object +*PoliciesRegistryApi* | [**udm_policies_registry_object_modify**](docs/PoliciesRegistryApi.md#udm_policies_registry_object_modify) | **PUT** /policies/registry/{dn} | Modify or move an Univention Configuration Registry policy object +*PoliciesRegistryApi* | [**udm_policies_registry_object_remove**](docs/PoliciesRegistryApi.md#udm_policies_registry_object_remove) | **DELETE** /policies/registry/{dn} | Remove a Univention Configuration Registry policies object +*PoliciesRegistryApi* | [**udm_policies_registry_object_search**](docs/PoliciesRegistryApi.md#udm_policies_registry_object_search) | **GET** /policies/registry/ | Search for Univention Configuration Registry policies objects +*PoliciesRegistryApi* | [**udm_policies_registry_object_template**](docs/PoliciesRegistryApi.md#udm_policies_registry_object_template) | **GET** /policies/registry/add | Get a template for creating an Univention Configuration Registry policy object (contains all properties and their default values) +*PoliciesRegistryApi* | [**udm_policies_registry_object_update**](docs/PoliciesRegistryApi.md#udm_policies_registry_object_update) | **PATCH** /policies/registry/{dn} | Modify an Univention Configuration Registry policy object (moving is currently not possible) +*PoliciesReleaseApi* | [**udm_policies_release_object**](docs/PoliciesReleaseApi.md#udm_policies_release_object) | **GET** /policies/release/{dn} | Get a representation of the Automatic updates policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesReleaseApi* | [**udm_policies_release_object_create**](docs/PoliciesReleaseApi.md#udm_policies_release_object_create) | **POST** /policies/release/ | Create a new Automatic updates policy object +*PoliciesReleaseApi* | [**udm_policies_release_object_modify**](docs/PoliciesReleaseApi.md#udm_policies_release_object_modify) | **PUT** /policies/release/{dn} | Modify or move an Automatic updates policy object +*PoliciesReleaseApi* | [**udm_policies_release_object_remove**](docs/PoliciesReleaseApi.md#udm_policies_release_object_remove) | **DELETE** /policies/release/{dn} | Remove a Automatic updates policies object +*PoliciesReleaseApi* | [**udm_policies_release_object_search**](docs/PoliciesReleaseApi.md#udm_policies_release_object_search) | **GET** /policies/release/ | Search for Automatic updates policies objects +*PoliciesReleaseApi* | [**udm_policies_release_object_template**](docs/PoliciesReleaseApi.md#udm_policies_release_object_template) | **GET** /policies/release/add | Get a template for creating an Automatic updates policy object (contains all properties and their default values) +*PoliciesReleaseApi* | [**udm_policies_release_object_update**](docs/PoliciesReleaseApi.md#udm_policies_release_object_update) | **PATCH** /policies/release/{dn} | Modify an Automatic updates policy object (moving is currently not possible) +*PoliciesRepositoryserverApi* | [**udm_policies_repositoryserver_object**](docs/PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object) | **GET** /policies/repositoryserver/{dn} | Get a representation of the Repository server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesRepositoryserverApi* | [**udm_policies_repositoryserver_object_create**](docs/PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_create) | **POST** /policies/repositoryserver/ | Create a new Repository server policy object +*PoliciesRepositoryserverApi* | [**udm_policies_repositoryserver_object_modify**](docs/PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_modify) | **PUT** /policies/repositoryserver/{dn} | Modify or move an Repository server policy object +*PoliciesRepositoryserverApi* | [**udm_policies_repositoryserver_object_remove**](docs/PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_remove) | **DELETE** /policies/repositoryserver/{dn} | Remove a Repository server policies object +*PoliciesRepositoryserverApi* | [**udm_policies_repositoryserver_object_search**](docs/PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_search) | **GET** /policies/repositoryserver/ | Search for Repository server policies objects +*PoliciesRepositoryserverApi* | [**udm_policies_repositoryserver_object_template**](docs/PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_template) | **GET** /policies/repositoryserver/add | Get a template for creating an Repository server policy object (contains all properties and their default values) +*PoliciesRepositoryserverApi* | [**udm_policies_repositoryserver_object_update**](docs/PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_update) | **PATCH** /policies/repositoryserver/{dn} | Modify an Repository server policy object (moving is currently not possible) +*PoliciesRepositorysyncApi* | [**udm_policies_repositorysync_object**](docs/PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object) | **GET** /policies/repositorysync/{dn} | Get a representation of the Repository synchronisation policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesRepositorysyncApi* | [**udm_policies_repositorysync_object_create**](docs/PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_create) | **POST** /policies/repositorysync/ | Create a new Repository synchronisation policy object +*PoliciesRepositorysyncApi* | [**udm_policies_repositorysync_object_modify**](docs/PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_modify) | **PUT** /policies/repositorysync/{dn} | Modify or move an Repository synchronisation policy object +*PoliciesRepositorysyncApi* | [**udm_policies_repositorysync_object_remove**](docs/PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_remove) | **DELETE** /policies/repositorysync/{dn} | Remove a Repository synchronisation policies object +*PoliciesRepositorysyncApi* | [**udm_policies_repositorysync_object_search**](docs/PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_search) | **GET** /policies/repositorysync/ | Search for Repository synchronisation policies objects +*PoliciesRepositorysyncApi* | [**udm_policies_repositorysync_object_template**](docs/PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_template) | **GET** /policies/repositorysync/add | Get a template for creating an Repository synchronisation policy object (contains all properties and their default values) +*PoliciesRepositorysyncApi* | [**udm_policies_repositorysync_object_update**](docs/PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_update) | **PATCH** /policies/repositorysync/{dn} | Modify an Repository synchronisation policy object (moving is currently not possible) +*PoliciesShareUserquotaApi* | [**udm_policies_share_userquota_object**](docs/PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object) | **GET** /policies/share_userquota/{dn} | Get a representation of the User quota policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesShareUserquotaApi* | [**udm_policies_share_userquota_object_create**](docs/PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_create) | **POST** /policies/share_userquota/ | Create a new User quota policy object +*PoliciesShareUserquotaApi* | [**udm_policies_share_userquota_object_modify**](docs/PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_modify) | **PUT** /policies/share_userquota/{dn} | Modify or move an User quota policy object +*PoliciesShareUserquotaApi* | [**udm_policies_share_userquota_object_remove**](docs/PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_remove) | **DELETE** /policies/share_userquota/{dn} | Remove a User quota policies object +*PoliciesShareUserquotaApi* | [**udm_policies_share_userquota_object_search**](docs/PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_search) | **GET** /policies/share_userquota/ | Search for User quota policies objects +*PoliciesShareUserquotaApi* | [**udm_policies_share_userquota_object_template**](docs/PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_template) | **GET** /policies/share_userquota/add | Get a template for creating an User quota policy object (contains all properties and their default values) +*PoliciesShareUserquotaApi* | [**udm_policies_share_userquota_object_update**](docs/PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_update) | **PATCH** /policies/share_userquota/{dn} | Modify an User quota policy object (moving is currently not possible) +*PoliciesSlavepackagesApi* | [**udm_policies_slavepackages_object**](docs/PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object) | **GET** /policies/slavepackages/{dn} | Get a representation of the Replica Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesSlavepackagesApi* | [**udm_policies_slavepackages_object_create**](docs/PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_create) | **POST** /policies/slavepackages/ | Create a new Replica Node packages policy object +*PoliciesSlavepackagesApi* | [**udm_policies_slavepackages_object_modify**](docs/PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_modify) | **PUT** /policies/slavepackages/{dn} | Modify or move an Replica Node packages policy object +*PoliciesSlavepackagesApi* | [**udm_policies_slavepackages_object_remove**](docs/PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_remove) | **DELETE** /policies/slavepackages/{dn} | Remove a Replica Node packages policies object +*PoliciesSlavepackagesApi* | [**udm_policies_slavepackages_object_search**](docs/PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_search) | **GET** /policies/slavepackages/ | Search for Replica Node packages policies objects +*PoliciesSlavepackagesApi* | [**udm_policies_slavepackages_object_template**](docs/PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_template) | **GET** /policies/slavepackages/add | Get a template for creating an Replica Node packages policy object (contains all properties and their default values) +*PoliciesSlavepackagesApi* | [**udm_policies_slavepackages_object_update**](docs/PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_update) | **PATCH** /policies/slavepackages/{dn} | Modify an Replica Node packages policy object (moving is currently not possible) +*PoliciesUmcApi* | [**udm_policies_umc_object**](docs/PoliciesUmcApi.md#udm_policies_umc_object) | **GET** /policies/umc/{dn} | Get a representation of the UMC policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PoliciesUmcApi* | [**udm_policies_umc_object_create**](docs/PoliciesUmcApi.md#udm_policies_umc_object_create) | **POST** /policies/umc/ | Create a new UMC policy object +*PoliciesUmcApi* | [**udm_policies_umc_object_modify**](docs/PoliciesUmcApi.md#udm_policies_umc_object_modify) | **PUT** /policies/umc/{dn} | Modify or move an UMC policy object +*PoliciesUmcApi* | [**udm_policies_umc_object_remove**](docs/PoliciesUmcApi.md#udm_policies_umc_object_remove) | **DELETE** /policies/umc/{dn} | Remove a UMC policies object +*PoliciesUmcApi* | [**udm_policies_umc_object_search**](docs/PoliciesUmcApi.md#udm_policies_umc_object_search) | **GET** /policies/umc/ | Search for UMC policies objects +*PoliciesUmcApi* | [**udm_policies_umc_object_template**](docs/PoliciesUmcApi.md#udm_policies_umc_object_template) | **GET** /policies/umc/add | Get a template for creating an UMC policy object (contains all properties and their default values) +*PoliciesUmcApi* | [**udm_policies_umc_object_update**](docs/PoliciesUmcApi.md#udm_policies_umc_object_update) | **PATCH** /policies/umc/{dn} | Modify an UMC policy object (moving is currently not possible) +*PortalsAllApi* | [**udm_portals_all_object**](docs/PortalsAllApi.md#udm_portals_all_object) | **GET** /portals/all/{dn} | Get a representation of the Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PortalsAllApi* | [**udm_portals_all_object_search**](docs/PortalsAllApi.md#udm_portals_all_object_search) | **GET** /portals/all/ | Search for Portal: Settings objects +*PortalsAnnouncementApi* | [**udm_portals_announcement_object**](docs/PortalsAnnouncementApi.md#udm_portals_announcement_object) | **GET** /portals/announcement/{dn} | Get a representation of the Portal announcement object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PortalsAnnouncementApi* | [**udm_portals_announcement_object_create**](docs/PortalsAnnouncementApi.md#udm_portals_announcement_object_create) | **POST** /portals/announcement/ | Create a new Portal announcement object +*PortalsAnnouncementApi* | [**udm_portals_announcement_object_modify**](docs/PortalsAnnouncementApi.md#udm_portals_announcement_object_modify) | **PUT** /portals/announcement/{dn} | Modify or move an Portal announcement object +*PortalsAnnouncementApi* | [**udm_portals_announcement_object_remove**](docs/PortalsAnnouncementApi.md#udm_portals_announcement_object_remove) | **DELETE** /portals/announcement/{dn} | Remove a Portal announcements object +*PortalsAnnouncementApi* | [**udm_portals_announcement_object_search**](docs/PortalsAnnouncementApi.md#udm_portals_announcement_object_search) | **GET** /portals/announcement/ | Search for Portal announcements objects +*PortalsAnnouncementApi* | [**udm_portals_announcement_object_template**](docs/PortalsAnnouncementApi.md#udm_portals_announcement_object_template) | **GET** /portals/announcement/add | Get a template for creating an Portal announcement object (contains all properties and their default values) +*PortalsAnnouncementApi* | [**udm_portals_announcement_object_update**](docs/PortalsAnnouncementApi.md#udm_portals_announcement_object_update) | **PATCH** /portals/announcement/{dn} | Modify an Portal announcement object (moving is currently not possible) +*PortalsCategoryApi* | [**udm_portals_category_object**](docs/PortalsCategoryApi.md#udm_portals_category_object) | **GET** /portals/category/{dn} | Get a representation of the Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PortalsCategoryApi* | [**udm_portals_category_object_create**](docs/PortalsCategoryApi.md#udm_portals_category_object_create) | **POST** /portals/category/ | Create a new Portal category object +*PortalsCategoryApi* | [**udm_portals_category_object_modify**](docs/PortalsCategoryApi.md#udm_portals_category_object_modify) | **PUT** /portals/category/{dn} | Modify or move an Portal category object +*PortalsCategoryApi* | [**udm_portals_category_object_remove**](docs/PortalsCategoryApi.md#udm_portals_category_object_remove) | **DELETE** /portals/category/{dn} | Remove a Portal categories object +*PortalsCategoryApi* | [**udm_portals_category_object_search**](docs/PortalsCategoryApi.md#udm_portals_category_object_search) | **GET** /portals/category/ | Search for Portal categories objects +*PortalsCategoryApi* | [**udm_portals_category_object_template**](docs/PortalsCategoryApi.md#udm_portals_category_object_template) | **GET** /portals/category/add | Get a template for creating an Portal category object (contains all properties and their default values) +*PortalsCategoryApi* | [**udm_portals_category_object_update**](docs/PortalsCategoryApi.md#udm_portals_category_object_update) | **PATCH** /portals/category/{dn} | Modify an Portal category object (moving is currently not possible) +*PortalsEntryApi* | [**udm_portals_entry_object**](docs/PortalsEntryApi.md#udm_portals_entry_object) | **GET** /portals/entry/{dn} | Get a representation of the Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PortalsEntryApi* | [**udm_portals_entry_object_create**](docs/PortalsEntryApi.md#udm_portals_entry_object_create) | **POST** /portals/entry/ | Create a new Portal entry object +*PortalsEntryApi* | [**udm_portals_entry_object_modify**](docs/PortalsEntryApi.md#udm_portals_entry_object_modify) | **PUT** /portals/entry/{dn} | Modify or move an Portal entry object +*PortalsEntryApi* | [**udm_portals_entry_object_remove**](docs/PortalsEntryApi.md#udm_portals_entry_object_remove) | **DELETE** /portals/entry/{dn} | Remove a Portal entries object +*PortalsEntryApi* | [**udm_portals_entry_object_search**](docs/PortalsEntryApi.md#udm_portals_entry_object_search) | **GET** /portals/entry/ | Search for Portal entries objects +*PortalsEntryApi* | [**udm_portals_entry_object_template**](docs/PortalsEntryApi.md#udm_portals_entry_object_template) | **GET** /portals/entry/add | Get a template for creating an Portal entry object (contains all properties and their default values) +*PortalsEntryApi* | [**udm_portals_entry_object_update**](docs/PortalsEntryApi.md#udm_portals_entry_object_update) | **PATCH** /portals/entry/{dn} | Modify an Portal entry object (moving is currently not possible) +*PortalsFolderApi* | [**udm_portals_folder_object**](docs/PortalsFolderApi.md#udm_portals_folder_object) | **GET** /portals/folder/{dn} | Get a representation of the Portal folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PortalsFolderApi* | [**udm_portals_folder_object_create**](docs/PortalsFolderApi.md#udm_portals_folder_object_create) | **POST** /portals/folder/ | Create a new Portal folder object +*PortalsFolderApi* | [**udm_portals_folder_object_modify**](docs/PortalsFolderApi.md#udm_portals_folder_object_modify) | **PUT** /portals/folder/{dn} | Modify or move an Portal folder object +*PortalsFolderApi* | [**udm_portals_folder_object_remove**](docs/PortalsFolderApi.md#udm_portals_folder_object_remove) | **DELETE** /portals/folder/{dn} | Remove a Portal folders object +*PortalsFolderApi* | [**udm_portals_folder_object_search**](docs/PortalsFolderApi.md#udm_portals_folder_object_search) | **GET** /portals/folder/ | Search for Portal folders objects +*PortalsFolderApi* | [**udm_portals_folder_object_template**](docs/PortalsFolderApi.md#udm_portals_folder_object_template) | **GET** /portals/folder/add | Get a template for creating an Portal folder object (contains all properties and their default values) +*PortalsFolderApi* | [**udm_portals_folder_object_update**](docs/PortalsFolderApi.md#udm_portals_folder_object_update) | **PATCH** /portals/folder/{dn} | Modify an Portal folder object (moving is currently not possible) +*PortalsPortalApi* | [**udm_portals_portal_object**](docs/PortalsPortalApi.md#udm_portals_portal_object) | **GET** /portals/portal/{dn} | Get a representation of the Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*PortalsPortalApi* | [**udm_portals_portal_object_create**](docs/PortalsPortalApi.md#udm_portals_portal_object_create) | **POST** /portals/portal/ | Create a new Portal object +*PortalsPortalApi* | [**udm_portals_portal_object_modify**](docs/PortalsPortalApi.md#udm_portals_portal_object_modify) | **PUT** /portals/portal/{dn} | Modify or move an Portal object +*PortalsPortalApi* | [**udm_portals_portal_object_remove**](docs/PortalsPortalApi.md#udm_portals_portal_object_remove) | **DELETE** /portals/portal/{dn} | Remove a Portals object +*PortalsPortalApi* | [**udm_portals_portal_object_search**](docs/PortalsPortalApi.md#udm_portals_portal_object_search) | **GET** /portals/portal/ | Search for Portals objects +*PortalsPortalApi* | [**udm_portals_portal_object_template**](docs/PortalsPortalApi.md#udm_portals_portal_object_template) | **GET** /portals/portal/add | Get a template for creating an Portal object (contains all properties and their default values) +*PortalsPortalApi* | [**udm_portals_portal_object_update**](docs/PortalsPortalApi.md#udm_portals_portal_object_update) | **PATCH** /portals/portal/{dn} | Modify an Portal object (moving is currently not possible) +*SamlIdpconfigApi* | [**udm_saml_idpconfig_object**](docs/SamlIdpconfigApi.md#udm_saml_idpconfig_object) | **GET** /saml/idpconfig/{dn} | Get a representation of the SAML IdP configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SamlIdpconfigApi* | [**udm_saml_idpconfig_object_create**](docs/SamlIdpconfigApi.md#udm_saml_idpconfig_object_create) | **POST** /saml/idpconfig/ | Create a new SAML IdP configuration object +*SamlIdpconfigApi* | [**udm_saml_idpconfig_object_modify**](docs/SamlIdpconfigApi.md#udm_saml_idpconfig_object_modify) | **PUT** /saml/idpconfig/{dn} | Modify or move an SAML IdP configuration object +*SamlIdpconfigApi* | [**udm_saml_idpconfig_object_remove**](docs/SamlIdpconfigApi.md#udm_saml_idpconfig_object_remove) | **DELETE** /saml/idpconfig/{dn} | Remove a SAML IdP configurations object +*SamlIdpconfigApi* | [**udm_saml_idpconfig_object_search**](docs/SamlIdpconfigApi.md#udm_saml_idpconfig_object_search) | **GET** /saml/idpconfig/ | Search for SAML IdP configurations objects +*SamlIdpconfigApi* | [**udm_saml_idpconfig_object_template**](docs/SamlIdpconfigApi.md#udm_saml_idpconfig_object_template) | **GET** /saml/idpconfig/add | Get a template for creating an SAML IdP configuration object (contains all properties and their default values) +*SamlIdpconfigApi* | [**udm_saml_idpconfig_object_update**](docs/SamlIdpconfigApi.md#udm_saml_idpconfig_object_update) | **PATCH** /saml/idpconfig/{dn} | Modify an SAML IdP configuration object (moving is currently not possible) +*SamlServiceproviderApi* | [**udm_saml_serviceprovider_object**](docs/SamlServiceproviderApi.md#udm_saml_serviceprovider_object) | **GET** /saml/serviceprovider/{dn} | Get a representation of the SAML service provider object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SamlServiceproviderApi* | [**udm_saml_serviceprovider_object_create**](docs/SamlServiceproviderApi.md#udm_saml_serviceprovider_object_create) | **POST** /saml/serviceprovider/ | Create a new SAML service provider object +*SamlServiceproviderApi* | [**udm_saml_serviceprovider_object_modify**](docs/SamlServiceproviderApi.md#udm_saml_serviceprovider_object_modify) | **PUT** /saml/serviceprovider/{dn} | Modify or move an SAML service provider object +*SamlServiceproviderApi* | [**udm_saml_serviceprovider_object_remove**](docs/SamlServiceproviderApi.md#udm_saml_serviceprovider_object_remove) | **DELETE** /saml/serviceprovider/{dn} | Remove a SAML service providers object +*SamlServiceproviderApi* | [**udm_saml_serviceprovider_object_search**](docs/SamlServiceproviderApi.md#udm_saml_serviceprovider_object_search) | **GET** /saml/serviceprovider/ | Search for SAML service providers objects +*SamlServiceproviderApi* | [**udm_saml_serviceprovider_object_template**](docs/SamlServiceproviderApi.md#udm_saml_serviceprovider_object_template) | **GET** /saml/serviceprovider/add | Get a template for creating an SAML service provider object (contains all properties and their default values) +*SamlServiceproviderApi* | [**udm_saml_serviceprovider_object_update**](docs/SamlServiceproviderApi.md#udm_saml_serviceprovider_object_update) | **PATCH** /saml/serviceprovider/{dn} | Modify an SAML service provider object (moving is currently not possible) +*SettingsCnApi* | [**udm_settings_cn_object**](docs/SettingsCnApi.md#udm_settings_cn_object) | **GET** /settings/cn/{dn} | Get a representation of the Univention Setting object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsCnApi* | [**udm_settings_cn_object_search**](docs/SettingsCnApi.md#udm_settings_cn_object_search) | **GET** /settings/cn/ | Search for Univention Settings objects +*SettingsDataApi* | [**udm_settings_data_object**](docs/SettingsDataApi.md#udm_settings_data_object) | **GET** /settings/data/{dn} | Get a representation of the Data object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsDataApi* | [**udm_settings_data_object_create**](docs/SettingsDataApi.md#udm_settings_data_object_create) | **POST** /settings/data/ | Create a new Data object +*SettingsDataApi* | [**udm_settings_data_object_modify**](docs/SettingsDataApi.md#udm_settings_data_object_modify) | **PUT** /settings/data/{dn} | Modify or move an Data object +*SettingsDataApi* | [**udm_settings_data_object_remove**](docs/SettingsDataApi.md#udm_settings_data_object_remove) | **DELETE** /settings/data/{dn} | Remove a Data object +*SettingsDataApi* | [**udm_settings_data_object_search**](docs/SettingsDataApi.md#udm_settings_data_object_search) | **GET** /settings/data/ | Search for Data objects +*SettingsDataApi* | [**udm_settings_data_object_template**](docs/SettingsDataApi.md#udm_settings_data_object_template) | **GET** /settings/data/add | Get a template for creating an Data object (contains all properties and their default values) +*SettingsDataApi* | [**udm_settings_data_object_update**](docs/SettingsDataApi.md#udm_settings_data_object_update) | **PATCH** /settings/data/{dn} | Modify an Data object (moving is currently not possible) +*SettingsDefaultApi* | [**udm_settings_default_object**](docs/SettingsDefaultApi.md#udm_settings_default_object) | **GET** /settings/default/{dn} | Get a representation of the Default preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsDefaultApi* | [**udm_settings_default_object_modify**](docs/SettingsDefaultApi.md#udm_settings_default_object_modify) | **PUT** /settings/default/{dn} | Modify or move an Default preference object +*SettingsDefaultApi* | [**udm_settings_default_object_search**](docs/SettingsDefaultApi.md#udm_settings_default_object_search) | **GET** /settings/default/ | Search for Default preferences objects +*SettingsDefaultApi* | [**udm_settings_default_object_update**](docs/SettingsDefaultApi.md#udm_settings_default_object_update) | **PATCH** /settings/default/{dn} | Modify an Default preference object (moving is currently not possible) +*SettingsDirectoryApi* | [**udm_settings_directory_object**](docs/SettingsDirectoryApi.md#udm_settings_directory_object) | **GET** /settings/directory/{dn} | Get a representation of the Default container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsDirectoryApi* | [**udm_settings_directory_object_modify**](docs/SettingsDirectoryApi.md#udm_settings_directory_object_modify) | **PUT** /settings/directory/{dn} | Modify or move an Default container object +*SettingsDirectoryApi* | [**udm_settings_directory_object_search**](docs/SettingsDirectoryApi.md#udm_settings_directory_object_search) | **GET** /settings/directory/ | Search for Default containers objects +*SettingsDirectoryApi* | [**udm_settings_directory_object_update**](docs/SettingsDirectoryApi.md#udm_settings_directory_object_update) | **PATCH** /settings/directory/{dn} | Modify an Default container object (moving is currently not possible) +*SettingsExtendedAttributeApi* | [**udm_settings_extended_attribute_object**](docs/SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object) | **GET** /settings/extended_attribute/{dn} | Get a representation of the Extended attribute object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsExtendedAttributeApi* | [**udm_settings_extended_attribute_object_create**](docs/SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_create) | **POST** /settings/extended_attribute/ | Create a new Extended attribute object +*SettingsExtendedAttributeApi* | [**udm_settings_extended_attribute_object_modify**](docs/SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_modify) | **PUT** /settings/extended_attribute/{dn} | Modify or move an Extended attribute object +*SettingsExtendedAttributeApi* | [**udm_settings_extended_attribute_object_remove**](docs/SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_remove) | **DELETE** /settings/extended_attribute/{dn} | Remove a Extended attributes object +*SettingsExtendedAttributeApi* | [**udm_settings_extended_attribute_object_search**](docs/SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_search) | **GET** /settings/extended_attribute/ | Search for Extended attributes objects +*SettingsExtendedAttributeApi* | [**udm_settings_extended_attribute_object_template**](docs/SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_template) | **GET** /settings/extended_attribute/add | Get a template for creating an Extended attribute object (contains all properties and their default values) +*SettingsExtendedAttributeApi* | [**udm_settings_extended_attribute_object_update**](docs/SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_update) | **PATCH** /settings/extended_attribute/{dn} | Modify an Extended attribute object (moving is currently not possible) +*SettingsExtendedOptionsApi* | [**udm_settings_extended_options_object**](docs/SettingsExtendedOptionsApi.md#udm_settings_extended_options_object) | **GET** /settings/extended_options/{dn} | Get a representation of the Extended option object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsExtendedOptionsApi* | [**udm_settings_extended_options_object_create**](docs/SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_create) | **POST** /settings/extended_options/ | Create a new Extended option object +*SettingsExtendedOptionsApi* | [**udm_settings_extended_options_object_modify**](docs/SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_modify) | **PUT** /settings/extended_options/{dn} | Modify or move an Extended option object +*SettingsExtendedOptionsApi* | [**udm_settings_extended_options_object_remove**](docs/SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_remove) | **DELETE** /settings/extended_options/{dn} | Remove a Extended options object +*SettingsExtendedOptionsApi* | [**udm_settings_extended_options_object_search**](docs/SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_search) | **GET** /settings/extended_options/ | Search for Extended options objects +*SettingsExtendedOptionsApi* | [**udm_settings_extended_options_object_template**](docs/SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_template) | **GET** /settings/extended_options/add | Get a template for creating an Extended option object (contains all properties and their default values) +*SettingsExtendedOptionsApi* | [**udm_settings_extended_options_object_update**](docs/SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_update) | **PATCH** /settings/extended_options/{dn} | Modify an Extended option object (moving is currently not possible) +*SettingsLdapaclApi* | [**udm_settings_ldapacl_object**](docs/SettingsLdapaclApi.md#udm_settings_ldapacl_object) | **GET** /settings/ldapacl/{dn} | Get a representation of the LDAP ACL Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsLdapaclApi* | [**udm_settings_ldapacl_object_create**](docs/SettingsLdapaclApi.md#udm_settings_ldapacl_object_create) | **POST** /settings/ldapacl/ | Create a new LDAP ACL Extension object +*SettingsLdapaclApi* | [**udm_settings_ldapacl_object_modify**](docs/SettingsLdapaclApi.md#udm_settings_ldapacl_object_modify) | **PUT** /settings/ldapacl/{dn} | Modify or move an LDAP ACL Extension object +*SettingsLdapaclApi* | [**udm_settings_ldapacl_object_remove**](docs/SettingsLdapaclApi.md#udm_settings_ldapacl_object_remove) | **DELETE** /settings/ldapacl/{dn} | Remove a LDAP ACL Extensions object +*SettingsLdapaclApi* | [**udm_settings_ldapacl_object_search**](docs/SettingsLdapaclApi.md#udm_settings_ldapacl_object_search) | **GET** /settings/ldapacl/ | Search for LDAP ACL Extensions objects +*SettingsLdapaclApi* | [**udm_settings_ldapacl_object_template**](docs/SettingsLdapaclApi.md#udm_settings_ldapacl_object_template) | **GET** /settings/ldapacl/add | Get a template for creating an LDAP ACL Extension object (contains all properties and their default values) +*SettingsLdapaclApi* | [**udm_settings_ldapacl_object_update**](docs/SettingsLdapaclApi.md#udm_settings_ldapacl_object_update) | **PATCH** /settings/ldapacl/{dn} | Modify an LDAP ACL Extension object (moving is currently not possible) +*SettingsLdapschemaApi* | [**udm_settings_ldapschema_object**](docs/SettingsLdapschemaApi.md#udm_settings_ldapschema_object) | **GET** /settings/ldapschema/{dn} | Get a representation of the LDAP Schema Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsLdapschemaApi* | [**udm_settings_ldapschema_object_create**](docs/SettingsLdapschemaApi.md#udm_settings_ldapschema_object_create) | **POST** /settings/ldapschema/ | Create a new LDAP Schema Extension object +*SettingsLdapschemaApi* | [**udm_settings_ldapschema_object_modify**](docs/SettingsLdapschemaApi.md#udm_settings_ldapschema_object_modify) | **PUT** /settings/ldapschema/{dn} | Modify or move an LDAP Schema Extension object +*SettingsLdapschemaApi* | [**udm_settings_ldapschema_object_remove**](docs/SettingsLdapschemaApi.md#udm_settings_ldapschema_object_remove) | **DELETE** /settings/ldapschema/{dn} | Remove a LDAP Schema Extensions object +*SettingsLdapschemaApi* | [**udm_settings_ldapschema_object_search**](docs/SettingsLdapschemaApi.md#udm_settings_ldapschema_object_search) | **GET** /settings/ldapschema/ | Search for LDAP Schema Extensions objects +*SettingsLdapschemaApi* | [**udm_settings_ldapschema_object_template**](docs/SettingsLdapschemaApi.md#udm_settings_ldapschema_object_template) | **GET** /settings/ldapschema/add | Get a template for creating an LDAP Schema Extension object (contains all properties and their default values) +*SettingsLdapschemaApi* | [**udm_settings_ldapschema_object_update**](docs/SettingsLdapschemaApi.md#udm_settings_ldapschema_object_update) | **PATCH** /settings/ldapschema/{dn} | Modify an LDAP Schema Extension object (moving is currently not possible) +*SettingsLicenseApi* | [**udm_settings_license_object**](docs/SettingsLicenseApi.md#udm_settings_license_object) | **GET** /settings/license/{dn} | Get a representation of the License object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsLicenseApi* | [**udm_settings_license_object_remove**](docs/SettingsLicenseApi.md#udm_settings_license_object_remove) | **DELETE** /settings/license/{dn} | Remove a Licenses object +*SettingsLicenseApi* | [**udm_settings_license_object_search**](docs/SettingsLicenseApi.md#udm_settings_license_object_search) | **GET** /settings/license/ | Search for Licenses objects +*SettingsLockApi* | [**udm_settings_lock_object**](docs/SettingsLockApi.md#udm_settings_lock_object) | **GET** /settings/lock/{dn} | Get a representation of the Lock object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsLockApi* | [**udm_settings_lock_object_modify**](docs/SettingsLockApi.md#udm_settings_lock_object_modify) | **PUT** /settings/lock/{dn} | Modify or move an Lock object +*SettingsLockApi* | [**udm_settings_lock_object_remove**](docs/SettingsLockApi.md#udm_settings_lock_object_remove) | **DELETE** /settings/lock/{dn} | Remove a Locks object +*SettingsLockApi* | [**udm_settings_lock_object_search**](docs/SettingsLockApi.md#udm_settings_lock_object_search) | **GET** /settings/lock/ | Search for Locks objects +*SettingsLockApi* | [**udm_settings_lock_object_update**](docs/SettingsLockApi.md#udm_settings_lock_object_update) | **PATCH** /settings/lock/{dn} | Modify an Lock object (moving is currently not possible) +*SettingsMsprintconnectionpolicyApi* | [**udm_settings_msprintconnectionpolicy_object**](docs/SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object) | **GET** /settings/msprintconnectionpolicy/{dn} | Get a representation of the Settings: MS Print Connection Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsMsprintconnectionpolicyApi* | [**udm_settings_msprintconnectionpolicy_object_create**](docs/SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_create) | **POST** /settings/msprintconnectionpolicy/ | Create a new Settings: MS Print Connection Policy object +*SettingsMsprintconnectionpolicyApi* | [**udm_settings_msprintconnectionpolicy_object_modify**](docs/SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_modify) | **PUT** /settings/msprintconnectionpolicy/{dn} | Modify or move an Settings: MS Print Connection Policy object +*SettingsMsprintconnectionpolicyApi* | [**udm_settings_msprintconnectionpolicy_object_remove**](docs/SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_remove) | **DELETE** /settings/msprintconnectionpolicy/{dn} | Remove a Settings: MS Print Connection Policy object +*SettingsMsprintconnectionpolicyApi* | [**udm_settings_msprintconnectionpolicy_object_search**](docs/SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_search) | **GET** /settings/msprintconnectionpolicy/ | Search for Settings: MS Print Connection Policy objects +*SettingsMsprintconnectionpolicyApi* | [**udm_settings_msprintconnectionpolicy_object_template**](docs/SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_template) | **GET** /settings/msprintconnectionpolicy/add | Get a template for creating an Settings: MS Print Connection Policy object (contains all properties and their default values) +*SettingsMsprintconnectionpolicyApi* | [**udm_settings_msprintconnectionpolicy_object_update**](docs/SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_update) | **PATCH** /settings/msprintconnectionpolicy/{dn} | Modify an Settings: MS Print Connection Policy object (moving is currently not possible) +*SettingsMswmifilterApi* | [**udm_settings_mswmifilter_object**](docs/SettingsMswmifilterApi.md#udm_settings_mswmifilter_object) | **GET** /settings/mswmifilter/{dn} | Get a representation of the Settings: MS WMI Filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsMswmifilterApi* | [**udm_settings_mswmifilter_object_create**](docs/SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_create) | **POST** /settings/mswmifilter/ | Create a new Settings: MS WMI Filter object +*SettingsMswmifilterApi* | [**udm_settings_mswmifilter_object_modify**](docs/SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_modify) | **PUT** /settings/mswmifilter/{dn} | Modify or move an Settings: MS WMI Filter object +*SettingsMswmifilterApi* | [**udm_settings_mswmifilter_object_remove**](docs/SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_remove) | **DELETE** /settings/mswmifilter/{dn} | Remove a Settings: MS WMI Filter object +*SettingsMswmifilterApi* | [**udm_settings_mswmifilter_object_search**](docs/SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_search) | **GET** /settings/mswmifilter/ | Search for Settings: MS WMI Filter objects +*SettingsMswmifilterApi* | [**udm_settings_mswmifilter_object_template**](docs/SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_template) | **GET** /settings/mswmifilter/add | Get a template for creating an Settings: MS WMI Filter object (contains all properties and their default values) +*SettingsMswmifilterApi* | [**udm_settings_mswmifilter_object_update**](docs/SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_update) | **PATCH** /settings/mswmifilter/{dn} | Modify an Settings: MS WMI Filter object (moving is currently not possible) +*SettingsPackagesApi* | [**udm_settings_packages_object**](docs/SettingsPackagesApi.md#udm_settings_packages_object) | **GET** /settings/packages/{dn} | Get a representation of the Package List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsPackagesApi* | [**udm_settings_packages_object_create**](docs/SettingsPackagesApi.md#udm_settings_packages_object_create) | **POST** /settings/packages/ | Create a new Package List object +*SettingsPackagesApi* | [**udm_settings_packages_object_modify**](docs/SettingsPackagesApi.md#udm_settings_packages_object_modify) | **PUT** /settings/packages/{dn} | Modify or move an Package List object +*SettingsPackagesApi* | [**udm_settings_packages_object_remove**](docs/SettingsPackagesApi.md#udm_settings_packages_object_remove) | **DELETE** /settings/packages/{dn} | Remove a Package Lists object +*SettingsPackagesApi* | [**udm_settings_packages_object_search**](docs/SettingsPackagesApi.md#udm_settings_packages_object_search) | **GET** /settings/packages/ | Search for Package Lists objects +*SettingsPackagesApi* | [**udm_settings_packages_object_template**](docs/SettingsPackagesApi.md#udm_settings_packages_object_template) | **GET** /settings/packages/add | Get a template for creating an Package List object (contains all properties and their default values) +*SettingsPackagesApi* | [**udm_settings_packages_object_update**](docs/SettingsPackagesApi.md#udm_settings_packages_object_update) | **PATCH** /settings/packages/{dn} | Modify an Package List object (moving is currently not possible) +*SettingsPortalApi* | [**udm_settings_portal_object**](docs/SettingsPortalApi.md#udm_settings_portal_object) | **GET** /settings/portal/{dn} | Get a representation of the Deprecated Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsPortalApi* | [**udm_settings_portal_object_create**](docs/SettingsPortalApi.md#udm_settings_portal_object_create) | **POST** /settings/portal/ | Create a new Deprecated Portal object +*SettingsPortalApi* | [**udm_settings_portal_object_modify**](docs/SettingsPortalApi.md#udm_settings_portal_object_modify) | **PUT** /settings/portal/{dn} | Modify or move an Deprecated Portal object +*SettingsPortalApi* | [**udm_settings_portal_object_remove**](docs/SettingsPortalApi.md#udm_settings_portal_object_remove) | **DELETE** /settings/portal/{dn} | Remove a Deprecated Portals object +*SettingsPortalApi* | [**udm_settings_portal_object_search**](docs/SettingsPortalApi.md#udm_settings_portal_object_search) | **GET** /settings/portal/ | Search for Deprecated Portals objects +*SettingsPortalApi* | [**udm_settings_portal_object_template**](docs/SettingsPortalApi.md#udm_settings_portal_object_template) | **GET** /settings/portal/add | Get a template for creating an Deprecated Portal object (contains all properties and their default values) +*SettingsPortalApi* | [**udm_settings_portal_object_update**](docs/SettingsPortalApi.md#udm_settings_portal_object_update) | **PATCH** /settings/portal/{dn} | Modify an Deprecated Portal object (moving is currently not possible) +*SettingsPortalAllApi* | [**udm_settings_portal_all_object**](docs/SettingsPortalAllApi.md#udm_settings_portal_all_object) | **GET** /settings/portal_all/{dn} | Get a representation of the Deprecated Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsPortalAllApi* | [**udm_settings_portal_all_object_search**](docs/SettingsPortalAllApi.md#udm_settings_portal_all_object_search) | **GET** /settings/portal_all/ | Search for Deprecated Portal: Settings objects +*SettingsPortalCategoryApi* | [**udm_settings_portal_category_object**](docs/SettingsPortalCategoryApi.md#udm_settings_portal_category_object) | **GET** /settings/portal_category/{dn} | Get a representation of the Deprecated Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsPortalCategoryApi* | [**udm_settings_portal_category_object_create**](docs/SettingsPortalCategoryApi.md#udm_settings_portal_category_object_create) | **POST** /settings/portal_category/ | Create a new Deprecated Portal category object +*SettingsPortalCategoryApi* | [**udm_settings_portal_category_object_modify**](docs/SettingsPortalCategoryApi.md#udm_settings_portal_category_object_modify) | **PUT** /settings/portal_category/{dn} | Modify or move an Deprecated Portal category object +*SettingsPortalCategoryApi* | [**udm_settings_portal_category_object_remove**](docs/SettingsPortalCategoryApi.md#udm_settings_portal_category_object_remove) | **DELETE** /settings/portal_category/{dn} | Remove a Deprecated Portal categories object +*SettingsPortalCategoryApi* | [**udm_settings_portal_category_object_search**](docs/SettingsPortalCategoryApi.md#udm_settings_portal_category_object_search) | **GET** /settings/portal_category/ | Search for Deprecated Portal categories objects +*SettingsPortalCategoryApi* | [**udm_settings_portal_category_object_template**](docs/SettingsPortalCategoryApi.md#udm_settings_portal_category_object_template) | **GET** /settings/portal_category/add | Get a template for creating an Deprecated Portal category object (contains all properties and their default values) +*SettingsPortalCategoryApi* | [**udm_settings_portal_category_object_update**](docs/SettingsPortalCategoryApi.md#udm_settings_portal_category_object_update) | **PATCH** /settings/portal_category/{dn} | Modify an Deprecated Portal category object (moving is currently not possible) +*SettingsPortalEntryApi* | [**udm_settings_portal_entry_object**](docs/SettingsPortalEntryApi.md#udm_settings_portal_entry_object) | **GET** /settings/portal_entry/{dn} | Get a representation of the Deprecated Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsPortalEntryApi* | [**udm_settings_portal_entry_object_create**](docs/SettingsPortalEntryApi.md#udm_settings_portal_entry_object_create) | **POST** /settings/portal_entry/ | Create a new Deprecated Portal entry object +*SettingsPortalEntryApi* | [**udm_settings_portal_entry_object_modify**](docs/SettingsPortalEntryApi.md#udm_settings_portal_entry_object_modify) | **PUT** /settings/portal_entry/{dn} | Modify or move an Deprecated Portal entry object +*SettingsPortalEntryApi* | [**udm_settings_portal_entry_object_remove**](docs/SettingsPortalEntryApi.md#udm_settings_portal_entry_object_remove) | **DELETE** /settings/portal_entry/{dn} | Remove a Deprecated Portal entries object +*SettingsPortalEntryApi* | [**udm_settings_portal_entry_object_search**](docs/SettingsPortalEntryApi.md#udm_settings_portal_entry_object_search) | **GET** /settings/portal_entry/ | Search for Deprecated Portal entries objects +*SettingsPortalEntryApi* | [**udm_settings_portal_entry_object_template**](docs/SettingsPortalEntryApi.md#udm_settings_portal_entry_object_template) | **GET** /settings/portal_entry/add | Get a template for creating an Deprecated Portal entry object (contains all properties and their default values) +*SettingsPortalEntryApi* | [**udm_settings_portal_entry_object_update**](docs/SettingsPortalEntryApi.md#udm_settings_portal_entry_object_update) | **PATCH** /settings/portal_entry/{dn} | Modify an Deprecated Portal entry object (moving is currently not possible) +*SettingsPrintermodelApi* | [**udm_settings_printermodel_object**](docs/SettingsPrintermodelApi.md#udm_settings_printermodel_object) | **GET** /settings/printermodel/{dn} | Get a representation of the Printer Driver List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsPrintermodelApi* | [**udm_settings_printermodel_object_create**](docs/SettingsPrintermodelApi.md#udm_settings_printermodel_object_create) | **POST** /settings/printermodel/ | Create a new Printer Driver List object +*SettingsPrintermodelApi* | [**udm_settings_printermodel_object_modify**](docs/SettingsPrintermodelApi.md#udm_settings_printermodel_object_modify) | **PUT** /settings/printermodel/{dn} | Modify or move an Printer Driver List object +*SettingsPrintermodelApi* | [**udm_settings_printermodel_object_remove**](docs/SettingsPrintermodelApi.md#udm_settings_printermodel_object_remove) | **DELETE** /settings/printermodel/{dn} | Remove a Printer Driver Lists object +*SettingsPrintermodelApi* | [**udm_settings_printermodel_object_search**](docs/SettingsPrintermodelApi.md#udm_settings_printermodel_object_search) | **GET** /settings/printermodel/ | Search for Printer Driver Lists objects +*SettingsPrintermodelApi* | [**udm_settings_printermodel_object_template**](docs/SettingsPrintermodelApi.md#udm_settings_printermodel_object_template) | **GET** /settings/printermodel/add | Get a template for creating an Printer Driver List object (contains all properties and their default values) +*SettingsPrintermodelApi* | [**udm_settings_printermodel_object_update**](docs/SettingsPrintermodelApi.md#udm_settings_printermodel_object_update) | **PATCH** /settings/printermodel/{dn} | Modify an Printer Driver List object (moving is currently not possible) +*SettingsPrinteruriApi* | [**udm_settings_printeruri_object**](docs/SettingsPrinteruriApi.md#udm_settings_printeruri_object) | **GET** /settings/printeruri/{dn} | Get a representation of the Printer URI List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsPrinteruriApi* | [**udm_settings_printeruri_object_create**](docs/SettingsPrinteruriApi.md#udm_settings_printeruri_object_create) | **POST** /settings/printeruri/ | Create a new Printer URI List object +*SettingsPrinteruriApi* | [**udm_settings_printeruri_object_modify**](docs/SettingsPrinteruriApi.md#udm_settings_printeruri_object_modify) | **PUT** /settings/printeruri/{dn} | Modify or move an Printer URI List object +*SettingsPrinteruriApi* | [**udm_settings_printeruri_object_remove**](docs/SettingsPrinteruriApi.md#udm_settings_printeruri_object_remove) | **DELETE** /settings/printeruri/{dn} | Remove a Printer URI Lists object +*SettingsPrinteruriApi* | [**udm_settings_printeruri_object_search**](docs/SettingsPrinteruriApi.md#udm_settings_printeruri_object_search) | **GET** /settings/printeruri/ | Search for Printer URI Lists objects +*SettingsPrinteruriApi* | [**udm_settings_printeruri_object_template**](docs/SettingsPrinteruriApi.md#udm_settings_printeruri_object_template) | **GET** /settings/printeruri/add | Get a template for creating an Printer URI List object (contains all properties and their default values) +*SettingsPrinteruriApi* | [**udm_settings_printeruri_object_update**](docs/SettingsPrinteruriApi.md#udm_settings_printeruri_object_update) | **PATCH** /settings/printeruri/{dn} | Modify an Printer URI List object (moving is currently not possible) +*SettingsProhibitedUsernameApi* | [**udm_settings_prohibited_username_object**](docs/SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object) | **GET** /settings/prohibited_username/{dn} | Get a representation of the Prohibited user name object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsProhibitedUsernameApi* | [**udm_settings_prohibited_username_object_create**](docs/SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_create) | **POST** /settings/prohibited_username/ | Create a new Prohibited user name object +*SettingsProhibitedUsernameApi* | [**udm_settings_prohibited_username_object_modify**](docs/SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_modify) | **PUT** /settings/prohibited_username/{dn} | Modify or move an Prohibited user name object +*SettingsProhibitedUsernameApi* | [**udm_settings_prohibited_username_object_remove**](docs/SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_remove) | **DELETE** /settings/prohibited_username/{dn} | Remove a Prohibited user names object +*SettingsProhibitedUsernameApi* | [**udm_settings_prohibited_username_object_search**](docs/SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_search) | **GET** /settings/prohibited_username/ | Search for Prohibited user names objects +*SettingsProhibitedUsernameApi* | [**udm_settings_prohibited_username_object_template**](docs/SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_template) | **GET** /settings/prohibited_username/add | Get a template for creating an Prohibited user name object (contains all properties and their default values) +*SettingsProhibitedUsernameApi* | [**udm_settings_prohibited_username_object_update**](docs/SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_update) | **PATCH** /settings/prohibited_username/{dn} | Modify an Prohibited user name object (moving is currently not possible) +*SettingsSambaconfigApi* | [**udm_settings_sambaconfig_object**](docs/SettingsSambaconfigApi.md#udm_settings_sambaconfig_object) | **GET** /settings/sambaconfig/{dn} | Get a representation of the Samba Configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsSambaconfigApi* | [**udm_settings_sambaconfig_object_modify**](docs/SettingsSambaconfigApi.md#udm_settings_sambaconfig_object_modify) | **PUT** /settings/sambaconfig/{dn} | Modify or move an Samba Configuration object +*SettingsSambaconfigApi* | [**udm_settings_sambaconfig_object_remove**](docs/SettingsSambaconfigApi.md#udm_settings_sambaconfig_object_remove) | **DELETE** /settings/sambaconfig/{dn} | Remove a Samba Configuration settings object +*SettingsSambaconfigApi* | [**udm_settings_sambaconfig_object_search**](docs/SettingsSambaconfigApi.md#udm_settings_sambaconfig_object_search) | **GET** /settings/sambaconfig/ | Search for Samba Configuration settings objects +*SettingsSambaconfigApi* | [**udm_settings_sambaconfig_object_update**](docs/SettingsSambaconfigApi.md#udm_settings_sambaconfig_object_update) | **PATCH** /settings/sambaconfig/{dn} | Modify an Samba Configuration object (moving is currently not possible) +*SettingsSambadomainApi* | [**udm_settings_sambadomain_object**](docs/SettingsSambadomainApi.md#udm_settings_sambadomain_object) | **GET** /settings/sambadomain/{dn} | Get a representation of the Samba Domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsSambadomainApi* | [**udm_settings_sambadomain_object_create**](docs/SettingsSambadomainApi.md#udm_settings_sambadomain_object_create) | **POST** /settings/sambadomain/ | Create a new Samba Domain object +*SettingsSambadomainApi* | [**udm_settings_sambadomain_object_modify**](docs/SettingsSambadomainApi.md#udm_settings_sambadomain_object_modify) | **PUT** /settings/sambadomain/{dn} | Modify or move an Samba Domain object +*SettingsSambadomainApi* | [**udm_settings_sambadomain_object_remove**](docs/SettingsSambadomainApi.md#udm_settings_sambadomain_object_remove) | **DELETE** /settings/sambadomain/{dn} | Remove a Samba Domains object +*SettingsSambadomainApi* | [**udm_settings_sambadomain_object_search**](docs/SettingsSambadomainApi.md#udm_settings_sambadomain_object_search) | **GET** /settings/sambadomain/ | Search for Samba Domains objects +*SettingsSambadomainApi* | [**udm_settings_sambadomain_object_template**](docs/SettingsSambadomainApi.md#udm_settings_sambadomain_object_template) | **GET** /settings/sambadomain/add | Get a template for creating an Samba Domain object (contains all properties and their default values) +*SettingsSambadomainApi* | [**udm_settings_sambadomain_object_update**](docs/SettingsSambadomainApi.md#udm_settings_sambadomain_object_update) | **PATCH** /settings/sambadomain/{dn} | Modify an Samba Domain object (moving is currently not possible) +*SettingsServiceApi* | [**udm_settings_service_object**](docs/SettingsServiceApi.md#udm_settings_service_object) | **GET** /settings/service/{dn} | Get a representation of the Service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsServiceApi* | [**udm_settings_service_object_create**](docs/SettingsServiceApi.md#udm_settings_service_object_create) | **POST** /settings/service/ | Create a new Service object +*SettingsServiceApi* | [**udm_settings_service_object_modify**](docs/SettingsServiceApi.md#udm_settings_service_object_modify) | **PUT** /settings/service/{dn} | Modify or move an Service object +*SettingsServiceApi* | [**udm_settings_service_object_remove**](docs/SettingsServiceApi.md#udm_settings_service_object_remove) | **DELETE** /settings/service/{dn} | Remove a Services object +*SettingsServiceApi* | [**udm_settings_service_object_search**](docs/SettingsServiceApi.md#udm_settings_service_object_search) | **GET** /settings/service/ | Search for Services objects +*SettingsServiceApi* | [**udm_settings_service_object_template**](docs/SettingsServiceApi.md#udm_settings_service_object_template) | **GET** /settings/service/add | Get a template for creating an Service object (contains all properties and their default values) +*SettingsServiceApi* | [**udm_settings_service_object_update**](docs/SettingsServiceApi.md#udm_settings_service_object_update) | **PATCH** /settings/service/{dn} | Modify an Service object (moving is currently not possible) +*SettingsSettingsApi* | [**udm_settings_settings_object**](docs/SettingsSettingsApi.md#udm_settings_settings_object) | **GET** /settings/settings/{dn} | Get a representation of the Preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsSettingsApi* | [**udm_settings_settings_object_search**](docs/SettingsSettingsApi.md#udm_settings_settings_object_search) | **GET** /settings/settings/ | Search for Preferences objects +*SettingsSyntaxApi* | [**udm_settings_syntax_object**](docs/SettingsSyntaxApi.md#udm_settings_syntax_object) | **GET** /settings/syntax/{dn} | Get a representation of the Syntax Definition object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsSyntaxApi* | [**udm_settings_syntax_object_create**](docs/SettingsSyntaxApi.md#udm_settings_syntax_object_create) | **POST** /settings/syntax/ | Create a new Syntax Definition object +*SettingsSyntaxApi* | [**udm_settings_syntax_object_modify**](docs/SettingsSyntaxApi.md#udm_settings_syntax_object_modify) | **PUT** /settings/syntax/{dn} | Modify or move an Syntax Definition object +*SettingsSyntaxApi* | [**udm_settings_syntax_object_remove**](docs/SettingsSyntaxApi.md#udm_settings_syntax_object_remove) | **DELETE** /settings/syntax/{dn} | Remove a Syntax Definitions object +*SettingsSyntaxApi* | [**udm_settings_syntax_object_search**](docs/SettingsSyntaxApi.md#udm_settings_syntax_object_search) | **GET** /settings/syntax/ | Search for Syntax Definitions objects +*SettingsSyntaxApi* | [**udm_settings_syntax_object_template**](docs/SettingsSyntaxApi.md#udm_settings_syntax_object_template) | **GET** /settings/syntax/add | Get a template for creating an Syntax Definition object (contains all properties and their default values) +*SettingsSyntaxApi* | [**udm_settings_syntax_object_update**](docs/SettingsSyntaxApi.md#udm_settings_syntax_object_update) | **PATCH** /settings/syntax/{dn} | Modify an Syntax Definition object (moving is currently not possible) +*SettingsUdmHookApi* | [**udm_settings_udm_hook_object**](docs/SettingsUdmHookApi.md#udm_settings_udm_hook_object) | **GET** /settings/udm_hook/{dn} | Get a representation of the UDM Hook object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsUdmHookApi* | [**udm_settings_udm_hook_object_create**](docs/SettingsUdmHookApi.md#udm_settings_udm_hook_object_create) | **POST** /settings/udm_hook/ | Create a new UDM Hook object +*SettingsUdmHookApi* | [**udm_settings_udm_hook_object_modify**](docs/SettingsUdmHookApi.md#udm_settings_udm_hook_object_modify) | **PUT** /settings/udm_hook/{dn} | Modify or move an UDM Hook object +*SettingsUdmHookApi* | [**udm_settings_udm_hook_object_remove**](docs/SettingsUdmHookApi.md#udm_settings_udm_hook_object_remove) | **DELETE** /settings/udm_hook/{dn} | Remove a UDM Hooks object +*SettingsUdmHookApi* | [**udm_settings_udm_hook_object_search**](docs/SettingsUdmHookApi.md#udm_settings_udm_hook_object_search) | **GET** /settings/udm_hook/ | Search for UDM Hooks objects +*SettingsUdmHookApi* | [**udm_settings_udm_hook_object_template**](docs/SettingsUdmHookApi.md#udm_settings_udm_hook_object_template) | **GET** /settings/udm_hook/add | Get a template for creating an UDM Hook object (contains all properties and their default values) +*SettingsUdmHookApi* | [**udm_settings_udm_hook_object_update**](docs/SettingsUdmHookApi.md#udm_settings_udm_hook_object_update) | **PATCH** /settings/udm_hook/{dn} | Modify an UDM Hook object (moving is currently not possible) +*SettingsUdmModuleApi* | [**udm_settings_udm_module_object**](docs/SettingsUdmModuleApi.md#udm_settings_udm_module_object) | **GET** /settings/udm_module/{dn} | Get a representation of the UDM Module object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsUdmModuleApi* | [**udm_settings_udm_module_object_create**](docs/SettingsUdmModuleApi.md#udm_settings_udm_module_object_create) | **POST** /settings/udm_module/ | Create a new UDM Module object +*SettingsUdmModuleApi* | [**udm_settings_udm_module_object_modify**](docs/SettingsUdmModuleApi.md#udm_settings_udm_module_object_modify) | **PUT** /settings/udm_module/{dn} | Modify or move an UDM Module object +*SettingsUdmModuleApi* | [**udm_settings_udm_module_object_remove**](docs/SettingsUdmModuleApi.md#udm_settings_udm_module_object_remove) | **DELETE** /settings/udm_module/{dn} | Remove a UDM Modules object +*SettingsUdmModuleApi* | [**udm_settings_udm_module_object_search**](docs/SettingsUdmModuleApi.md#udm_settings_udm_module_object_search) | **GET** /settings/udm_module/ | Search for UDM Modules objects +*SettingsUdmModuleApi* | [**udm_settings_udm_module_object_template**](docs/SettingsUdmModuleApi.md#udm_settings_udm_module_object_template) | **GET** /settings/udm_module/add | Get a template for creating an UDM Module object (contains all properties and their default values) +*SettingsUdmModuleApi* | [**udm_settings_udm_module_object_update**](docs/SettingsUdmModuleApi.md#udm_settings_udm_module_object_update) | **PATCH** /settings/udm_module/{dn} | Modify an UDM Module object (moving is currently not possible) +*SettingsUdmSyntaxApi* | [**udm_settings_udm_syntax_object**](docs/SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object) | **GET** /settings/udm_syntax/{dn} | Get a representation of the UDM Syntax object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsUdmSyntaxApi* | [**udm_settings_udm_syntax_object_create**](docs/SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_create) | **POST** /settings/udm_syntax/ | Create a new UDM Syntax object +*SettingsUdmSyntaxApi* | [**udm_settings_udm_syntax_object_modify**](docs/SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_modify) | **PUT** /settings/udm_syntax/{dn} | Modify or move an UDM Syntax object +*SettingsUdmSyntaxApi* | [**udm_settings_udm_syntax_object_remove**](docs/SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_remove) | **DELETE** /settings/udm_syntax/{dn} | Remove a UDM Syntaxes object +*SettingsUdmSyntaxApi* | [**udm_settings_udm_syntax_object_search**](docs/SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_search) | **GET** /settings/udm_syntax/ | Search for UDM Syntaxes objects +*SettingsUdmSyntaxApi* | [**udm_settings_udm_syntax_object_template**](docs/SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_template) | **GET** /settings/udm_syntax/add | Get a template for creating an UDM Syntax object (contains all properties and their default values) +*SettingsUdmSyntaxApi* | [**udm_settings_udm_syntax_object_update**](docs/SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_update) | **PATCH** /settings/udm_syntax/{dn} | Modify an UDM Syntax object (moving is currently not possible) +*SettingsUmcOperationsetApi* | [**udm_settings_umc_operationset_object**](docs/SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object) | **GET** /settings/umc_operationset/{dn} | Get a representation of the UMC operation set object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsUmcOperationsetApi* | [**udm_settings_umc_operationset_object_create**](docs/SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_create) | **POST** /settings/umc_operationset/ | Create a new UMC operation set object +*SettingsUmcOperationsetApi* | [**udm_settings_umc_operationset_object_modify**](docs/SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_modify) | **PUT** /settings/umc_operationset/{dn} | Modify or move an UMC operation set object +*SettingsUmcOperationsetApi* | [**udm_settings_umc_operationset_object_remove**](docs/SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_remove) | **DELETE** /settings/umc_operationset/{dn} | Remove a UMC operation sets object +*SettingsUmcOperationsetApi* | [**udm_settings_umc_operationset_object_search**](docs/SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_search) | **GET** /settings/umc_operationset/ | Search for UMC operation sets objects +*SettingsUmcOperationsetApi* | [**udm_settings_umc_operationset_object_template**](docs/SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_template) | **GET** /settings/umc_operationset/add | Get a template for creating an UMC operation set object (contains all properties and their default values) +*SettingsUmcOperationsetApi* | [**udm_settings_umc_operationset_object_update**](docs/SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_update) | **PATCH** /settings/umc_operationset/{dn} | Modify an UMC operation set object (moving is currently not possible) +*SettingsUsertemplateApi* | [**udm_settings_usertemplate_object**](docs/SettingsUsertemplateApi.md#udm_settings_usertemplate_object) | **GET** /settings/usertemplate/{dn} | Get a representation of the User Template object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SettingsUsertemplateApi* | [**udm_settings_usertemplate_object_create**](docs/SettingsUsertemplateApi.md#udm_settings_usertemplate_object_create) | **POST** /settings/usertemplate/ | Create a new User Template object +*SettingsUsertemplateApi* | [**udm_settings_usertemplate_object_modify**](docs/SettingsUsertemplateApi.md#udm_settings_usertemplate_object_modify) | **PUT** /settings/usertemplate/{dn} | Modify or move an User Template object +*SettingsUsertemplateApi* | [**udm_settings_usertemplate_object_remove**](docs/SettingsUsertemplateApi.md#udm_settings_usertemplate_object_remove) | **DELETE** /settings/usertemplate/{dn} | Remove a User Templates object +*SettingsUsertemplateApi* | [**udm_settings_usertemplate_object_search**](docs/SettingsUsertemplateApi.md#udm_settings_usertemplate_object_search) | **GET** /settings/usertemplate/ | Search for User Templates objects +*SettingsUsertemplateApi* | [**udm_settings_usertemplate_object_template**](docs/SettingsUsertemplateApi.md#udm_settings_usertemplate_object_template) | **GET** /settings/usertemplate/add | Get a template for creating an User Template object (contains all properties and their default values) +*SettingsUsertemplateApi* | [**udm_settings_usertemplate_object_update**](docs/SettingsUsertemplateApi.md#udm_settings_usertemplate_object_update) | **PATCH** /settings/usertemplate/{dn} | Modify an User Template object (moving is currently not possible) +*SharesPrintApi* | [**udm_shares_print_object**](docs/SharesPrintApi.md#udm_shares_print_object) | **GET** /shares/print/{dn} | Get a representation of the Printer share object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SharesPrintApi* | [**udm_shares_print_object_search**](docs/SharesPrintApi.md#udm_shares_print_object_search) | **GET** /shares/print/ | Search for Printer shares objects +*SharesPrinterApi* | [**udm_shares_printer_object**](docs/SharesPrinterApi.md#udm_shares_printer_object) | **GET** /shares/printer/{dn} | Get a representation of the Printer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SharesPrinterApi* | [**udm_shares_printer_object_create**](docs/SharesPrinterApi.md#udm_shares_printer_object_create) | **POST** /shares/printer/ | Create a new Printer object +*SharesPrinterApi* | [**udm_shares_printer_object_modify**](docs/SharesPrinterApi.md#udm_shares_printer_object_modify) | **PUT** /shares/printer/{dn} | Modify or move an Printer object +*SharesPrinterApi* | [**udm_shares_printer_object_remove**](docs/SharesPrinterApi.md#udm_shares_printer_object_remove) | **DELETE** /shares/printer/{dn} | Remove a Printers object +*SharesPrinterApi* | [**udm_shares_printer_object_search**](docs/SharesPrinterApi.md#udm_shares_printer_object_search) | **GET** /shares/printer/ | Search for Printers objects +*SharesPrinterApi* | [**udm_shares_printer_object_template**](docs/SharesPrinterApi.md#udm_shares_printer_object_template) | **GET** /shares/printer/add | Get a template for creating an Printer object (contains all properties and their default values) +*SharesPrinterApi* | [**udm_shares_printer_object_update**](docs/SharesPrinterApi.md#udm_shares_printer_object_update) | **PATCH** /shares/printer/{dn} | Modify an Printer object (moving is currently not possible) +*SharesPrintergroupApi* | [**udm_shares_printergroup_object**](docs/SharesPrintergroupApi.md#udm_shares_printergroup_object) | **GET** /shares/printergroup/{dn} | Get a representation of the Printer share group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SharesPrintergroupApi* | [**udm_shares_printergroup_object_create**](docs/SharesPrintergroupApi.md#udm_shares_printergroup_object_create) | **POST** /shares/printergroup/ | Create a new Printer share group object +*SharesPrintergroupApi* | [**udm_shares_printergroup_object_modify**](docs/SharesPrintergroupApi.md#udm_shares_printergroup_object_modify) | **PUT** /shares/printergroup/{dn} | Modify or move an Printer share group object +*SharesPrintergroupApi* | [**udm_shares_printergroup_object_remove**](docs/SharesPrintergroupApi.md#udm_shares_printergroup_object_remove) | **DELETE** /shares/printergroup/{dn} | Remove a Printer share groups object +*SharesPrintergroupApi* | [**udm_shares_printergroup_object_search**](docs/SharesPrintergroupApi.md#udm_shares_printergroup_object_search) | **GET** /shares/printergroup/ | Search for Printer share groups objects +*SharesPrintergroupApi* | [**udm_shares_printergroup_object_template**](docs/SharesPrintergroupApi.md#udm_shares_printergroup_object_template) | **GET** /shares/printergroup/add | Get a template for creating an Printer share group object (contains all properties and their default values) +*SharesPrintergroupApi* | [**udm_shares_printergroup_object_update**](docs/SharesPrintergroupApi.md#udm_shares_printergroup_object_update) | **PATCH** /shares/printergroup/{dn} | Modify an Printer share group object (moving is currently not possible) +*SharesShareApi* | [**udm_shares_share_object**](docs/SharesShareApi.md#udm_shares_share_object) | **GET** /shares/share/{dn} | Get a representation of the Share directory object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*SharesShareApi* | [**udm_shares_share_object_create**](docs/SharesShareApi.md#udm_shares_share_object_create) | **POST** /shares/share/ | Create a new Share directory object +*SharesShareApi* | [**udm_shares_share_object_modify**](docs/SharesShareApi.md#udm_shares_share_object_modify) | **PUT** /shares/share/{dn} | Modify or move an Share directory object +*SharesShareApi* | [**udm_shares_share_object_remove**](docs/SharesShareApi.md#udm_shares_share_object_remove) | **DELETE** /shares/share/{dn} | Remove a Share directories object +*SharesShareApi* | [**udm_shares_share_object_search**](docs/SharesShareApi.md#udm_shares_share_object_search) | **GET** /shares/share/ | Search for Share directories objects +*SharesShareApi* | [**udm_shares_share_object_template**](docs/SharesShareApi.md#udm_shares_share_object_template) | **GET** /shares/share/add | Get a template for creating an Share directory object (contains all properties and their default values) +*SharesShareApi* | [**udm_shares_share_object_update**](docs/SharesShareApi.md#udm_shares_share_object_update) | **PATCH** /shares/share/{dn} | Modify an Share directory object (moving is currently not possible) +*UsersContactApi* | [**udm_users_contact_object**](docs/UsersContactApi.md#udm_users_contact_object) | **GET** /users/contact/{dn} | Get a representation of the Contact object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UsersContactApi* | [**udm_users_contact_object_create**](docs/UsersContactApi.md#udm_users_contact_object_create) | **POST** /users/contact/ | Create a new Contact object +*UsersContactApi* | [**udm_users_contact_object_modify**](docs/UsersContactApi.md#udm_users_contact_object_modify) | **PUT** /users/contact/{dn} | Modify or move an Contact object +*UsersContactApi* | [**udm_users_contact_object_remove**](docs/UsersContactApi.md#udm_users_contact_object_remove) | **DELETE** /users/contact/{dn} | Remove a Contact information object +*UsersContactApi* | [**udm_users_contact_object_search**](docs/UsersContactApi.md#udm_users_contact_object_search) | **GET** /users/contact/ | Search for Contact information objects +*UsersContactApi* | [**udm_users_contact_object_template**](docs/UsersContactApi.md#udm_users_contact_object_template) | **GET** /users/contact/add | Get a template for creating an Contact object (contains all properties and their default values) +*UsersContactApi* | [**udm_users_contact_object_update**](docs/UsersContactApi.md#udm_users_contact_object_update) | **PATCH** /users/contact/{dn} | Modify an Contact object (moving is currently not possible) +*UsersLdapApi* | [**udm_users_ldap_object**](docs/UsersLdapApi.md#udm_users_ldap_object) | **GET** /users/ldap/{dn} | Get a representation of the Simple authentication account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UsersLdapApi* | [**udm_users_ldap_object_create**](docs/UsersLdapApi.md#udm_users_ldap_object_create) | **POST** /users/ldap/ | Create a new Simple authentication account object +*UsersLdapApi* | [**udm_users_ldap_object_modify**](docs/UsersLdapApi.md#udm_users_ldap_object_modify) | **PUT** /users/ldap/{dn} | Modify or move an Simple authentication account object +*UsersLdapApi* | [**udm_users_ldap_object_remove**](docs/UsersLdapApi.md#udm_users_ldap_object_remove) | **DELETE** /users/ldap/{dn} | Remove a Simple authentication accounts object +*UsersLdapApi* | [**udm_users_ldap_object_search**](docs/UsersLdapApi.md#udm_users_ldap_object_search) | **GET** /users/ldap/ | Search for Simple authentication accounts objects +*UsersLdapApi* | [**udm_users_ldap_object_template**](docs/UsersLdapApi.md#udm_users_ldap_object_template) | **GET** /users/ldap/add | Get a template for creating an Simple authentication account object (contains all properties and their default values) +*UsersLdapApi* | [**udm_users_ldap_object_update**](docs/UsersLdapApi.md#udm_users_ldap_object_update) | **PATCH** /users/ldap/{dn} | Modify an Simple authentication account object (moving is currently not possible) +*UsersPasswdApi* | [**udm_users_passwd_object**](docs/UsersPasswdApi.md#udm_users_passwd_object) | **GET** /users/passwd/{dn} | Get a representation of the Password object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UsersPasswdApi* | [**udm_users_passwd_object_modify**](docs/UsersPasswdApi.md#udm_users_passwd_object_modify) | **PUT** /users/passwd/{dn} | Modify or move an Password object +*UsersPasswdApi* | [**udm_users_passwd_object_update**](docs/UsersPasswdApi.md#udm_users_passwd_object_update) | **PATCH** /users/passwd/{dn} | Modify an Password object (moving is currently not possible) +*UsersSelfApi* | [**udm_users_self_object**](docs/UsersSelfApi.md#udm_users_self_object) | **GET** /users/self/{dn} | Get a representation of the Self object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UsersSelfApi* | [**udm_users_self_object_modify**](docs/UsersSelfApi.md#udm_users_self_object_modify) | **PUT** /users/self/{dn} | Modify or move an Self object +*UsersSelfApi* | [**udm_users_self_object_search**](docs/UsersSelfApi.md#udm_users_self_object_search) | **GET** /users/self/ | Search for Self objects +*UsersSelfApi* | [**udm_users_self_object_update**](docs/UsersSelfApi.md#udm_users_self_object_update) | **PATCH** /users/self/{dn} | Modify an Self object (moving is currently not possible) +*UsersUserApi* | [**udm_users_user_object**](docs/UsersUserApi.md#udm_users_user_object) | **GET** /users/user/{dn} | Get a representation of the User object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UsersUserApi* | [**udm_users_user_object_create**](docs/UsersUserApi.md#udm_users_user_object_create) | **POST** /users/user/ | Create a new User object +*UsersUserApi* | [**udm_users_user_object_modify**](docs/UsersUserApi.md#udm_users_user_object_modify) | **PUT** /users/user/{dn} | Modify or move an User object +*UsersUserApi* | [**udm_users_user_object_remove**](docs/UsersUserApi.md#udm_users_user_object_remove) | **DELETE** /users/user/{dn} | Remove a Users object +*UsersUserApi* | [**udm_users_user_object_search**](docs/UsersUserApi.md#udm_users_user_object_search) | **GET** /users/user/ | Search for Users objects +*UsersUserApi* | [**udm_users_user_object_template**](docs/UsersUserApi.md#udm_users_user_object_template) | **GET** /users/user/add | Get a template for creating an User object (contains all properties and their default values) +*UsersUserApi* | [**udm_users_user_object_update**](docs/UsersUserApi.md#udm_users_user_object_update) | **PATCH** /users/user/{dn} | Modify an User object (moving is currently not possible) +*UvmmCloudconnectionApi* | [**udm_uvmm_cloudconnection_object**](docs/UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object) | **GET** /uvmm/cloudconnection/{dn} | Get a representation of the Cloud Connection object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UvmmCloudconnectionApi* | [**udm_uvmm_cloudconnection_object_create**](docs/UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_create) | **POST** /uvmm/cloudconnection/ | Create a new Cloud Connection object +*UvmmCloudconnectionApi* | [**udm_uvmm_cloudconnection_object_modify**](docs/UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_modify) | **PUT** /uvmm/cloudconnection/{dn} | Modify or move an Cloud Connection object +*UvmmCloudconnectionApi* | [**udm_uvmm_cloudconnection_object_remove**](docs/UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_remove) | **DELETE** /uvmm/cloudconnection/{dn} | Remove a Cloud Connections object +*UvmmCloudconnectionApi* | [**udm_uvmm_cloudconnection_object_search**](docs/UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_search) | **GET** /uvmm/cloudconnection/ | Search for Cloud Connections objects +*UvmmCloudconnectionApi* | [**udm_uvmm_cloudconnection_object_template**](docs/UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_template) | **GET** /uvmm/cloudconnection/add | Get a template for creating an Cloud Connection object (contains all properties and their default values) +*UvmmCloudconnectionApi* | [**udm_uvmm_cloudconnection_object_update**](docs/UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_update) | **PATCH** /uvmm/cloudconnection/{dn} | Modify an Cloud Connection object (moving is currently not possible) +*UvmmCloudtypeApi* | [**udm_uvmm_cloudtype_object**](docs/UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object) | **GET** /uvmm/cloudtype/{dn} | Get a representation of the Cloud Type object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UvmmCloudtypeApi* | [**udm_uvmm_cloudtype_object_create**](docs/UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_create) | **POST** /uvmm/cloudtype/ | Create a new Cloud Type object +*UvmmCloudtypeApi* | [**udm_uvmm_cloudtype_object_modify**](docs/UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_modify) | **PUT** /uvmm/cloudtype/{dn} | Modify or move an Cloud Type object +*UvmmCloudtypeApi* | [**udm_uvmm_cloudtype_object_remove**](docs/UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_remove) | **DELETE** /uvmm/cloudtype/{dn} | Remove a Cloud Types object +*UvmmCloudtypeApi* | [**udm_uvmm_cloudtype_object_search**](docs/UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_search) | **GET** /uvmm/cloudtype/ | Search for Cloud Types objects +*UvmmCloudtypeApi* | [**udm_uvmm_cloudtype_object_template**](docs/UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_template) | **GET** /uvmm/cloudtype/add | Get a template for creating an Cloud Type object (contains all properties and their default values) +*UvmmCloudtypeApi* | [**udm_uvmm_cloudtype_object_update**](docs/UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_update) | **PATCH** /uvmm/cloudtype/{dn} | Modify an Cloud Type object (moving is currently not possible) +*UvmmInfoApi* | [**udm_uvmm_info_object**](docs/UvmmInfoApi.md#udm_uvmm_info_object) | **GET** /uvmm/info/{dn} | Get a representation of the Machine information object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UvmmInfoApi* | [**udm_uvmm_info_object_create**](docs/UvmmInfoApi.md#udm_uvmm_info_object_create) | **POST** /uvmm/info/ | Create a new Machine information object +*UvmmInfoApi* | [**udm_uvmm_info_object_modify**](docs/UvmmInfoApi.md#udm_uvmm_info_object_modify) | **PUT** /uvmm/info/{dn} | Modify or move an Machine information object +*UvmmInfoApi* | [**udm_uvmm_info_object_remove**](docs/UvmmInfoApi.md#udm_uvmm_info_object_remove) | **DELETE** /uvmm/info/{dn} | Remove a Machine information object +*UvmmInfoApi* | [**udm_uvmm_info_object_search**](docs/UvmmInfoApi.md#udm_uvmm_info_object_search) | **GET** /uvmm/info/ | Search for Machine information objects +*UvmmInfoApi* | [**udm_uvmm_info_object_template**](docs/UvmmInfoApi.md#udm_uvmm_info_object_template) | **GET** /uvmm/info/add | Get a template for creating an Machine information object (contains all properties and their default values) +*UvmmInfoApi* | [**udm_uvmm_info_object_update**](docs/UvmmInfoApi.md#udm_uvmm_info_object_update) | **PATCH** /uvmm/info/{dn} | Modify an Machine information object (moving is currently not possible) +*UvmmProfileApi* | [**udm_uvmm_profile_object**](docs/UvmmProfileApi.md#udm_uvmm_profile_object) | **GET** /uvmm/profile/{dn} | Get a representation of the Profile object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +*UvmmProfileApi* | [**udm_uvmm_profile_object_create**](docs/UvmmProfileApi.md#udm_uvmm_profile_object_create) | **POST** /uvmm/profile/ | Create a new Profile object +*UvmmProfileApi* | [**udm_uvmm_profile_object_modify**](docs/UvmmProfileApi.md#udm_uvmm_profile_object_modify) | **PUT** /uvmm/profile/{dn} | Modify or move an Profile object +*UvmmProfileApi* | [**udm_uvmm_profile_object_remove**](docs/UvmmProfileApi.md#udm_uvmm_profile_object_remove) | **DELETE** /uvmm/profile/{dn} | Remove a Profiles object +*UvmmProfileApi* | [**udm_uvmm_profile_object_search**](docs/UvmmProfileApi.md#udm_uvmm_profile_object_search) | **GET** /uvmm/profile/ | Search for Profiles objects +*UvmmProfileApi* | [**udm_uvmm_profile_object_template**](docs/UvmmProfileApi.md#udm_uvmm_profile_object_template) | **GET** /uvmm/profile/add | Get a template for creating an Profile object (contains all properties and their default values) +*UvmmProfileApi* | [**udm_uvmm_profile_object_update**](docs/UvmmProfileApi.md#udm_uvmm_profile_object_update) | **PATCH** /uvmm/profile/{dn} | Modify an Profile object (moving is currently not possible) + + +## Documentation For Models + + - [AppcenterApp](docs/AppcenterApp.md) + - [AppcenterAppList](docs/AppcenterAppList.md) + - [AppcenterAppListEmbedded](docs/AppcenterAppListEmbedded.md) + - [AppcenterAppPolicies](docs/AppcenterAppPolicies.md) + - [AppcenterAppRequest](docs/AppcenterAppRequest.md) + - [AppcenterAppRequestAllOf](docs/AppcenterAppRequestAllOf.md) + - [AppcenterAppRequestPatch](docs/AppcenterAppRequestPatch.md) + - [AppcenterAppResponseMixin](docs/AppcenterAppResponseMixin.md) + - [ComputersComputer](docs/ComputersComputer.md) + - [ComputersComputerList](docs/ComputersComputerList.md) + - [ComputersComputerListEmbedded](docs/ComputersComputerListEmbedded.md) + - [ComputersComputerRequest](docs/ComputersComputerRequest.md) + - [ComputersComputerRequestPatch](docs/ComputersComputerRequestPatch.md) + - [ComputersComputerResponseMixin](docs/ComputersComputerResponseMixin.md) + - [ComputersDomaincontrollerBackup](docs/ComputersDomaincontrollerBackup.md) + - [ComputersDomaincontrollerBackupList](docs/ComputersDomaincontrollerBackupList.md) + - [ComputersDomaincontrollerBackupListEmbedded](docs/ComputersDomaincontrollerBackupListEmbedded.md) + - [ComputersDomaincontrollerBackupOptions](docs/ComputersDomaincontrollerBackupOptions.md) + - [ComputersDomaincontrollerBackupPolicies](docs/ComputersDomaincontrollerBackupPolicies.md) + - [ComputersDomaincontrollerBackupRequest](docs/ComputersDomaincontrollerBackupRequest.md) + - [ComputersDomaincontrollerBackupRequestPatch](docs/ComputersDomaincontrollerBackupRequestPatch.md) + - [ComputersDomaincontrollerBackupResponseMixin](docs/ComputersDomaincontrollerBackupResponseMixin.md) + - [ComputersDomaincontrollerMaster](docs/ComputersDomaincontrollerMaster.md) + - [ComputersDomaincontrollerMasterList](docs/ComputersDomaincontrollerMasterList.md) + - [ComputersDomaincontrollerMasterListEmbedded](docs/ComputersDomaincontrollerMasterListEmbedded.md) + - [ComputersDomaincontrollerMasterOptions](docs/ComputersDomaincontrollerMasterOptions.md) + - [ComputersDomaincontrollerMasterPolicies](docs/ComputersDomaincontrollerMasterPolicies.md) + - [ComputersDomaincontrollerMasterRequest](docs/ComputersDomaincontrollerMasterRequest.md) + - [ComputersDomaincontrollerMasterRequestPatch](docs/ComputersDomaincontrollerMasterRequestPatch.md) + - [ComputersDomaincontrollerMasterResponseMixin](docs/ComputersDomaincontrollerMasterResponseMixin.md) + - [ComputersDomaincontrollerSlave](docs/ComputersDomaincontrollerSlave.md) + - [ComputersDomaincontrollerSlaveList](docs/ComputersDomaincontrollerSlaveList.md) + - [ComputersDomaincontrollerSlaveListEmbedded](docs/ComputersDomaincontrollerSlaveListEmbedded.md) + - [ComputersDomaincontrollerSlaveOptions](docs/ComputersDomaincontrollerSlaveOptions.md) + - [ComputersDomaincontrollerSlavePolicies](docs/ComputersDomaincontrollerSlavePolicies.md) + - [ComputersDomaincontrollerSlaveRequest](docs/ComputersDomaincontrollerSlaveRequest.md) + - [ComputersDomaincontrollerSlaveRequestPatch](docs/ComputersDomaincontrollerSlaveRequestPatch.md) + - [ComputersDomaincontrollerSlaveResponseMixin](docs/ComputersDomaincontrollerSlaveResponseMixin.md) + - [ComputersIpmanagedclient](docs/ComputersIpmanagedclient.md) + - [ComputersIpmanagedclientList](docs/ComputersIpmanagedclientList.md) + - [ComputersIpmanagedclientListEmbedded](docs/ComputersIpmanagedclientListEmbedded.md) + - [ComputersIpmanagedclientOptions](docs/ComputersIpmanagedclientOptions.md) + - [ComputersIpmanagedclientRequest](docs/ComputersIpmanagedclientRequest.md) + - [ComputersIpmanagedclientRequestPatch](docs/ComputersIpmanagedclientRequestPatch.md) + - [ComputersIpmanagedclientResponseMixin](docs/ComputersIpmanagedclientResponseMixin.md) + - [ComputersLinux](docs/ComputersLinux.md) + - [ComputersLinuxList](docs/ComputersLinuxList.md) + - [ComputersLinuxListEmbedded](docs/ComputersLinuxListEmbedded.md) + - [ComputersLinuxOptions](docs/ComputersLinuxOptions.md) + - [ComputersLinuxRequest](docs/ComputersLinuxRequest.md) + - [ComputersLinuxRequestPatch](docs/ComputersLinuxRequestPatch.md) + - [ComputersLinuxResponseMixin](docs/ComputersLinuxResponseMixin.md) + - [ComputersMacos](docs/ComputersMacos.md) + - [ComputersMacosList](docs/ComputersMacosList.md) + - [ComputersMacosListEmbedded](docs/ComputersMacosListEmbedded.md) + - [ComputersMacosOptions](docs/ComputersMacosOptions.md) + - [ComputersMacosRequest](docs/ComputersMacosRequest.md) + - [ComputersMacosRequestPatch](docs/ComputersMacosRequestPatch.md) + - [ComputersMacosResponseMixin](docs/ComputersMacosResponseMixin.md) + - [ComputersMemberserver](docs/ComputersMemberserver.md) + - [ComputersMemberserverList](docs/ComputersMemberserverList.md) + - [ComputersMemberserverListEmbedded](docs/ComputersMemberserverListEmbedded.md) + - [ComputersMemberserverOptions](docs/ComputersMemberserverOptions.md) + - [ComputersMemberserverPolicies](docs/ComputersMemberserverPolicies.md) + - [ComputersMemberserverRequest](docs/ComputersMemberserverRequest.md) + - [ComputersMemberserverRequestPatch](docs/ComputersMemberserverRequestPatch.md) + - [ComputersMemberserverResponseMixin](docs/ComputersMemberserverResponseMixin.md) + - [ComputersTrustaccount](docs/ComputersTrustaccount.md) + - [ComputersTrustaccountList](docs/ComputersTrustaccountList.md) + - [ComputersTrustaccountListEmbedded](docs/ComputersTrustaccountListEmbedded.md) + - [ComputersTrustaccountOptions](docs/ComputersTrustaccountOptions.md) + - [ComputersTrustaccountRequest](docs/ComputersTrustaccountRequest.md) + - [ComputersTrustaccountRequestPatch](docs/ComputersTrustaccountRequestPatch.md) + - [ComputersTrustaccountResponseMixin](docs/ComputersTrustaccountResponseMixin.md) + - [ComputersUbuntu](docs/ComputersUbuntu.md) + - [ComputersUbuntuList](docs/ComputersUbuntuList.md) + - [ComputersUbuntuListEmbedded](docs/ComputersUbuntuListEmbedded.md) + - [ComputersUbuntuOptions](docs/ComputersUbuntuOptions.md) + - [ComputersUbuntuRequest](docs/ComputersUbuntuRequest.md) + - [ComputersUbuntuRequestPatch](docs/ComputersUbuntuRequestPatch.md) + - [ComputersUbuntuResponseMixin](docs/ComputersUbuntuResponseMixin.md) + - [ComputersWindows](docs/ComputersWindows.md) + - [ComputersWindowsDomaincontroller](docs/ComputersWindowsDomaincontroller.md) + - [ComputersWindowsDomaincontrollerList](docs/ComputersWindowsDomaincontrollerList.md) + - [ComputersWindowsDomaincontrollerListEmbedded](docs/ComputersWindowsDomaincontrollerListEmbedded.md) + - [ComputersWindowsDomaincontrollerOptions](docs/ComputersWindowsDomaincontrollerOptions.md) + - [ComputersWindowsDomaincontrollerRequest](docs/ComputersWindowsDomaincontrollerRequest.md) + - [ComputersWindowsDomaincontrollerRequestPatch](docs/ComputersWindowsDomaincontrollerRequestPatch.md) + - [ComputersWindowsDomaincontrollerResponseMixin](docs/ComputersWindowsDomaincontrollerResponseMixin.md) + - [ComputersWindowsList](docs/ComputersWindowsList.md) + - [ComputersWindowsListEmbedded](docs/ComputersWindowsListEmbedded.md) + - [ComputersWindowsOptions](docs/ComputersWindowsOptions.md) + - [ComputersWindowsRequest](docs/ComputersWindowsRequest.md) + - [ComputersWindowsRequestPatch](docs/ComputersWindowsRequestPatch.md) + - [ComputersWindowsResponseMixin](docs/ComputersWindowsResponseMixin.md) + - [ContainerCn](docs/ContainerCn.md) + - [ContainerCnList](docs/ContainerCnList.md) + - [ContainerCnListEmbedded](docs/ContainerCnListEmbedded.md) + - [ContainerCnPolicies](docs/ContainerCnPolicies.md) + - [ContainerCnRequest](docs/ContainerCnRequest.md) + - [ContainerCnRequestPatch](docs/ContainerCnRequestPatch.md) + - [ContainerCnResponseMixin](docs/ContainerCnResponseMixin.md) + - [ContainerDc](docs/ContainerDc.md) + - [ContainerDcList](docs/ContainerDcList.md) + - [ContainerDcListEmbedded](docs/ContainerDcListEmbedded.md) + - [ContainerDcOptions](docs/ContainerDcOptions.md) + - [ContainerDcPolicies](docs/ContainerDcPolicies.md) + - [ContainerDcRequest](docs/ContainerDcRequest.md) + - [ContainerDcRequestPatch](docs/ContainerDcRequestPatch.md) + - [ContainerDcResponseMixin](docs/ContainerDcResponseMixin.md) + - [ContainerMsgpo](docs/ContainerMsgpo.md) + - [ContainerMsgpoList](docs/ContainerMsgpoList.md) + - [ContainerMsgpoListEmbedded](docs/ContainerMsgpoListEmbedded.md) + - [ContainerMsgpoPolicies](docs/ContainerMsgpoPolicies.md) + - [ContainerMsgpoRequest](docs/ContainerMsgpoRequest.md) + - [ContainerMsgpoRequestPatch](docs/ContainerMsgpoRequestPatch.md) + - [ContainerMsgpoResponseMixin](docs/ContainerMsgpoResponseMixin.md) + - [ContainerOu](docs/ContainerOu.md) + - [ContainerOuList](docs/ContainerOuList.md) + - [ContainerOuListEmbedded](docs/ContainerOuListEmbedded.md) + - [ContainerOuPolicies](docs/ContainerOuPolicies.md) + - [ContainerOuRequest](docs/ContainerOuRequest.md) + - [ContainerOuRequestPatch](docs/ContainerOuRequestPatch.md) + - [ContainerOuResponseMixin](docs/ContainerOuResponseMixin.md) + - [DhcpDhcp](docs/DhcpDhcp.md) + - [DhcpDhcpList](docs/DhcpDhcpList.md) + - [DhcpDhcpListEmbedded](docs/DhcpDhcpListEmbedded.md) + - [DhcpDhcpRequest](docs/DhcpDhcpRequest.md) + - [DhcpDhcpRequestPatch](docs/DhcpDhcpRequestPatch.md) + - [DhcpDhcpResponseMixin](docs/DhcpDhcpResponseMixin.md) + - [DhcpHost](docs/DhcpHost.md) + - [DhcpHostList](docs/DhcpHostList.md) + - [DhcpHostListEmbedded](docs/DhcpHostListEmbedded.md) + - [DhcpHostOptions](docs/DhcpHostOptions.md) + - [DhcpHostPolicies](docs/DhcpHostPolicies.md) + - [DhcpHostRequest](docs/DhcpHostRequest.md) + - [DhcpHostRequestPatch](docs/DhcpHostRequestPatch.md) + - [DhcpHostResponseMixin](docs/DhcpHostResponseMixin.md) + - [DhcpPool](docs/DhcpPool.md) + - [DhcpPoolList](docs/DhcpPoolList.md) + - [DhcpPoolListEmbedded](docs/DhcpPoolListEmbedded.md) + - [DhcpPoolOptions](docs/DhcpPoolOptions.md) + - [DhcpPoolPolicies](docs/DhcpPoolPolicies.md) + - [DhcpPoolRequest](docs/DhcpPoolRequest.md) + - [DhcpPoolRequestPatch](docs/DhcpPoolRequestPatch.md) + - [DhcpPoolResponseMixin](docs/DhcpPoolResponseMixin.md) + - [DhcpServer](docs/DhcpServer.md) + - [DhcpServerList](docs/DhcpServerList.md) + - [DhcpServerListEmbedded](docs/DhcpServerListEmbedded.md) + - [DhcpServerRequest](docs/DhcpServerRequest.md) + - [DhcpServerRequestPatch](docs/DhcpServerRequestPatch.md) + - [DhcpServerResponseMixin](docs/DhcpServerResponseMixin.md) + - [DhcpService](docs/DhcpService.md) + - [DhcpServiceList](docs/DhcpServiceList.md) + - [DhcpServiceListEmbedded](docs/DhcpServiceListEmbedded.md) + - [DhcpServiceOptions](docs/DhcpServiceOptions.md) + - [DhcpServicePolicies](docs/DhcpServicePolicies.md) + - [DhcpServiceRequest](docs/DhcpServiceRequest.md) + - [DhcpServiceRequestPatch](docs/DhcpServiceRequestPatch.md) + - [DhcpServiceResponseMixin](docs/DhcpServiceResponseMixin.md) + - [DhcpShared](docs/DhcpShared.md) + - [DhcpSharedList](docs/DhcpSharedList.md) + - [DhcpSharedListEmbedded](docs/DhcpSharedListEmbedded.md) + - [DhcpSharedOptions](docs/DhcpSharedOptions.md) + - [DhcpSharedPolicies](docs/DhcpSharedPolicies.md) + - [DhcpSharedRequest](docs/DhcpSharedRequest.md) + - [DhcpSharedRequestPatch](docs/DhcpSharedRequestPatch.md) + - [DhcpSharedResponseMixin](docs/DhcpSharedResponseMixin.md) + - [DhcpSharedsubnet](docs/DhcpSharedsubnet.md) + - [DhcpSharedsubnetList](docs/DhcpSharedsubnetList.md) + - [DhcpSharedsubnetListEmbedded](docs/DhcpSharedsubnetListEmbedded.md) + - [DhcpSharedsubnetOptions](docs/DhcpSharedsubnetOptions.md) + - [DhcpSharedsubnetPolicies](docs/DhcpSharedsubnetPolicies.md) + - [DhcpSharedsubnetRequest](docs/DhcpSharedsubnetRequest.md) + - [DhcpSharedsubnetRequestPatch](docs/DhcpSharedsubnetRequestPatch.md) + - [DhcpSharedsubnetResponseMixin](docs/DhcpSharedsubnetResponseMixin.md) + - [DhcpSubnet](docs/DhcpSubnet.md) + - [DhcpSubnetList](docs/DhcpSubnetList.md) + - [DhcpSubnetListEmbedded](docs/DhcpSubnetListEmbedded.md) + - [DhcpSubnetOptions](docs/DhcpSubnetOptions.md) + - [DhcpSubnetPolicies](docs/DhcpSubnetPolicies.md) + - [DhcpSubnetRequest](docs/DhcpSubnetRequest.md) + - [DhcpSubnetRequestPatch](docs/DhcpSubnetRequestPatch.md) + - [DhcpSubnetResponseMixin](docs/DhcpSubnetResponseMixin.md) + - [DnsAlias](docs/DnsAlias.md) + - [DnsAliasList](docs/DnsAliasList.md) + - [DnsAliasListEmbedded](docs/DnsAliasListEmbedded.md) + - [DnsAliasRequest](docs/DnsAliasRequest.md) + - [DnsAliasRequestPatch](docs/DnsAliasRequestPatch.md) + - [DnsAliasResponseMixin](docs/DnsAliasResponseMixin.md) + - [DnsDns](docs/DnsDns.md) + - [DnsDnsList](docs/DnsDnsList.md) + - [DnsDnsListEmbedded](docs/DnsDnsListEmbedded.md) + - [DnsDnsRequest](docs/DnsDnsRequest.md) + - [DnsDnsRequestPatch](docs/DnsDnsRequestPatch.md) + - [DnsDnsResponseMixin](docs/DnsDnsResponseMixin.md) + - [DnsForwardZone](docs/DnsForwardZone.md) + - [DnsForwardZoneList](docs/DnsForwardZoneList.md) + - [DnsForwardZoneListEmbedded](docs/DnsForwardZoneListEmbedded.md) + - [DnsForwardZonePolicies](docs/DnsForwardZonePolicies.md) + - [DnsForwardZoneRequest](docs/DnsForwardZoneRequest.md) + - [DnsForwardZoneRequestPatch](docs/DnsForwardZoneRequestPatch.md) + - [DnsForwardZoneResponseMixin](docs/DnsForwardZoneResponseMixin.md) + - [DnsHostRecord](docs/DnsHostRecord.md) + - [DnsHostRecordList](docs/DnsHostRecordList.md) + - [DnsHostRecordListEmbedded](docs/DnsHostRecordListEmbedded.md) + - [DnsHostRecordRequest](docs/DnsHostRecordRequest.md) + - [DnsHostRecordRequestPatch](docs/DnsHostRecordRequestPatch.md) + - [DnsHostRecordResponseMixin](docs/DnsHostRecordResponseMixin.md) + - [DnsNsRecord](docs/DnsNsRecord.md) + - [DnsNsRecordList](docs/DnsNsRecordList.md) + - [DnsNsRecordListEmbedded](docs/DnsNsRecordListEmbedded.md) + - [DnsNsRecordRequest](docs/DnsNsRecordRequest.md) + - [DnsNsRecordRequestPatch](docs/DnsNsRecordRequestPatch.md) + - [DnsNsRecordResponseMixin](docs/DnsNsRecordResponseMixin.md) + - [DnsPtrRecord](docs/DnsPtrRecord.md) + - [DnsPtrRecordList](docs/DnsPtrRecordList.md) + - [DnsPtrRecordListEmbedded](docs/DnsPtrRecordListEmbedded.md) + - [DnsPtrRecordRequest](docs/DnsPtrRecordRequest.md) + - [DnsPtrRecordRequestPatch](docs/DnsPtrRecordRequestPatch.md) + - [DnsPtrRecordResponseMixin](docs/DnsPtrRecordResponseMixin.md) + - [DnsReverseZone](docs/DnsReverseZone.md) + - [DnsReverseZoneList](docs/DnsReverseZoneList.md) + - [DnsReverseZoneListEmbedded](docs/DnsReverseZoneListEmbedded.md) + - [DnsReverseZonePolicies](docs/DnsReverseZonePolicies.md) + - [DnsReverseZoneRequest](docs/DnsReverseZoneRequest.md) + - [DnsReverseZoneRequestPatch](docs/DnsReverseZoneRequestPatch.md) + - [DnsReverseZoneResponseMixin](docs/DnsReverseZoneResponseMixin.md) + - [DnsSrvRecord](docs/DnsSrvRecord.md) + - [DnsSrvRecordList](docs/DnsSrvRecordList.md) + - [DnsSrvRecordListEmbedded](docs/DnsSrvRecordListEmbedded.md) + - [DnsSrvRecordRequest](docs/DnsSrvRecordRequest.md) + - [DnsSrvRecordRequestPatch](docs/DnsSrvRecordRequestPatch.md) + - [DnsSrvRecordResponseMixin](docs/DnsSrvRecordResponseMixin.md) + - [DnsTxtRecord](docs/DnsTxtRecord.md) + - [DnsTxtRecordList](docs/DnsTxtRecordList.md) + - [DnsTxtRecordListEmbedded](docs/DnsTxtRecordListEmbedded.md) + - [DnsTxtRecordRequest](docs/DnsTxtRecordRequest.md) + - [DnsTxtRecordRequestPatch](docs/DnsTxtRecordRequestPatch.md) + - [DnsTxtRecordResponseMixin](docs/DnsTxtRecordResponseMixin.md) + - [EmbeddedError](docs/EmbeddedError.md) + - [GroupsGroup](docs/GroupsGroup.md) + - [GroupsGroupList](docs/GroupsGroupList.md) + - [GroupsGroupListEmbedded](docs/GroupsGroupListEmbedded.md) + - [GroupsGroupOptions](docs/GroupsGroupOptions.md) + - [GroupsGroupPolicies](docs/GroupsGroupPolicies.md) + - [GroupsGroupRequest](docs/GroupsGroupRequest.md) + - [GroupsGroupRequestPatch](docs/GroupsGroupRequestPatch.md) + - [GroupsGroupResponseMixin](docs/GroupsGroupResponseMixin.md) + - [InlineResponse201](docs/InlineResponse201.md) + - [KerberosKdcentry](docs/KerberosKdcentry.md) + - [KerberosKdcentryList](docs/KerberosKdcentryList.md) + - [KerberosKdcentryListEmbedded](docs/KerberosKdcentryListEmbedded.md) + - [KerberosKdcentryRequest](docs/KerberosKdcentryRequest.md) + - [KerberosKdcentryRequestPatch](docs/KerberosKdcentryRequestPatch.md) + - [KerberosKdcentryResponseMixin](docs/KerberosKdcentryResponseMixin.md) + - [Links](docs/Links.md) + - [MailDomain](docs/MailDomain.md) + - [MailDomainList](docs/MailDomainList.md) + - [MailDomainListEmbedded](docs/MailDomainListEmbedded.md) + - [MailDomainRequest](docs/MailDomainRequest.md) + - [MailDomainRequestPatch](docs/MailDomainRequestPatch.md) + - [MailDomainResponseMixin](docs/MailDomainResponseMixin.md) + - [MailFolder](docs/MailFolder.md) + - [MailFolderList](docs/MailFolderList.md) + - [MailFolderListEmbedded](docs/MailFolderListEmbedded.md) + - [MailFolderRequest](docs/MailFolderRequest.md) + - [MailFolderRequestPatch](docs/MailFolderRequestPatch.md) + - [MailFolderResponseMixin](docs/MailFolderResponseMixin.md) + - [MailLists](docs/MailLists.md) + - [MailListsList](docs/MailListsList.md) + - [MailListsListEmbedded](docs/MailListsListEmbedded.md) + - [MailListsRequest](docs/MailListsRequest.md) + - [MailListsRequestPatch](docs/MailListsRequestPatch.md) + - [MailListsResponseMixin](docs/MailListsResponseMixin.md) + - [MailMail](docs/MailMail.md) + - [MailMailList](docs/MailMailList.md) + - [MailMailListEmbedded](docs/MailMailListEmbedded.md) + - [MailMailRequest](docs/MailMailRequest.md) + - [MailMailRequestPatch](docs/MailMailRequestPatch.md) + - [MailMailResponseMixin](docs/MailMailResponseMixin.md) + - [MonitoringAlert](docs/MonitoringAlert.md) + - [MonitoringAlertList](docs/MonitoringAlertList.md) + - [MonitoringAlertListEmbedded](docs/MonitoringAlertListEmbedded.md) + - [MonitoringAlertRequest](docs/MonitoringAlertRequest.md) + - [MonitoringAlertRequestPatch](docs/MonitoringAlertRequestPatch.md) + - [MonitoringAlertResponseMixin](docs/MonitoringAlertResponseMixin.md) + - [MsDomainpolicy](docs/MsDomainpolicy.md) + - [MsDomainpolicyList](docs/MsDomainpolicyList.md) + - [MsDomainpolicyListEmbedded](docs/MsDomainpolicyListEmbedded.md) + - [MsDomainpolicyPolicies](docs/MsDomainpolicyPolicies.md) + - [MsDomainpolicyRequest](docs/MsDomainpolicyRequest.md) + - [MsDomainpolicyRequestPatch](docs/MsDomainpolicyRequestPatch.md) + - [MsDomainpolicyResponseMixin](docs/MsDomainpolicyResponseMixin.md) + - [MsGpipsecFilter](docs/MsGpipsecFilter.md) + - [MsGpipsecFilterList](docs/MsGpipsecFilterList.md) + - [MsGpipsecFilterListEmbedded](docs/MsGpipsecFilterListEmbedded.md) + - [MsGpipsecFilterPolicies](docs/MsGpipsecFilterPolicies.md) + - [MsGpipsecFilterRequest](docs/MsGpipsecFilterRequest.md) + - [MsGpipsecFilterRequestPatch](docs/MsGpipsecFilterRequestPatch.md) + - [MsGpipsecFilterResponseMixin](docs/MsGpipsecFilterResponseMixin.md) + - [MsGpipsecIsakmpPolicy](docs/MsGpipsecIsakmpPolicy.md) + - [MsGpipsecIsakmpPolicyList](docs/MsGpipsecIsakmpPolicyList.md) + - [MsGpipsecIsakmpPolicyListEmbedded](docs/MsGpipsecIsakmpPolicyListEmbedded.md) + - [MsGpipsecIsakmpPolicyPolicies](docs/MsGpipsecIsakmpPolicyPolicies.md) + - [MsGpipsecIsakmpPolicyRequest](docs/MsGpipsecIsakmpPolicyRequest.md) + - [MsGpipsecIsakmpPolicyRequestPatch](docs/MsGpipsecIsakmpPolicyRequestPatch.md) + - [MsGpipsecIsakmpPolicyResponseMixin](docs/MsGpipsecIsakmpPolicyResponseMixin.md) + - [MsGpipsecNegotiationPolicy](docs/MsGpipsecNegotiationPolicy.md) + - [MsGpipsecNegotiationPolicyList](docs/MsGpipsecNegotiationPolicyList.md) + - [MsGpipsecNegotiationPolicyListEmbedded](docs/MsGpipsecNegotiationPolicyListEmbedded.md) + - [MsGpipsecNegotiationPolicyPolicies](docs/MsGpipsecNegotiationPolicyPolicies.md) + - [MsGpipsecNegotiationPolicyRequest](docs/MsGpipsecNegotiationPolicyRequest.md) + - [MsGpipsecNegotiationPolicyRequestPatch](docs/MsGpipsecNegotiationPolicyRequestPatch.md) + - [MsGpipsecNegotiationPolicyResponseMixin](docs/MsGpipsecNegotiationPolicyResponseMixin.md) + - [MsGpipsecNfa](docs/MsGpipsecNfa.md) + - [MsGpipsecNfaList](docs/MsGpipsecNfaList.md) + - [MsGpipsecNfaListEmbedded](docs/MsGpipsecNfaListEmbedded.md) + - [MsGpipsecNfaPolicies](docs/MsGpipsecNfaPolicies.md) + - [MsGpipsecNfaRequest](docs/MsGpipsecNfaRequest.md) + - [MsGpipsecNfaRequestPatch](docs/MsGpipsecNfaRequestPatch.md) + - [MsGpipsecNfaResponseMixin](docs/MsGpipsecNfaResponseMixin.md) + - [MsGpipsecPolicy](docs/MsGpipsecPolicy.md) + - [MsGpipsecPolicyList](docs/MsGpipsecPolicyList.md) + - [MsGpipsecPolicyListEmbedded](docs/MsGpipsecPolicyListEmbedded.md) + - [MsGpipsecPolicyPolicies](docs/MsGpipsecPolicyPolicies.md) + - [MsGpipsecPolicyRequest](docs/MsGpipsecPolicyRequest.md) + - [MsGpipsecPolicyRequestPatch](docs/MsGpipsecPolicyRequestPatch.md) + - [MsGpipsecPolicyResponseMixin](docs/MsGpipsecPolicyResponseMixin.md) + - [MsGpsiCategoryRegistration](docs/MsGpsiCategoryRegistration.md) + - [MsGpsiCategoryRegistrationList](docs/MsGpsiCategoryRegistrationList.md) + - [MsGpsiCategoryRegistrationListEmbedded](docs/MsGpsiCategoryRegistrationListEmbedded.md) + - [MsGpsiCategoryRegistrationPolicies](docs/MsGpsiCategoryRegistrationPolicies.md) + - [MsGpsiCategoryRegistrationRequest](docs/MsGpsiCategoryRegistrationRequest.md) + - [MsGpsiCategoryRegistrationRequestPatch](docs/MsGpsiCategoryRegistrationRequestPatch.md) + - [MsGpsiCategoryRegistrationResponseMixin](docs/MsGpsiCategoryRegistrationResponseMixin.md) + - [MsGpsiClassStore](docs/MsGpsiClassStore.md) + - [MsGpsiClassStoreList](docs/MsGpsiClassStoreList.md) + - [MsGpsiClassStoreListEmbedded](docs/MsGpsiClassStoreListEmbedded.md) + - [MsGpsiClassStorePolicies](docs/MsGpsiClassStorePolicies.md) + - [MsGpsiClassStoreRequest](docs/MsGpsiClassStoreRequest.md) + - [MsGpsiClassStoreRequestPatch](docs/MsGpsiClassStoreRequestPatch.md) + - [MsGpsiClassStoreResponseMixin](docs/MsGpsiClassStoreResponseMixin.md) + - [MsGpsiPackageRegistration](docs/MsGpsiPackageRegistration.md) + - [MsGpsiPackageRegistrationList](docs/MsGpsiPackageRegistrationList.md) + - [MsGpsiPackageRegistrationListEmbedded](docs/MsGpsiPackageRegistrationListEmbedded.md) + - [MsGpsiPackageRegistrationPolicies](docs/MsGpsiPackageRegistrationPolicies.md) + - [MsGpsiPackageRegistrationRequest](docs/MsGpsiPackageRegistrationRequest.md) + - [MsGpsiPackageRegistrationRequestPatch](docs/MsGpsiPackageRegistrationRequestPatch.md) + - [MsGpsiPackageRegistrationResponseMixin](docs/MsGpsiPackageRegistrationResponseMixin.md) + - [MsGpwlWired](docs/MsGpwlWired.md) + - [MsGpwlWiredList](docs/MsGpwlWiredList.md) + - [MsGpwlWiredListEmbedded](docs/MsGpwlWiredListEmbedded.md) + - [MsGpwlWiredPolicies](docs/MsGpwlWiredPolicies.md) + - [MsGpwlWiredRequest](docs/MsGpwlWiredRequest.md) + - [MsGpwlWiredRequestPatch](docs/MsGpwlWiredRequestPatch.md) + - [MsGpwlWiredResponseMixin](docs/MsGpwlWiredResponseMixin.md) + - [MsGpwlWireless](docs/MsGpwlWireless.md) + - [MsGpwlWirelessBlob](docs/MsGpwlWirelessBlob.md) + - [MsGpwlWirelessBlobList](docs/MsGpwlWirelessBlobList.md) + - [MsGpwlWirelessBlobListEmbedded](docs/MsGpwlWirelessBlobListEmbedded.md) + - [MsGpwlWirelessBlobPolicies](docs/MsGpwlWirelessBlobPolicies.md) + - [MsGpwlWirelessBlobRequest](docs/MsGpwlWirelessBlobRequest.md) + - [MsGpwlWirelessBlobRequestPatch](docs/MsGpwlWirelessBlobRequestPatch.md) + - [MsGpwlWirelessBlobResponseMixin](docs/MsGpwlWirelessBlobResponseMixin.md) + - [MsGpwlWirelessList](docs/MsGpwlWirelessList.md) + - [MsGpwlWirelessListEmbedded](docs/MsGpwlWirelessListEmbedded.md) + - [MsGpwlWirelessPolicies](docs/MsGpwlWirelessPolicies.md) + - [MsGpwlWirelessRequest](docs/MsGpwlWirelessRequest.md) + - [MsGpwlWirelessRequestPatch](docs/MsGpwlWirelessRequestPatch.md) + - [MsGpwlWirelessResponseMixin](docs/MsGpwlWirelessResponseMixin.md) + - [NagiosNagios](docs/NagiosNagios.md) + - [NagiosNagiosList](docs/NagiosNagiosList.md) + - [NagiosNagiosListEmbedded](docs/NagiosNagiosListEmbedded.md) + - [NagiosNagiosRequest](docs/NagiosNagiosRequest.md) + - [NagiosNagiosRequestPatch](docs/NagiosNagiosRequestPatch.md) + - [NagiosNagiosResponseMixin](docs/NagiosNagiosResponseMixin.md) + - [NagiosService](docs/NagiosService.md) + - [NagiosServiceList](docs/NagiosServiceList.md) + - [NagiosServiceListEmbedded](docs/NagiosServiceListEmbedded.md) + - [NagiosServiceRequest](docs/NagiosServiceRequest.md) + - [NagiosServiceRequestPatch](docs/NagiosServiceRequestPatch.md) + - [NagiosServiceResponseMixin](docs/NagiosServiceResponseMixin.md) + - [NagiosTimeperiod](docs/NagiosTimeperiod.md) + - [NagiosTimeperiodList](docs/NagiosTimeperiodList.md) + - [NagiosTimeperiodListEmbedded](docs/NagiosTimeperiodListEmbedded.md) + - [NagiosTimeperiodRequest](docs/NagiosTimeperiodRequest.md) + - [NagiosTimeperiodRequestPatch](docs/NagiosTimeperiodRequestPatch.md) + - [NagiosTimeperiodResponseMixin](docs/NagiosTimeperiodResponseMixin.md) + - [NetworksNetwork](docs/NetworksNetwork.md) + - [NetworksNetworkList](docs/NetworksNetworkList.md) + - [NetworksNetworkListEmbedded](docs/NetworksNetworkListEmbedded.md) + - [NetworksNetworkRequest](docs/NetworksNetworkRequest.md) + - [NetworksNetworkRequestPatch](docs/NetworksNetworkRequestPatch.md) + - [NetworksNetworkResponseMixin](docs/NetworksNetworkResponseMixin.md) + - [PoliciesAdminContainer](docs/PoliciesAdminContainer.md) + - [PoliciesAdminContainerList](docs/PoliciesAdminContainerList.md) + - [PoliciesAdminContainerListEmbedded](docs/PoliciesAdminContainerListEmbedded.md) + - [PoliciesAdminContainerRequest](docs/PoliciesAdminContainerRequest.md) + - [PoliciesAdminContainerRequestPatch](docs/PoliciesAdminContainerRequestPatch.md) + - [PoliciesAdminContainerResponseMixin](docs/PoliciesAdminContainerResponseMixin.md) + - [PoliciesDesktop](docs/PoliciesDesktop.md) + - [PoliciesDesktopList](docs/PoliciesDesktopList.md) + - [PoliciesDesktopListEmbedded](docs/PoliciesDesktopListEmbedded.md) + - [PoliciesDesktopRequest](docs/PoliciesDesktopRequest.md) + - [PoliciesDesktopRequestPatch](docs/PoliciesDesktopRequestPatch.md) + - [PoliciesDesktopResponseMixin](docs/PoliciesDesktopResponseMixin.md) + - [PoliciesDhcpBoot](docs/PoliciesDhcpBoot.md) + - [PoliciesDhcpBootList](docs/PoliciesDhcpBootList.md) + - [PoliciesDhcpBootListEmbedded](docs/PoliciesDhcpBootListEmbedded.md) + - [PoliciesDhcpBootRequest](docs/PoliciesDhcpBootRequest.md) + - [PoliciesDhcpBootRequestPatch](docs/PoliciesDhcpBootRequestPatch.md) + - [PoliciesDhcpBootResponseMixin](docs/PoliciesDhcpBootResponseMixin.md) + - [PoliciesDhcpDns](docs/PoliciesDhcpDns.md) + - [PoliciesDhcpDnsList](docs/PoliciesDhcpDnsList.md) + - [PoliciesDhcpDnsListEmbedded](docs/PoliciesDhcpDnsListEmbedded.md) + - [PoliciesDhcpDnsRequest](docs/PoliciesDhcpDnsRequest.md) + - [PoliciesDhcpDnsRequestPatch](docs/PoliciesDhcpDnsRequestPatch.md) + - [PoliciesDhcpDnsResponseMixin](docs/PoliciesDhcpDnsResponseMixin.md) + - [PoliciesDhcpDnsupdate](docs/PoliciesDhcpDnsupdate.md) + - [PoliciesDhcpDnsupdateList](docs/PoliciesDhcpDnsupdateList.md) + - [PoliciesDhcpDnsupdateListEmbedded](docs/PoliciesDhcpDnsupdateListEmbedded.md) + - [PoliciesDhcpDnsupdateRequest](docs/PoliciesDhcpDnsupdateRequest.md) + - [PoliciesDhcpDnsupdateRequestPatch](docs/PoliciesDhcpDnsupdateRequestPatch.md) + - [PoliciesDhcpDnsupdateResponseMixin](docs/PoliciesDhcpDnsupdateResponseMixin.md) + - [PoliciesDhcpLeasetime](docs/PoliciesDhcpLeasetime.md) + - [PoliciesDhcpLeasetimeList](docs/PoliciesDhcpLeasetimeList.md) + - [PoliciesDhcpLeasetimeListEmbedded](docs/PoliciesDhcpLeasetimeListEmbedded.md) + - [PoliciesDhcpLeasetimeRequest](docs/PoliciesDhcpLeasetimeRequest.md) + - [PoliciesDhcpLeasetimeRequestPatch](docs/PoliciesDhcpLeasetimeRequestPatch.md) + - [PoliciesDhcpLeasetimeResponseMixin](docs/PoliciesDhcpLeasetimeResponseMixin.md) + - [PoliciesDhcpNetbios](docs/PoliciesDhcpNetbios.md) + - [PoliciesDhcpNetbiosList](docs/PoliciesDhcpNetbiosList.md) + - [PoliciesDhcpNetbiosListEmbedded](docs/PoliciesDhcpNetbiosListEmbedded.md) + - [PoliciesDhcpNetbiosRequest](docs/PoliciesDhcpNetbiosRequest.md) + - [PoliciesDhcpNetbiosRequestPatch](docs/PoliciesDhcpNetbiosRequestPatch.md) + - [PoliciesDhcpNetbiosResponseMixin](docs/PoliciesDhcpNetbiosResponseMixin.md) + - [PoliciesDhcpRouting](docs/PoliciesDhcpRouting.md) + - [PoliciesDhcpRoutingList](docs/PoliciesDhcpRoutingList.md) + - [PoliciesDhcpRoutingListEmbedded](docs/PoliciesDhcpRoutingListEmbedded.md) + - [PoliciesDhcpRoutingRequest](docs/PoliciesDhcpRoutingRequest.md) + - [PoliciesDhcpRoutingRequestPatch](docs/PoliciesDhcpRoutingRequestPatch.md) + - [PoliciesDhcpRoutingResponseMixin](docs/PoliciesDhcpRoutingResponseMixin.md) + - [PoliciesDhcpScope](docs/PoliciesDhcpScope.md) + - [PoliciesDhcpScopeList](docs/PoliciesDhcpScopeList.md) + - [PoliciesDhcpScopeListEmbedded](docs/PoliciesDhcpScopeListEmbedded.md) + - [PoliciesDhcpScopeRequest](docs/PoliciesDhcpScopeRequest.md) + - [PoliciesDhcpScopeRequestPatch](docs/PoliciesDhcpScopeRequestPatch.md) + - [PoliciesDhcpScopeResponseMixin](docs/PoliciesDhcpScopeResponseMixin.md) + - [PoliciesDhcpStatements](docs/PoliciesDhcpStatements.md) + - [PoliciesDhcpStatementsList](docs/PoliciesDhcpStatementsList.md) + - [PoliciesDhcpStatementsListEmbedded](docs/PoliciesDhcpStatementsListEmbedded.md) + - [PoliciesDhcpStatementsRequest](docs/PoliciesDhcpStatementsRequest.md) + - [PoliciesDhcpStatementsRequestPatch](docs/PoliciesDhcpStatementsRequestPatch.md) + - [PoliciesDhcpStatementsResponseMixin](docs/PoliciesDhcpStatementsResponseMixin.md) + - [PoliciesLdapserver](docs/PoliciesLdapserver.md) + - [PoliciesLdapserverList](docs/PoliciesLdapserverList.md) + - [PoliciesLdapserverListEmbedded](docs/PoliciesLdapserverListEmbedded.md) + - [PoliciesLdapserverRequest](docs/PoliciesLdapserverRequest.md) + - [PoliciesLdapserverRequestPatch](docs/PoliciesLdapserverRequestPatch.md) + - [PoliciesLdapserverResponseMixin](docs/PoliciesLdapserverResponseMixin.md) + - [PoliciesMaintenance](docs/PoliciesMaintenance.md) + - [PoliciesMaintenanceList](docs/PoliciesMaintenanceList.md) + - [PoliciesMaintenanceListEmbedded](docs/PoliciesMaintenanceListEmbedded.md) + - [PoliciesMaintenanceRequest](docs/PoliciesMaintenanceRequest.md) + - [PoliciesMaintenanceRequestPatch](docs/PoliciesMaintenanceRequestPatch.md) + - [PoliciesMaintenanceResponseMixin](docs/PoliciesMaintenanceResponseMixin.md) + - [PoliciesMasterpackages](docs/PoliciesMasterpackages.md) + - [PoliciesMasterpackagesList](docs/PoliciesMasterpackagesList.md) + - [PoliciesMasterpackagesListEmbedded](docs/PoliciesMasterpackagesListEmbedded.md) + - [PoliciesMasterpackagesRequest](docs/PoliciesMasterpackagesRequest.md) + - [PoliciesMasterpackagesRequestPatch](docs/PoliciesMasterpackagesRequestPatch.md) + - [PoliciesMasterpackagesResponseMixin](docs/PoliciesMasterpackagesResponseMixin.md) + - [PoliciesMemberpackages](docs/PoliciesMemberpackages.md) + - [PoliciesMemberpackagesList](docs/PoliciesMemberpackagesList.md) + - [PoliciesMemberpackagesListEmbedded](docs/PoliciesMemberpackagesListEmbedded.md) + - [PoliciesMemberpackagesRequest](docs/PoliciesMemberpackagesRequest.md) + - [PoliciesMemberpackagesRequestPatch](docs/PoliciesMemberpackagesRequestPatch.md) + - [PoliciesMemberpackagesResponseMixin](docs/PoliciesMemberpackagesResponseMixin.md) + - [PoliciesNfsmounts](docs/PoliciesNfsmounts.md) + - [PoliciesNfsmountsList](docs/PoliciesNfsmountsList.md) + - [PoliciesNfsmountsListEmbedded](docs/PoliciesNfsmountsListEmbedded.md) + - [PoliciesNfsmountsRequest](docs/PoliciesNfsmountsRequest.md) + - [PoliciesNfsmountsRequestPatch](docs/PoliciesNfsmountsRequestPatch.md) + - [PoliciesNfsmountsResponseMixin](docs/PoliciesNfsmountsResponseMixin.md) + - [PoliciesPolicy](docs/PoliciesPolicy.md) + - [PoliciesPolicyList](docs/PoliciesPolicyList.md) + - [PoliciesPolicyListEmbedded](docs/PoliciesPolicyListEmbedded.md) + - [PoliciesPolicyRequest](docs/PoliciesPolicyRequest.md) + - [PoliciesPolicyRequestPatch](docs/PoliciesPolicyRequestPatch.md) + - [PoliciesPolicyResponseMixin](docs/PoliciesPolicyResponseMixin.md) + - [PoliciesPrintserver](docs/PoliciesPrintserver.md) + - [PoliciesPrintserverList](docs/PoliciesPrintserverList.md) + - [PoliciesPrintserverListEmbedded](docs/PoliciesPrintserverListEmbedded.md) + - [PoliciesPrintserverRequest](docs/PoliciesPrintserverRequest.md) + - [PoliciesPrintserverRequestPatch](docs/PoliciesPrintserverRequestPatch.md) + - [PoliciesPrintserverResponseMixin](docs/PoliciesPrintserverResponseMixin.md) + - [PoliciesPwhistory](docs/PoliciesPwhistory.md) + - [PoliciesPwhistoryList](docs/PoliciesPwhistoryList.md) + - [PoliciesPwhistoryListEmbedded](docs/PoliciesPwhistoryListEmbedded.md) + - [PoliciesPwhistoryRequest](docs/PoliciesPwhistoryRequest.md) + - [PoliciesPwhistoryRequestPatch](docs/PoliciesPwhistoryRequestPatch.md) + - [PoliciesPwhistoryResponseMixin](docs/PoliciesPwhistoryResponseMixin.md) + - [PoliciesRegistry](docs/PoliciesRegistry.md) + - [PoliciesRegistryList](docs/PoliciesRegistryList.md) + - [PoliciesRegistryListEmbedded](docs/PoliciesRegistryListEmbedded.md) + - [PoliciesRegistryRequest](docs/PoliciesRegistryRequest.md) + - [PoliciesRegistryRequestPatch](docs/PoliciesRegistryRequestPatch.md) + - [PoliciesRegistryResponseMixin](docs/PoliciesRegistryResponseMixin.md) + - [PoliciesRelease](docs/PoliciesRelease.md) + - [PoliciesReleaseList](docs/PoliciesReleaseList.md) + - [PoliciesReleaseListEmbedded](docs/PoliciesReleaseListEmbedded.md) + - [PoliciesReleaseRequest](docs/PoliciesReleaseRequest.md) + - [PoliciesReleaseRequestPatch](docs/PoliciesReleaseRequestPatch.md) + - [PoliciesReleaseResponseMixin](docs/PoliciesReleaseResponseMixin.md) + - [PoliciesRepositoryserver](docs/PoliciesRepositoryserver.md) + - [PoliciesRepositoryserverList](docs/PoliciesRepositoryserverList.md) + - [PoliciesRepositoryserverListEmbedded](docs/PoliciesRepositoryserverListEmbedded.md) + - [PoliciesRepositoryserverRequest](docs/PoliciesRepositoryserverRequest.md) + - [PoliciesRepositoryserverRequestPatch](docs/PoliciesRepositoryserverRequestPatch.md) + - [PoliciesRepositoryserverResponseMixin](docs/PoliciesRepositoryserverResponseMixin.md) + - [PoliciesRepositorysync](docs/PoliciesRepositorysync.md) + - [PoliciesRepositorysyncList](docs/PoliciesRepositorysyncList.md) + - [PoliciesRepositorysyncListEmbedded](docs/PoliciesRepositorysyncListEmbedded.md) + - [PoliciesRepositorysyncRequest](docs/PoliciesRepositorysyncRequest.md) + - [PoliciesRepositorysyncRequestPatch](docs/PoliciesRepositorysyncRequestPatch.md) + - [PoliciesRepositorysyncResponseMixin](docs/PoliciesRepositorysyncResponseMixin.md) + - [PoliciesShareUserquota](docs/PoliciesShareUserquota.md) + - [PoliciesShareUserquotaList](docs/PoliciesShareUserquotaList.md) + - [PoliciesShareUserquotaListEmbedded](docs/PoliciesShareUserquotaListEmbedded.md) + - [PoliciesShareUserquotaRequest](docs/PoliciesShareUserquotaRequest.md) + - [PoliciesShareUserquotaRequestPatch](docs/PoliciesShareUserquotaRequestPatch.md) + - [PoliciesShareUserquotaResponseMixin](docs/PoliciesShareUserquotaResponseMixin.md) + - [PoliciesSlavepackages](docs/PoliciesSlavepackages.md) + - [PoliciesSlavepackagesList](docs/PoliciesSlavepackagesList.md) + - [PoliciesSlavepackagesListEmbedded](docs/PoliciesSlavepackagesListEmbedded.md) + - [PoliciesSlavepackagesRequest](docs/PoliciesSlavepackagesRequest.md) + - [PoliciesSlavepackagesRequestPatch](docs/PoliciesSlavepackagesRequestPatch.md) + - [PoliciesSlavepackagesResponseMixin](docs/PoliciesSlavepackagesResponseMixin.md) + - [PoliciesUmc](docs/PoliciesUmc.md) + - [PoliciesUmcList](docs/PoliciesUmcList.md) + - [PoliciesUmcListEmbedded](docs/PoliciesUmcListEmbedded.md) + - [PoliciesUmcRequest](docs/PoliciesUmcRequest.md) + - [PoliciesUmcRequestPatch](docs/PoliciesUmcRequestPatch.md) + - [PoliciesUmcResponseMixin](docs/PoliciesUmcResponseMixin.md) + - [PortalsAll](docs/PortalsAll.md) + - [PortalsAllList](docs/PortalsAllList.md) + - [PortalsAllListEmbedded](docs/PortalsAllListEmbedded.md) + - [PortalsAllRequest](docs/PortalsAllRequest.md) + - [PortalsAllRequestPatch](docs/PortalsAllRequestPatch.md) + - [PortalsAllResponseMixin](docs/PortalsAllResponseMixin.md) + - [PortalsAnnouncement](docs/PortalsAnnouncement.md) + - [PortalsAnnouncementList](docs/PortalsAnnouncementList.md) + - [PortalsAnnouncementListEmbedded](docs/PortalsAnnouncementListEmbedded.md) + - [PortalsAnnouncementRequest](docs/PortalsAnnouncementRequest.md) + - [PortalsAnnouncementRequestPatch](docs/PortalsAnnouncementRequestPatch.md) + - [PortalsAnnouncementResponseMixin](docs/PortalsAnnouncementResponseMixin.md) + - [PortalsCategory](docs/PortalsCategory.md) + - [PortalsCategoryList](docs/PortalsCategoryList.md) + - [PortalsCategoryListEmbedded](docs/PortalsCategoryListEmbedded.md) + - [PortalsCategoryRequest](docs/PortalsCategoryRequest.md) + - [PortalsCategoryRequestPatch](docs/PortalsCategoryRequestPatch.md) + - [PortalsCategoryResponseMixin](docs/PortalsCategoryResponseMixin.md) + - [PortalsEntry](docs/PortalsEntry.md) + - [PortalsEntryList](docs/PortalsEntryList.md) + - [PortalsEntryListEmbedded](docs/PortalsEntryListEmbedded.md) + - [PortalsEntryRequest](docs/PortalsEntryRequest.md) + - [PortalsEntryRequestPatch](docs/PortalsEntryRequestPatch.md) + - [PortalsEntryResponseMixin](docs/PortalsEntryResponseMixin.md) + - [PortalsFolder](docs/PortalsFolder.md) + - [PortalsFolderList](docs/PortalsFolderList.md) + - [PortalsFolderListEmbedded](docs/PortalsFolderListEmbedded.md) + - [PortalsFolderRequest](docs/PortalsFolderRequest.md) + - [PortalsFolderRequestPatch](docs/PortalsFolderRequestPatch.md) + - [PortalsFolderResponseMixin](docs/PortalsFolderResponseMixin.md) + - [PortalsPortal](docs/PortalsPortal.md) + - [PortalsPortalList](docs/PortalsPortalList.md) + - [PortalsPortalListEmbedded](docs/PortalsPortalListEmbedded.md) + - [PortalsPortalRequest](docs/PortalsPortalRequest.md) + - [PortalsPortalRequestPatch](docs/PortalsPortalRequestPatch.md) + - [PortalsPortalResponseMixin](docs/PortalsPortalResponseMixin.md) + - [SamlIdpconfig](docs/SamlIdpconfig.md) + - [SamlIdpconfigList](docs/SamlIdpconfigList.md) + - [SamlIdpconfigListEmbedded](docs/SamlIdpconfigListEmbedded.md) + - [SamlIdpconfigRequest](docs/SamlIdpconfigRequest.md) + - [SamlIdpconfigRequestPatch](docs/SamlIdpconfigRequestPatch.md) + - [SamlIdpconfigResponseMixin](docs/SamlIdpconfigResponseMixin.md) + - [SamlServiceprovider](docs/SamlServiceprovider.md) + - [SamlServiceproviderList](docs/SamlServiceproviderList.md) + - [SamlServiceproviderListEmbedded](docs/SamlServiceproviderListEmbedded.md) + - [SamlServiceproviderRequest](docs/SamlServiceproviderRequest.md) + - [SamlServiceproviderRequestPatch](docs/SamlServiceproviderRequestPatch.md) + - [SamlServiceproviderResponseMixin](docs/SamlServiceproviderResponseMixin.md) + - [SettingsCn](docs/SettingsCn.md) + - [SettingsCnList](docs/SettingsCnList.md) + - [SettingsCnListEmbedded](docs/SettingsCnListEmbedded.md) + - [SettingsCnPolicies](docs/SettingsCnPolicies.md) + - [SettingsCnRequest](docs/SettingsCnRequest.md) + - [SettingsCnRequestPatch](docs/SettingsCnRequestPatch.md) + - [SettingsCnResponseMixin](docs/SettingsCnResponseMixin.md) + - [SettingsData](docs/SettingsData.md) + - [SettingsDataList](docs/SettingsDataList.md) + - [SettingsDataListEmbedded](docs/SettingsDataListEmbedded.md) + - [SettingsDataRequest](docs/SettingsDataRequest.md) + - [SettingsDataRequestPatch](docs/SettingsDataRequestPatch.md) + - [SettingsDataResponseMixin](docs/SettingsDataResponseMixin.md) + - [SettingsDefault](docs/SettingsDefault.md) + - [SettingsDefaultList](docs/SettingsDefaultList.md) + - [SettingsDefaultListEmbedded](docs/SettingsDefaultListEmbedded.md) + - [SettingsDefaultRequest](docs/SettingsDefaultRequest.md) + - [SettingsDefaultRequestPatch](docs/SettingsDefaultRequestPatch.md) + - [SettingsDefaultResponseMixin](docs/SettingsDefaultResponseMixin.md) + - [SettingsDirectory](docs/SettingsDirectory.md) + - [SettingsDirectoryList](docs/SettingsDirectoryList.md) + - [SettingsDirectoryListEmbedded](docs/SettingsDirectoryListEmbedded.md) + - [SettingsDirectoryRequest](docs/SettingsDirectoryRequest.md) + - [SettingsDirectoryRequestPatch](docs/SettingsDirectoryRequestPatch.md) + - [SettingsDirectoryResponseMixin](docs/SettingsDirectoryResponseMixin.md) + - [SettingsExtendedAttribute](docs/SettingsExtendedAttribute.md) + - [SettingsExtendedAttributeList](docs/SettingsExtendedAttributeList.md) + - [SettingsExtendedAttributeListEmbedded](docs/SettingsExtendedAttributeListEmbedded.md) + - [SettingsExtendedAttributeRequest](docs/SettingsExtendedAttributeRequest.md) + - [SettingsExtendedAttributeRequestPatch](docs/SettingsExtendedAttributeRequestPatch.md) + - [SettingsExtendedAttributeResponseMixin](docs/SettingsExtendedAttributeResponseMixin.md) + - [SettingsExtendedOptions](docs/SettingsExtendedOptions.md) + - [SettingsExtendedOptionsList](docs/SettingsExtendedOptionsList.md) + - [SettingsExtendedOptionsListEmbedded](docs/SettingsExtendedOptionsListEmbedded.md) + - [SettingsExtendedOptionsRequest](docs/SettingsExtendedOptionsRequest.md) + - [SettingsExtendedOptionsRequestPatch](docs/SettingsExtendedOptionsRequestPatch.md) + - [SettingsExtendedOptionsResponseMixin](docs/SettingsExtendedOptionsResponseMixin.md) + - [SettingsLdapacl](docs/SettingsLdapacl.md) + - [SettingsLdapaclList](docs/SettingsLdapaclList.md) + - [SettingsLdapaclListEmbedded](docs/SettingsLdapaclListEmbedded.md) + - [SettingsLdapaclRequest](docs/SettingsLdapaclRequest.md) + - [SettingsLdapaclRequestPatch](docs/SettingsLdapaclRequestPatch.md) + - [SettingsLdapaclResponseMixin](docs/SettingsLdapaclResponseMixin.md) + - [SettingsLdapschema](docs/SettingsLdapschema.md) + - [SettingsLdapschemaList](docs/SettingsLdapschemaList.md) + - [SettingsLdapschemaListEmbedded](docs/SettingsLdapschemaListEmbedded.md) + - [SettingsLdapschemaRequest](docs/SettingsLdapschemaRequest.md) + - [SettingsLdapschemaRequestPatch](docs/SettingsLdapschemaRequestPatch.md) + - [SettingsLdapschemaResponseMixin](docs/SettingsLdapschemaResponseMixin.md) + - [SettingsLicense](docs/SettingsLicense.md) + - [SettingsLicenseList](docs/SettingsLicenseList.md) + - [SettingsLicenseListEmbedded](docs/SettingsLicenseListEmbedded.md) + - [SettingsLicenseOptions](docs/SettingsLicenseOptions.md) + - [SettingsLicenseRequest](docs/SettingsLicenseRequest.md) + - [SettingsLicenseRequestPatch](docs/SettingsLicenseRequestPatch.md) + - [SettingsLicenseResponseMixin](docs/SettingsLicenseResponseMixin.md) + - [SettingsLock](docs/SettingsLock.md) + - [SettingsLockList](docs/SettingsLockList.md) + - [SettingsLockListEmbedded](docs/SettingsLockListEmbedded.md) + - [SettingsLockRequest](docs/SettingsLockRequest.md) + - [SettingsLockRequestPatch](docs/SettingsLockRequestPatch.md) + - [SettingsLockResponseMixin](docs/SettingsLockResponseMixin.md) + - [SettingsMsprintconnectionpolicy](docs/SettingsMsprintconnectionpolicy.md) + - [SettingsMsprintconnectionpolicyList](docs/SettingsMsprintconnectionpolicyList.md) + - [SettingsMsprintconnectionpolicyListEmbedded](docs/SettingsMsprintconnectionpolicyListEmbedded.md) + - [SettingsMsprintconnectionpolicyPolicies](docs/SettingsMsprintconnectionpolicyPolicies.md) + - [SettingsMsprintconnectionpolicyRequest](docs/SettingsMsprintconnectionpolicyRequest.md) + - [SettingsMsprintconnectionpolicyRequestPatch](docs/SettingsMsprintconnectionpolicyRequestPatch.md) + - [SettingsMsprintconnectionpolicyResponseMixin](docs/SettingsMsprintconnectionpolicyResponseMixin.md) + - [SettingsMswmifilter](docs/SettingsMswmifilter.md) + - [SettingsMswmifilterList](docs/SettingsMswmifilterList.md) + - [SettingsMswmifilterListEmbedded](docs/SettingsMswmifilterListEmbedded.md) + - [SettingsMswmifilterPolicies](docs/SettingsMswmifilterPolicies.md) + - [SettingsMswmifilterRequest](docs/SettingsMswmifilterRequest.md) + - [SettingsMswmifilterRequestPatch](docs/SettingsMswmifilterRequestPatch.md) + - [SettingsMswmifilterResponseMixin](docs/SettingsMswmifilterResponseMixin.md) + - [SettingsPackages](docs/SettingsPackages.md) + - [SettingsPackagesList](docs/SettingsPackagesList.md) + - [SettingsPackagesListEmbedded](docs/SettingsPackagesListEmbedded.md) + - [SettingsPackagesRequest](docs/SettingsPackagesRequest.md) + - [SettingsPackagesRequestPatch](docs/SettingsPackagesRequestPatch.md) + - [SettingsPackagesResponseMixin](docs/SettingsPackagesResponseMixin.md) + - [SettingsPortal](docs/SettingsPortal.md) + - [SettingsPortalAll](docs/SettingsPortalAll.md) + - [SettingsPortalAllList](docs/SettingsPortalAllList.md) + - [SettingsPortalAllListEmbedded](docs/SettingsPortalAllListEmbedded.md) + - [SettingsPortalAllRequest](docs/SettingsPortalAllRequest.md) + - [SettingsPortalAllRequestPatch](docs/SettingsPortalAllRequestPatch.md) + - [SettingsPortalAllResponseMixin](docs/SettingsPortalAllResponseMixin.md) + - [SettingsPortalCategory](docs/SettingsPortalCategory.md) + - [SettingsPortalCategoryList](docs/SettingsPortalCategoryList.md) + - [SettingsPortalCategoryListEmbedded](docs/SettingsPortalCategoryListEmbedded.md) + - [SettingsPortalCategoryRequest](docs/SettingsPortalCategoryRequest.md) + - [SettingsPortalCategoryRequestPatch](docs/SettingsPortalCategoryRequestPatch.md) + - [SettingsPortalCategoryResponseMixin](docs/SettingsPortalCategoryResponseMixin.md) + - [SettingsPortalEntry](docs/SettingsPortalEntry.md) + - [SettingsPortalEntryList](docs/SettingsPortalEntryList.md) + - [SettingsPortalEntryListEmbedded](docs/SettingsPortalEntryListEmbedded.md) + - [SettingsPortalEntryRequest](docs/SettingsPortalEntryRequest.md) + - [SettingsPortalEntryRequestPatch](docs/SettingsPortalEntryRequestPatch.md) + - [SettingsPortalEntryResponseMixin](docs/SettingsPortalEntryResponseMixin.md) + - [SettingsPortalList](docs/SettingsPortalList.md) + - [SettingsPortalListEmbedded](docs/SettingsPortalListEmbedded.md) + - [SettingsPortalRequest](docs/SettingsPortalRequest.md) + - [SettingsPortalRequestPatch](docs/SettingsPortalRequestPatch.md) + - [SettingsPortalResponseMixin](docs/SettingsPortalResponseMixin.md) + - [SettingsPrintermodel](docs/SettingsPrintermodel.md) + - [SettingsPrintermodelList](docs/SettingsPrintermodelList.md) + - [SettingsPrintermodelListEmbedded](docs/SettingsPrintermodelListEmbedded.md) + - [SettingsPrintermodelRequest](docs/SettingsPrintermodelRequest.md) + - [SettingsPrintermodelRequestPatch](docs/SettingsPrintermodelRequestPatch.md) + - [SettingsPrintermodelResponseMixin](docs/SettingsPrintermodelResponseMixin.md) + - [SettingsPrinteruri](docs/SettingsPrinteruri.md) + - [SettingsPrinteruriList](docs/SettingsPrinteruriList.md) + - [SettingsPrinteruriListEmbedded](docs/SettingsPrinteruriListEmbedded.md) + - [SettingsPrinteruriRequest](docs/SettingsPrinteruriRequest.md) + - [SettingsPrinteruriRequestPatch](docs/SettingsPrinteruriRequestPatch.md) + - [SettingsPrinteruriResponseMixin](docs/SettingsPrinteruriResponseMixin.md) + - [SettingsProhibitedUsername](docs/SettingsProhibitedUsername.md) + - [SettingsProhibitedUsernameList](docs/SettingsProhibitedUsernameList.md) + - [SettingsProhibitedUsernameListEmbedded](docs/SettingsProhibitedUsernameListEmbedded.md) + - [SettingsProhibitedUsernameRequest](docs/SettingsProhibitedUsernameRequest.md) + - [SettingsProhibitedUsernameRequestPatch](docs/SettingsProhibitedUsernameRequestPatch.md) + - [SettingsProhibitedUsernameResponseMixin](docs/SettingsProhibitedUsernameResponseMixin.md) + - [SettingsSambaconfig](docs/SettingsSambaconfig.md) + - [SettingsSambaconfigList](docs/SettingsSambaconfigList.md) + - [SettingsSambaconfigListEmbedded](docs/SettingsSambaconfigListEmbedded.md) + - [SettingsSambaconfigRequest](docs/SettingsSambaconfigRequest.md) + - [SettingsSambaconfigRequestPatch](docs/SettingsSambaconfigRequestPatch.md) + - [SettingsSambaconfigResponseMixin](docs/SettingsSambaconfigResponseMixin.md) + - [SettingsSambadomain](docs/SettingsSambadomain.md) + - [SettingsSambadomainList](docs/SettingsSambadomainList.md) + - [SettingsSambadomainListEmbedded](docs/SettingsSambadomainListEmbedded.md) + - [SettingsSambadomainRequest](docs/SettingsSambadomainRequest.md) + - [SettingsSambadomainRequestPatch](docs/SettingsSambadomainRequestPatch.md) + - [SettingsSambadomainResponseMixin](docs/SettingsSambadomainResponseMixin.md) + - [SettingsService](docs/SettingsService.md) + - [SettingsServiceList](docs/SettingsServiceList.md) + - [SettingsServiceListEmbedded](docs/SettingsServiceListEmbedded.md) + - [SettingsServiceRequest](docs/SettingsServiceRequest.md) + - [SettingsServiceRequestPatch](docs/SettingsServiceRequestPatch.md) + - [SettingsServiceResponseMixin](docs/SettingsServiceResponseMixin.md) + - [SettingsSettings](docs/SettingsSettings.md) + - [SettingsSettingsList](docs/SettingsSettingsList.md) + - [SettingsSettingsListEmbedded](docs/SettingsSettingsListEmbedded.md) + - [SettingsSettingsRequest](docs/SettingsSettingsRequest.md) + - [SettingsSettingsRequestPatch](docs/SettingsSettingsRequestPatch.md) + - [SettingsSettingsResponseMixin](docs/SettingsSettingsResponseMixin.md) + - [SettingsSyntax](docs/SettingsSyntax.md) + - [SettingsSyntaxList](docs/SettingsSyntaxList.md) + - [SettingsSyntaxListEmbedded](docs/SettingsSyntaxListEmbedded.md) + - [SettingsSyntaxRequest](docs/SettingsSyntaxRequest.md) + - [SettingsSyntaxRequestPatch](docs/SettingsSyntaxRequestPatch.md) + - [SettingsSyntaxResponseMixin](docs/SettingsSyntaxResponseMixin.md) + - [SettingsUdmHook](docs/SettingsUdmHook.md) + - [SettingsUdmHookList](docs/SettingsUdmHookList.md) + - [SettingsUdmHookListEmbedded](docs/SettingsUdmHookListEmbedded.md) + - [SettingsUdmHookRequest](docs/SettingsUdmHookRequest.md) + - [SettingsUdmHookRequestPatch](docs/SettingsUdmHookRequestPatch.md) + - [SettingsUdmHookResponseMixin](docs/SettingsUdmHookResponseMixin.md) + - [SettingsUdmModule](docs/SettingsUdmModule.md) + - [SettingsUdmModuleList](docs/SettingsUdmModuleList.md) + - [SettingsUdmModuleListEmbedded](docs/SettingsUdmModuleListEmbedded.md) + - [SettingsUdmModuleRequest](docs/SettingsUdmModuleRequest.md) + - [SettingsUdmModuleRequestPatch](docs/SettingsUdmModuleRequestPatch.md) + - [SettingsUdmModuleResponseMixin](docs/SettingsUdmModuleResponseMixin.md) + - [SettingsUdmSyntax](docs/SettingsUdmSyntax.md) + - [SettingsUdmSyntaxList](docs/SettingsUdmSyntaxList.md) + - [SettingsUdmSyntaxListEmbedded](docs/SettingsUdmSyntaxListEmbedded.md) + - [SettingsUdmSyntaxRequest](docs/SettingsUdmSyntaxRequest.md) + - [SettingsUdmSyntaxRequestPatch](docs/SettingsUdmSyntaxRequestPatch.md) + - [SettingsUdmSyntaxResponseMixin](docs/SettingsUdmSyntaxResponseMixin.md) + - [SettingsUmcOperationset](docs/SettingsUmcOperationset.md) + - [SettingsUmcOperationsetList](docs/SettingsUmcOperationsetList.md) + - [SettingsUmcOperationsetListEmbedded](docs/SettingsUmcOperationsetListEmbedded.md) + - [SettingsUmcOperationsetRequest](docs/SettingsUmcOperationsetRequest.md) + - [SettingsUmcOperationsetRequestPatch](docs/SettingsUmcOperationsetRequestPatch.md) + - [SettingsUmcOperationsetResponseMixin](docs/SettingsUmcOperationsetResponseMixin.md) + - [SettingsUsertemplate](docs/SettingsUsertemplate.md) + - [SettingsUsertemplateList](docs/SettingsUsertemplateList.md) + - [SettingsUsertemplateListEmbedded](docs/SettingsUsertemplateListEmbedded.md) + - [SettingsUsertemplateRequest](docs/SettingsUsertemplateRequest.md) + - [SettingsUsertemplateRequestPatch](docs/SettingsUsertemplateRequestPatch.md) + - [SettingsUsertemplateResponseMixin](docs/SettingsUsertemplateResponseMixin.md) + - [SharesPrint](docs/SharesPrint.md) + - [SharesPrintList](docs/SharesPrintList.md) + - [SharesPrintListEmbedded](docs/SharesPrintListEmbedded.md) + - [SharesPrintRequest](docs/SharesPrintRequest.md) + - [SharesPrintRequestPatch](docs/SharesPrintRequestPatch.md) + - [SharesPrintResponseMixin](docs/SharesPrintResponseMixin.md) + - [SharesPrinter](docs/SharesPrinter.md) + - [SharesPrinterList](docs/SharesPrinterList.md) + - [SharesPrinterListEmbedded](docs/SharesPrinterListEmbedded.md) + - [SharesPrinterRequest](docs/SharesPrinterRequest.md) + - [SharesPrinterRequestPatch](docs/SharesPrinterRequestPatch.md) + - [SharesPrinterResponseMixin](docs/SharesPrinterResponseMixin.md) + - [SharesPrintergroup](docs/SharesPrintergroup.md) + - [SharesPrintergroupList](docs/SharesPrintergroupList.md) + - [SharesPrintergroupListEmbedded](docs/SharesPrintergroupListEmbedded.md) + - [SharesPrintergroupRequest](docs/SharesPrintergroupRequest.md) + - [SharesPrintergroupRequestPatch](docs/SharesPrintergroupRequestPatch.md) + - [SharesPrintergroupResponseMixin](docs/SharesPrintergroupResponseMixin.md) + - [SharesShare](docs/SharesShare.md) + - [SharesShareList](docs/SharesShareList.md) + - [SharesShareListEmbedded](docs/SharesShareListEmbedded.md) + - [SharesShareOptions](docs/SharesShareOptions.md) + - [SharesSharePolicies](docs/SharesSharePolicies.md) + - [SharesShareRequest](docs/SharesShareRequest.md) + - [SharesShareRequestPatch](docs/SharesShareRequestPatch.md) + - [SharesShareResponseMixin](docs/SharesShareResponseMixin.md) + - [UsersContact](docs/UsersContact.md) + - [UsersContactList](docs/UsersContactList.md) + - [UsersContactListEmbedded](docs/UsersContactListEmbedded.md) + - [UsersContactRequest](docs/UsersContactRequest.md) + - [UsersContactRequestPatch](docs/UsersContactRequestPatch.md) + - [UsersContactResponseMixin](docs/UsersContactResponseMixin.md) + - [UsersLdap](docs/UsersLdap.md) + - [UsersLdapList](docs/UsersLdapList.md) + - [UsersLdapListEmbedded](docs/UsersLdapListEmbedded.md) + - [UsersLdapOptions](docs/UsersLdapOptions.md) + - [UsersLdapPolicies](docs/UsersLdapPolicies.md) + - [UsersLdapRequest](docs/UsersLdapRequest.md) + - [UsersLdapRequestPatch](docs/UsersLdapRequestPatch.md) + - [UsersLdapResponseMixin](docs/UsersLdapResponseMixin.md) + - [UsersPasswd](docs/UsersPasswd.md) + - [UsersPasswdList](docs/UsersPasswdList.md) + - [UsersPasswdListEmbedded](docs/UsersPasswdListEmbedded.md) + - [UsersPasswdRequest](docs/UsersPasswdRequest.md) + - [UsersPasswdRequestPatch](docs/UsersPasswdRequestPatch.md) + - [UsersPasswdResponseMixin](docs/UsersPasswdResponseMixin.md) + - [UsersSelf](docs/UsersSelf.md) + - [UsersSelfList](docs/UsersSelfList.md) + - [UsersSelfListEmbedded](docs/UsersSelfListEmbedded.md) + - [UsersSelfOptions](docs/UsersSelfOptions.md) + - [UsersSelfRequest](docs/UsersSelfRequest.md) + - [UsersSelfRequestPatch](docs/UsersSelfRequestPatch.md) + - [UsersSelfResponseMixin](docs/UsersSelfResponseMixin.md) + - [UsersUser](docs/UsersUser.md) + - [UsersUserList](docs/UsersUserList.md) + - [UsersUserListEmbedded](docs/UsersUserListEmbedded.md) + - [UsersUserOptions](docs/UsersUserOptions.md) + - [UsersUserPolicies](docs/UsersUserPolicies.md) + - [UsersUserRequest](docs/UsersUserRequest.md) + - [UsersUserRequestPatch](docs/UsersUserRequestPatch.md) + - [UsersUserResponseMixin](docs/UsersUserResponseMixin.md) + - [UvmmCloudconnection](docs/UvmmCloudconnection.md) + - [UvmmCloudconnectionList](docs/UvmmCloudconnectionList.md) + - [UvmmCloudconnectionListEmbedded](docs/UvmmCloudconnectionListEmbedded.md) + - [UvmmCloudconnectionRequest](docs/UvmmCloudconnectionRequest.md) + - [UvmmCloudconnectionRequestPatch](docs/UvmmCloudconnectionRequestPatch.md) + - [UvmmCloudconnectionResponseMixin](docs/UvmmCloudconnectionResponseMixin.md) + - [UvmmCloudtype](docs/UvmmCloudtype.md) + - [UvmmCloudtypeList](docs/UvmmCloudtypeList.md) + - [UvmmCloudtypeListEmbedded](docs/UvmmCloudtypeListEmbedded.md) + - [UvmmCloudtypeRequest](docs/UvmmCloudtypeRequest.md) + - [UvmmCloudtypeRequestPatch](docs/UvmmCloudtypeRequestPatch.md) + - [UvmmCloudtypeResponseMixin](docs/UvmmCloudtypeResponseMixin.md) + - [UvmmInfo](docs/UvmmInfo.md) + - [UvmmInfoList](docs/UvmmInfoList.md) + - [UvmmInfoListEmbedded](docs/UvmmInfoListEmbedded.md) + - [UvmmInfoRequest](docs/UvmmInfoRequest.md) + - [UvmmInfoRequestPatch](docs/UvmmInfoRequestPatch.md) + - [UvmmInfoResponseMixin](docs/UvmmInfoResponseMixin.md) + - [UvmmProfile](docs/UvmmProfile.md) + - [UvmmProfileList](docs/UvmmProfileList.md) + - [UvmmProfileListEmbedded](docs/UvmmProfileListEmbedded.md) + - [UvmmProfileRequest](docs/UvmmProfileRequest.md) + - [UvmmProfileRequestPatch](docs/UvmmProfileRequestPatch.md) + - [UvmmProfileResponseMixin](docs/UvmmProfileResponseMixin.md) + + +## Documentation For Authorization + + +## basic + +- **Type**: HTTP basic authentication + + +## Author + + + + diff --git a/docs/AppcenterApp.md b/docs/AppcenterApp.md new file mode 100644 index 0000000..ceae12f --- /dev/null +++ b/docs/AppcenterApp.md @@ -0,0 +1,20 @@ +# AppcenterApp + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**AppcenterAppPolicies**](AppcenterAppPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppcenterAppApi.md b/docs/AppcenterAppApi.md new file mode 100644 index 0000000..136cf05 --- /dev/null +++ b/docs/AppcenterAppApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.AppcenterAppApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_appcenter_app_object**](AppcenterAppApi.md#udm_appcenter_app_object) | **GET** /appcenter/app/{dn} | Get a representation of the App Metadata object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_appcenter_app_object_create**](AppcenterAppApi.md#udm_appcenter_app_object_create) | **POST** /appcenter/app/ | Create a new App Metadata object +[**udm_appcenter_app_object_modify**](AppcenterAppApi.md#udm_appcenter_app_object_modify) | **PUT** /appcenter/app/{dn} | Modify or move an App Metadata object +[**udm_appcenter_app_object_remove**](AppcenterAppApi.md#udm_appcenter_app_object_remove) | **DELETE** /appcenter/app/{dn} | Remove a App Metadata object +[**udm_appcenter_app_object_search**](AppcenterAppApi.md#udm_appcenter_app_object_search) | **GET** /appcenter/app/ | Search for App Metadata objects +[**udm_appcenter_app_object_template**](AppcenterAppApi.md#udm_appcenter_app_object_template) | **GET** /appcenter/app/add | Get a template for creating an App Metadata object (contains all properties and their default values) +[**udm_appcenter_app_object_update**](AppcenterAppApi.md#udm_appcenter_app_object_update) | **PATCH** /appcenter/app/{dn} | Modify an App Metadata object (moving is currently not possible) + + +# **udm_appcenter_app_object** +> AppcenterApp udm_appcenter_app_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the App Metadata object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.AppcenterAppApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the App Metadata object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_appcenter_app_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppcenterAppApi->udm_appcenter_app_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**AppcenterApp**](AppcenterApp.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_appcenter_app_object_create** +> InlineResponse201 udm_appcenter_app_object_create(appcenter_app, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new App Metadata object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.AppcenterAppApi(api_client) + appcenter_app = openapi_client_udm.AppcenterApp() # AppcenterApp | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new App Metadata object + api_response = api_instance.udm_appcenter_app_object_create(appcenter_app, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppcenterAppApi->udm_appcenter_app_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appcenter_app** | [**AppcenterApp**](AppcenterApp.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_appcenter_app_object_modify** +> InlineResponse201 udm_appcenter_app_object_modify(dn, appcenter_app, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an App Metadata object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.AppcenterAppApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +appcenter_app = openapi_client_udm.AppcenterApp() # AppcenterApp | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an App Metadata object + api_response = api_instance.udm_appcenter_app_object_modify(dn, appcenter_app, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppcenterAppApi->udm_appcenter_app_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **appcenter_app** | [**AppcenterApp**](AppcenterApp.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_appcenter_app_object_remove** +> udm_appcenter_app_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a App Metadata object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.AppcenterAppApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a App Metadata object + api_instance.udm_appcenter_app_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling AppcenterAppApi->udm_appcenter_app_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_appcenter_app_object_search** +> AppcenterAppList udm_appcenter_app_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for App Metadata objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.AppcenterAppApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for App Metadata objects + api_response = api_instance.udm_appcenter_app_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppcenterAppApi->udm_appcenter_app_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**AppcenterAppList**](AppcenterAppList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_appcenter_app_object_template** +> AppcenterApp udm_appcenter_app_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an App Metadata object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.AppcenterAppApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an App Metadata object (contains all properties and their default values) + api_response = api_instance.udm_appcenter_app_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppcenterAppApi->udm_appcenter_app_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**AppcenterApp**](AppcenterApp.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new App Metadata. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_appcenter_app_object_update** +> udm_appcenter_app_object_update(dn, appcenter_app, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an App Metadata object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.AppcenterAppApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +appcenter_app = openapi_client_udm.AppcenterApp() # AppcenterApp | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an App Metadata object (moving is currently not possible) + api_instance.udm_appcenter_app_object_update(dn, appcenter_app, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling AppcenterAppApi->udm_appcenter_app_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **appcenter_app** | [**AppcenterApp**](AppcenterApp.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/AppcenterAppList.md b/docs/AppcenterAppList.md new file mode 100644 index 0000000..7f6faf8 --- /dev/null +++ b/docs/AppcenterAppList.md @@ -0,0 +1,11 @@ +# AppcenterAppList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**AppcenterAppListEmbedded**](AppcenterAppListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppcenterAppListEmbedded.md b/docs/AppcenterAppListEmbedded.md new file mode 100644 index 0000000..2200c98 --- /dev/null +++ b/docs/AppcenterAppListEmbedded.md @@ -0,0 +1,11 @@ +# AppcenterAppListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[AppcenterApp]**](AppcenterApp.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppcenterAppPolicies.md b/docs/AppcenterAppPolicies.md new file mode 100644 index 0000000..8daa892 --- /dev/null +++ b/docs/AppcenterAppPolicies.md @@ -0,0 +1,35 @@ +# AppcenterAppPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppcenterAppRequest.md b/docs/AppcenterAppRequest.md new file mode 100644 index 0000000..b233004 --- /dev/null +++ b/docs/AppcenterAppRequest.md @@ -0,0 +1,15 @@ +# AppcenterAppRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**AppcenterAppPolicies**](AppcenterAppPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppcenterAppRequestAllOf.md b/docs/AppcenterAppRequestAllOf.md new file mode 100644 index 0000000..ae4ad32 --- /dev/null +++ b/docs/AppcenterAppRequestAllOf.md @@ -0,0 +1,11 @@ +# AppcenterAppRequestAllOf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppcenterAppRequestPatch.md b/docs/AppcenterAppRequestPatch.md new file mode 100644 index 0000000..1747d0c --- /dev/null +++ b/docs/AppcenterAppRequestPatch.md @@ -0,0 +1,14 @@ +# AppcenterAppRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**AppcenterAppPolicies**](AppcenterAppPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppcenterAppResponseMixin.md b/docs/AppcenterAppResponseMixin.md new file mode 100644 index 0000000..152fe92 --- /dev/null +++ b/docs/AppcenterAppResponseMixin.md @@ -0,0 +1,15 @@ +# AppcenterAppResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersComputer.md b/docs/ComputersComputer.md new file mode 100644 index 0000000..dbae49e --- /dev/null +++ b/docs/ComputersComputer.md @@ -0,0 +1,20 @@ +# ComputersComputer + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersComputerApi.md b/docs/ComputersComputerApi.md new file mode 100644 index 0000000..7115214 --- /dev/null +++ b/docs/ComputersComputerApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.ComputersComputerApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_computer_object**](ComputersComputerApi.md#udm_computers_computer_object) | **GET** /computers/computer/{dn} | Get a representation of the Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_computer_object_search**](ComputersComputerApi.md#udm_computers_computer_object_search) | **GET** /computers/computer/ | Search for Computers objects + + +# **udm_computers_computer_object** +> ComputersComputer udm_computers_computer_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersComputerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_computer_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersComputerApi->udm_computers_computer_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersComputer**](ComputersComputer.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_computer_object_search** +> ComputersComputerList udm_computers_computer_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Computers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersComputerApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Computers objects + api_response = api_instance.udm_computers_computer_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersComputerApi->udm_computers_computer_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersComputerList**](ComputersComputerList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersComputerList.md b/docs/ComputersComputerList.md new file mode 100644 index 0000000..9ee3822 --- /dev/null +++ b/docs/ComputersComputerList.md @@ -0,0 +1,11 @@ +# ComputersComputerList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersComputerListEmbedded**](ComputersComputerListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersComputerListEmbedded.md b/docs/ComputersComputerListEmbedded.md new file mode 100644 index 0000000..1e904ef --- /dev/null +++ b/docs/ComputersComputerListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersComputerListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersComputer]**](ComputersComputer.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersComputerRequest.md b/docs/ComputersComputerRequest.md new file mode 100644 index 0000000..3027eba --- /dev/null +++ b/docs/ComputersComputerRequest.md @@ -0,0 +1,15 @@ +# ComputersComputerRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersComputerRequestPatch.md b/docs/ComputersComputerRequestPatch.md new file mode 100644 index 0000000..4735be5 --- /dev/null +++ b/docs/ComputersComputerRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersComputerRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersComputerResponseMixin.md b/docs/ComputersComputerResponseMixin.md new file mode 100644 index 0000000..729158c --- /dev/null +++ b/docs/ComputersComputerResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersComputerResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerBackup.md b/docs/ComputersDomaincontrollerBackup.md new file mode 100644 index 0000000..5714b10 --- /dev/null +++ b/docs/ComputersDomaincontrollerBackup.md @@ -0,0 +1,20 @@ +# ComputersDomaincontrollerBackup + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerBackupOptions**](ComputersDomaincontrollerBackupOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerBackupPolicies**](ComputersDomaincontrollerBackupPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerBackupApi.md b/docs/ComputersDomaincontrollerBackupApi.md new file mode 100644 index 0000000..df2bc16 --- /dev/null +++ b/docs/ComputersDomaincontrollerBackupApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersDomaincontrollerBackupApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_domaincontroller_backup_object**](ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object) | **GET** /computers/domaincontroller_backup/{dn} | Get a representation of the Backup Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_domaincontroller_backup_object_create**](ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_create) | **POST** /computers/domaincontroller_backup/ | Create a new Backup Directory Node object +[**udm_computers_domaincontroller_backup_object_modify**](ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_modify) | **PUT** /computers/domaincontroller_backup/{dn} | Modify or move an Backup Directory Node object +[**udm_computers_domaincontroller_backup_object_remove**](ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_remove) | **DELETE** /computers/domaincontroller_backup/{dn} | Remove a Backup Directory Nodes object +[**udm_computers_domaincontroller_backup_object_search**](ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_search) | **GET** /computers/domaincontroller_backup/ | Search for Backup Directory Nodes objects +[**udm_computers_domaincontroller_backup_object_template**](ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_template) | **GET** /computers/domaincontroller_backup/add | Get a template for creating an Backup Directory Node object (contains all properties and their default values) +[**udm_computers_domaincontroller_backup_object_update**](ComputersDomaincontrollerBackupApi.md#udm_computers_domaincontroller_backup_object_update) | **PATCH** /computers/domaincontroller_backup/{dn} | Modify an Backup Directory Node object (moving is currently not possible) + + +# **udm_computers_domaincontroller_backup_object** +> ComputersDomaincontrollerBackup udm_computers_domaincontroller_backup_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Backup Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerBackupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Backup Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_domaincontroller_backup_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerBackupApi->udm_computers_domaincontroller_backup_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerBackup**](ComputersDomaincontrollerBackup.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_backup_object_create** +> InlineResponse201 udm_computers_domaincontroller_backup_object_create(computers_domaincontroller_backup, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Backup Directory Node object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerBackupApi(api_client) + computers_domaincontroller_backup = openapi_client_udm.ComputersDomaincontrollerBackup() # ComputersDomaincontrollerBackup | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Backup Directory Node object + api_response = api_instance.udm_computers_domaincontroller_backup_object_create(computers_domaincontroller_backup, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerBackupApi->udm_computers_domaincontroller_backup_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_domaincontroller_backup** | [**ComputersDomaincontrollerBackup**](ComputersDomaincontrollerBackup.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_domaincontroller_backup_object_modify** +> InlineResponse201 udm_computers_domaincontroller_backup_object_modify(dn, computers_domaincontroller_backup, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Backup Directory Node object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerBackupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_domaincontroller_backup = openapi_client_udm.ComputersDomaincontrollerBackup() # ComputersDomaincontrollerBackup | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Backup Directory Node object + api_response = api_instance.udm_computers_domaincontroller_backup_object_modify(dn, computers_domaincontroller_backup, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerBackupApi->udm_computers_domaincontroller_backup_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_domaincontroller_backup** | [**ComputersDomaincontrollerBackup**](ComputersDomaincontrollerBackup.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_backup_object_remove** +> udm_computers_domaincontroller_backup_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Backup Directory Nodes object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerBackupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Backup Directory Nodes object + api_instance.udm_computers_domaincontroller_backup_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerBackupApi->udm_computers_domaincontroller_backup_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_backup_object_search** +> ComputersDomaincontrollerBackupList udm_computers_domaincontroller_backup_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Backup Directory Nodes objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerBackupApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Backup Directory Nodes objects + api_response = api_instance.udm_computers_domaincontroller_backup_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerBackupApi->udm_computers_domaincontroller_backup_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerBackupList**](ComputersDomaincontrollerBackupList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_backup_object_template** +> ComputersDomaincontrollerBackup udm_computers_domaincontroller_backup_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Backup Directory Node object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerBackupApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Backup Directory Node object (contains all properties and their default values) + api_response = api_instance.udm_computers_domaincontroller_backup_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerBackupApi->udm_computers_domaincontroller_backup_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerBackup**](ComputersDomaincontrollerBackup.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Backup Directory Node. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_backup_object_update** +> udm_computers_domaincontroller_backup_object_update(dn, computers_domaincontroller_backup, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Backup Directory Node object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerBackupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_domaincontroller_backup = openapi_client_udm.ComputersDomaincontrollerBackup() # ComputersDomaincontrollerBackup | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Backup Directory Node object (moving is currently not possible) + api_instance.udm_computers_domaincontroller_backup_object_update(dn, computers_domaincontroller_backup, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerBackupApi->udm_computers_domaincontroller_backup_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_domaincontroller_backup** | [**ComputersDomaincontrollerBackup**](ComputersDomaincontrollerBackup.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersDomaincontrollerBackupList.md b/docs/ComputersDomaincontrollerBackupList.md new file mode 100644 index 0000000..53c2799 --- /dev/null +++ b/docs/ComputersDomaincontrollerBackupList.md @@ -0,0 +1,11 @@ +# ComputersDomaincontrollerBackupList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersDomaincontrollerBackupListEmbedded**](ComputersDomaincontrollerBackupListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerBackupListEmbedded.md b/docs/ComputersDomaincontrollerBackupListEmbedded.md new file mode 100644 index 0000000..e6ae31c --- /dev/null +++ b/docs/ComputersDomaincontrollerBackupListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersDomaincontrollerBackupListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersDomaincontrollerBackup]**](ComputersDomaincontrollerBackup.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerBackupOptions.md b/docs/ComputersDomaincontrollerBackupOptions.md new file mode 100644 index 0000000..e89f908 --- /dev/null +++ b/docs/ComputersDomaincontrollerBackupOptions.md @@ -0,0 +1,17 @@ +# ComputersDomaincontrollerBackupOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerBackupPolicies.md b/docs/ComputersDomaincontrollerBackupPolicies.md new file mode 100644 index 0000000..3bfc116 --- /dev/null +++ b/docs/ComputersDomaincontrollerBackupPolicies.md @@ -0,0 +1,20 @@ +# ComputersDomaincontrollerBackupPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerBackupRequest.md b/docs/ComputersDomaincontrollerBackupRequest.md new file mode 100644 index 0000000..fbebceb --- /dev/null +++ b/docs/ComputersDomaincontrollerBackupRequest.md @@ -0,0 +1,15 @@ +# ComputersDomaincontrollerBackupRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerBackupOptions**](ComputersDomaincontrollerBackupOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerBackupPolicies**](ComputersDomaincontrollerBackupPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerBackupRequestPatch.md b/docs/ComputersDomaincontrollerBackupRequestPatch.md new file mode 100644 index 0000000..d678823 --- /dev/null +++ b/docs/ComputersDomaincontrollerBackupRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersDomaincontrollerBackupRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerBackupOptions**](ComputersDomaincontrollerBackupOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerBackupPolicies**](ComputersDomaincontrollerBackupPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerBackupResponseMixin.md b/docs/ComputersDomaincontrollerBackupResponseMixin.md new file mode 100644 index 0000000..aa8097a --- /dev/null +++ b/docs/ComputersDomaincontrollerBackupResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersDomaincontrollerBackupResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerMaster.md b/docs/ComputersDomaincontrollerMaster.md new file mode 100644 index 0000000..403dc00 --- /dev/null +++ b/docs/ComputersDomaincontrollerMaster.md @@ -0,0 +1,20 @@ +# ComputersDomaincontrollerMaster + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerMasterOptions**](ComputersDomaincontrollerMasterOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerMasterPolicies**](ComputersDomaincontrollerMasterPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerMasterApi.md b/docs/ComputersDomaincontrollerMasterApi.md new file mode 100644 index 0000000..483fe1c --- /dev/null +++ b/docs/ComputersDomaincontrollerMasterApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersDomaincontrollerMasterApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_domaincontroller_master_object**](ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object) | **GET** /computers/domaincontroller_master/{dn} | Get a representation of the Primary Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_domaincontroller_master_object_create**](ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_create) | **POST** /computers/domaincontroller_master/ | Create a new Primary Directory Node object +[**udm_computers_domaincontroller_master_object_modify**](ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_modify) | **PUT** /computers/domaincontroller_master/{dn} | Modify or move an Primary Directory Node object +[**udm_computers_domaincontroller_master_object_remove**](ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_remove) | **DELETE** /computers/domaincontroller_master/{dn} | Remove a Primary Directory Nodes object +[**udm_computers_domaincontroller_master_object_search**](ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_search) | **GET** /computers/domaincontroller_master/ | Search for Primary Directory Nodes objects +[**udm_computers_domaincontroller_master_object_template**](ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_template) | **GET** /computers/domaincontroller_master/add | Get a template for creating an Primary Directory Node object (contains all properties and their default values) +[**udm_computers_domaincontroller_master_object_update**](ComputersDomaincontrollerMasterApi.md#udm_computers_domaincontroller_master_object_update) | **PATCH** /computers/domaincontroller_master/{dn} | Modify an Primary Directory Node object (moving is currently not possible) + + +# **udm_computers_domaincontroller_master_object** +> ComputersDomaincontrollerMaster udm_computers_domaincontroller_master_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Primary Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerMasterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Primary Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_domaincontroller_master_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerMasterApi->udm_computers_domaincontroller_master_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerMaster**](ComputersDomaincontrollerMaster.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_master_object_create** +> InlineResponse201 udm_computers_domaincontroller_master_object_create(computers_domaincontroller_master, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Primary Directory Node object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerMasterApi(api_client) + computers_domaincontroller_master = openapi_client_udm.ComputersDomaincontrollerMaster() # ComputersDomaincontrollerMaster | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Primary Directory Node object + api_response = api_instance.udm_computers_domaincontroller_master_object_create(computers_domaincontroller_master, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerMasterApi->udm_computers_domaincontroller_master_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_domaincontroller_master** | [**ComputersDomaincontrollerMaster**](ComputersDomaincontrollerMaster.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_domaincontroller_master_object_modify** +> InlineResponse201 udm_computers_domaincontroller_master_object_modify(dn, computers_domaincontroller_master, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Primary Directory Node object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerMasterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_domaincontroller_master = openapi_client_udm.ComputersDomaincontrollerMaster() # ComputersDomaincontrollerMaster | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Primary Directory Node object + api_response = api_instance.udm_computers_domaincontroller_master_object_modify(dn, computers_domaincontroller_master, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerMasterApi->udm_computers_domaincontroller_master_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_domaincontroller_master** | [**ComputersDomaincontrollerMaster**](ComputersDomaincontrollerMaster.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_master_object_remove** +> udm_computers_domaincontroller_master_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Primary Directory Nodes object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerMasterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Primary Directory Nodes object + api_instance.udm_computers_domaincontroller_master_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerMasterApi->udm_computers_domaincontroller_master_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_master_object_search** +> ComputersDomaincontrollerMasterList udm_computers_domaincontroller_master_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Primary Directory Nodes objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerMasterApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Primary Directory Nodes objects + api_response = api_instance.udm_computers_domaincontroller_master_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerMasterApi->udm_computers_domaincontroller_master_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerMasterList**](ComputersDomaincontrollerMasterList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_master_object_template** +> ComputersDomaincontrollerMaster udm_computers_domaincontroller_master_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Primary Directory Node object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerMasterApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Primary Directory Node object (contains all properties and their default values) + api_response = api_instance.udm_computers_domaincontroller_master_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerMasterApi->udm_computers_domaincontroller_master_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerMaster**](ComputersDomaincontrollerMaster.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Primary Directory Node. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_master_object_update** +> udm_computers_domaincontroller_master_object_update(dn, computers_domaincontroller_master, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Primary Directory Node object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerMasterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_domaincontroller_master = openapi_client_udm.ComputersDomaincontrollerMaster() # ComputersDomaincontrollerMaster | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Primary Directory Node object (moving is currently not possible) + api_instance.udm_computers_domaincontroller_master_object_update(dn, computers_domaincontroller_master, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerMasterApi->udm_computers_domaincontroller_master_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_domaincontroller_master** | [**ComputersDomaincontrollerMaster**](ComputersDomaincontrollerMaster.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersDomaincontrollerMasterList.md b/docs/ComputersDomaincontrollerMasterList.md new file mode 100644 index 0000000..f100187 --- /dev/null +++ b/docs/ComputersDomaincontrollerMasterList.md @@ -0,0 +1,11 @@ +# ComputersDomaincontrollerMasterList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersDomaincontrollerMasterListEmbedded**](ComputersDomaincontrollerMasterListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerMasterListEmbedded.md b/docs/ComputersDomaincontrollerMasterListEmbedded.md new file mode 100644 index 0000000..bf72b41 --- /dev/null +++ b/docs/ComputersDomaincontrollerMasterListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersDomaincontrollerMasterListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersDomaincontrollerMaster]**](ComputersDomaincontrollerMaster.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerMasterOptions.md b/docs/ComputersDomaincontrollerMasterOptions.md new file mode 100644 index 0000000..be4488e --- /dev/null +++ b/docs/ComputersDomaincontrollerMasterOptions.md @@ -0,0 +1,17 @@ +# ComputersDomaincontrollerMasterOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerMasterPolicies.md b/docs/ComputersDomaincontrollerMasterPolicies.md new file mode 100644 index 0000000..45db0cd --- /dev/null +++ b/docs/ComputersDomaincontrollerMasterPolicies.md @@ -0,0 +1,20 @@ +# ComputersDomaincontrollerMasterPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerMasterRequest.md b/docs/ComputersDomaincontrollerMasterRequest.md new file mode 100644 index 0000000..3bc5604 --- /dev/null +++ b/docs/ComputersDomaincontrollerMasterRequest.md @@ -0,0 +1,15 @@ +# ComputersDomaincontrollerMasterRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerMasterOptions**](ComputersDomaincontrollerMasterOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerMasterPolicies**](ComputersDomaincontrollerMasterPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerMasterRequestPatch.md b/docs/ComputersDomaincontrollerMasterRequestPatch.md new file mode 100644 index 0000000..52217f7 --- /dev/null +++ b/docs/ComputersDomaincontrollerMasterRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersDomaincontrollerMasterRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerMasterOptions**](ComputersDomaincontrollerMasterOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerMasterPolicies**](ComputersDomaincontrollerMasterPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerMasterResponseMixin.md b/docs/ComputersDomaincontrollerMasterResponseMixin.md new file mode 100644 index 0000000..9f7396d --- /dev/null +++ b/docs/ComputersDomaincontrollerMasterResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersDomaincontrollerMasterResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerSlave.md b/docs/ComputersDomaincontrollerSlave.md new file mode 100644 index 0000000..666a438 --- /dev/null +++ b/docs/ComputersDomaincontrollerSlave.md @@ -0,0 +1,20 @@ +# ComputersDomaincontrollerSlave + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerSlaveOptions**](ComputersDomaincontrollerSlaveOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerSlavePolicies**](ComputersDomaincontrollerSlavePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerSlaveApi.md b/docs/ComputersDomaincontrollerSlaveApi.md new file mode 100644 index 0000000..b079917 --- /dev/null +++ b/docs/ComputersDomaincontrollerSlaveApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersDomaincontrollerSlaveApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_domaincontroller_slave_object**](ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object) | **GET** /computers/domaincontroller_slave/{dn} | Get a representation of the Replica Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_domaincontroller_slave_object_create**](ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_create) | **POST** /computers/domaincontroller_slave/ | Create a new Replica Directory Node object +[**udm_computers_domaincontroller_slave_object_modify**](ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_modify) | **PUT** /computers/domaincontroller_slave/{dn} | Modify or move an Replica Directory Node object +[**udm_computers_domaincontroller_slave_object_remove**](ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_remove) | **DELETE** /computers/domaincontroller_slave/{dn} | Remove a Replica Directory Nodes object +[**udm_computers_domaincontroller_slave_object_search**](ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_search) | **GET** /computers/domaincontroller_slave/ | Search for Replica Directory Nodes objects +[**udm_computers_domaincontroller_slave_object_template**](ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_template) | **GET** /computers/domaincontroller_slave/add | Get a template for creating an Replica Directory Node object (contains all properties and their default values) +[**udm_computers_domaincontroller_slave_object_update**](ComputersDomaincontrollerSlaveApi.md#udm_computers_domaincontroller_slave_object_update) | **PATCH** /computers/domaincontroller_slave/{dn} | Modify an Replica Directory Node object (moving is currently not possible) + + +# **udm_computers_domaincontroller_slave_object** +> ComputersDomaincontrollerSlave udm_computers_domaincontroller_slave_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Replica Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerSlaveApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Replica Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_domaincontroller_slave_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerSlaveApi->udm_computers_domaincontroller_slave_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerSlave**](ComputersDomaincontrollerSlave.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_slave_object_create** +> InlineResponse201 udm_computers_domaincontroller_slave_object_create(computers_domaincontroller_slave, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Replica Directory Node object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerSlaveApi(api_client) + computers_domaincontroller_slave = openapi_client_udm.ComputersDomaincontrollerSlave() # ComputersDomaincontrollerSlave | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Replica Directory Node object + api_response = api_instance.udm_computers_domaincontroller_slave_object_create(computers_domaincontroller_slave, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerSlaveApi->udm_computers_domaincontroller_slave_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_domaincontroller_slave** | [**ComputersDomaincontrollerSlave**](ComputersDomaincontrollerSlave.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_domaincontroller_slave_object_modify** +> InlineResponse201 udm_computers_domaincontroller_slave_object_modify(dn, computers_domaincontroller_slave, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Replica Directory Node object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerSlaveApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_domaincontroller_slave = openapi_client_udm.ComputersDomaincontrollerSlave() # ComputersDomaincontrollerSlave | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Replica Directory Node object + api_response = api_instance.udm_computers_domaincontroller_slave_object_modify(dn, computers_domaincontroller_slave, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerSlaveApi->udm_computers_domaincontroller_slave_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_domaincontroller_slave** | [**ComputersDomaincontrollerSlave**](ComputersDomaincontrollerSlave.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_slave_object_remove** +> udm_computers_domaincontroller_slave_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Replica Directory Nodes object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerSlaveApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Replica Directory Nodes object + api_instance.udm_computers_domaincontroller_slave_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerSlaveApi->udm_computers_domaincontroller_slave_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_slave_object_search** +> ComputersDomaincontrollerSlaveList udm_computers_domaincontroller_slave_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Replica Directory Nodes objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerSlaveApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Replica Directory Nodes objects + api_response = api_instance.udm_computers_domaincontroller_slave_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerSlaveApi->udm_computers_domaincontroller_slave_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerSlaveList**](ComputersDomaincontrollerSlaveList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_slave_object_template** +> ComputersDomaincontrollerSlave udm_computers_domaincontroller_slave_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Replica Directory Node object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerSlaveApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Replica Directory Node object (contains all properties and their default values) + api_response = api_instance.udm_computers_domaincontroller_slave_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerSlaveApi->udm_computers_domaincontroller_slave_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersDomaincontrollerSlave**](ComputersDomaincontrollerSlave.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Replica Directory Node. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_domaincontroller_slave_object_update** +> udm_computers_domaincontroller_slave_object_update(dn, computers_domaincontroller_slave, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Replica Directory Node object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersDomaincontrollerSlaveApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_domaincontroller_slave = openapi_client_udm.ComputersDomaincontrollerSlave() # ComputersDomaincontrollerSlave | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Replica Directory Node object (moving is currently not possible) + api_instance.udm_computers_domaincontroller_slave_object_update(dn, computers_domaincontroller_slave, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersDomaincontrollerSlaveApi->udm_computers_domaincontroller_slave_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_domaincontroller_slave** | [**ComputersDomaincontrollerSlave**](ComputersDomaincontrollerSlave.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersDomaincontrollerSlaveList.md b/docs/ComputersDomaincontrollerSlaveList.md new file mode 100644 index 0000000..66fae64 --- /dev/null +++ b/docs/ComputersDomaincontrollerSlaveList.md @@ -0,0 +1,11 @@ +# ComputersDomaincontrollerSlaveList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersDomaincontrollerSlaveListEmbedded**](ComputersDomaincontrollerSlaveListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerSlaveListEmbedded.md b/docs/ComputersDomaincontrollerSlaveListEmbedded.md new file mode 100644 index 0000000..244db9d --- /dev/null +++ b/docs/ComputersDomaincontrollerSlaveListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersDomaincontrollerSlaveListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersDomaincontrollerSlave]**](ComputersDomaincontrollerSlave.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerSlaveOptions.md b/docs/ComputersDomaincontrollerSlaveOptions.md new file mode 100644 index 0000000..bae0ff1 --- /dev/null +++ b/docs/ComputersDomaincontrollerSlaveOptions.md @@ -0,0 +1,17 @@ +# ComputersDomaincontrollerSlaveOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerSlavePolicies.md b/docs/ComputersDomaincontrollerSlavePolicies.md new file mode 100644 index 0000000..6a27f5b --- /dev/null +++ b/docs/ComputersDomaincontrollerSlavePolicies.md @@ -0,0 +1,20 @@ +# ComputersDomaincontrollerSlavePolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerSlaveRequest.md b/docs/ComputersDomaincontrollerSlaveRequest.md new file mode 100644 index 0000000..31ebee3 --- /dev/null +++ b/docs/ComputersDomaincontrollerSlaveRequest.md @@ -0,0 +1,15 @@ +# ComputersDomaincontrollerSlaveRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerSlaveOptions**](ComputersDomaincontrollerSlaveOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerSlavePolicies**](ComputersDomaincontrollerSlavePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerSlaveRequestPatch.md b/docs/ComputersDomaincontrollerSlaveRequestPatch.md new file mode 100644 index 0000000..f3a6079 --- /dev/null +++ b/docs/ComputersDomaincontrollerSlaveRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersDomaincontrollerSlaveRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersDomaincontrollerSlaveOptions**](ComputersDomaincontrollerSlaveOptions.md) | | [optional] +**policies** | [**ComputersDomaincontrollerSlavePolicies**](ComputersDomaincontrollerSlavePolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersDomaincontrollerSlaveResponseMixin.md b/docs/ComputersDomaincontrollerSlaveResponseMixin.md new file mode 100644 index 0000000..b7bc966 --- /dev/null +++ b/docs/ComputersDomaincontrollerSlaveResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersDomaincontrollerSlaveResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersIpmanagedclient.md b/docs/ComputersIpmanagedclient.md new file mode 100644 index 0000000..c264806 --- /dev/null +++ b/docs/ComputersIpmanagedclient.md @@ -0,0 +1,20 @@ +# ComputersIpmanagedclient + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersIpmanagedclientOptions**](ComputersIpmanagedclientOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersIpmanagedclientApi.md b/docs/ComputersIpmanagedclientApi.md new file mode 100644 index 0000000..36830e9 --- /dev/null +++ b/docs/ComputersIpmanagedclientApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersIpmanagedclientApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_ipmanagedclient_object**](ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object) | **GET** /computers/ipmanagedclient/{dn} | Get a representation of the IP client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_ipmanagedclient_object_create**](ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_create) | **POST** /computers/ipmanagedclient/ | Create a new IP client object +[**udm_computers_ipmanagedclient_object_modify**](ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_modify) | **PUT** /computers/ipmanagedclient/{dn} | Modify or move an IP client object +[**udm_computers_ipmanagedclient_object_remove**](ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_remove) | **DELETE** /computers/ipmanagedclient/{dn} | Remove a IP clients object +[**udm_computers_ipmanagedclient_object_search**](ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_search) | **GET** /computers/ipmanagedclient/ | Search for IP clients objects +[**udm_computers_ipmanagedclient_object_template**](ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_template) | **GET** /computers/ipmanagedclient/add | Get a template for creating an IP client object (contains all properties and their default values) +[**udm_computers_ipmanagedclient_object_update**](ComputersIpmanagedclientApi.md#udm_computers_ipmanagedclient_object_update) | **PATCH** /computers/ipmanagedclient/{dn} | Modify an IP client object (moving is currently not possible) + + +# **udm_computers_ipmanagedclient_object** +> ComputersIpmanagedclient udm_computers_ipmanagedclient_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the IP client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersIpmanagedclientApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the IP client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_ipmanagedclient_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersIpmanagedclientApi->udm_computers_ipmanagedclient_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersIpmanagedclient**](ComputersIpmanagedclient.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ipmanagedclient_object_create** +> InlineResponse201 udm_computers_ipmanagedclient_object_create(computers_ipmanagedclient, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new IP client object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersIpmanagedclientApi(api_client) + computers_ipmanagedclient = openapi_client_udm.ComputersIpmanagedclient() # ComputersIpmanagedclient | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new IP client object + api_response = api_instance.udm_computers_ipmanagedclient_object_create(computers_ipmanagedclient, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersIpmanagedclientApi->udm_computers_ipmanagedclient_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_ipmanagedclient** | [**ComputersIpmanagedclient**](ComputersIpmanagedclient.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_ipmanagedclient_object_modify** +> InlineResponse201 udm_computers_ipmanagedclient_object_modify(dn, computers_ipmanagedclient, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an IP client object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersIpmanagedclientApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_ipmanagedclient = openapi_client_udm.ComputersIpmanagedclient() # ComputersIpmanagedclient | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an IP client object + api_response = api_instance.udm_computers_ipmanagedclient_object_modify(dn, computers_ipmanagedclient, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersIpmanagedclientApi->udm_computers_ipmanagedclient_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_ipmanagedclient** | [**ComputersIpmanagedclient**](ComputersIpmanagedclient.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ipmanagedclient_object_remove** +> udm_computers_ipmanagedclient_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a IP clients object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersIpmanagedclientApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a IP clients object + api_instance.udm_computers_ipmanagedclient_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersIpmanagedclientApi->udm_computers_ipmanagedclient_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ipmanagedclient_object_search** +> ComputersIpmanagedclientList udm_computers_ipmanagedclient_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for IP clients objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersIpmanagedclientApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for IP clients objects + api_response = api_instance.udm_computers_ipmanagedclient_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersIpmanagedclientApi->udm_computers_ipmanagedclient_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersIpmanagedclientList**](ComputersIpmanagedclientList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ipmanagedclient_object_template** +> ComputersIpmanagedclient udm_computers_ipmanagedclient_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an IP client object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersIpmanagedclientApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an IP client object (contains all properties and their default values) + api_response = api_instance.udm_computers_ipmanagedclient_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersIpmanagedclientApi->udm_computers_ipmanagedclient_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersIpmanagedclient**](ComputersIpmanagedclient.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new IP client. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ipmanagedclient_object_update** +> udm_computers_ipmanagedclient_object_update(dn, computers_ipmanagedclient, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an IP client object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersIpmanagedclientApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_ipmanagedclient = openapi_client_udm.ComputersIpmanagedclient() # ComputersIpmanagedclient | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an IP client object (moving is currently not possible) + api_instance.udm_computers_ipmanagedclient_object_update(dn, computers_ipmanagedclient, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersIpmanagedclientApi->udm_computers_ipmanagedclient_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_ipmanagedclient** | [**ComputersIpmanagedclient**](ComputersIpmanagedclient.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersIpmanagedclientList.md b/docs/ComputersIpmanagedclientList.md new file mode 100644 index 0000000..bed5454 --- /dev/null +++ b/docs/ComputersIpmanagedclientList.md @@ -0,0 +1,11 @@ +# ComputersIpmanagedclientList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersIpmanagedclientListEmbedded**](ComputersIpmanagedclientListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersIpmanagedclientListEmbedded.md b/docs/ComputersIpmanagedclientListEmbedded.md new file mode 100644 index 0000000..ad19a3e --- /dev/null +++ b/docs/ComputersIpmanagedclientListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersIpmanagedclientListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersIpmanagedclient]**](ComputersIpmanagedclient.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersIpmanagedclientOptions.md b/docs/ComputersIpmanagedclientOptions.md new file mode 100644 index 0000000..b66a15a --- /dev/null +++ b/docs/ComputersIpmanagedclientOptions.md @@ -0,0 +1,14 @@ +# ComputersIpmanagedclientOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersIpmanagedclientRequest.md b/docs/ComputersIpmanagedclientRequest.md new file mode 100644 index 0000000..0e49f60 --- /dev/null +++ b/docs/ComputersIpmanagedclientRequest.md @@ -0,0 +1,15 @@ +# ComputersIpmanagedclientRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersIpmanagedclientOptions**](ComputersIpmanagedclientOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersIpmanagedclientRequestPatch.md b/docs/ComputersIpmanagedclientRequestPatch.md new file mode 100644 index 0000000..9b0a8b2 --- /dev/null +++ b/docs/ComputersIpmanagedclientRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersIpmanagedclientRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersIpmanagedclientOptions**](ComputersIpmanagedclientOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersIpmanagedclientResponseMixin.md b/docs/ComputersIpmanagedclientResponseMixin.md new file mode 100644 index 0000000..55e506b --- /dev/null +++ b/docs/ComputersIpmanagedclientResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersIpmanagedclientResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersLinux.md b/docs/ComputersLinux.md new file mode 100644 index 0000000..62b3d1d --- /dev/null +++ b/docs/ComputersLinux.md @@ -0,0 +1,20 @@ +# ComputersLinux + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersLinuxOptions**](ComputersLinuxOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersLinuxApi.md b/docs/ComputersLinuxApi.md new file mode 100644 index 0000000..bf87bcd --- /dev/null +++ b/docs/ComputersLinuxApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersLinuxApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_linux_object**](ComputersLinuxApi.md#udm_computers_linux_object) | **GET** /computers/linux/{dn} | Get a representation of the Linux Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_linux_object_create**](ComputersLinuxApi.md#udm_computers_linux_object_create) | **POST** /computers/linux/ | Create a new Linux Computer object +[**udm_computers_linux_object_modify**](ComputersLinuxApi.md#udm_computers_linux_object_modify) | **PUT** /computers/linux/{dn} | Modify or move an Linux Computer object +[**udm_computers_linux_object_remove**](ComputersLinuxApi.md#udm_computers_linux_object_remove) | **DELETE** /computers/linux/{dn} | Remove a Linux Computers object +[**udm_computers_linux_object_search**](ComputersLinuxApi.md#udm_computers_linux_object_search) | **GET** /computers/linux/ | Search for Linux Computers objects +[**udm_computers_linux_object_template**](ComputersLinuxApi.md#udm_computers_linux_object_template) | **GET** /computers/linux/add | Get a template for creating an Linux Computer object (contains all properties and their default values) +[**udm_computers_linux_object_update**](ComputersLinuxApi.md#udm_computers_linux_object_update) | **PATCH** /computers/linux/{dn} | Modify an Linux Computer object (moving is currently not possible) + + +# **udm_computers_linux_object** +> ComputersLinux udm_computers_linux_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Linux Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersLinuxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Linux Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_linux_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersLinuxApi->udm_computers_linux_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersLinux**](ComputersLinux.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_linux_object_create** +> InlineResponse201 udm_computers_linux_object_create(computers_linux, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Linux Computer object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersLinuxApi(api_client) + computers_linux = openapi_client_udm.ComputersLinux() # ComputersLinux | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Linux Computer object + api_response = api_instance.udm_computers_linux_object_create(computers_linux, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersLinuxApi->udm_computers_linux_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_linux** | [**ComputersLinux**](ComputersLinux.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_linux_object_modify** +> InlineResponse201 udm_computers_linux_object_modify(dn, computers_linux, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Linux Computer object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersLinuxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_linux = openapi_client_udm.ComputersLinux() # ComputersLinux | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Linux Computer object + api_response = api_instance.udm_computers_linux_object_modify(dn, computers_linux, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersLinuxApi->udm_computers_linux_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_linux** | [**ComputersLinux**](ComputersLinux.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_linux_object_remove** +> udm_computers_linux_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Linux Computers object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersLinuxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Linux Computers object + api_instance.udm_computers_linux_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersLinuxApi->udm_computers_linux_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_linux_object_search** +> ComputersLinuxList udm_computers_linux_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Linux Computers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersLinuxApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Linux Computers objects + api_response = api_instance.udm_computers_linux_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersLinuxApi->udm_computers_linux_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersLinuxList**](ComputersLinuxList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_linux_object_template** +> ComputersLinux udm_computers_linux_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Linux Computer object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersLinuxApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Linux Computer object (contains all properties and their default values) + api_response = api_instance.udm_computers_linux_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersLinuxApi->udm_computers_linux_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersLinux**](ComputersLinux.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Linux Computer. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_linux_object_update** +> udm_computers_linux_object_update(dn, computers_linux, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Linux Computer object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersLinuxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_linux = openapi_client_udm.ComputersLinux() # ComputersLinux | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Linux Computer object (moving is currently not possible) + api_instance.udm_computers_linux_object_update(dn, computers_linux, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersLinuxApi->udm_computers_linux_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_linux** | [**ComputersLinux**](ComputersLinux.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersLinuxList.md b/docs/ComputersLinuxList.md new file mode 100644 index 0000000..b82da4e --- /dev/null +++ b/docs/ComputersLinuxList.md @@ -0,0 +1,11 @@ +# ComputersLinuxList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersLinuxListEmbedded**](ComputersLinuxListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersLinuxListEmbedded.md b/docs/ComputersLinuxListEmbedded.md new file mode 100644 index 0000000..0760553 --- /dev/null +++ b/docs/ComputersLinuxListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersLinuxListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersLinux]**](ComputersLinux.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersLinuxOptions.md b/docs/ComputersLinuxOptions.md new file mode 100644 index 0000000..c322742 --- /dev/null +++ b/docs/ComputersLinuxOptions.md @@ -0,0 +1,17 @@ +# ComputersLinuxOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersLinuxRequest.md b/docs/ComputersLinuxRequest.md new file mode 100644 index 0000000..9ae5895 --- /dev/null +++ b/docs/ComputersLinuxRequest.md @@ -0,0 +1,15 @@ +# ComputersLinuxRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersLinuxOptions**](ComputersLinuxOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersLinuxRequestPatch.md b/docs/ComputersLinuxRequestPatch.md new file mode 100644 index 0000000..d14f9a5 --- /dev/null +++ b/docs/ComputersLinuxRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersLinuxRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersLinuxOptions**](ComputersLinuxOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersLinuxResponseMixin.md b/docs/ComputersLinuxResponseMixin.md new file mode 100644 index 0000000..b73f0cd --- /dev/null +++ b/docs/ComputersLinuxResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersLinuxResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMacos.md b/docs/ComputersMacos.md new file mode 100644 index 0000000..2924df9 --- /dev/null +++ b/docs/ComputersMacos.md @@ -0,0 +1,20 @@ +# ComputersMacos + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersMacosOptions**](ComputersMacosOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMacosApi.md b/docs/ComputersMacosApi.md new file mode 100644 index 0000000..82b82e5 --- /dev/null +++ b/docs/ComputersMacosApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersMacosApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_macos_object**](ComputersMacosApi.md#udm_computers_macos_object) | **GET** /computers/macos/{dn} | Get a representation of the macOS Client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_macos_object_create**](ComputersMacosApi.md#udm_computers_macos_object_create) | **POST** /computers/macos/ | Create a new macOS Client object +[**udm_computers_macos_object_modify**](ComputersMacosApi.md#udm_computers_macos_object_modify) | **PUT** /computers/macos/{dn} | Modify or move an macOS Client object +[**udm_computers_macos_object_remove**](ComputersMacosApi.md#udm_computers_macos_object_remove) | **DELETE** /computers/macos/{dn} | Remove a macOS Clients object +[**udm_computers_macos_object_search**](ComputersMacosApi.md#udm_computers_macos_object_search) | **GET** /computers/macos/ | Search for macOS Clients objects +[**udm_computers_macos_object_template**](ComputersMacosApi.md#udm_computers_macos_object_template) | **GET** /computers/macos/add | Get a template for creating an macOS Client object (contains all properties and their default values) +[**udm_computers_macos_object_update**](ComputersMacosApi.md#udm_computers_macos_object_update) | **PATCH** /computers/macos/{dn} | Modify an macOS Client object (moving is currently not possible) + + +# **udm_computers_macos_object** +> ComputersMacos udm_computers_macos_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the macOS Client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMacosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the macOS Client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_macos_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMacosApi->udm_computers_macos_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersMacos**](ComputersMacos.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_macos_object_create** +> InlineResponse201 udm_computers_macos_object_create(computers_macos, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new macOS Client object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMacosApi(api_client) + computers_macos = openapi_client_udm.ComputersMacos() # ComputersMacos | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new macOS Client object + api_response = api_instance.udm_computers_macos_object_create(computers_macos, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMacosApi->udm_computers_macos_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_macos** | [**ComputersMacos**](ComputersMacos.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_macos_object_modify** +> InlineResponse201 udm_computers_macos_object_modify(dn, computers_macos, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an macOS Client object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMacosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_macos = openapi_client_udm.ComputersMacos() # ComputersMacos | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an macOS Client object + api_response = api_instance.udm_computers_macos_object_modify(dn, computers_macos, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMacosApi->udm_computers_macos_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_macos** | [**ComputersMacos**](ComputersMacos.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_macos_object_remove** +> udm_computers_macos_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a macOS Clients object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMacosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a macOS Clients object + api_instance.udm_computers_macos_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersMacosApi->udm_computers_macos_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_macos_object_search** +> ComputersMacosList udm_computers_macos_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for macOS Clients objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMacosApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for macOS Clients objects + api_response = api_instance.udm_computers_macos_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMacosApi->udm_computers_macos_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersMacosList**](ComputersMacosList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_macos_object_template** +> ComputersMacos udm_computers_macos_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an macOS Client object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMacosApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an macOS Client object (contains all properties and their default values) + api_response = api_instance.udm_computers_macos_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMacosApi->udm_computers_macos_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersMacos**](ComputersMacos.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new macOS Client. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_macos_object_update** +> udm_computers_macos_object_update(dn, computers_macos, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an macOS Client object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMacosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_macos = openapi_client_udm.ComputersMacos() # ComputersMacos | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an macOS Client object (moving is currently not possible) + api_instance.udm_computers_macos_object_update(dn, computers_macos, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersMacosApi->udm_computers_macos_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_macos** | [**ComputersMacos**](ComputersMacos.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersMacosList.md b/docs/ComputersMacosList.md new file mode 100644 index 0000000..6a43b3c --- /dev/null +++ b/docs/ComputersMacosList.md @@ -0,0 +1,11 @@ +# ComputersMacosList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersMacosListEmbedded**](ComputersMacosListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMacosListEmbedded.md b/docs/ComputersMacosListEmbedded.md new file mode 100644 index 0000000..0015869 --- /dev/null +++ b/docs/ComputersMacosListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersMacosListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersMacos]**](ComputersMacos.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMacosOptions.md b/docs/ComputersMacosOptions.md new file mode 100644 index 0000000..1f1cdcc --- /dev/null +++ b/docs/ComputersMacosOptions.md @@ -0,0 +1,17 @@ +# ComputersMacosOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMacosRequest.md b/docs/ComputersMacosRequest.md new file mode 100644 index 0000000..9139997 --- /dev/null +++ b/docs/ComputersMacosRequest.md @@ -0,0 +1,15 @@ +# ComputersMacosRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersMacosOptions**](ComputersMacosOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMacosRequestPatch.md b/docs/ComputersMacosRequestPatch.md new file mode 100644 index 0000000..e952b7a --- /dev/null +++ b/docs/ComputersMacosRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersMacosRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersMacosOptions**](ComputersMacosOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMacosResponseMixin.md b/docs/ComputersMacosResponseMixin.md new file mode 100644 index 0000000..f62ec8c --- /dev/null +++ b/docs/ComputersMacosResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersMacosResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMemberserver.md b/docs/ComputersMemberserver.md new file mode 100644 index 0000000..8259652 --- /dev/null +++ b/docs/ComputersMemberserver.md @@ -0,0 +1,20 @@ +# ComputersMemberserver + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersMemberserverOptions**](ComputersMemberserverOptions.md) | | [optional] +**policies** | [**ComputersMemberserverPolicies**](ComputersMemberserverPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMemberserverApi.md b/docs/ComputersMemberserverApi.md new file mode 100644 index 0000000..432cb46 --- /dev/null +++ b/docs/ComputersMemberserverApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersMemberserverApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_memberserver_object**](ComputersMemberserverApi.md#udm_computers_memberserver_object) | **GET** /computers/memberserver/{dn} | Get a representation of the Managed Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_memberserver_object_create**](ComputersMemberserverApi.md#udm_computers_memberserver_object_create) | **POST** /computers/memberserver/ | Create a new Managed Node object +[**udm_computers_memberserver_object_modify**](ComputersMemberserverApi.md#udm_computers_memberserver_object_modify) | **PUT** /computers/memberserver/{dn} | Modify or move an Managed Node object +[**udm_computers_memberserver_object_remove**](ComputersMemberserverApi.md#udm_computers_memberserver_object_remove) | **DELETE** /computers/memberserver/{dn} | Remove a Managed Nodes object +[**udm_computers_memberserver_object_search**](ComputersMemberserverApi.md#udm_computers_memberserver_object_search) | **GET** /computers/memberserver/ | Search for Managed Nodes objects +[**udm_computers_memberserver_object_template**](ComputersMemberserverApi.md#udm_computers_memberserver_object_template) | **GET** /computers/memberserver/add | Get a template for creating an Managed Node object (contains all properties and their default values) +[**udm_computers_memberserver_object_update**](ComputersMemberserverApi.md#udm_computers_memberserver_object_update) | **PATCH** /computers/memberserver/{dn} | Modify an Managed Node object (moving is currently not possible) + + +# **udm_computers_memberserver_object** +> ComputersMemberserver udm_computers_memberserver_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Managed Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMemberserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Managed Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_memberserver_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMemberserverApi->udm_computers_memberserver_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersMemberserver**](ComputersMemberserver.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_memberserver_object_create** +> InlineResponse201 udm_computers_memberserver_object_create(computers_memberserver, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Managed Node object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMemberserverApi(api_client) + computers_memberserver = openapi_client_udm.ComputersMemberserver() # ComputersMemberserver | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Managed Node object + api_response = api_instance.udm_computers_memberserver_object_create(computers_memberserver, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMemberserverApi->udm_computers_memberserver_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_memberserver** | [**ComputersMemberserver**](ComputersMemberserver.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_memberserver_object_modify** +> InlineResponse201 udm_computers_memberserver_object_modify(dn, computers_memberserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Managed Node object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMemberserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_memberserver = openapi_client_udm.ComputersMemberserver() # ComputersMemberserver | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Managed Node object + api_response = api_instance.udm_computers_memberserver_object_modify(dn, computers_memberserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMemberserverApi->udm_computers_memberserver_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_memberserver** | [**ComputersMemberserver**](ComputersMemberserver.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_memberserver_object_remove** +> udm_computers_memberserver_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Managed Nodes object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMemberserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Managed Nodes object + api_instance.udm_computers_memberserver_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersMemberserverApi->udm_computers_memberserver_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_memberserver_object_search** +> ComputersMemberserverList udm_computers_memberserver_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Managed Nodes objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMemberserverApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Managed Nodes objects + api_response = api_instance.udm_computers_memberserver_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMemberserverApi->udm_computers_memberserver_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersMemberserverList**](ComputersMemberserverList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_memberserver_object_template** +> ComputersMemberserver udm_computers_memberserver_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Managed Node object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMemberserverApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Managed Node object (contains all properties and their default values) + api_response = api_instance.udm_computers_memberserver_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersMemberserverApi->udm_computers_memberserver_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersMemberserver**](ComputersMemberserver.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Managed Node. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_memberserver_object_update** +> udm_computers_memberserver_object_update(dn, computers_memberserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Managed Node object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersMemberserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_memberserver = openapi_client_udm.ComputersMemberserver() # ComputersMemberserver | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Managed Node object (moving is currently not possible) + api_instance.udm_computers_memberserver_object_update(dn, computers_memberserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersMemberserverApi->udm_computers_memberserver_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_memberserver** | [**ComputersMemberserver**](ComputersMemberserver.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersMemberserverList.md b/docs/ComputersMemberserverList.md new file mode 100644 index 0000000..fa21549 --- /dev/null +++ b/docs/ComputersMemberserverList.md @@ -0,0 +1,11 @@ +# ComputersMemberserverList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersMemberserverListEmbedded**](ComputersMemberserverListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMemberserverListEmbedded.md b/docs/ComputersMemberserverListEmbedded.md new file mode 100644 index 0000000..abfe36c --- /dev/null +++ b/docs/ComputersMemberserverListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersMemberserverListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersMemberserver]**](ComputersMemberserver.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMemberserverOptions.md b/docs/ComputersMemberserverOptions.md new file mode 100644 index 0000000..35d20d7 --- /dev/null +++ b/docs/ComputersMemberserverOptions.md @@ -0,0 +1,17 @@ +# ComputersMemberserverOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMemberserverPolicies.md b/docs/ComputersMemberserverPolicies.md new file mode 100644 index 0000000..5335220 --- /dev/null +++ b/docs/ComputersMemberserverPolicies.md @@ -0,0 +1,21 @@ +# ComputersMemberserverPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMemberserverRequest.md b/docs/ComputersMemberserverRequest.md new file mode 100644 index 0000000..98a466b --- /dev/null +++ b/docs/ComputersMemberserverRequest.md @@ -0,0 +1,15 @@ +# ComputersMemberserverRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersMemberserverOptions**](ComputersMemberserverOptions.md) | | [optional] +**policies** | [**ComputersMemberserverPolicies**](ComputersMemberserverPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMemberserverRequestPatch.md b/docs/ComputersMemberserverRequestPatch.md new file mode 100644 index 0000000..cb326f7 --- /dev/null +++ b/docs/ComputersMemberserverRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersMemberserverRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersMemberserverOptions**](ComputersMemberserverOptions.md) | | [optional] +**policies** | [**ComputersMemberserverPolicies**](ComputersMemberserverPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersMemberserverResponseMixin.md b/docs/ComputersMemberserverResponseMixin.md new file mode 100644 index 0000000..4385b00 --- /dev/null +++ b/docs/ComputersMemberserverResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersMemberserverResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersTrustaccount.md b/docs/ComputersTrustaccount.md new file mode 100644 index 0000000..ee67bab --- /dev/null +++ b/docs/ComputersTrustaccount.md @@ -0,0 +1,20 @@ +# ComputersTrustaccount + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersTrustaccountOptions**](ComputersTrustaccountOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersTrustaccountApi.md b/docs/ComputersTrustaccountApi.md new file mode 100644 index 0000000..92a6835 --- /dev/null +++ b/docs/ComputersTrustaccountApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersTrustaccountApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_trustaccount_object**](ComputersTrustaccountApi.md#udm_computers_trustaccount_object) | **GET** /computers/trustaccount/{dn} | Get a representation of the Domain trust account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_trustaccount_object_create**](ComputersTrustaccountApi.md#udm_computers_trustaccount_object_create) | **POST** /computers/trustaccount/ | Create a new Domain trust account object +[**udm_computers_trustaccount_object_modify**](ComputersTrustaccountApi.md#udm_computers_trustaccount_object_modify) | **PUT** /computers/trustaccount/{dn} | Modify or move an Domain trust account object +[**udm_computers_trustaccount_object_remove**](ComputersTrustaccountApi.md#udm_computers_trustaccount_object_remove) | **DELETE** /computers/trustaccount/{dn} | Remove a Domain trust accounts object +[**udm_computers_trustaccount_object_search**](ComputersTrustaccountApi.md#udm_computers_trustaccount_object_search) | **GET** /computers/trustaccount/ | Search for Domain trust accounts objects +[**udm_computers_trustaccount_object_template**](ComputersTrustaccountApi.md#udm_computers_trustaccount_object_template) | **GET** /computers/trustaccount/add | Get a template for creating an Domain trust account object (contains all properties and their default values) +[**udm_computers_trustaccount_object_update**](ComputersTrustaccountApi.md#udm_computers_trustaccount_object_update) | **PATCH** /computers/trustaccount/{dn} | Modify an Domain trust account object (moving is currently not possible) + + +# **udm_computers_trustaccount_object** +> ComputersTrustaccount udm_computers_trustaccount_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Domain trust account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersTrustaccountApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Domain trust account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_trustaccount_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersTrustaccountApi->udm_computers_trustaccount_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersTrustaccount**](ComputersTrustaccount.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_trustaccount_object_create** +> InlineResponse201 udm_computers_trustaccount_object_create(computers_trustaccount, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Domain trust account object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersTrustaccountApi(api_client) + computers_trustaccount = openapi_client_udm.ComputersTrustaccount() # ComputersTrustaccount | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Domain trust account object + api_response = api_instance.udm_computers_trustaccount_object_create(computers_trustaccount, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersTrustaccountApi->udm_computers_trustaccount_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_trustaccount** | [**ComputersTrustaccount**](ComputersTrustaccount.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_trustaccount_object_modify** +> InlineResponse201 udm_computers_trustaccount_object_modify(dn, computers_trustaccount, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Domain trust account object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersTrustaccountApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_trustaccount = openapi_client_udm.ComputersTrustaccount() # ComputersTrustaccount | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Domain trust account object + api_response = api_instance.udm_computers_trustaccount_object_modify(dn, computers_trustaccount, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersTrustaccountApi->udm_computers_trustaccount_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_trustaccount** | [**ComputersTrustaccount**](ComputersTrustaccount.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_trustaccount_object_remove** +> udm_computers_trustaccount_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Domain trust accounts object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersTrustaccountApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Domain trust accounts object + api_instance.udm_computers_trustaccount_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersTrustaccountApi->udm_computers_trustaccount_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_trustaccount_object_search** +> ComputersTrustaccountList udm_computers_trustaccount_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Domain trust accounts objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersTrustaccountApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Domain trust accounts objects + api_response = api_instance.udm_computers_trustaccount_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersTrustaccountApi->udm_computers_trustaccount_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersTrustaccountList**](ComputersTrustaccountList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_trustaccount_object_template** +> ComputersTrustaccount udm_computers_trustaccount_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Domain trust account object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersTrustaccountApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Domain trust account object (contains all properties and their default values) + api_response = api_instance.udm_computers_trustaccount_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersTrustaccountApi->udm_computers_trustaccount_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersTrustaccount**](ComputersTrustaccount.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Domain trust account. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_trustaccount_object_update** +> udm_computers_trustaccount_object_update(dn, computers_trustaccount, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Domain trust account object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersTrustaccountApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_trustaccount = openapi_client_udm.ComputersTrustaccount() # ComputersTrustaccount | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Domain trust account object (moving is currently not possible) + api_instance.udm_computers_trustaccount_object_update(dn, computers_trustaccount, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersTrustaccountApi->udm_computers_trustaccount_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_trustaccount** | [**ComputersTrustaccount**](ComputersTrustaccount.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersTrustaccountList.md b/docs/ComputersTrustaccountList.md new file mode 100644 index 0000000..e1e00ea --- /dev/null +++ b/docs/ComputersTrustaccountList.md @@ -0,0 +1,11 @@ +# ComputersTrustaccountList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersTrustaccountListEmbedded**](ComputersTrustaccountListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersTrustaccountListEmbedded.md b/docs/ComputersTrustaccountListEmbedded.md new file mode 100644 index 0000000..a7ee7f0 --- /dev/null +++ b/docs/ComputersTrustaccountListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersTrustaccountListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersTrustaccount]**](ComputersTrustaccount.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersTrustaccountOptions.md b/docs/ComputersTrustaccountOptions.md new file mode 100644 index 0000000..53814c2 --- /dev/null +++ b/docs/ComputersTrustaccountOptions.md @@ -0,0 +1,12 @@ +# ComputersTrustaccountOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersTrustaccountRequest.md b/docs/ComputersTrustaccountRequest.md new file mode 100644 index 0000000..c01748b --- /dev/null +++ b/docs/ComputersTrustaccountRequest.md @@ -0,0 +1,15 @@ +# ComputersTrustaccountRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersTrustaccountOptions**](ComputersTrustaccountOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersTrustaccountRequestPatch.md b/docs/ComputersTrustaccountRequestPatch.md new file mode 100644 index 0000000..c1a46e7 --- /dev/null +++ b/docs/ComputersTrustaccountRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersTrustaccountRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersTrustaccountOptions**](ComputersTrustaccountOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersTrustaccountResponseMixin.md b/docs/ComputersTrustaccountResponseMixin.md new file mode 100644 index 0000000..f8f5ced --- /dev/null +++ b/docs/ComputersTrustaccountResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersTrustaccountResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersUbuntu.md b/docs/ComputersUbuntu.md new file mode 100644 index 0000000..a1acc1a --- /dev/null +++ b/docs/ComputersUbuntu.md @@ -0,0 +1,20 @@ +# ComputersUbuntu + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersUbuntuOptions**](ComputersUbuntuOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersUbuntuApi.md b/docs/ComputersUbuntuApi.md new file mode 100644 index 0000000..72a7a9f --- /dev/null +++ b/docs/ComputersUbuntuApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersUbuntuApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_ubuntu_object**](ComputersUbuntuApi.md#udm_computers_ubuntu_object) | **GET** /computers/ubuntu/{dn} | Get a representation of the Ubuntu Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_ubuntu_object_create**](ComputersUbuntuApi.md#udm_computers_ubuntu_object_create) | **POST** /computers/ubuntu/ | Create a new Ubuntu Computer object +[**udm_computers_ubuntu_object_modify**](ComputersUbuntuApi.md#udm_computers_ubuntu_object_modify) | **PUT** /computers/ubuntu/{dn} | Modify or move an Ubuntu Computer object +[**udm_computers_ubuntu_object_remove**](ComputersUbuntuApi.md#udm_computers_ubuntu_object_remove) | **DELETE** /computers/ubuntu/{dn} | Remove a Ubuntu Computers object +[**udm_computers_ubuntu_object_search**](ComputersUbuntuApi.md#udm_computers_ubuntu_object_search) | **GET** /computers/ubuntu/ | Search for Ubuntu Computers objects +[**udm_computers_ubuntu_object_template**](ComputersUbuntuApi.md#udm_computers_ubuntu_object_template) | **GET** /computers/ubuntu/add | Get a template for creating an Ubuntu Computer object (contains all properties and their default values) +[**udm_computers_ubuntu_object_update**](ComputersUbuntuApi.md#udm_computers_ubuntu_object_update) | **PATCH** /computers/ubuntu/{dn} | Modify an Ubuntu Computer object (moving is currently not possible) + + +# **udm_computers_ubuntu_object** +> ComputersUbuntu udm_computers_ubuntu_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Ubuntu Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersUbuntuApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Ubuntu Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_ubuntu_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersUbuntuApi->udm_computers_ubuntu_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersUbuntu**](ComputersUbuntu.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ubuntu_object_create** +> InlineResponse201 udm_computers_ubuntu_object_create(computers_ubuntu, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Ubuntu Computer object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersUbuntuApi(api_client) + computers_ubuntu = openapi_client_udm.ComputersUbuntu() # ComputersUbuntu | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Ubuntu Computer object + api_response = api_instance.udm_computers_ubuntu_object_create(computers_ubuntu, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersUbuntuApi->udm_computers_ubuntu_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_ubuntu** | [**ComputersUbuntu**](ComputersUbuntu.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_ubuntu_object_modify** +> InlineResponse201 udm_computers_ubuntu_object_modify(dn, computers_ubuntu, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Ubuntu Computer object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersUbuntuApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_ubuntu = openapi_client_udm.ComputersUbuntu() # ComputersUbuntu | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Ubuntu Computer object + api_response = api_instance.udm_computers_ubuntu_object_modify(dn, computers_ubuntu, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersUbuntuApi->udm_computers_ubuntu_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_ubuntu** | [**ComputersUbuntu**](ComputersUbuntu.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ubuntu_object_remove** +> udm_computers_ubuntu_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Ubuntu Computers object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersUbuntuApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Ubuntu Computers object + api_instance.udm_computers_ubuntu_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersUbuntuApi->udm_computers_ubuntu_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ubuntu_object_search** +> ComputersUbuntuList udm_computers_ubuntu_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Ubuntu Computers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersUbuntuApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Ubuntu Computers objects + api_response = api_instance.udm_computers_ubuntu_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersUbuntuApi->udm_computers_ubuntu_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersUbuntuList**](ComputersUbuntuList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ubuntu_object_template** +> ComputersUbuntu udm_computers_ubuntu_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Ubuntu Computer object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersUbuntuApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Ubuntu Computer object (contains all properties and their default values) + api_response = api_instance.udm_computers_ubuntu_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersUbuntuApi->udm_computers_ubuntu_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersUbuntu**](ComputersUbuntu.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Ubuntu Computer. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_ubuntu_object_update** +> udm_computers_ubuntu_object_update(dn, computers_ubuntu, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Ubuntu Computer object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersUbuntuApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_ubuntu = openapi_client_udm.ComputersUbuntu() # ComputersUbuntu | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Ubuntu Computer object (moving is currently not possible) + api_instance.udm_computers_ubuntu_object_update(dn, computers_ubuntu, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersUbuntuApi->udm_computers_ubuntu_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_ubuntu** | [**ComputersUbuntu**](ComputersUbuntu.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersUbuntuList.md b/docs/ComputersUbuntuList.md new file mode 100644 index 0000000..d6be651 --- /dev/null +++ b/docs/ComputersUbuntuList.md @@ -0,0 +1,11 @@ +# ComputersUbuntuList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersUbuntuListEmbedded**](ComputersUbuntuListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersUbuntuListEmbedded.md b/docs/ComputersUbuntuListEmbedded.md new file mode 100644 index 0000000..32a4fc1 --- /dev/null +++ b/docs/ComputersUbuntuListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersUbuntuListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersUbuntu]**](ComputersUbuntu.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersUbuntuOptions.md b/docs/ComputersUbuntuOptions.md new file mode 100644 index 0000000..3fa48e3 --- /dev/null +++ b/docs/ComputersUbuntuOptions.md @@ -0,0 +1,17 @@ +# ComputersUbuntuOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersUbuntuRequest.md b/docs/ComputersUbuntuRequest.md new file mode 100644 index 0000000..0d2c116 --- /dev/null +++ b/docs/ComputersUbuntuRequest.md @@ -0,0 +1,15 @@ +# ComputersUbuntuRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersUbuntuOptions**](ComputersUbuntuOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersUbuntuRequestPatch.md b/docs/ComputersUbuntuRequestPatch.md new file mode 100644 index 0000000..722f3ce --- /dev/null +++ b/docs/ComputersUbuntuRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersUbuntuRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersUbuntuOptions**](ComputersUbuntuOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersUbuntuResponseMixin.md b/docs/ComputersUbuntuResponseMixin.md new file mode 100644 index 0000000..9f55ae8 --- /dev/null +++ b/docs/ComputersUbuntuResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersUbuntuResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindows.md b/docs/ComputersWindows.md new file mode 100644 index 0000000..b6a59c1 --- /dev/null +++ b/docs/ComputersWindows.md @@ -0,0 +1,20 @@ +# ComputersWindows + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersWindowsOptions**](ComputersWindowsOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsApi.md b/docs/ComputersWindowsApi.md new file mode 100644 index 0000000..3a043ae --- /dev/null +++ b/docs/ComputersWindowsApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersWindowsApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_windows_object**](ComputersWindowsApi.md#udm_computers_windows_object) | **GET** /computers/windows/{dn} | Get a representation of the Windows Workstation/Server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_windows_object_create**](ComputersWindowsApi.md#udm_computers_windows_object_create) | **POST** /computers/windows/ | Create a new Windows Workstation/Server object +[**udm_computers_windows_object_modify**](ComputersWindowsApi.md#udm_computers_windows_object_modify) | **PUT** /computers/windows/{dn} | Modify or move an Windows Workstation/Server object +[**udm_computers_windows_object_remove**](ComputersWindowsApi.md#udm_computers_windows_object_remove) | **DELETE** /computers/windows/{dn} | Remove a Windows Workstations/Servers object +[**udm_computers_windows_object_search**](ComputersWindowsApi.md#udm_computers_windows_object_search) | **GET** /computers/windows/ | Search for Windows Workstations/Servers objects +[**udm_computers_windows_object_template**](ComputersWindowsApi.md#udm_computers_windows_object_template) | **GET** /computers/windows/add | Get a template for creating an Windows Workstation/Server object (contains all properties and their default values) +[**udm_computers_windows_object_update**](ComputersWindowsApi.md#udm_computers_windows_object_update) | **PATCH** /computers/windows/{dn} | Modify an Windows Workstation/Server object (moving is currently not possible) + + +# **udm_computers_windows_object** +> ComputersWindows udm_computers_windows_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Windows Workstation/Server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Windows Workstation/Server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_windows_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsApi->udm_computers_windows_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersWindows**](ComputersWindows.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_object_create** +> InlineResponse201 udm_computers_windows_object_create(computers_windows, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Windows Workstation/Server object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsApi(api_client) + computers_windows = openapi_client_udm.ComputersWindows() # ComputersWindows | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Windows Workstation/Server object + api_response = api_instance.udm_computers_windows_object_create(computers_windows, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsApi->udm_computers_windows_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_windows** | [**ComputersWindows**](ComputersWindows.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_windows_object_modify** +> InlineResponse201 udm_computers_windows_object_modify(dn, computers_windows, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Windows Workstation/Server object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_windows = openapi_client_udm.ComputersWindows() # ComputersWindows | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Windows Workstation/Server object + api_response = api_instance.udm_computers_windows_object_modify(dn, computers_windows, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsApi->udm_computers_windows_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_windows** | [**ComputersWindows**](ComputersWindows.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_object_remove** +> udm_computers_windows_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Windows Workstations/Servers object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Windows Workstations/Servers object + api_instance.udm_computers_windows_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersWindowsApi->udm_computers_windows_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_object_search** +> ComputersWindowsList udm_computers_windows_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Windows Workstations/Servers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Windows Workstations/Servers objects + api_response = api_instance.udm_computers_windows_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsApi->udm_computers_windows_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersWindowsList**](ComputersWindowsList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_object_template** +> ComputersWindows udm_computers_windows_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Windows Workstation/Server object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Windows Workstation/Server object (contains all properties and their default values) + api_response = api_instance.udm_computers_windows_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsApi->udm_computers_windows_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersWindows**](ComputersWindows.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Windows Workstation/Server. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_object_update** +> udm_computers_windows_object_update(dn, computers_windows, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Windows Workstation/Server object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_windows = openapi_client_udm.ComputersWindows() # ComputersWindows | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Windows Workstation/Server object (moving is currently not possible) + api_instance.udm_computers_windows_object_update(dn, computers_windows, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersWindowsApi->udm_computers_windows_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_windows** | [**ComputersWindows**](ComputersWindows.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersWindowsDomaincontroller.md b/docs/ComputersWindowsDomaincontroller.md new file mode 100644 index 0000000..d3200e7 --- /dev/null +++ b/docs/ComputersWindowsDomaincontroller.md @@ -0,0 +1,20 @@ +# ComputersWindowsDomaincontroller + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersWindowsDomaincontrollerOptions**](ComputersWindowsDomaincontrollerOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsDomaincontrollerApi.md b/docs/ComputersWindowsDomaincontrollerApi.md new file mode 100644 index 0000000..bbf0794 --- /dev/null +++ b/docs/ComputersWindowsDomaincontrollerApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ComputersWindowsDomaincontrollerApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_computers_windows_domaincontroller_object**](ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object) | **GET** /computers/windows_domaincontroller/{dn} | Get a representation of the Windows Domaincontroller object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_computers_windows_domaincontroller_object_create**](ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_create) | **POST** /computers/windows_domaincontroller/ | Create a new Windows Domaincontroller object +[**udm_computers_windows_domaincontroller_object_modify**](ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_modify) | **PUT** /computers/windows_domaincontroller/{dn} | Modify or move an Windows Domaincontroller object +[**udm_computers_windows_domaincontroller_object_remove**](ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_remove) | **DELETE** /computers/windows_domaincontroller/{dn} | Remove a Windows Domaincontrollers object +[**udm_computers_windows_domaincontroller_object_search**](ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_search) | **GET** /computers/windows_domaincontroller/ | Search for Windows Domaincontrollers objects +[**udm_computers_windows_domaincontroller_object_template**](ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_template) | **GET** /computers/windows_domaincontroller/add | Get a template for creating an Windows Domaincontroller object (contains all properties and their default values) +[**udm_computers_windows_domaincontroller_object_update**](ComputersWindowsDomaincontrollerApi.md#udm_computers_windows_domaincontroller_object_update) | **PATCH** /computers/windows_domaincontroller/{dn} | Modify an Windows Domaincontroller object (moving is currently not possible) + + +# **udm_computers_windows_domaincontroller_object** +> ComputersWindowsDomaincontroller udm_computers_windows_domaincontroller_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Windows Domaincontroller object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsDomaincontrollerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Windows Domaincontroller object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_computers_windows_domaincontroller_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsDomaincontrollerApi->udm_computers_windows_domaincontroller_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersWindowsDomaincontroller**](ComputersWindowsDomaincontroller.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_domaincontroller_object_create** +> InlineResponse201 udm_computers_windows_domaincontroller_object_create(computers_windows_domaincontroller, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Windows Domaincontroller object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsDomaincontrollerApi(api_client) + computers_windows_domaincontroller = openapi_client_udm.ComputersWindowsDomaincontroller() # ComputersWindowsDomaincontroller | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Windows Domaincontroller object + api_response = api_instance.udm_computers_windows_domaincontroller_object_create(computers_windows_domaincontroller, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsDomaincontrollerApi->udm_computers_windows_domaincontroller_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **computers_windows_domaincontroller** | [**ComputersWindowsDomaincontroller**](ComputersWindowsDomaincontroller.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_computers_windows_domaincontroller_object_modify** +> InlineResponse201 udm_computers_windows_domaincontroller_object_modify(dn, computers_windows_domaincontroller, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Windows Domaincontroller object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsDomaincontrollerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_windows_domaincontroller = openapi_client_udm.ComputersWindowsDomaincontroller() # ComputersWindowsDomaincontroller | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Windows Domaincontroller object + api_response = api_instance.udm_computers_windows_domaincontroller_object_modify(dn, computers_windows_domaincontroller, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsDomaincontrollerApi->udm_computers_windows_domaincontroller_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_windows_domaincontroller** | [**ComputersWindowsDomaincontroller**](ComputersWindowsDomaincontroller.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_domaincontroller_object_remove** +> udm_computers_windows_domaincontroller_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Windows Domaincontrollers object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsDomaincontrollerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Windows Domaincontrollers object + api_instance.udm_computers_windows_domaincontroller_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersWindowsDomaincontrollerApi->udm_computers_windows_domaincontroller_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_domaincontroller_object_search** +> ComputersWindowsDomaincontrollerList udm_computers_windows_domaincontroller_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Windows Domaincontrollers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsDomaincontrollerApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Windows Domaincontrollers objects + api_response = api_instance.udm_computers_windows_domaincontroller_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsDomaincontrollerApi->udm_computers_windows_domaincontroller_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersWindowsDomaincontrollerList**](ComputersWindowsDomaincontrollerList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_domaincontroller_object_template** +> ComputersWindowsDomaincontroller udm_computers_windows_domaincontroller_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Windows Domaincontroller object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsDomaincontrollerApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Windows Domaincontroller object (contains all properties and their default values) + api_response = api_instance.udm_computers_windows_domaincontroller_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ComputersWindowsDomaincontrollerApi->udm_computers_windows_domaincontroller_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ComputersWindowsDomaincontroller**](ComputersWindowsDomaincontroller.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Windows Domaincontroller. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_computers_windows_domaincontroller_object_update** +> udm_computers_windows_domaincontroller_object_update(dn, computers_windows_domaincontroller, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Windows Domaincontroller object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ComputersWindowsDomaincontrollerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +computers_windows_domaincontroller = openapi_client_udm.ComputersWindowsDomaincontroller() # ComputersWindowsDomaincontroller | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Windows Domaincontroller object (moving is currently not possible) + api_instance.udm_computers_windows_domaincontroller_object_update(dn, computers_windows_domaincontroller, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ComputersWindowsDomaincontrollerApi->udm_computers_windows_domaincontroller_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **computers_windows_domaincontroller** | [**ComputersWindowsDomaincontroller**](ComputersWindowsDomaincontroller.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ComputersWindowsDomaincontrollerList.md b/docs/ComputersWindowsDomaincontrollerList.md new file mode 100644 index 0000000..f1460e2 --- /dev/null +++ b/docs/ComputersWindowsDomaincontrollerList.md @@ -0,0 +1,11 @@ +# ComputersWindowsDomaincontrollerList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersWindowsDomaincontrollerListEmbedded**](ComputersWindowsDomaincontrollerListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsDomaincontrollerListEmbedded.md b/docs/ComputersWindowsDomaincontrollerListEmbedded.md new file mode 100644 index 0000000..29727bc --- /dev/null +++ b/docs/ComputersWindowsDomaincontrollerListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersWindowsDomaincontrollerListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersWindowsDomaincontroller]**](ComputersWindowsDomaincontroller.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsDomaincontrollerOptions.md b/docs/ComputersWindowsDomaincontrollerOptions.md new file mode 100644 index 0000000..90c6c64 --- /dev/null +++ b/docs/ComputersWindowsDomaincontrollerOptions.md @@ -0,0 +1,17 @@ +# ComputersWindowsDomaincontrollerOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsDomaincontrollerRequest.md b/docs/ComputersWindowsDomaincontrollerRequest.md new file mode 100644 index 0000000..a403d26 --- /dev/null +++ b/docs/ComputersWindowsDomaincontrollerRequest.md @@ -0,0 +1,15 @@ +# ComputersWindowsDomaincontrollerRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersWindowsDomaincontrollerOptions**](ComputersWindowsDomaincontrollerOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsDomaincontrollerRequestPatch.md b/docs/ComputersWindowsDomaincontrollerRequestPatch.md new file mode 100644 index 0000000..02fb87e --- /dev/null +++ b/docs/ComputersWindowsDomaincontrollerRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersWindowsDomaincontrollerRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersWindowsDomaincontrollerOptions**](ComputersWindowsDomaincontrollerOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsDomaincontrollerResponseMixin.md b/docs/ComputersWindowsDomaincontrollerResponseMixin.md new file mode 100644 index 0000000..2df9279 --- /dev/null +++ b/docs/ComputersWindowsDomaincontrollerResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersWindowsDomaincontrollerResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsList.md b/docs/ComputersWindowsList.md new file mode 100644 index 0000000..61799f8 --- /dev/null +++ b/docs/ComputersWindowsList.md @@ -0,0 +1,11 @@ +# ComputersWindowsList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ComputersWindowsListEmbedded**](ComputersWindowsListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsListEmbedded.md b/docs/ComputersWindowsListEmbedded.md new file mode 100644 index 0000000..6665c91 --- /dev/null +++ b/docs/ComputersWindowsListEmbedded.md @@ -0,0 +1,11 @@ +# ComputersWindowsListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ComputersWindows]**](ComputersWindows.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsOptions.md b/docs/ComputersWindowsOptions.md new file mode 100644 index 0000000..fdab4e3 --- /dev/null +++ b/docs/ComputersWindowsOptions.md @@ -0,0 +1,17 @@ +# ComputersWindowsOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix account | [optional] [default to True] +**kerberos** | **bool** | Kerberos principal | [optional] [default to True] +**samba** | **bool** | Samba account | [optional] [default to True] +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] +**nagios** | **bool** | Nagios support | [optional] [default to False] +**radius_authenticator** | **bool** | RADIUS Authenticator | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsRequest.md b/docs/ComputersWindowsRequest.md new file mode 100644 index 0000000..dcfc07c --- /dev/null +++ b/docs/ComputersWindowsRequest.md @@ -0,0 +1,15 @@ +# ComputersWindowsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersWindowsOptions**](ComputersWindowsOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsRequestPatch.md b/docs/ComputersWindowsRequestPatch.md new file mode 100644 index 0000000..49844b8 --- /dev/null +++ b/docs/ComputersWindowsRequestPatch.md @@ -0,0 +1,14 @@ +# ComputersWindowsRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ComputersWindowsOptions**](ComputersWindowsOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComputersWindowsResponseMixin.md b/docs/ComputersWindowsResponseMixin.md new file mode 100644 index 0000000..35fc442 --- /dev/null +++ b/docs/ComputersWindowsResponseMixin.md @@ -0,0 +1,15 @@ +# ComputersWindowsResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerCn.md b/docs/ContainerCn.md new file mode 100644 index 0000000..535613e --- /dev/null +++ b/docs/ContainerCn.md @@ -0,0 +1,20 @@ +# ContainerCn + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerCnPolicies**](ContainerCnPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerCnApi.md b/docs/ContainerCnApi.md new file mode 100644 index 0000000..9d25363 --- /dev/null +++ b/docs/ContainerCnApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ContainerCnApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_container_cn_object**](ContainerCnApi.md#udm_container_cn_object) | **GET** /container/cn/{dn} | Get a representation of the Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_container_cn_object_create**](ContainerCnApi.md#udm_container_cn_object_create) | **POST** /container/cn/ | Create a new Container object +[**udm_container_cn_object_modify**](ContainerCnApi.md#udm_container_cn_object_modify) | **PUT** /container/cn/{dn} | Modify or move an Container object +[**udm_container_cn_object_remove**](ContainerCnApi.md#udm_container_cn_object_remove) | **DELETE** /container/cn/{dn} | Remove a Containers object +[**udm_container_cn_object_search**](ContainerCnApi.md#udm_container_cn_object_search) | **GET** /container/cn/ | Search for Containers objects +[**udm_container_cn_object_template**](ContainerCnApi.md#udm_container_cn_object_template) | **GET** /container/cn/add | Get a template for creating an Container object (contains all properties and their default values) +[**udm_container_cn_object_update**](ContainerCnApi.md#udm_container_cn_object_update) | **PATCH** /container/cn/{dn} | Modify an Container object (moving is currently not possible) + + +# **udm_container_cn_object** +> ContainerCn udm_container_cn_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerCnApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_container_cn_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerCnApi->udm_container_cn_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerCn**](ContainerCn.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_cn_object_create** +> InlineResponse201 udm_container_cn_object_create(container_cn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Container object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerCnApi(api_client) + container_cn = openapi_client_udm.ContainerCn() # ContainerCn | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Container object + api_response = api_instance.udm_container_cn_object_create(container_cn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerCnApi->udm_container_cn_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **container_cn** | [**ContainerCn**](ContainerCn.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_container_cn_object_modify** +> InlineResponse201 udm_container_cn_object_modify(dn, container_cn, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Container object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerCnApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +container_cn = openapi_client_udm.ContainerCn() # ContainerCn | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Container object + api_response = api_instance.udm_container_cn_object_modify(dn, container_cn, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerCnApi->udm_container_cn_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **container_cn** | [**ContainerCn**](ContainerCn.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_cn_object_remove** +> udm_container_cn_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Containers object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerCnApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Containers object + api_instance.udm_container_cn_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ContainerCnApi->udm_container_cn_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_cn_object_search** +> ContainerCnList udm_container_cn_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Containers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerCnApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Containers objects + api_response = api_instance.udm_container_cn_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerCnApi->udm_container_cn_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerCnList**](ContainerCnList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_cn_object_template** +> ContainerCn udm_container_cn_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Container object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerCnApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Container object (contains all properties and their default values) + api_response = api_instance.udm_container_cn_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerCnApi->udm_container_cn_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerCn**](ContainerCn.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Container. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_cn_object_update** +> udm_container_cn_object_update(dn, container_cn, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Container object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerCnApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +container_cn = openapi_client_udm.ContainerCn() # ContainerCn | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Container object (moving is currently not possible) + api_instance.udm_container_cn_object_update(dn, container_cn, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ContainerCnApi->udm_container_cn_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **container_cn** | [**ContainerCn**](ContainerCn.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ContainerCnList.md b/docs/ContainerCnList.md new file mode 100644 index 0000000..b8fc7f9 --- /dev/null +++ b/docs/ContainerCnList.md @@ -0,0 +1,11 @@ +# ContainerCnList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ContainerCnListEmbedded**](ContainerCnListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerCnListEmbedded.md b/docs/ContainerCnListEmbedded.md new file mode 100644 index 0000000..c227179 --- /dev/null +++ b/docs/ContainerCnListEmbedded.md @@ -0,0 +1,11 @@ +# ContainerCnListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ContainerCn]**](ContainerCn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerCnPolicies.md b/docs/ContainerCnPolicies.md new file mode 100644 index 0000000..a29d20e --- /dev/null +++ b/docs/ContainerCnPolicies.md @@ -0,0 +1,35 @@ +# ContainerCnPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerCnRequest.md b/docs/ContainerCnRequest.md new file mode 100644 index 0000000..b4eb4cd --- /dev/null +++ b/docs/ContainerCnRequest.md @@ -0,0 +1,15 @@ +# ContainerCnRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerCnPolicies**](ContainerCnPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerCnRequestPatch.md b/docs/ContainerCnRequestPatch.md new file mode 100644 index 0000000..5f616be --- /dev/null +++ b/docs/ContainerCnRequestPatch.md @@ -0,0 +1,14 @@ +# ContainerCnRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerCnPolicies**](ContainerCnPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerCnResponseMixin.md b/docs/ContainerCnResponseMixin.md new file mode 100644 index 0000000..8c620bf --- /dev/null +++ b/docs/ContainerCnResponseMixin.md @@ -0,0 +1,15 @@ +# ContainerCnResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerDc.md b/docs/ContainerDc.md new file mode 100644 index 0000000..b09bdf8 --- /dev/null +++ b/docs/ContainerDc.md @@ -0,0 +1,20 @@ +# ContainerDc + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ContainerDcOptions**](ContainerDcOptions.md) | | [optional] +**policies** | [**ContainerDcPolicies**](ContainerDcPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerDcApi.md b/docs/ContainerDcApi.md new file mode 100644 index 0000000..9bbfe8e --- /dev/null +++ b/docs/ContainerDcApi.md @@ -0,0 +1,404 @@ +# openapi_client_udm.ContainerDcApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_container_dc_object**](ContainerDcApi.md#udm_container_dc_object) | **GET** /container/dc/{dn} | Get a representation of the Domain Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_container_dc_object_modify**](ContainerDcApi.md#udm_container_dc_object_modify) | **PUT** /container/dc/{dn} | Modify or move an Domain Container object +[**udm_container_dc_object_search**](ContainerDcApi.md#udm_container_dc_object_search) | **GET** /container/dc/ | Search for Domain Containers objects +[**udm_container_dc_object_update**](ContainerDcApi.md#udm_container_dc_object_update) | **PATCH** /container/dc/{dn} | Modify an Domain Container object (moving is currently not possible) + + +# **udm_container_dc_object** +> ContainerDc udm_container_dc_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Domain Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerDcApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Domain Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_container_dc_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerDcApi->udm_container_dc_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerDc**](ContainerDc.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_dc_object_modify** +> InlineResponse201 udm_container_dc_object_modify(dn, container_dc, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Domain Container object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerDcApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +container_dc = openapi_client_udm.ContainerDc() # ContainerDc | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Domain Container object + api_response = api_instance.udm_container_dc_object_modify(dn, container_dc, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerDcApi->udm_container_dc_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **container_dc** | [**ContainerDc**](ContainerDc.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_dc_object_search** +> ContainerDcList udm_container_dc_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Domain Containers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerDcApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Domain Containers objects + api_response = api_instance.udm_container_dc_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerDcApi->udm_container_dc_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerDcList**](ContainerDcList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_dc_object_update** +> udm_container_dc_object_update(dn, container_dc, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Domain Container object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerDcApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +container_dc = openapi_client_udm.ContainerDc() # ContainerDc | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Domain Container object (moving is currently not possible) + api_instance.udm_container_dc_object_update(dn, container_dc, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ContainerDcApi->udm_container_dc_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **container_dc** | [**ContainerDc**](ContainerDc.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ContainerDcList.md b/docs/ContainerDcList.md new file mode 100644 index 0000000..86dd114 --- /dev/null +++ b/docs/ContainerDcList.md @@ -0,0 +1,11 @@ +# ContainerDcList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ContainerDcListEmbedded**](ContainerDcListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerDcListEmbedded.md b/docs/ContainerDcListEmbedded.md new file mode 100644 index 0000000..3657502 --- /dev/null +++ b/docs/ContainerDcListEmbedded.md @@ -0,0 +1,11 @@ +# ContainerDcListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ContainerDc]**](ContainerDc.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerDcOptions.md b/docs/ContainerDcOptions.md new file mode 100644 index 0000000..1d17a37 --- /dev/null +++ b/docs/ContainerDcOptions.md @@ -0,0 +1,13 @@ +# ContainerDcOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kerberos** | **bool** | Kerberos realm | [optional] [default to True] +**samba** | **bool** | Samba | [optional] [default to True] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerDcPolicies.md b/docs/ContainerDcPolicies.md new file mode 100644 index 0000000..051e50c --- /dev/null +++ b/docs/ContainerDcPolicies.md @@ -0,0 +1,35 @@ +# ContainerDcPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerDcRequest.md b/docs/ContainerDcRequest.md new file mode 100644 index 0000000..d98cad1 --- /dev/null +++ b/docs/ContainerDcRequest.md @@ -0,0 +1,15 @@ +# ContainerDcRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ContainerDcOptions**](ContainerDcOptions.md) | | [optional] +**policies** | [**ContainerDcPolicies**](ContainerDcPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerDcRequestPatch.md b/docs/ContainerDcRequestPatch.md new file mode 100644 index 0000000..443b5d9 --- /dev/null +++ b/docs/ContainerDcRequestPatch.md @@ -0,0 +1,14 @@ +# ContainerDcRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**ContainerDcOptions**](ContainerDcOptions.md) | | [optional] +**policies** | [**ContainerDcPolicies**](ContainerDcPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerDcResponseMixin.md b/docs/ContainerDcResponseMixin.md new file mode 100644 index 0000000..a04b856 --- /dev/null +++ b/docs/ContainerDcResponseMixin.md @@ -0,0 +1,15 @@ +# ContainerDcResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerMsgpo.md b/docs/ContainerMsgpo.md new file mode 100644 index 0000000..2fe9b3b --- /dev/null +++ b/docs/ContainerMsgpo.md @@ -0,0 +1,20 @@ +# ContainerMsgpo + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerMsgpoPolicies**](ContainerMsgpoPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerMsgpoApi.md b/docs/ContainerMsgpoApi.md new file mode 100644 index 0000000..53c3d53 --- /dev/null +++ b/docs/ContainerMsgpoApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ContainerMsgpoApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_container_msgpo_object**](ContainerMsgpoApi.md#udm_container_msgpo_object) | **GET** /container/msgpo/{dn} | Get a representation of the Container: MS Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_container_msgpo_object_create**](ContainerMsgpoApi.md#udm_container_msgpo_object_create) | **POST** /container/msgpo/ | Create a new Container: MS Group Policy object +[**udm_container_msgpo_object_modify**](ContainerMsgpoApi.md#udm_container_msgpo_object_modify) | **PUT** /container/msgpo/{dn} | Modify or move an Container: MS Group Policy object +[**udm_container_msgpo_object_remove**](ContainerMsgpoApi.md#udm_container_msgpo_object_remove) | **DELETE** /container/msgpo/{dn} | Remove a Container: MS Group Policy object +[**udm_container_msgpo_object_search**](ContainerMsgpoApi.md#udm_container_msgpo_object_search) | **GET** /container/msgpo/ | Search for Container: MS Group Policy objects +[**udm_container_msgpo_object_template**](ContainerMsgpoApi.md#udm_container_msgpo_object_template) | **GET** /container/msgpo/add | Get a template for creating an Container: MS Group Policy object (contains all properties and their default values) +[**udm_container_msgpo_object_update**](ContainerMsgpoApi.md#udm_container_msgpo_object_update) | **PATCH** /container/msgpo/{dn} | Modify an Container: MS Group Policy object (moving is currently not possible) + + +# **udm_container_msgpo_object** +> ContainerMsgpo udm_container_msgpo_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Container: MS Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerMsgpoApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Container: MS Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_container_msgpo_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerMsgpoApi->udm_container_msgpo_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerMsgpo**](ContainerMsgpo.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_msgpo_object_create** +> InlineResponse201 udm_container_msgpo_object_create(container_msgpo, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Container: MS Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerMsgpoApi(api_client) + container_msgpo = openapi_client_udm.ContainerMsgpo() # ContainerMsgpo | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Container: MS Group Policy object + api_response = api_instance.udm_container_msgpo_object_create(container_msgpo, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerMsgpoApi->udm_container_msgpo_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **container_msgpo** | [**ContainerMsgpo**](ContainerMsgpo.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_container_msgpo_object_modify** +> InlineResponse201 udm_container_msgpo_object_modify(dn, container_msgpo, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Container: MS Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerMsgpoApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +container_msgpo = openapi_client_udm.ContainerMsgpo() # ContainerMsgpo | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Container: MS Group Policy object + api_response = api_instance.udm_container_msgpo_object_modify(dn, container_msgpo, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerMsgpoApi->udm_container_msgpo_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **container_msgpo** | [**ContainerMsgpo**](ContainerMsgpo.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_msgpo_object_remove** +> udm_container_msgpo_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Container: MS Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerMsgpoApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Container: MS Group Policy object + api_instance.udm_container_msgpo_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ContainerMsgpoApi->udm_container_msgpo_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_msgpo_object_search** +> ContainerMsgpoList udm_container_msgpo_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Container: MS Group Policy objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerMsgpoApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Container: MS Group Policy objects + api_response = api_instance.udm_container_msgpo_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerMsgpoApi->udm_container_msgpo_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerMsgpoList**](ContainerMsgpoList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_msgpo_object_template** +> ContainerMsgpo udm_container_msgpo_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Container: MS Group Policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerMsgpoApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Container: MS Group Policy object (contains all properties and their default values) + api_response = api_instance.udm_container_msgpo_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerMsgpoApi->udm_container_msgpo_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerMsgpo**](ContainerMsgpo.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Container: MS Group Policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_msgpo_object_update** +> udm_container_msgpo_object_update(dn, container_msgpo, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Container: MS Group Policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerMsgpoApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +container_msgpo = openapi_client_udm.ContainerMsgpo() # ContainerMsgpo | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Container: MS Group Policy object (moving is currently not possible) + api_instance.udm_container_msgpo_object_update(dn, container_msgpo, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ContainerMsgpoApi->udm_container_msgpo_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **container_msgpo** | [**ContainerMsgpo**](ContainerMsgpo.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ContainerMsgpoList.md b/docs/ContainerMsgpoList.md new file mode 100644 index 0000000..601e4b9 --- /dev/null +++ b/docs/ContainerMsgpoList.md @@ -0,0 +1,11 @@ +# ContainerMsgpoList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ContainerMsgpoListEmbedded**](ContainerMsgpoListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerMsgpoListEmbedded.md b/docs/ContainerMsgpoListEmbedded.md new file mode 100644 index 0000000..c59b0e9 --- /dev/null +++ b/docs/ContainerMsgpoListEmbedded.md @@ -0,0 +1,11 @@ +# ContainerMsgpoListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ContainerMsgpo]**](ContainerMsgpo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerMsgpoPolicies.md b/docs/ContainerMsgpoPolicies.md new file mode 100644 index 0000000..9facbda --- /dev/null +++ b/docs/ContainerMsgpoPolicies.md @@ -0,0 +1,35 @@ +# ContainerMsgpoPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerMsgpoRequest.md b/docs/ContainerMsgpoRequest.md new file mode 100644 index 0000000..7369ec9 --- /dev/null +++ b/docs/ContainerMsgpoRequest.md @@ -0,0 +1,15 @@ +# ContainerMsgpoRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerMsgpoPolicies**](ContainerMsgpoPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerMsgpoRequestPatch.md b/docs/ContainerMsgpoRequestPatch.md new file mode 100644 index 0000000..0b678cc --- /dev/null +++ b/docs/ContainerMsgpoRequestPatch.md @@ -0,0 +1,14 @@ +# ContainerMsgpoRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerMsgpoPolicies**](ContainerMsgpoPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerMsgpoResponseMixin.md b/docs/ContainerMsgpoResponseMixin.md new file mode 100644 index 0000000..668ef20 --- /dev/null +++ b/docs/ContainerMsgpoResponseMixin.md @@ -0,0 +1,15 @@ +# ContainerMsgpoResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerOu.md b/docs/ContainerOu.md new file mode 100644 index 0000000..e9fdedf --- /dev/null +++ b/docs/ContainerOu.md @@ -0,0 +1,20 @@ +# ContainerOu + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerOuPolicies**](ContainerOuPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerOuApi.md b/docs/ContainerOuApi.md new file mode 100644 index 0000000..4869295 --- /dev/null +++ b/docs/ContainerOuApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.ContainerOuApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_container_ou_object**](ContainerOuApi.md#udm_container_ou_object) | **GET** /container/ou/{dn} | Get a representation of the Organisational Unit object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_container_ou_object_create**](ContainerOuApi.md#udm_container_ou_object_create) | **POST** /container/ou/ | Create a new Organisational Unit object +[**udm_container_ou_object_modify**](ContainerOuApi.md#udm_container_ou_object_modify) | **PUT** /container/ou/{dn} | Modify or move an Organisational Unit object +[**udm_container_ou_object_remove**](ContainerOuApi.md#udm_container_ou_object_remove) | **DELETE** /container/ou/{dn} | Remove a Organisational Units object +[**udm_container_ou_object_search**](ContainerOuApi.md#udm_container_ou_object_search) | **GET** /container/ou/ | Search for Organisational Units objects +[**udm_container_ou_object_template**](ContainerOuApi.md#udm_container_ou_object_template) | **GET** /container/ou/add | Get a template for creating an Organisational Unit object (contains all properties and their default values) +[**udm_container_ou_object_update**](ContainerOuApi.md#udm_container_ou_object_update) | **PATCH** /container/ou/{dn} | Modify an Organisational Unit object (moving is currently not possible) + + +# **udm_container_ou_object** +> ContainerOu udm_container_ou_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Organisational Unit object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerOuApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Organisational Unit object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_container_ou_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerOuApi->udm_container_ou_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerOu**](ContainerOu.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_ou_object_create** +> InlineResponse201 udm_container_ou_object_create(container_ou, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Organisational Unit object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerOuApi(api_client) + container_ou = openapi_client_udm.ContainerOu() # ContainerOu | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Organisational Unit object + api_response = api_instance.udm_container_ou_object_create(container_ou, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerOuApi->udm_container_ou_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **container_ou** | [**ContainerOu**](ContainerOu.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_container_ou_object_modify** +> InlineResponse201 udm_container_ou_object_modify(dn, container_ou, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Organisational Unit object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerOuApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +container_ou = openapi_client_udm.ContainerOu() # ContainerOu | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Organisational Unit object + api_response = api_instance.udm_container_ou_object_modify(dn, container_ou, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerOuApi->udm_container_ou_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **container_ou** | [**ContainerOu**](ContainerOu.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_ou_object_remove** +> udm_container_ou_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Organisational Units object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerOuApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Organisational Units object + api_instance.udm_container_ou_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ContainerOuApi->udm_container_ou_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_ou_object_search** +> ContainerOuList udm_container_ou_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Organisational Units objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerOuApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Organisational Units objects + api_response = api_instance.udm_container_ou_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerOuApi->udm_container_ou_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerOuList**](ContainerOuList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_ou_object_template** +> ContainerOu udm_container_ou_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Organisational Unit object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerOuApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Organisational Unit object (contains all properties and their default values) + api_response = api_instance.udm_container_ou_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling ContainerOuApi->udm_container_ou_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**ContainerOu**](ContainerOu.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Organisational Unit. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_container_ou_object_update** +> udm_container_ou_object_update(dn, container_ou, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Organisational Unit object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.ContainerOuApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +container_ou = openapi_client_udm.ContainerOu() # ContainerOu | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Organisational Unit object (moving is currently not possible) + api_instance.udm_container_ou_object_update(dn, container_ou, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling ContainerOuApi->udm_container_ou_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **container_ou** | [**ContainerOu**](ContainerOu.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/ContainerOuList.md b/docs/ContainerOuList.md new file mode 100644 index 0000000..e220e85 --- /dev/null +++ b/docs/ContainerOuList.md @@ -0,0 +1,11 @@ +# ContainerOuList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**ContainerOuListEmbedded**](ContainerOuListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerOuListEmbedded.md b/docs/ContainerOuListEmbedded.md new file mode 100644 index 0000000..3f8d191 --- /dev/null +++ b/docs/ContainerOuListEmbedded.md @@ -0,0 +1,11 @@ +# ContainerOuListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[ContainerOu]**](ContainerOu.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerOuPolicies.md b/docs/ContainerOuPolicies.md new file mode 100644 index 0000000..d1be796 --- /dev/null +++ b/docs/ContainerOuPolicies.md @@ -0,0 +1,35 @@ +# ContainerOuPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerOuRequest.md b/docs/ContainerOuRequest.md new file mode 100644 index 0000000..9b20038 --- /dev/null +++ b/docs/ContainerOuRequest.md @@ -0,0 +1,15 @@ +# ContainerOuRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerOuPolicies**](ContainerOuPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerOuRequestPatch.md b/docs/ContainerOuRequestPatch.md new file mode 100644 index 0000000..51086b8 --- /dev/null +++ b/docs/ContainerOuRequestPatch.md @@ -0,0 +1,14 @@ +# ContainerOuRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**ContainerOuPolicies**](ContainerOuPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContainerOuResponseMixin.md b/docs/ContainerOuResponseMixin.md new file mode 100644 index 0000000..8438fd6 --- /dev/null +++ b/docs/ContainerOuResponseMixin.md @@ -0,0 +1,15 @@ +# ContainerOuResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpDhcp.md b/docs/DhcpDhcp.md new file mode 100644 index 0000000..009dbe5 --- /dev/null +++ b/docs/DhcpDhcp.md @@ -0,0 +1,20 @@ +# DhcpDhcp + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpDhcpApi.md b/docs/DhcpDhcpApi.md new file mode 100644 index 0000000..2cc35e0 --- /dev/null +++ b/docs/DhcpDhcpApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.DhcpDhcpApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dhcp_dhcp_object**](DhcpDhcpApi.md#udm_dhcp_dhcp_object) | **GET** /dhcp/dhcp/{dn} | Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dhcp_dhcp_object_search**](DhcpDhcpApi.md#udm_dhcp_dhcp_object_search) | **GET** /dhcp/dhcp/ | Search for DHCP services objects + + +# **udm_dhcp_dhcp_object** +> DhcpDhcp udm_dhcp_dhcp_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpDhcpApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dhcp_dhcp_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpDhcpApi->udm_dhcp_dhcp_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpDhcp**](DhcpDhcp.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_dhcp_object_search** +> DhcpDhcpList udm_dhcp_dhcp_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP services objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpDhcpApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP services objects + api_response = api_instance.udm_dhcp_dhcp_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpDhcpApi->udm_dhcp_dhcp_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpDhcpList**](DhcpDhcpList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DhcpDhcpList.md b/docs/DhcpDhcpList.md new file mode 100644 index 0000000..f8ba3a8 --- /dev/null +++ b/docs/DhcpDhcpList.md @@ -0,0 +1,11 @@ +# DhcpDhcpList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DhcpDhcpListEmbedded**](DhcpDhcpListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpDhcpListEmbedded.md b/docs/DhcpDhcpListEmbedded.md new file mode 100644 index 0000000..eea5c41 --- /dev/null +++ b/docs/DhcpDhcpListEmbedded.md @@ -0,0 +1,11 @@ +# DhcpDhcpListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DhcpDhcp]**](DhcpDhcp.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpDhcpRequest.md b/docs/DhcpDhcpRequest.md new file mode 100644 index 0000000..68832f3 --- /dev/null +++ b/docs/DhcpDhcpRequest.md @@ -0,0 +1,15 @@ +# DhcpDhcpRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpDhcpRequestPatch.md b/docs/DhcpDhcpRequestPatch.md new file mode 100644 index 0000000..889d5b1 --- /dev/null +++ b/docs/DhcpDhcpRequestPatch.md @@ -0,0 +1,14 @@ +# DhcpDhcpRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpDhcpResponseMixin.md b/docs/DhcpDhcpResponseMixin.md new file mode 100644 index 0000000..ec04681 --- /dev/null +++ b/docs/DhcpDhcpResponseMixin.md @@ -0,0 +1,15 @@ +# DhcpDhcpResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpHost.md b/docs/DhcpHost.md new file mode 100644 index 0000000..7cf86e3 --- /dev/null +++ b/docs/DhcpHost.md @@ -0,0 +1,21 @@ +# DhcpHost + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpHostOptions**](DhcpHostOptions.md) | | [optional] +**policies** | [**DhcpHostPolicies**](DhcpHostPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpHostApi.md b/docs/DhcpHostApi.md new file mode 100644 index 0000000..ef3d8b4 --- /dev/null +++ b/docs/DhcpHostApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DhcpHostApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dhcp_host_object**](DhcpHostApi.md#udm_dhcp_host_object) | **GET** /dhcp/host/{dn} | Get a representation of the DHCP host object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dhcp_host_object_create**](DhcpHostApi.md#udm_dhcp_host_object_create) | **POST** /dhcp/host/ | Create a new DHCP host object +[**udm_dhcp_host_object_modify**](DhcpHostApi.md#udm_dhcp_host_object_modify) | **PUT** /dhcp/host/{dn} | Modify or move an DHCP host object +[**udm_dhcp_host_object_remove**](DhcpHostApi.md#udm_dhcp_host_object_remove) | **DELETE** /dhcp/host/{dn} | Remove a DHCP hosts object +[**udm_dhcp_host_object_search**](DhcpHostApi.md#udm_dhcp_host_object_search) | **GET** /dhcp/host/ | Search for DHCP hosts objects +[**udm_dhcp_host_object_template**](DhcpHostApi.md#udm_dhcp_host_object_template) | **GET** /dhcp/host/add | Get a template for creating an DHCP host object (contains all properties and their default values) +[**udm_dhcp_host_object_update**](DhcpHostApi.md#udm_dhcp_host_object_update) | **PATCH** /dhcp/host/{dn} | Modify an DHCP host object (moving is currently not possible) + + +# **udm_dhcp_host_object** +> DhcpHost udm_dhcp_host_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP host object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpHostApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP host object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dhcp_host_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpHostApi->udm_dhcp_host_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpHost**](DhcpHost.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_host_object_create** +> InlineResponse201 udm_dhcp_host_object_create(dhcp_host, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP host object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpHostApi(api_client) + dhcp_host = openapi_client_udm.DhcpHost() # DhcpHost | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP host object + api_response = api_instance.udm_dhcp_host_object_create(dhcp_host, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpHostApi->udm_dhcp_host_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dhcp_host** | [**DhcpHost**](DhcpHost.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dhcp_host_object_modify** +> InlineResponse201 udm_dhcp_host_object_modify(dn, dhcp_host, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP host object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpHostApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_host = openapi_client_udm.DhcpHost() # DhcpHost | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP host object + api_response = api_instance.udm_dhcp_host_object_modify(dn, dhcp_host, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpHostApi->udm_dhcp_host_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_host** | [**DhcpHost**](DhcpHost.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_host_object_remove** +> udm_dhcp_host_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP hosts object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpHostApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP hosts object + api_instance.udm_dhcp_host_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpHostApi->udm_dhcp_host_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_host_object_search** +> DhcpHostList udm_dhcp_host_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for DHCP hosts objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpHostApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for DHCP hosts objects + api_response = api_instance.udm_dhcp_host_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpHostApi->udm_dhcp_host_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DhcpHostList**](DhcpHostList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_host_object_template** +> DhcpHost udm_dhcp_host_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP host object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpHostApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP host object (contains all properties and their default values) + api_response = api_instance.udm_dhcp_host_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpHostApi->udm_dhcp_host_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpHost**](DhcpHost.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP host. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_host_object_update** +> udm_dhcp_host_object_update(dn, dhcp_host, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP host object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpHostApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_host = openapi_client_udm.DhcpHost() # DhcpHost | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP host object (moving is currently not possible) + api_instance.udm_dhcp_host_object_update(dn, dhcp_host, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpHostApi->udm_dhcp_host_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_host** | [**DhcpHost**](DhcpHost.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DhcpHostList.md b/docs/DhcpHostList.md new file mode 100644 index 0000000..adc809f --- /dev/null +++ b/docs/DhcpHostList.md @@ -0,0 +1,11 @@ +# DhcpHostList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DhcpHostListEmbedded**](DhcpHostListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpHostListEmbedded.md b/docs/DhcpHostListEmbedded.md new file mode 100644 index 0000000..be3d8d0 --- /dev/null +++ b/docs/DhcpHostListEmbedded.md @@ -0,0 +1,11 @@ +# DhcpHostListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DhcpHost]**](DhcpHost.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpHostOptions.md b/docs/DhcpHostOptions.md new file mode 100644 index 0000000..5b19c2a --- /dev/null +++ b/docs/DhcpHostOptions.md @@ -0,0 +1,12 @@ +# DhcpHostOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**options** | **bool** | Allow custom DHCP options | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpHostPolicies.md b/docs/DhcpHostPolicies.md new file mode 100644 index 0000000..15a552b --- /dev/null +++ b/docs/DhcpHostPolicies.md @@ -0,0 +1,19 @@ +# DhcpHostPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpHostRequest.md b/docs/DhcpHostRequest.md new file mode 100644 index 0000000..0ea9055 --- /dev/null +++ b/docs/DhcpHostRequest.md @@ -0,0 +1,16 @@ +# DhcpHostRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpHostOptions**](DhcpHostOptions.md) | | [optional] +**policies** | [**DhcpHostPolicies**](DhcpHostPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpHostRequestPatch.md b/docs/DhcpHostRequestPatch.md new file mode 100644 index 0000000..db89a60 --- /dev/null +++ b/docs/DhcpHostRequestPatch.md @@ -0,0 +1,15 @@ +# DhcpHostRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpHostOptions**](DhcpHostOptions.md) | | [optional] +**policies** | [**DhcpHostPolicies**](DhcpHostPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpHostResponseMixin.md b/docs/DhcpHostResponseMixin.md new file mode 100644 index 0000000..c4a81fc --- /dev/null +++ b/docs/DhcpHostResponseMixin.md @@ -0,0 +1,15 @@ +# DhcpHostResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpPool.md b/docs/DhcpPool.md new file mode 100644 index 0000000..54f6fee --- /dev/null +++ b/docs/DhcpPool.md @@ -0,0 +1,21 @@ +# DhcpPool + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpPoolOptions**](DhcpPoolOptions.md) | | [optional] +**policies** | [**DhcpPoolPolicies**](DhcpPoolPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpPoolApi.md b/docs/DhcpPoolApi.md new file mode 100644 index 0000000..f21d6ff --- /dev/null +++ b/docs/DhcpPoolApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DhcpPoolApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dhcp_pool_object**](DhcpPoolApi.md#udm_dhcp_pool_object) | **GET** /dhcp/pool/{dn} | Get a representation of the DHCP pool object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dhcp_pool_object_create**](DhcpPoolApi.md#udm_dhcp_pool_object_create) | **POST** /dhcp/pool/ | Create a new DHCP pool object +[**udm_dhcp_pool_object_modify**](DhcpPoolApi.md#udm_dhcp_pool_object_modify) | **PUT** /dhcp/pool/{dn} | Modify or move an DHCP pool object +[**udm_dhcp_pool_object_remove**](DhcpPoolApi.md#udm_dhcp_pool_object_remove) | **DELETE** /dhcp/pool/{dn} | Remove a DHCP pools object +[**udm_dhcp_pool_object_search**](DhcpPoolApi.md#udm_dhcp_pool_object_search) | **GET** /dhcp/pool/ | Search for DHCP pools objects +[**udm_dhcp_pool_object_template**](DhcpPoolApi.md#udm_dhcp_pool_object_template) | **GET** /dhcp/pool/add | Get a template for creating an DHCP pool object (contains all properties and their default values) +[**udm_dhcp_pool_object_update**](DhcpPoolApi.md#udm_dhcp_pool_object_update) | **PATCH** /dhcp/pool/{dn} | Modify an DHCP pool object (moving is currently not possible) + + +# **udm_dhcp_pool_object** +> DhcpPool udm_dhcp_pool_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP pool object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpPoolApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP pool object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dhcp_pool_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpPoolApi->udm_dhcp_pool_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpPool**](DhcpPool.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_pool_object_create** +> InlineResponse201 udm_dhcp_pool_object_create(dhcp_pool, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP pool object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpPoolApi(api_client) + dhcp_pool = openapi_client_udm.DhcpPool() # DhcpPool | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP pool object + api_response = api_instance.udm_dhcp_pool_object_create(dhcp_pool, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpPoolApi->udm_dhcp_pool_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dhcp_pool** | [**DhcpPool**](DhcpPool.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dhcp_pool_object_modify** +> InlineResponse201 udm_dhcp_pool_object_modify(dn, dhcp_pool, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP pool object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpPoolApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_pool = openapi_client_udm.DhcpPool() # DhcpPool | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP pool object + api_response = api_instance.udm_dhcp_pool_object_modify(dn, dhcp_pool, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpPoolApi->udm_dhcp_pool_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_pool** | [**DhcpPool**](DhcpPool.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_pool_object_remove** +> udm_dhcp_pool_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP pools object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpPoolApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP pools object + api_instance.udm_dhcp_pool_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpPoolApi->udm_dhcp_pool_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_pool_object_search** +> DhcpPoolList udm_dhcp_pool_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for DHCP pools objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpPoolApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for DHCP pools objects + api_response = api_instance.udm_dhcp_pool_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpPoolApi->udm_dhcp_pool_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DhcpPoolList**](DhcpPoolList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_pool_object_template** +> DhcpPool udm_dhcp_pool_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP pool object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpPoolApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP pool object (contains all properties and their default values) + api_response = api_instance.udm_dhcp_pool_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpPoolApi->udm_dhcp_pool_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpPool**](DhcpPool.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP pool. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_pool_object_update** +> udm_dhcp_pool_object_update(dn, dhcp_pool, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP pool object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpPoolApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_pool = openapi_client_udm.DhcpPool() # DhcpPool | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP pool object (moving is currently not possible) + api_instance.udm_dhcp_pool_object_update(dn, dhcp_pool, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpPoolApi->udm_dhcp_pool_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_pool** | [**DhcpPool**](DhcpPool.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DhcpPoolList.md b/docs/DhcpPoolList.md new file mode 100644 index 0000000..b4bd6eb --- /dev/null +++ b/docs/DhcpPoolList.md @@ -0,0 +1,11 @@ +# DhcpPoolList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DhcpPoolListEmbedded**](DhcpPoolListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpPoolListEmbedded.md b/docs/DhcpPoolListEmbedded.md new file mode 100644 index 0000000..28ef8d6 --- /dev/null +++ b/docs/DhcpPoolListEmbedded.md @@ -0,0 +1,11 @@ +# DhcpPoolListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DhcpPool]**](DhcpPool.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpPoolOptions.md b/docs/DhcpPoolOptions.md new file mode 100644 index 0000000..187f704 --- /dev/null +++ b/docs/DhcpPoolOptions.md @@ -0,0 +1,12 @@ +# DhcpPoolOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**options** | **bool** | Allow custom DHCP options | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpPoolPolicies.md b/docs/DhcpPoolPolicies.md new file mode 100644 index 0000000..d15aad2 --- /dev/null +++ b/docs/DhcpPoolPolicies.md @@ -0,0 +1,18 @@ +# DhcpPoolPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpPoolRequest.md b/docs/DhcpPoolRequest.md new file mode 100644 index 0000000..0d2da20 --- /dev/null +++ b/docs/DhcpPoolRequest.md @@ -0,0 +1,16 @@ +# DhcpPoolRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpPoolOptions**](DhcpPoolOptions.md) | | [optional] +**policies** | [**DhcpPoolPolicies**](DhcpPoolPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpPoolRequestPatch.md b/docs/DhcpPoolRequestPatch.md new file mode 100644 index 0000000..15ad0e2 --- /dev/null +++ b/docs/DhcpPoolRequestPatch.md @@ -0,0 +1,15 @@ +# DhcpPoolRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpPoolOptions**](DhcpPoolOptions.md) | | [optional] +**policies** | [**DhcpPoolPolicies**](DhcpPoolPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpPoolResponseMixin.md b/docs/DhcpPoolResponseMixin.md new file mode 100644 index 0000000..8187ab8 --- /dev/null +++ b/docs/DhcpPoolResponseMixin.md @@ -0,0 +1,15 @@ +# DhcpPoolResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServer.md b/docs/DhcpServer.md new file mode 100644 index 0000000..f99f3da --- /dev/null +++ b/docs/DhcpServer.md @@ -0,0 +1,21 @@ +# DhcpServer + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServerApi.md b/docs/DhcpServerApi.md new file mode 100644 index 0000000..bcee992 --- /dev/null +++ b/docs/DhcpServerApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DhcpServerApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dhcp_server_object**](DhcpServerApi.md#udm_dhcp_server_object) | **GET** /dhcp/server/{dn} | Get a representation of the DHCP server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dhcp_server_object_create**](DhcpServerApi.md#udm_dhcp_server_object_create) | **POST** /dhcp/server/ | Create a new DHCP server object +[**udm_dhcp_server_object_modify**](DhcpServerApi.md#udm_dhcp_server_object_modify) | **PUT** /dhcp/server/{dn} | Modify or move an DHCP server object +[**udm_dhcp_server_object_remove**](DhcpServerApi.md#udm_dhcp_server_object_remove) | **DELETE** /dhcp/server/{dn} | Remove a DHCP servers object +[**udm_dhcp_server_object_search**](DhcpServerApi.md#udm_dhcp_server_object_search) | **GET** /dhcp/server/ | Search for DHCP servers objects +[**udm_dhcp_server_object_template**](DhcpServerApi.md#udm_dhcp_server_object_template) | **GET** /dhcp/server/add | Get a template for creating an DHCP server object (contains all properties and their default values) +[**udm_dhcp_server_object_update**](DhcpServerApi.md#udm_dhcp_server_object_update) | **PATCH** /dhcp/server/{dn} | Modify an DHCP server object (moving is currently not possible) + + +# **udm_dhcp_server_object** +> DhcpServer udm_dhcp_server_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dhcp_server_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServerApi->udm_dhcp_server_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpServer**](DhcpServer.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_server_object_create** +> InlineResponse201 udm_dhcp_server_object_create(dhcp_server, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP server object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServerApi(api_client) + dhcp_server = openapi_client_udm.DhcpServer() # DhcpServer | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP server object + api_response = api_instance.udm_dhcp_server_object_create(dhcp_server, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServerApi->udm_dhcp_server_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dhcp_server** | [**DhcpServer**](DhcpServer.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dhcp_server_object_modify** +> InlineResponse201 udm_dhcp_server_object_modify(dn, dhcp_server, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP server object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_server = openapi_client_udm.DhcpServer() # DhcpServer | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP server object + api_response = api_instance.udm_dhcp_server_object_modify(dn, dhcp_server, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServerApi->udm_dhcp_server_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_server** | [**DhcpServer**](DhcpServer.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_server_object_remove** +> udm_dhcp_server_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP servers object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP servers object + api_instance.udm_dhcp_server_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpServerApi->udm_dhcp_server_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_server_object_search** +> DhcpServerList udm_dhcp_server_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for DHCP servers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServerApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for DHCP servers objects + api_response = api_instance.udm_dhcp_server_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServerApi->udm_dhcp_server_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DhcpServerList**](DhcpServerList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_server_object_template** +> DhcpServer udm_dhcp_server_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP server object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServerApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP server object (contains all properties and their default values) + api_response = api_instance.udm_dhcp_server_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServerApi->udm_dhcp_server_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpServer**](DhcpServer.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP server. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_server_object_update** +> udm_dhcp_server_object_update(dn, dhcp_server, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP server object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_server = openapi_client_udm.DhcpServer() # DhcpServer | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP server object (moving is currently not possible) + api_instance.udm_dhcp_server_object_update(dn, dhcp_server, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpServerApi->udm_dhcp_server_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_server** | [**DhcpServer**](DhcpServer.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DhcpServerList.md b/docs/DhcpServerList.md new file mode 100644 index 0000000..af2cea1 --- /dev/null +++ b/docs/DhcpServerList.md @@ -0,0 +1,11 @@ +# DhcpServerList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DhcpServerListEmbedded**](DhcpServerListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServerListEmbedded.md b/docs/DhcpServerListEmbedded.md new file mode 100644 index 0000000..286425d --- /dev/null +++ b/docs/DhcpServerListEmbedded.md @@ -0,0 +1,11 @@ +# DhcpServerListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DhcpServer]**](DhcpServer.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServerRequest.md b/docs/DhcpServerRequest.md new file mode 100644 index 0000000..cd9ce3e --- /dev/null +++ b/docs/DhcpServerRequest.md @@ -0,0 +1,16 @@ +# DhcpServerRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServerRequestPatch.md b/docs/DhcpServerRequestPatch.md new file mode 100644 index 0000000..c51e4c9 --- /dev/null +++ b/docs/DhcpServerRequestPatch.md @@ -0,0 +1,15 @@ +# DhcpServerRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServerResponseMixin.md b/docs/DhcpServerResponseMixin.md new file mode 100644 index 0000000..49fc19e --- /dev/null +++ b/docs/DhcpServerResponseMixin.md @@ -0,0 +1,15 @@ +# DhcpServerResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpService.md b/docs/DhcpService.md new file mode 100644 index 0000000..068674c --- /dev/null +++ b/docs/DhcpService.md @@ -0,0 +1,20 @@ +# DhcpService + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpServiceOptions**](DhcpServiceOptions.md) | | [optional] +**policies** | [**DhcpServicePolicies**](DhcpServicePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServiceApi.md b/docs/DhcpServiceApi.md new file mode 100644 index 0000000..4b1db47 --- /dev/null +++ b/docs/DhcpServiceApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.DhcpServiceApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dhcp_service_object**](DhcpServiceApi.md#udm_dhcp_service_object) | **GET** /dhcp/service/{dn} | Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dhcp_service_object_create**](DhcpServiceApi.md#udm_dhcp_service_object_create) | **POST** /dhcp/service/ | Create a new DHCP service object +[**udm_dhcp_service_object_modify**](DhcpServiceApi.md#udm_dhcp_service_object_modify) | **PUT** /dhcp/service/{dn} | Modify or move an DHCP service object +[**udm_dhcp_service_object_remove**](DhcpServiceApi.md#udm_dhcp_service_object_remove) | **DELETE** /dhcp/service/{dn} | Remove a DHCP services object +[**udm_dhcp_service_object_search**](DhcpServiceApi.md#udm_dhcp_service_object_search) | **GET** /dhcp/service/ | Search for DHCP services objects +[**udm_dhcp_service_object_template**](DhcpServiceApi.md#udm_dhcp_service_object_template) | **GET** /dhcp/service/add | Get a template for creating an DHCP service object (contains all properties and their default values) +[**udm_dhcp_service_object_update**](DhcpServiceApi.md#udm_dhcp_service_object_update) | **PATCH** /dhcp/service/{dn} | Modify an DHCP service object (moving is currently not possible) + + +# **udm_dhcp_service_object** +> DhcpService udm_dhcp_service_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dhcp_service_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServiceApi->udm_dhcp_service_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpService**](DhcpService.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_service_object_create** +> InlineResponse201 udm_dhcp_service_object_create(dhcp_service, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP service object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServiceApi(api_client) + dhcp_service = openapi_client_udm.DhcpService() # DhcpService | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP service object + api_response = api_instance.udm_dhcp_service_object_create(dhcp_service, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServiceApi->udm_dhcp_service_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dhcp_service** | [**DhcpService**](DhcpService.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dhcp_service_object_modify** +> InlineResponse201 udm_dhcp_service_object_modify(dn, dhcp_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP service object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_service = openapi_client_udm.DhcpService() # DhcpService | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP service object + api_response = api_instance.udm_dhcp_service_object_modify(dn, dhcp_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServiceApi->udm_dhcp_service_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_service** | [**DhcpService**](DhcpService.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_service_object_remove** +> udm_dhcp_service_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP services object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP services object + api_instance.udm_dhcp_service_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpServiceApi->udm_dhcp_service_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_service_object_search** +> DhcpServiceList udm_dhcp_service_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP services objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServiceApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP services objects + api_response = api_instance.udm_dhcp_service_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServiceApi->udm_dhcp_service_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpServiceList**](DhcpServiceList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_service_object_template** +> DhcpService udm_dhcp_service_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP service object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServiceApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP service object (contains all properties and their default values) + api_response = api_instance.udm_dhcp_service_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpServiceApi->udm_dhcp_service_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpService**](DhcpService.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP service. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_service_object_update** +> udm_dhcp_service_object_update(dn, dhcp_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP service object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_service = openapi_client_udm.DhcpService() # DhcpService | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP service object (moving is currently not possible) + api_instance.udm_dhcp_service_object_update(dn, dhcp_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpServiceApi->udm_dhcp_service_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_service** | [**DhcpService**](DhcpService.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DhcpServiceList.md b/docs/DhcpServiceList.md new file mode 100644 index 0000000..dcbb97b --- /dev/null +++ b/docs/DhcpServiceList.md @@ -0,0 +1,11 @@ +# DhcpServiceList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DhcpServiceListEmbedded**](DhcpServiceListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServiceListEmbedded.md b/docs/DhcpServiceListEmbedded.md new file mode 100644 index 0000000..0ba02a4 --- /dev/null +++ b/docs/DhcpServiceListEmbedded.md @@ -0,0 +1,11 @@ +# DhcpServiceListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DhcpService]**](DhcpService.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServiceOptions.md b/docs/DhcpServiceOptions.md new file mode 100644 index 0000000..b7e0085 --- /dev/null +++ b/docs/DhcpServiceOptions.md @@ -0,0 +1,12 @@ +# DhcpServiceOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**options** | **bool** | Allow custom DHCP options | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServicePolicies.md b/docs/DhcpServicePolicies.md new file mode 100644 index 0000000..a446aa2 --- /dev/null +++ b/docs/DhcpServicePolicies.md @@ -0,0 +1,19 @@ +# DhcpServicePolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServiceRequest.md b/docs/DhcpServiceRequest.md new file mode 100644 index 0000000..4ec175d --- /dev/null +++ b/docs/DhcpServiceRequest.md @@ -0,0 +1,15 @@ +# DhcpServiceRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpServiceOptions**](DhcpServiceOptions.md) | | [optional] +**policies** | [**DhcpServicePolicies**](DhcpServicePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServiceRequestPatch.md b/docs/DhcpServiceRequestPatch.md new file mode 100644 index 0000000..09882b9 --- /dev/null +++ b/docs/DhcpServiceRequestPatch.md @@ -0,0 +1,14 @@ +# DhcpServiceRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpServiceOptions**](DhcpServiceOptions.md) | | [optional] +**policies** | [**DhcpServicePolicies**](DhcpServicePolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpServiceResponseMixin.md b/docs/DhcpServiceResponseMixin.md new file mode 100644 index 0000000..7a7302f --- /dev/null +++ b/docs/DhcpServiceResponseMixin.md @@ -0,0 +1,15 @@ +# DhcpServiceResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpShared.md b/docs/DhcpShared.md new file mode 100644 index 0000000..3c4713d --- /dev/null +++ b/docs/DhcpShared.md @@ -0,0 +1,21 @@ +# DhcpShared + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSharedOptions**](DhcpSharedOptions.md) | | [optional] +**policies** | [**DhcpSharedPolicies**](DhcpSharedPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedApi.md b/docs/DhcpSharedApi.md new file mode 100644 index 0000000..7539c5c --- /dev/null +++ b/docs/DhcpSharedApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DhcpSharedApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dhcp_shared_object**](DhcpSharedApi.md#udm_dhcp_shared_object) | **GET** /dhcp/shared/{dn} | Get a representation of the Shared network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dhcp_shared_object_create**](DhcpSharedApi.md#udm_dhcp_shared_object_create) | **POST** /dhcp/shared/ | Create a new Shared network object +[**udm_dhcp_shared_object_modify**](DhcpSharedApi.md#udm_dhcp_shared_object_modify) | **PUT** /dhcp/shared/{dn} | Modify or move an Shared network object +[**udm_dhcp_shared_object_remove**](DhcpSharedApi.md#udm_dhcp_shared_object_remove) | **DELETE** /dhcp/shared/{dn} | Remove a Shared network object +[**udm_dhcp_shared_object_search**](DhcpSharedApi.md#udm_dhcp_shared_object_search) | **GET** /dhcp/shared/ | Search for Shared network objects +[**udm_dhcp_shared_object_template**](DhcpSharedApi.md#udm_dhcp_shared_object_template) | **GET** /dhcp/shared/add | Get a template for creating an Shared network object (contains all properties and their default values) +[**udm_dhcp_shared_object_update**](DhcpSharedApi.md#udm_dhcp_shared_object_update) | **PATCH** /dhcp/shared/{dn} | Modify an Shared network object (moving is currently not possible) + + +# **udm_dhcp_shared_object** +> DhcpShared udm_dhcp_shared_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Shared network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Shared network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dhcp_shared_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedApi->udm_dhcp_shared_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpShared**](DhcpShared.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_shared_object_create** +> InlineResponse201 udm_dhcp_shared_object_create(dhcp_shared, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Shared network object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedApi(api_client) + dhcp_shared = openapi_client_udm.DhcpShared() # DhcpShared | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Shared network object + api_response = api_instance.udm_dhcp_shared_object_create(dhcp_shared, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedApi->udm_dhcp_shared_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dhcp_shared** | [**DhcpShared**](DhcpShared.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dhcp_shared_object_modify** +> InlineResponse201 udm_dhcp_shared_object_modify(dn, dhcp_shared, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Shared network object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_shared = openapi_client_udm.DhcpShared() # DhcpShared | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Shared network object + api_response = api_instance.udm_dhcp_shared_object_modify(dn, dhcp_shared, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedApi->udm_dhcp_shared_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_shared** | [**DhcpShared**](DhcpShared.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_shared_object_remove** +> udm_dhcp_shared_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Shared network object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Shared network object + api_instance.udm_dhcp_shared_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpSharedApi->udm_dhcp_shared_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_shared_object_search** +> DhcpSharedList udm_dhcp_shared_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for Shared network objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for Shared network objects + api_response = api_instance.udm_dhcp_shared_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedApi->udm_dhcp_shared_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DhcpSharedList**](DhcpSharedList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_shared_object_template** +> DhcpShared udm_dhcp_shared_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Shared network object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Shared network object (contains all properties and their default values) + api_response = api_instance.udm_dhcp_shared_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedApi->udm_dhcp_shared_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpShared**](DhcpShared.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Shared network. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_shared_object_update** +> udm_dhcp_shared_object_update(dn, dhcp_shared, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Shared network object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_shared = openapi_client_udm.DhcpShared() # DhcpShared | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Shared network object (moving is currently not possible) + api_instance.udm_dhcp_shared_object_update(dn, dhcp_shared, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpSharedApi->udm_dhcp_shared_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_shared** | [**DhcpShared**](DhcpShared.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DhcpSharedList.md b/docs/DhcpSharedList.md new file mode 100644 index 0000000..9322346 --- /dev/null +++ b/docs/DhcpSharedList.md @@ -0,0 +1,11 @@ +# DhcpSharedList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DhcpSharedListEmbedded**](DhcpSharedListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedListEmbedded.md b/docs/DhcpSharedListEmbedded.md new file mode 100644 index 0000000..4504b11 --- /dev/null +++ b/docs/DhcpSharedListEmbedded.md @@ -0,0 +1,11 @@ +# DhcpSharedListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DhcpShared]**](DhcpShared.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedOptions.md b/docs/DhcpSharedOptions.md new file mode 100644 index 0000000..5810df2 --- /dev/null +++ b/docs/DhcpSharedOptions.md @@ -0,0 +1,12 @@ +# DhcpSharedOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**options** | **bool** | Allow custom DHCP options | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedPolicies.md b/docs/DhcpSharedPolicies.md new file mode 100644 index 0000000..b197fa4 --- /dev/null +++ b/docs/DhcpSharedPolicies.md @@ -0,0 +1,19 @@ +# DhcpSharedPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedRequest.md b/docs/DhcpSharedRequest.md new file mode 100644 index 0000000..a22e14f --- /dev/null +++ b/docs/DhcpSharedRequest.md @@ -0,0 +1,16 @@ +# DhcpSharedRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSharedOptions**](DhcpSharedOptions.md) | | [optional] +**policies** | [**DhcpSharedPolicies**](DhcpSharedPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedRequestPatch.md b/docs/DhcpSharedRequestPatch.md new file mode 100644 index 0000000..0fd55e9 --- /dev/null +++ b/docs/DhcpSharedRequestPatch.md @@ -0,0 +1,15 @@ +# DhcpSharedRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSharedOptions**](DhcpSharedOptions.md) | | [optional] +**policies** | [**DhcpSharedPolicies**](DhcpSharedPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedResponseMixin.md b/docs/DhcpSharedResponseMixin.md new file mode 100644 index 0000000..365aa71 --- /dev/null +++ b/docs/DhcpSharedResponseMixin.md @@ -0,0 +1,15 @@ +# DhcpSharedResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedsubnet.md b/docs/DhcpSharedsubnet.md new file mode 100644 index 0000000..1516ef7 --- /dev/null +++ b/docs/DhcpSharedsubnet.md @@ -0,0 +1,21 @@ +# DhcpSharedsubnet + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSharedsubnetOptions**](DhcpSharedsubnetOptions.md) | | [optional] +**policies** | [**DhcpSharedsubnetPolicies**](DhcpSharedsubnetPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedsubnetApi.md b/docs/DhcpSharedsubnetApi.md new file mode 100644 index 0000000..9aacec9 --- /dev/null +++ b/docs/DhcpSharedsubnetApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DhcpSharedsubnetApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dhcp_sharedsubnet_object**](DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object) | **GET** /dhcp/sharedsubnet/{dn} | Get a representation of the Shared DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dhcp_sharedsubnet_object_create**](DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_create) | **POST** /dhcp/sharedsubnet/ | Create a new Shared DHCP subnet object +[**udm_dhcp_sharedsubnet_object_modify**](DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_modify) | **PUT** /dhcp/sharedsubnet/{dn} | Modify or move an Shared DHCP subnet object +[**udm_dhcp_sharedsubnet_object_remove**](DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_remove) | **DELETE** /dhcp/sharedsubnet/{dn} | Remove a Shared DHCP subnets object +[**udm_dhcp_sharedsubnet_object_search**](DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_search) | **GET** /dhcp/sharedsubnet/ | Search for Shared DHCP subnets objects +[**udm_dhcp_sharedsubnet_object_template**](DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_template) | **GET** /dhcp/sharedsubnet/add | Get a template for creating an Shared DHCP subnet object (contains all properties and their default values) +[**udm_dhcp_sharedsubnet_object_update**](DhcpSharedsubnetApi.md#udm_dhcp_sharedsubnet_object_update) | **PATCH** /dhcp/sharedsubnet/{dn} | Modify an Shared DHCP subnet object (moving is currently not possible) + + +# **udm_dhcp_sharedsubnet_object** +> DhcpSharedsubnet udm_dhcp_sharedsubnet_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Shared DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedsubnetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Shared DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dhcp_sharedsubnet_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedsubnetApi->udm_dhcp_sharedsubnet_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpSharedsubnet**](DhcpSharedsubnet.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_sharedsubnet_object_create** +> InlineResponse201 udm_dhcp_sharedsubnet_object_create(dhcp_sharedsubnet, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Shared DHCP subnet object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedsubnetApi(api_client) + dhcp_sharedsubnet = openapi_client_udm.DhcpSharedsubnet() # DhcpSharedsubnet | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Shared DHCP subnet object + api_response = api_instance.udm_dhcp_sharedsubnet_object_create(dhcp_sharedsubnet, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedsubnetApi->udm_dhcp_sharedsubnet_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dhcp_sharedsubnet** | [**DhcpSharedsubnet**](DhcpSharedsubnet.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dhcp_sharedsubnet_object_modify** +> InlineResponse201 udm_dhcp_sharedsubnet_object_modify(dn, dhcp_sharedsubnet, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Shared DHCP subnet object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedsubnetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_sharedsubnet = openapi_client_udm.DhcpSharedsubnet() # DhcpSharedsubnet | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Shared DHCP subnet object + api_response = api_instance.udm_dhcp_sharedsubnet_object_modify(dn, dhcp_sharedsubnet, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedsubnetApi->udm_dhcp_sharedsubnet_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_sharedsubnet** | [**DhcpSharedsubnet**](DhcpSharedsubnet.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_sharedsubnet_object_remove** +> udm_dhcp_sharedsubnet_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Shared DHCP subnets object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedsubnetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Shared DHCP subnets object + api_instance.udm_dhcp_sharedsubnet_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpSharedsubnetApi->udm_dhcp_sharedsubnet_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_sharedsubnet_object_search** +> DhcpSharedsubnetList udm_dhcp_sharedsubnet_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for Shared DHCP subnets objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedsubnetApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for Shared DHCP subnets objects + api_response = api_instance.udm_dhcp_sharedsubnet_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedsubnetApi->udm_dhcp_sharedsubnet_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DhcpSharedsubnetList**](DhcpSharedsubnetList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_sharedsubnet_object_template** +> DhcpSharedsubnet udm_dhcp_sharedsubnet_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Shared DHCP subnet object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedsubnetApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Shared DHCP subnet object (contains all properties and their default values) + api_response = api_instance.udm_dhcp_sharedsubnet_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSharedsubnetApi->udm_dhcp_sharedsubnet_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpSharedsubnet**](DhcpSharedsubnet.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Shared DHCP subnet. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_sharedsubnet_object_update** +> udm_dhcp_sharedsubnet_object_update(dn, dhcp_sharedsubnet, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Shared DHCP subnet object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSharedsubnetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_sharedsubnet = openapi_client_udm.DhcpSharedsubnet() # DhcpSharedsubnet | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Shared DHCP subnet object (moving is currently not possible) + api_instance.udm_dhcp_sharedsubnet_object_update(dn, dhcp_sharedsubnet, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpSharedsubnetApi->udm_dhcp_sharedsubnet_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_sharedsubnet** | [**DhcpSharedsubnet**](DhcpSharedsubnet.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DhcpSharedsubnetList.md b/docs/DhcpSharedsubnetList.md new file mode 100644 index 0000000..60137ac --- /dev/null +++ b/docs/DhcpSharedsubnetList.md @@ -0,0 +1,11 @@ +# DhcpSharedsubnetList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DhcpSharedsubnetListEmbedded**](DhcpSharedsubnetListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedsubnetListEmbedded.md b/docs/DhcpSharedsubnetListEmbedded.md new file mode 100644 index 0000000..76495f2 --- /dev/null +++ b/docs/DhcpSharedsubnetListEmbedded.md @@ -0,0 +1,11 @@ +# DhcpSharedsubnetListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DhcpSharedsubnet]**](DhcpSharedsubnet.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedsubnetOptions.md b/docs/DhcpSharedsubnetOptions.md new file mode 100644 index 0000000..aa77da2 --- /dev/null +++ b/docs/DhcpSharedsubnetOptions.md @@ -0,0 +1,12 @@ +# DhcpSharedsubnetOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**options** | **bool** | Allow custom DHCP options | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedsubnetPolicies.md b/docs/DhcpSharedsubnetPolicies.md new file mode 100644 index 0000000..9159792 --- /dev/null +++ b/docs/DhcpSharedsubnetPolicies.md @@ -0,0 +1,19 @@ +# DhcpSharedsubnetPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedsubnetRequest.md b/docs/DhcpSharedsubnetRequest.md new file mode 100644 index 0000000..7a801fe --- /dev/null +++ b/docs/DhcpSharedsubnetRequest.md @@ -0,0 +1,16 @@ +# DhcpSharedsubnetRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSharedsubnetOptions**](DhcpSharedsubnetOptions.md) | | [optional] +**policies** | [**DhcpSharedsubnetPolicies**](DhcpSharedsubnetPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedsubnetRequestPatch.md b/docs/DhcpSharedsubnetRequestPatch.md new file mode 100644 index 0000000..dcace02 --- /dev/null +++ b/docs/DhcpSharedsubnetRequestPatch.md @@ -0,0 +1,15 @@ +# DhcpSharedsubnetRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSharedsubnetOptions**](DhcpSharedsubnetOptions.md) | | [optional] +**policies** | [**DhcpSharedsubnetPolicies**](DhcpSharedsubnetPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSharedsubnetResponseMixin.md b/docs/DhcpSharedsubnetResponseMixin.md new file mode 100644 index 0000000..37c59bf --- /dev/null +++ b/docs/DhcpSharedsubnetResponseMixin.md @@ -0,0 +1,15 @@ +# DhcpSharedsubnetResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSubnet.md b/docs/DhcpSubnet.md new file mode 100644 index 0000000..81da565 --- /dev/null +++ b/docs/DhcpSubnet.md @@ -0,0 +1,21 @@ +# DhcpSubnet + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSubnetOptions**](DhcpSubnetOptions.md) | | [optional] +**policies** | [**DhcpSubnetPolicies**](DhcpSubnetPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSubnetApi.md b/docs/DhcpSubnetApi.md new file mode 100644 index 0000000..f1fa31d --- /dev/null +++ b/docs/DhcpSubnetApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DhcpSubnetApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dhcp_subnet_object**](DhcpSubnetApi.md#udm_dhcp_subnet_object) | **GET** /dhcp/subnet/{dn} | Get a representation of the DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dhcp_subnet_object_create**](DhcpSubnetApi.md#udm_dhcp_subnet_object_create) | **POST** /dhcp/subnet/ | Create a new DHCP subnet object +[**udm_dhcp_subnet_object_modify**](DhcpSubnetApi.md#udm_dhcp_subnet_object_modify) | **PUT** /dhcp/subnet/{dn} | Modify or move an DHCP subnet object +[**udm_dhcp_subnet_object_remove**](DhcpSubnetApi.md#udm_dhcp_subnet_object_remove) | **DELETE** /dhcp/subnet/{dn} | Remove a DHCP subnets object +[**udm_dhcp_subnet_object_search**](DhcpSubnetApi.md#udm_dhcp_subnet_object_search) | **GET** /dhcp/subnet/ | Search for DHCP subnets objects +[**udm_dhcp_subnet_object_template**](DhcpSubnetApi.md#udm_dhcp_subnet_object_template) | **GET** /dhcp/subnet/add | Get a template for creating an DHCP subnet object (contains all properties and their default values) +[**udm_dhcp_subnet_object_update**](DhcpSubnetApi.md#udm_dhcp_subnet_object_update) | **PATCH** /dhcp/subnet/{dn} | Modify an DHCP subnet object (moving is currently not possible) + + +# **udm_dhcp_subnet_object** +> DhcpSubnet udm_dhcp_subnet_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSubnetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dhcp_subnet_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSubnetApi->udm_dhcp_subnet_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpSubnet**](DhcpSubnet.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_subnet_object_create** +> InlineResponse201 udm_dhcp_subnet_object_create(dhcp_subnet, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP subnet object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSubnetApi(api_client) + dhcp_subnet = openapi_client_udm.DhcpSubnet() # DhcpSubnet | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP subnet object + api_response = api_instance.udm_dhcp_subnet_object_create(dhcp_subnet, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSubnetApi->udm_dhcp_subnet_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dhcp_subnet** | [**DhcpSubnet**](DhcpSubnet.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dhcp_subnet_object_modify** +> InlineResponse201 udm_dhcp_subnet_object_modify(dn, dhcp_subnet, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP subnet object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSubnetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_subnet = openapi_client_udm.DhcpSubnet() # DhcpSubnet | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP subnet object + api_response = api_instance.udm_dhcp_subnet_object_modify(dn, dhcp_subnet, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSubnetApi->udm_dhcp_subnet_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_subnet** | [**DhcpSubnet**](DhcpSubnet.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_subnet_object_remove** +> udm_dhcp_subnet_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP subnets object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSubnetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP subnets object + api_instance.udm_dhcp_subnet_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpSubnetApi->udm_dhcp_subnet_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_subnet_object_search** +> DhcpSubnetList udm_dhcp_subnet_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for DHCP subnets objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSubnetApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for DHCP subnets objects + api_response = api_instance.udm_dhcp_subnet_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSubnetApi->udm_dhcp_subnet_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DhcpSubnetList**](DhcpSubnetList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_subnet_object_template** +> DhcpSubnet udm_dhcp_subnet_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP subnet object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSubnetApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP subnet object (contains all properties and their default values) + api_response = api_instance.udm_dhcp_subnet_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DhcpSubnetApi->udm_dhcp_subnet_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DhcpSubnet**](DhcpSubnet.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP subnet. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dhcp_subnet_object_update** +> udm_dhcp_subnet_object_update(dn, dhcp_subnet, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP subnet object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DhcpSubnetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dhcp_subnet = openapi_client_udm.DhcpSubnet() # DhcpSubnet | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP subnet object (moving is currently not possible) + api_instance.udm_dhcp_subnet_object_update(dn, dhcp_subnet, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DhcpSubnetApi->udm_dhcp_subnet_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dhcp_subnet** | [**DhcpSubnet**](DhcpSubnet.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DhcpSubnetList.md b/docs/DhcpSubnetList.md new file mode 100644 index 0000000..6033975 --- /dev/null +++ b/docs/DhcpSubnetList.md @@ -0,0 +1,11 @@ +# DhcpSubnetList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DhcpSubnetListEmbedded**](DhcpSubnetListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSubnetListEmbedded.md b/docs/DhcpSubnetListEmbedded.md new file mode 100644 index 0000000..6d756d4 --- /dev/null +++ b/docs/DhcpSubnetListEmbedded.md @@ -0,0 +1,11 @@ +# DhcpSubnetListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DhcpSubnet]**](DhcpSubnet.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSubnetOptions.md b/docs/DhcpSubnetOptions.md new file mode 100644 index 0000000..08aa73e --- /dev/null +++ b/docs/DhcpSubnetOptions.md @@ -0,0 +1,12 @@ +# DhcpSubnetOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**options** | **bool** | Allow custom DHCP options | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSubnetPolicies.md b/docs/DhcpSubnetPolicies.md new file mode 100644 index 0000000..a491dba --- /dev/null +++ b/docs/DhcpSubnetPolicies.md @@ -0,0 +1,19 @@ +# DhcpSubnetPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSubnetRequest.md b/docs/DhcpSubnetRequest.md new file mode 100644 index 0000000..59fdc37 --- /dev/null +++ b/docs/DhcpSubnetRequest.md @@ -0,0 +1,16 @@ +# DhcpSubnetRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSubnetOptions**](DhcpSubnetOptions.md) | | [optional] +**policies** | [**DhcpSubnetPolicies**](DhcpSubnetPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSubnetRequestPatch.md b/docs/DhcpSubnetRequestPatch.md new file mode 100644 index 0000000..4079503 --- /dev/null +++ b/docs/DhcpSubnetRequestPatch.md @@ -0,0 +1,15 @@ +# DhcpSubnetRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**DhcpSubnetOptions**](DhcpSubnetOptions.md) | | [optional] +**policies** | [**DhcpSubnetPolicies**](DhcpSubnetPolicies.md) | | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DhcpSubnetResponseMixin.md b/docs/DhcpSubnetResponseMixin.md new file mode 100644 index 0000000..6bd01d8 --- /dev/null +++ b/docs/DhcpSubnetResponseMixin.md @@ -0,0 +1,15 @@ +# DhcpSubnetResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsAlias.md b/docs/DnsAlias.md new file mode 100644 index 0000000..98972b2 --- /dev/null +++ b/docs/DnsAlias.md @@ -0,0 +1,21 @@ +# DnsAlias + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsAliasApi.md b/docs/DnsAliasApi.md new file mode 100644 index 0000000..028305e --- /dev/null +++ b/docs/DnsAliasApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DnsAliasApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_alias_object**](DnsAliasApi.md#udm_dns_alias_object) | **GET** /dns/alias/{dn} | Get a representation of the Alias record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_alias_object_create**](DnsAliasApi.md#udm_dns_alias_object_create) | **POST** /dns/alias/ | Create a new Alias record object +[**udm_dns_alias_object_modify**](DnsAliasApi.md#udm_dns_alias_object_modify) | **PUT** /dns/alias/{dn} | Modify or move an Alias record object +[**udm_dns_alias_object_remove**](DnsAliasApi.md#udm_dns_alias_object_remove) | **DELETE** /dns/alias/{dn} | Remove a Alias records object +[**udm_dns_alias_object_search**](DnsAliasApi.md#udm_dns_alias_object_search) | **GET** /dns/alias/ | Search for Alias records objects +[**udm_dns_alias_object_template**](DnsAliasApi.md#udm_dns_alias_object_template) | **GET** /dns/alias/add | Get a template for creating an Alias record object (contains all properties and their default values) +[**udm_dns_alias_object_update**](DnsAliasApi.md#udm_dns_alias_object_update) | **PATCH** /dns/alias/{dn} | Modify an Alias record object (moving is currently not possible) + + +# **udm_dns_alias_object** +> DnsAlias udm_dns_alias_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Alias record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsAliasApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Alias record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_alias_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsAliasApi->udm_dns_alias_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsAlias**](DnsAlias.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_alias_object_create** +> InlineResponse201 udm_dns_alias_object_create(dns_alias, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Alias record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsAliasApi(api_client) + dns_alias = openapi_client_udm.DnsAlias() # DnsAlias | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Alias record object + api_response = api_instance.udm_dns_alias_object_create(dns_alias, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsAliasApi->udm_dns_alias_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_alias** | [**DnsAlias**](DnsAlias.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dns_alias_object_modify** +> InlineResponse201 udm_dns_alias_object_modify(dn, dns_alias, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Alias record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsAliasApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_alias = openapi_client_udm.DnsAlias() # DnsAlias | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Alias record object + api_response = api_instance.udm_dns_alias_object_modify(dn, dns_alias, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsAliasApi->udm_dns_alias_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_alias** | [**DnsAlias**](DnsAlias.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_alias_object_remove** +> udm_dns_alias_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Alias records object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsAliasApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Alias records object + api_instance.udm_dns_alias_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsAliasApi->udm_dns_alias_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_alias_object_search** +> DnsAliasList udm_dns_alias_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for Alias records objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsAliasApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for Alias records objects + api_response = api_instance.udm_dns_alias_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsAliasApi->udm_dns_alias_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DnsAliasList**](DnsAliasList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_alias_object_template** +> DnsAlias udm_dns_alias_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Alias record object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsAliasApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Alias record object (contains all properties and their default values) + api_response = api_instance.udm_dns_alias_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsAliasApi->udm_dns_alias_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsAlias**](DnsAlias.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Alias record. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_alias_object_update** +> udm_dns_alias_object_update(dn, dns_alias, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Alias record object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsAliasApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_alias = openapi_client_udm.DnsAlias() # DnsAlias | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Alias record object (moving is currently not possible) + api_instance.udm_dns_alias_object_update(dn, dns_alias, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsAliasApi->udm_dns_alias_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_alias** | [**DnsAlias**](DnsAlias.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsAliasList.md b/docs/DnsAliasList.md new file mode 100644 index 0000000..93f3db4 --- /dev/null +++ b/docs/DnsAliasList.md @@ -0,0 +1,11 @@ +# DnsAliasList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsAliasListEmbedded**](DnsAliasListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsAliasListEmbedded.md b/docs/DnsAliasListEmbedded.md new file mode 100644 index 0000000..0f9bff8 --- /dev/null +++ b/docs/DnsAliasListEmbedded.md @@ -0,0 +1,11 @@ +# DnsAliasListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsAlias]**](DnsAlias.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsAliasRequest.md b/docs/DnsAliasRequest.md new file mode 100644 index 0000000..73cd3e5 --- /dev/null +++ b/docs/DnsAliasRequest.md @@ -0,0 +1,16 @@ +# DnsAliasRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsAliasRequestPatch.md b/docs/DnsAliasRequestPatch.md new file mode 100644 index 0000000..cb244fe --- /dev/null +++ b/docs/DnsAliasRequestPatch.md @@ -0,0 +1,15 @@ +# DnsAliasRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsAliasResponseMixin.md b/docs/DnsAliasResponseMixin.md new file mode 100644 index 0000000..f1d74bd --- /dev/null +++ b/docs/DnsAliasResponseMixin.md @@ -0,0 +1,15 @@ +# DnsAliasResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsDns.md b/docs/DnsDns.md new file mode 100644 index 0000000..aa9900a --- /dev/null +++ b/docs/DnsDns.md @@ -0,0 +1,20 @@ +# DnsDns + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsDnsApi.md b/docs/DnsDnsApi.md new file mode 100644 index 0000000..adde974 --- /dev/null +++ b/docs/DnsDnsApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.DnsDnsApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_dns_object**](DnsDnsApi.md#udm_dns_dns_object) | **GET** /dns/dns/{dn} | Get a representation of the DNS zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_dns_object_search**](DnsDnsApi.md#udm_dns_dns_object_search) | **GET** /dns/dns/ | Search for DNS zones objects + + +# **udm_dns_dns_object** +> DnsDns udm_dns_dns_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DNS zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsDnsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DNS zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_dns_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsDnsApi->udm_dns_dns_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsDns**](DnsDns.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_dns_object_search** +> DnsDnsList udm_dns_dns_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DNS zones objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsDnsApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DNS zones objects + api_response = api_instance.udm_dns_dns_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsDnsApi->udm_dns_dns_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsDnsList**](DnsDnsList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsDnsList.md b/docs/DnsDnsList.md new file mode 100644 index 0000000..70102a3 --- /dev/null +++ b/docs/DnsDnsList.md @@ -0,0 +1,11 @@ +# DnsDnsList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsDnsListEmbedded**](DnsDnsListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsDnsListEmbedded.md b/docs/DnsDnsListEmbedded.md new file mode 100644 index 0000000..df46197 --- /dev/null +++ b/docs/DnsDnsListEmbedded.md @@ -0,0 +1,11 @@ +# DnsDnsListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsDns]**](DnsDns.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsDnsRequest.md b/docs/DnsDnsRequest.md new file mode 100644 index 0000000..d1f3f1f --- /dev/null +++ b/docs/DnsDnsRequest.md @@ -0,0 +1,15 @@ +# DnsDnsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsDnsRequestPatch.md b/docs/DnsDnsRequestPatch.md new file mode 100644 index 0000000..0d2e6f0 --- /dev/null +++ b/docs/DnsDnsRequestPatch.md @@ -0,0 +1,14 @@ +# DnsDnsRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsDnsResponseMixin.md b/docs/DnsDnsResponseMixin.md new file mode 100644 index 0000000..d105fa5 --- /dev/null +++ b/docs/DnsDnsResponseMixin.md @@ -0,0 +1,15 @@ +# DnsDnsResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsForwardZone.md b/docs/DnsForwardZone.md new file mode 100644 index 0000000..dee6c13 --- /dev/null +++ b/docs/DnsForwardZone.md @@ -0,0 +1,20 @@ +# DnsForwardZone + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**DnsForwardZonePolicies**](DnsForwardZonePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsForwardZoneApi.md b/docs/DnsForwardZoneApi.md new file mode 100644 index 0000000..a8edf8c --- /dev/null +++ b/docs/DnsForwardZoneApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.DnsForwardZoneApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_forward_zone_object**](DnsForwardZoneApi.md#udm_dns_forward_zone_object) | **GET** /dns/forward_zone/{dn} | Get a representation of the Forward lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_forward_zone_object_create**](DnsForwardZoneApi.md#udm_dns_forward_zone_object_create) | **POST** /dns/forward_zone/ | Create a new Forward lookup zone object +[**udm_dns_forward_zone_object_modify**](DnsForwardZoneApi.md#udm_dns_forward_zone_object_modify) | **PUT** /dns/forward_zone/{dn} | Modify or move an Forward lookup zone object +[**udm_dns_forward_zone_object_remove**](DnsForwardZoneApi.md#udm_dns_forward_zone_object_remove) | **DELETE** /dns/forward_zone/{dn} | Remove a Forward lookup zones object +[**udm_dns_forward_zone_object_search**](DnsForwardZoneApi.md#udm_dns_forward_zone_object_search) | **GET** /dns/forward_zone/ | Search for Forward lookup zones objects +[**udm_dns_forward_zone_object_template**](DnsForwardZoneApi.md#udm_dns_forward_zone_object_template) | **GET** /dns/forward_zone/add | Get a template for creating an Forward lookup zone object (contains all properties and their default values) +[**udm_dns_forward_zone_object_update**](DnsForwardZoneApi.md#udm_dns_forward_zone_object_update) | **PATCH** /dns/forward_zone/{dn} | Modify an Forward lookup zone object (moving is currently not possible) + + +# **udm_dns_forward_zone_object** +> DnsForwardZone udm_dns_forward_zone_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Forward lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsForwardZoneApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Forward lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_forward_zone_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsForwardZoneApi->udm_dns_forward_zone_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsForwardZone**](DnsForwardZone.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_forward_zone_object_create** +> InlineResponse201 udm_dns_forward_zone_object_create(dns_forward_zone, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Forward lookup zone object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsForwardZoneApi(api_client) + dns_forward_zone = openapi_client_udm.DnsForwardZone() # DnsForwardZone | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Forward lookup zone object + api_response = api_instance.udm_dns_forward_zone_object_create(dns_forward_zone, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsForwardZoneApi->udm_dns_forward_zone_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_forward_zone** | [**DnsForwardZone**](DnsForwardZone.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dns_forward_zone_object_modify** +> InlineResponse201 udm_dns_forward_zone_object_modify(dn, dns_forward_zone, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Forward lookup zone object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsForwardZoneApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_forward_zone = openapi_client_udm.DnsForwardZone() # DnsForwardZone | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Forward lookup zone object + api_response = api_instance.udm_dns_forward_zone_object_modify(dn, dns_forward_zone, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsForwardZoneApi->udm_dns_forward_zone_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_forward_zone** | [**DnsForwardZone**](DnsForwardZone.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_forward_zone_object_remove** +> udm_dns_forward_zone_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Forward lookup zones object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsForwardZoneApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Forward lookup zones object + api_instance.udm_dns_forward_zone_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsForwardZoneApi->udm_dns_forward_zone_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_forward_zone_object_search** +> DnsForwardZoneList udm_dns_forward_zone_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Forward lookup zones objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsForwardZoneApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Forward lookup zones objects + api_response = api_instance.udm_dns_forward_zone_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsForwardZoneApi->udm_dns_forward_zone_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsForwardZoneList**](DnsForwardZoneList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_forward_zone_object_template** +> DnsForwardZone udm_dns_forward_zone_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Forward lookup zone object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsForwardZoneApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Forward lookup zone object (contains all properties and their default values) + api_response = api_instance.udm_dns_forward_zone_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsForwardZoneApi->udm_dns_forward_zone_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsForwardZone**](DnsForwardZone.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Forward lookup zone. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_forward_zone_object_update** +> udm_dns_forward_zone_object_update(dn, dns_forward_zone, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Forward lookup zone object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsForwardZoneApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_forward_zone = openapi_client_udm.DnsForwardZone() # DnsForwardZone | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Forward lookup zone object (moving is currently not possible) + api_instance.udm_dns_forward_zone_object_update(dn, dns_forward_zone, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsForwardZoneApi->udm_dns_forward_zone_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_forward_zone** | [**DnsForwardZone**](DnsForwardZone.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsForwardZoneList.md b/docs/DnsForwardZoneList.md new file mode 100644 index 0000000..0421be3 --- /dev/null +++ b/docs/DnsForwardZoneList.md @@ -0,0 +1,11 @@ +# DnsForwardZoneList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsForwardZoneListEmbedded**](DnsForwardZoneListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsForwardZoneListEmbedded.md b/docs/DnsForwardZoneListEmbedded.md new file mode 100644 index 0000000..f6137e0 --- /dev/null +++ b/docs/DnsForwardZoneListEmbedded.md @@ -0,0 +1,11 @@ +# DnsForwardZoneListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsForwardZone]**](DnsForwardZone.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsForwardZonePolicies.md b/docs/DnsForwardZonePolicies.md new file mode 100644 index 0000000..a0fb96d --- /dev/null +++ b/docs/DnsForwardZonePolicies.md @@ -0,0 +1,35 @@ +# DnsForwardZonePolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsForwardZoneRequest.md b/docs/DnsForwardZoneRequest.md new file mode 100644 index 0000000..34e62d4 --- /dev/null +++ b/docs/DnsForwardZoneRequest.md @@ -0,0 +1,15 @@ +# DnsForwardZoneRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**DnsForwardZonePolicies**](DnsForwardZonePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsForwardZoneRequestPatch.md b/docs/DnsForwardZoneRequestPatch.md new file mode 100644 index 0000000..8ea95a5 --- /dev/null +++ b/docs/DnsForwardZoneRequestPatch.md @@ -0,0 +1,14 @@ +# DnsForwardZoneRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**DnsForwardZonePolicies**](DnsForwardZonePolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsForwardZoneResponseMixin.md b/docs/DnsForwardZoneResponseMixin.md new file mode 100644 index 0000000..827aef3 --- /dev/null +++ b/docs/DnsForwardZoneResponseMixin.md @@ -0,0 +1,15 @@ +# DnsForwardZoneResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsHostRecord.md b/docs/DnsHostRecord.md new file mode 100644 index 0000000..acd0b39 --- /dev/null +++ b/docs/DnsHostRecord.md @@ -0,0 +1,21 @@ +# DnsHostRecord + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsHostRecordApi.md b/docs/DnsHostRecordApi.md new file mode 100644 index 0000000..09f524f --- /dev/null +++ b/docs/DnsHostRecordApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DnsHostRecordApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_host_record_object**](DnsHostRecordApi.md#udm_dns_host_record_object) | **GET** /dns/host_record/{dn} | Get a representation of the Host record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_host_record_object_create**](DnsHostRecordApi.md#udm_dns_host_record_object_create) | **POST** /dns/host_record/ | Create a new Host record object +[**udm_dns_host_record_object_modify**](DnsHostRecordApi.md#udm_dns_host_record_object_modify) | **PUT** /dns/host_record/{dn} | Modify or move an Host record object +[**udm_dns_host_record_object_remove**](DnsHostRecordApi.md#udm_dns_host_record_object_remove) | **DELETE** /dns/host_record/{dn} | Remove a Host records object +[**udm_dns_host_record_object_search**](DnsHostRecordApi.md#udm_dns_host_record_object_search) | **GET** /dns/host_record/ | Search for Host records objects +[**udm_dns_host_record_object_template**](DnsHostRecordApi.md#udm_dns_host_record_object_template) | **GET** /dns/host_record/add | Get a template for creating an Host record object (contains all properties and their default values) +[**udm_dns_host_record_object_update**](DnsHostRecordApi.md#udm_dns_host_record_object_update) | **PATCH** /dns/host_record/{dn} | Modify an Host record object (moving is currently not possible) + + +# **udm_dns_host_record_object** +> DnsHostRecord udm_dns_host_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Host record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsHostRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Host record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_host_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsHostRecordApi->udm_dns_host_record_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsHostRecord**](DnsHostRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_host_record_object_create** +> InlineResponse201 udm_dns_host_record_object_create(dns_host_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Host record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsHostRecordApi(api_client) + dns_host_record = openapi_client_udm.DnsHostRecord() # DnsHostRecord | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Host record object + api_response = api_instance.udm_dns_host_record_object_create(dns_host_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsHostRecordApi->udm_dns_host_record_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_host_record** | [**DnsHostRecord**](DnsHostRecord.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dns_host_record_object_modify** +> InlineResponse201 udm_dns_host_record_object_modify(dn, dns_host_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Host record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsHostRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_host_record = openapi_client_udm.DnsHostRecord() # DnsHostRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Host record object + api_response = api_instance.udm_dns_host_record_object_modify(dn, dns_host_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsHostRecordApi->udm_dns_host_record_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_host_record** | [**DnsHostRecord**](DnsHostRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_host_record_object_remove** +> udm_dns_host_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Host records object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsHostRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Host records object + api_instance.udm_dns_host_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsHostRecordApi->udm_dns_host_record_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_host_record_object_search** +> DnsHostRecordList udm_dns_host_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for Host records objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsHostRecordApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for Host records objects + api_response = api_instance.udm_dns_host_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsHostRecordApi->udm_dns_host_record_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DnsHostRecordList**](DnsHostRecordList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_host_record_object_template** +> DnsHostRecord udm_dns_host_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Host record object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsHostRecordApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Host record object (contains all properties and their default values) + api_response = api_instance.udm_dns_host_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsHostRecordApi->udm_dns_host_record_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsHostRecord**](DnsHostRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Host record. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_host_record_object_update** +> udm_dns_host_record_object_update(dn, dns_host_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Host record object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsHostRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_host_record = openapi_client_udm.DnsHostRecord() # DnsHostRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Host record object (moving is currently not possible) + api_instance.udm_dns_host_record_object_update(dn, dns_host_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsHostRecordApi->udm_dns_host_record_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_host_record** | [**DnsHostRecord**](DnsHostRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsHostRecordList.md b/docs/DnsHostRecordList.md new file mode 100644 index 0000000..e897991 --- /dev/null +++ b/docs/DnsHostRecordList.md @@ -0,0 +1,11 @@ +# DnsHostRecordList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsHostRecordListEmbedded**](DnsHostRecordListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsHostRecordListEmbedded.md b/docs/DnsHostRecordListEmbedded.md new file mode 100644 index 0000000..89f2b31 --- /dev/null +++ b/docs/DnsHostRecordListEmbedded.md @@ -0,0 +1,11 @@ +# DnsHostRecordListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsHostRecord]**](DnsHostRecord.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsHostRecordRequest.md b/docs/DnsHostRecordRequest.md new file mode 100644 index 0000000..28d3fd0 --- /dev/null +++ b/docs/DnsHostRecordRequest.md @@ -0,0 +1,16 @@ +# DnsHostRecordRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsHostRecordRequestPatch.md b/docs/DnsHostRecordRequestPatch.md new file mode 100644 index 0000000..215bd3c --- /dev/null +++ b/docs/DnsHostRecordRequestPatch.md @@ -0,0 +1,15 @@ +# DnsHostRecordRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsHostRecordResponseMixin.md b/docs/DnsHostRecordResponseMixin.md new file mode 100644 index 0000000..e021546 --- /dev/null +++ b/docs/DnsHostRecordResponseMixin.md @@ -0,0 +1,15 @@ +# DnsHostRecordResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsNsRecord.md b/docs/DnsNsRecord.md new file mode 100644 index 0000000..7991129 --- /dev/null +++ b/docs/DnsNsRecord.md @@ -0,0 +1,21 @@ +# DnsNsRecord + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsNsRecordApi.md b/docs/DnsNsRecordApi.md new file mode 100644 index 0000000..b26c205 --- /dev/null +++ b/docs/DnsNsRecordApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DnsNsRecordApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_ns_record_object**](DnsNsRecordApi.md#udm_dns_ns_record_object) | **GET** /dns/ns_record/{dn} | Get a representation of the Nameserver record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_ns_record_object_create**](DnsNsRecordApi.md#udm_dns_ns_record_object_create) | **POST** /dns/ns_record/ | Create a new Nameserver record object +[**udm_dns_ns_record_object_modify**](DnsNsRecordApi.md#udm_dns_ns_record_object_modify) | **PUT** /dns/ns_record/{dn} | Modify or move an Nameserver record object +[**udm_dns_ns_record_object_remove**](DnsNsRecordApi.md#udm_dns_ns_record_object_remove) | **DELETE** /dns/ns_record/{dn} | Remove a Nameserver records object +[**udm_dns_ns_record_object_search**](DnsNsRecordApi.md#udm_dns_ns_record_object_search) | **GET** /dns/ns_record/ | Search for Nameserver records objects +[**udm_dns_ns_record_object_template**](DnsNsRecordApi.md#udm_dns_ns_record_object_template) | **GET** /dns/ns_record/add | Get a template for creating an Nameserver record object (contains all properties and their default values) +[**udm_dns_ns_record_object_update**](DnsNsRecordApi.md#udm_dns_ns_record_object_update) | **PATCH** /dns/ns_record/{dn} | Modify an Nameserver record object (moving is currently not possible) + + +# **udm_dns_ns_record_object** +> DnsNsRecord udm_dns_ns_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Nameserver record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsNsRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Nameserver record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_ns_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsNsRecordApi->udm_dns_ns_record_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsNsRecord**](DnsNsRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ns_record_object_create** +> InlineResponse201 udm_dns_ns_record_object_create(dns_ns_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Nameserver record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsNsRecordApi(api_client) + dns_ns_record = openapi_client_udm.DnsNsRecord() # DnsNsRecord | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Nameserver record object + api_response = api_instance.udm_dns_ns_record_object_create(dns_ns_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsNsRecordApi->udm_dns_ns_record_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_ns_record** | [**DnsNsRecord**](DnsNsRecord.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dns_ns_record_object_modify** +> InlineResponse201 udm_dns_ns_record_object_modify(dn, dns_ns_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Nameserver record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsNsRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_ns_record = openapi_client_udm.DnsNsRecord() # DnsNsRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Nameserver record object + api_response = api_instance.udm_dns_ns_record_object_modify(dn, dns_ns_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsNsRecordApi->udm_dns_ns_record_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_ns_record** | [**DnsNsRecord**](DnsNsRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ns_record_object_remove** +> udm_dns_ns_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Nameserver records object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsNsRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Nameserver records object + api_instance.udm_dns_ns_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsNsRecordApi->udm_dns_ns_record_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ns_record_object_search** +> DnsNsRecordList udm_dns_ns_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for Nameserver records objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsNsRecordApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for Nameserver records objects + api_response = api_instance.udm_dns_ns_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsNsRecordApi->udm_dns_ns_record_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DnsNsRecordList**](DnsNsRecordList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ns_record_object_template** +> DnsNsRecord udm_dns_ns_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Nameserver record object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsNsRecordApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Nameserver record object (contains all properties and their default values) + api_response = api_instance.udm_dns_ns_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsNsRecordApi->udm_dns_ns_record_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsNsRecord**](DnsNsRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Nameserver record. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ns_record_object_update** +> udm_dns_ns_record_object_update(dn, dns_ns_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Nameserver record object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsNsRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_ns_record = openapi_client_udm.DnsNsRecord() # DnsNsRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Nameserver record object (moving is currently not possible) + api_instance.udm_dns_ns_record_object_update(dn, dns_ns_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsNsRecordApi->udm_dns_ns_record_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_ns_record** | [**DnsNsRecord**](DnsNsRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsNsRecordList.md b/docs/DnsNsRecordList.md new file mode 100644 index 0000000..87432e4 --- /dev/null +++ b/docs/DnsNsRecordList.md @@ -0,0 +1,11 @@ +# DnsNsRecordList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsNsRecordListEmbedded**](DnsNsRecordListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsNsRecordListEmbedded.md b/docs/DnsNsRecordListEmbedded.md new file mode 100644 index 0000000..7fc974a --- /dev/null +++ b/docs/DnsNsRecordListEmbedded.md @@ -0,0 +1,11 @@ +# DnsNsRecordListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsNsRecord]**](DnsNsRecord.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsNsRecordRequest.md b/docs/DnsNsRecordRequest.md new file mode 100644 index 0000000..426cbdf --- /dev/null +++ b/docs/DnsNsRecordRequest.md @@ -0,0 +1,16 @@ +# DnsNsRecordRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsNsRecordRequestPatch.md b/docs/DnsNsRecordRequestPatch.md new file mode 100644 index 0000000..238349f --- /dev/null +++ b/docs/DnsNsRecordRequestPatch.md @@ -0,0 +1,15 @@ +# DnsNsRecordRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsNsRecordResponseMixin.md b/docs/DnsNsRecordResponseMixin.md new file mode 100644 index 0000000..bad39f9 --- /dev/null +++ b/docs/DnsNsRecordResponseMixin.md @@ -0,0 +1,15 @@ +# DnsNsRecordResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsPtrRecord.md b/docs/DnsPtrRecord.md new file mode 100644 index 0000000..e26b695 --- /dev/null +++ b/docs/DnsPtrRecord.md @@ -0,0 +1,21 @@ +# DnsPtrRecord + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsPtrRecordApi.md b/docs/DnsPtrRecordApi.md new file mode 100644 index 0000000..d257562 --- /dev/null +++ b/docs/DnsPtrRecordApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DnsPtrRecordApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_ptr_record_object**](DnsPtrRecordApi.md#udm_dns_ptr_record_object) | **GET** /dns/ptr_record/{dn} | Get a representation of the Pointer record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_ptr_record_object_create**](DnsPtrRecordApi.md#udm_dns_ptr_record_object_create) | **POST** /dns/ptr_record/ | Create a new Pointer record object +[**udm_dns_ptr_record_object_modify**](DnsPtrRecordApi.md#udm_dns_ptr_record_object_modify) | **PUT** /dns/ptr_record/{dn} | Modify or move an Pointer record object +[**udm_dns_ptr_record_object_remove**](DnsPtrRecordApi.md#udm_dns_ptr_record_object_remove) | **DELETE** /dns/ptr_record/{dn} | Remove a Pointer records object +[**udm_dns_ptr_record_object_search**](DnsPtrRecordApi.md#udm_dns_ptr_record_object_search) | **GET** /dns/ptr_record/ | Search for Pointer records objects +[**udm_dns_ptr_record_object_template**](DnsPtrRecordApi.md#udm_dns_ptr_record_object_template) | **GET** /dns/ptr_record/add | Get a template for creating an Pointer record object (contains all properties and their default values) +[**udm_dns_ptr_record_object_update**](DnsPtrRecordApi.md#udm_dns_ptr_record_object_update) | **PATCH** /dns/ptr_record/{dn} | Modify an Pointer record object (moving is currently not possible) + + +# **udm_dns_ptr_record_object** +> DnsPtrRecord udm_dns_ptr_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Pointer record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsPtrRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Pointer record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_ptr_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsPtrRecordApi->udm_dns_ptr_record_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsPtrRecord**](DnsPtrRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ptr_record_object_create** +> InlineResponse201 udm_dns_ptr_record_object_create(dns_ptr_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Pointer record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsPtrRecordApi(api_client) + dns_ptr_record = openapi_client_udm.DnsPtrRecord() # DnsPtrRecord | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Pointer record object + api_response = api_instance.udm_dns_ptr_record_object_create(dns_ptr_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsPtrRecordApi->udm_dns_ptr_record_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_ptr_record** | [**DnsPtrRecord**](DnsPtrRecord.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dns_ptr_record_object_modify** +> InlineResponse201 udm_dns_ptr_record_object_modify(dn, dns_ptr_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Pointer record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsPtrRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_ptr_record = openapi_client_udm.DnsPtrRecord() # DnsPtrRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Pointer record object + api_response = api_instance.udm_dns_ptr_record_object_modify(dn, dns_ptr_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsPtrRecordApi->udm_dns_ptr_record_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_ptr_record** | [**DnsPtrRecord**](DnsPtrRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ptr_record_object_remove** +> udm_dns_ptr_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Pointer records object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsPtrRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Pointer records object + api_instance.udm_dns_ptr_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsPtrRecordApi->udm_dns_ptr_record_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ptr_record_object_search** +> DnsPtrRecordList udm_dns_ptr_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for Pointer records objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsPtrRecordApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for Pointer records objects + api_response = api_instance.udm_dns_ptr_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsPtrRecordApi->udm_dns_ptr_record_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DnsPtrRecordList**](DnsPtrRecordList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ptr_record_object_template** +> DnsPtrRecord udm_dns_ptr_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Pointer record object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsPtrRecordApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Pointer record object (contains all properties and their default values) + api_response = api_instance.udm_dns_ptr_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsPtrRecordApi->udm_dns_ptr_record_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsPtrRecord**](DnsPtrRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Pointer record. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_ptr_record_object_update** +> udm_dns_ptr_record_object_update(dn, dns_ptr_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Pointer record object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsPtrRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_ptr_record = openapi_client_udm.DnsPtrRecord() # DnsPtrRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Pointer record object (moving is currently not possible) + api_instance.udm_dns_ptr_record_object_update(dn, dns_ptr_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsPtrRecordApi->udm_dns_ptr_record_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_ptr_record** | [**DnsPtrRecord**](DnsPtrRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsPtrRecordList.md b/docs/DnsPtrRecordList.md new file mode 100644 index 0000000..8ab43ab --- /dev/null +++ b/docs/DnsPtrRecordList.md @@ -0,0 +1,11 @@ +# DnsPtrRecordList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsPtrRecordListEmbedded**](DnsPtrRecordListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsPtrRecordListEmbedded.md b/docs/DnsPtrRecordListEmbedded.md new file mode 100644 index 0000000..e5fa28c --- /dev/null +++ b/docs/DnsPtrRecordListEmbedded.md @@ -0,0 +1,11 @@ +# DnsPtrRecordListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsPtrRecord]**](DnsPtrRecord.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsPtrRecordRequest.md b/docs/DnsPtrRecordRequest.md new file mode 100644 index 0000000..82971bc --- /dev/null +++ b/docs/DnsPtrRecordRequest.md @@ -0,0 +1,16 @@ +# DnsPtrRecordRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsPtrRecordRequestPatch.md b/docs/DnsPtrRecordRequestPatch.md new file mode 100644 index 0000000..ff57b82 --- /dev/null +++ b/docs/DnsPtrRecordRequestPatch.md @@ -0,0 +1,15 @@ +# DnsPtrRecordRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsPtrRecordResponseMixin.md b/docs/DnsPtrRecordResponseMixin.md new file mode 100644 index 0000000..dd0e182 --- /dev/null +++ b/docs/DnsPtrRecordResponseMixin.md @@ -0,0 +1,15 @@ +# DnsPtrRecordResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsReverseZone.md b/docs/DnsReverseZone.md new file mode 100644 index 0000000..d5b9aae --- /dev/null +++ b/docs/DnsReverseZone.md @@ -0,0 +1,20 @@ +# DnsReverseZone + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**DnsReverseZonePolicies**](DnsReverseZonePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsReverseZoneApi.md b/docs/DnsReverseZoneApi.md new file mode 100644 index 0000000..58bed32 --- /dev/null +++ b/docs/DnsReverseZoneApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.DnsReverseZoneApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_reverse_zone_object**](DnsReverseZoneApi.md#udm_dns_reverse_zone_object) | **GET** /dns/reverse_zone/{dn} | Get a representation of the Reverse lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_reverse_zone_object_create**](DnsReverseZoneApi.md#udm_dns_reverse_zone_object_create) | **POST** /dns/reverse_zone/ | Create a new Reverse lookup zone object +[**udm_dns_reverse_zone_object_modify**](DnsReverseZoneApi.md#udm_dns_reverse_zone_object_modify) | **PUT** /dns/reverse_zone/{dn} | Modify or move an Reverse lookup zone object +[**udm_dns_reverse_zone_object_remove**](DnsReverseZoneApi.md#udm_dns_reverse_zone_object_remove) | **DELETE** /dns/reverse_zone/{dn} | Remove a Reverse lookup zones object +[**udm_dns_reverse_zone_object_search**](DnsReverseZoneApi.md#udm_dns_reverse_zone_object_search) | **GET** /dns/reverse_zone/ | Search for Reverse lookup zones objects +[**udm_dns_reverse_zone_object_template**](DnsReverseZoneApi.md#udm_dns_reverse_zone_object_template) | **GET** /dns/reverse_zone/add | Get a template for creating an Reverse lookup zone object (contains all properties and their default values) +[**udm_dns_reverse_zone_object_update**](DnsReverseZoneApi.md#udm_dns_reverse_zone_object_update) | **PATCH** /dns/reverse_zone/{dn} | Modify an Reverse lookup zone object (moving is currently not possible) + + +# **udm_dns_reverse_zone_object** +> DnsReverseZone udm_dns_reverse_zone_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Reverse lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsReverseZoneApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Reverse lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_reverse_zone_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsReverseZoneApi->udm_dns_reverse_zone_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsReverseZone**](DnsReverseZone.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_reverse_zone_object_create** +> InlineResponse201 udm_dns_reverse_zone_object_create(dns_reverse_zone, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Reverse lookup zone object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsReverseZoneApi(api_client) + dns_reverse_zone = openapi_client_udm.DnsReverseZone() # DnsReverseZone | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Reverse lookup zone object + api_response = api_instance.udm_dns_reverse_zone_object_create(dns_reverse_zone, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsReverseZoneApi->udm_dns_reverse_zone_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_reverse_zone** | [**DnsReverseZone**](DnsReverseZone.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dns_reverse_zone_object_modify** +> InlineResponse201 udm_dns_reverse_zone_object_modify(dn, dns_reverse_zone, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Reverse lookup zone object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsReverseZoneApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_reverse_zone = openapi_client_udm.DnsReverseZone() # DnsReverseZone | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Reverse lookup zone object + api_response = api_instance.udm_dns_reverse_zone_object_modify(dn, dns_reverse_zone, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsReverseZoneApi->udm_dns_reverse_zone_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_reverse_zone** | [**DnsReverseZone**](DnsReverseZone.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_reverse_zone_object_remove** +> udm_dns_reverse_zone_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Reverse lookup zones object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsReverseZoneApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Reverse lookup zones object + api_instance.udm_dns_reverse_zone_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsReverseZoneApi->udm_dns_reverse_zone_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_reverse_zone_object_search** +> DnsReverseZoneList udm_dns_reverse_zone_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Reverse lookup zones objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsReverseZoneApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Reverse lookup zones objects + api_response = api_instance.udm_dns_reverse_zone_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsReverseZoneApi->udm_dns_reverse_zone_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsReverseZoneList**](DnsReverseZoneList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_reverse_zone_object_template** +> DnsReverseZone udm_dns_reverse_zone_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Reverse lookup zone object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsReverseZoneApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Reverse lookup zone object (contains all properties and their default values) + api_response = api_instance.udm_dns_reverse_zone_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsReverseZoneApi->udm_dns_reverse_zone_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsReverseZone**](DnsReverseZone.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Reverse lookup zone. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_reverse_zone_object_update** +> udm_dns_reverse_zone_object_update(dn, dns_reverse_zone, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Reverse lookup zone object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsReverseZoneApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_reverse_zone = openapi_client_udm.DnsReverseZone() # DnsReverseZone | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Reverse lookup zone object (moving is currently not possible) + api_instance.udm_dns_reverse_zone_object_update(dn, dns_reverse_zone, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsReverseZoneApi->udm_dns_reverse_zone_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_reverse_zone** | [**DnsReverseZone**](DnsReverseZone.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsReverseZoneList.md b/docs/DnsReverseZoneList.md new file mode 100644 index 0000000..3cf52ff --- /dev/null +++ b/docs/DnsReverseZoneList.md @@ -0,0 +1,11 @@ +# DnsReverseZoneList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsReverseZoneListEmbedded**](DnsReverseZoneListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsReverseZoneListEmbedded.md b/docs/DnsReverseZoneListEmbedded.md new file mode 100644 index 0000000..a3ee49c --- /dev/null +++ b/docs/DnsReverseZoneListEmbedded.md @@ -0,0 +1,11 @@ +# DnsReverseZoneListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsReverseZone]**](DnsReverseZone.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsReverseZonePolicies.md b/docs/DnsReverseZonePolicies.md new file mode 100644 index 0000000..05e1931 --- /dev/null +++ b/docs/DnsReverseZonePolicies.md @@ -0,0 +1,35 @@ +# DnsReverseZonePolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsReverseZoneRequest.md b/docs/DnsReverseZoneRequest.md new file mode 100644 index 0000000..20d1327 --- /dev/null +++ b/docs/DnsReverseZoneRequest.md @@ -0,0 +1,15 @@ +# DnsReverseZoneRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**DnsReverseZonePolicies**](DnsReverseZonePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsReverseZoneRequestPatch.md b/docs/DnsReverseZoneRequestPatch.md new file mode 100644 index 0000000..bb5f5a4 --- /dev/null +++ b/docs/DnsReverseZoneRequestPatch.md @@ -0,0 +1,14 @@ +# DnsReverseZoneRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**DnsReverseZonePolicies**](DnsReverseZonePolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsReverseZoneResponseMixin.md b/docs/DnsReverseZoneResponseMixin.md new file mode 100644 index 0000000..3cd0357 --- /dev/null +++ b/docs/DnsReverseZoneResponseMixin.md @@ -0,0 +1,15 @@ +# DnsReverseZoneResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsSrvRecord.md b/docs/DnsSrvRecord.md new file mode 100644 index 0000000..8e364cb --- /dev/null +++ b/docs/DnsSrvRecord.md @@ -0,0 +1,21 @@ +# DnsSrvRecord + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsSrvRecordApi.md b/docs/DnsSrvRecordApi.md new file mode 100644 index 0000000..e4dd804 --- /dev/null +++ b/docs/DnsSrvRecordApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DnsSrvRecordApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_srv_record_object**](DnsSrvRecordApi.md#udm_dns_srv_record_object) | **GET** /dns/srv_record/{dn} | Get a representation of the Service record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_srv_record_object_create**](DnsSrvRecordApi.md#udm_dns_srv_record_object_create) | **POST** /dns/srv_record/ | Create a new Service record object +[**udm_dns_srv_record_object_modify**](DnsSrvRecordApi.md#udm_dns_srv_record_object_modify) | **PUT** /dns/srv_record/{dn} | Modify or move an Service record object +[**udm_dns_srv_record_object_remove**](DnsSrvRecordApi.md#udm_dns_srv_record_object_remove) | **DELETE** /dns/srv_record/{dn} | Remove a Service records object +[**udm_dns_srv_record_object_search**](DnsSrvRecordApi.md#udm_dns_srv_record_object_search) | **GET** /dns/srv_record/ | Search for Service records objects +[**udm_dns_srv_record_object_template**](DnsSrvRecordApi.md#udm_dns_srv_record_object_template) | **GET** /dns/srv_record/add | Get a template for creating an Service record object (contains all properties and their default values) +[**udm_dns_srv_record_object_update**](DnsSrvRecordApi.md#udm_dns_srv_record_object_update) | **PATCH** /dns/srv_record/{dn} | Modify an Service record object (moving is currently not possible) + + +# **udm_dns_srv_record_object** +> DnsSrvRecord udm_dns_srv_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Service record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsSrvRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Service record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_srv_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsSrvRecordApi->udm_dns_srv_record_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsSrvRecord**](DnsSrvRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_srv_record_object_create** +> InlineResponse201 udm_dns_srv_record_object_create(dns_srv_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Service record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsSrvRecordApi(api_client) + dns_srv_record = openapi_client_udm.DnsSrvRecord() # DnsSrvRecord | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Service record object + api_response = api_instance.udm_dns_srv_record_object_create(dns_srv_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsSrvRecordApi->udm_dns_srv_record_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_srv_record** | [**DnsSrvRecord**](DnsSrvRecord.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dns_srv_record_object_modify** +> InlineResponse201 udm_dns_srv_record_object_modify(dn, dns_srv_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Service record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsSrvRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_srv_record = openapi_client_udm.DnsSrvRecord() # DnsSrvRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Service record object + api_response = api_instance.udm_dns_srv_record_object_modify(dn, dns_srv_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsSrvRecordApi->udm_dns_srv_record_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_srv_record** | [**DnsSrvRecord**](DnsSrvRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_srv_record_object_remove** +> udm_dns_srv_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Service records object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsSrvRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Service records object + api_instance.udm_dns_srv_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsSrvRecordApi->udm_dns_srv_record_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_srv_record_object_search** +> DnsSrvRecordList udm_dns_srv_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for Service records objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsSrvRecordApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for Service records objects + api_response = api_instance.udm_dns_srv_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsSrvRecordApi->udm_dns_srv_record_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DnsSrvRecordList**](DnsSrvRecordList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_srv_record_object_template** +> DnsSrvRecord udm_dns_srv_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Service record object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsSrvRecordApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Service record object (contains all properties and their default values) + api_response = api_instance.udm_dns_srv_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsSrvRecordApi->udm_dns_srv_record_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsSrvRecord**](DnsSrvRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Service record. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_srv_record_object_update** +> udm_dns_srv_record_object_update(dn, dns_srv_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Service record object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsSrvRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_srv_record = openapi_client_udm.DnsSrvRecord() # DnsSrvRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Service record object (moving is currently not possible) + api_instance.udm_dns_srv_record_object_update(dn, dns_srv_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsSrvRecordApi->udm_dns_srv_record_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_srv_record** | [**DnsSrvRecord**](DnsSrvRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsSrvRecordList.md b/docs/DnsSrvRecordList.md new file mode 100644 index 0000000..29c40f5 --- /dev/null +++ b/docs/DnsSrvRecordList.md @@ -0,0 +1,11 @@ +# DnsSrvRecordList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsSrvRecordListEmbedded**](DnsSrvRecordListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsSrvRecordListEmbedded.md b/docs/DnsSrvRecordListEmbedded.md new file mode 100644 index 0000000..aa7027d --- /dev/null +++ b/docs/DnsSrvRecordListEmbedded.md @@ -0,0 +1,11 @@ +# DnsSrvRecordListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsSrvRecord]**](DnsSrvRecord.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsSrvRecordRequest.md b/docs/DnsSrvRecordRequest.md new file mode 100644 index 0000000..5096ab2 --- /dev/null +++ b/docs/DnsSrvRecordRequest.md @@ -0,0 +1,16 @@ +# DnsSrvRecordRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsSrvRecordRequestPatch.md b/docs/DnsSrvRecordRequestPatch.md new file mode 100644 index 0000000..c57b8d4 --- /dev/null +++ b/docs/DnsSrvRecordRequestPatch.md @@ -0,0 +1,15 @@ +# DnsSrvRecordRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsSrvRecordResponseMixin.md b/docs/DnsSrvRecordResponseMixin.md new file mode 100644 index 0000000..2be1cc0 --- /dev/null +++ b/docs/DnsSrvRecordResponseMixin.md @@ -0,0 +1,15 @@ +# DnsSrvRecordResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsTxtRecord.md b/docs/DnsTxtRecord.md new file mode 100644 index 0000000..efe91c9 --- /dev/null +++ b/docs/DnsTxtRecord.md @@ -0,0 +1,21 @@ +# DnsTxtRecord + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsTxtRecordApi.md b/docs/DnsTxtRecordApi.md new file mode 100644 index 0000000..c82c0ce --- /dev/null +++ b/docs/DnsTxtRecordApi.md @@ -0,0 +1,688 @@ +# openapi_client_udm.DnsTxtRecordApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_dns_txt_record_object**](DnsTxtRecordApi.md#udm_dns_txt_record_object) | **GET** /dns/txt_record/{dn} | Get a representation of the TXT record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_dns_txt_record_object_create**](DnsTxtRecordApi.md#udm_dns_txt_record_object_create) | **POST** /dns/txt_record/ | Create a new TXT record object +[**udm_dns_txt_record_object_modify**](DnsTxtRecordApi.md#udm_dns_txt_record_object_modify) | **PUT** /dns/txt_record/{dn} | Modify or move an TXT record object +[**udm_dns_txt_record_object_remove**](DnsTxtRecordApi.md#udm_dns_txt_record_object_remove) | **DELETE** /dns/txt_record/{dn} | Remove a TXT record object +[**udm_dns_txt_record_object_search**](DnsTxtRecordApi.md#udm_dns_txt_record_object_search) | **GET** /dns/txt_record/ | Search for TXT record objects +[**udm_dns_txt_record_object_template**](DnsTxtRecordApi.md#udm_dns_txt_record_object_template) | **GET** /dns/txt_record/add | Get a template for creating an TXT record object (contains all properties and their default values) +[**udm_dns_txt_record_object_update**](DnsTxtRecordApi.md#udm_dns_txt_record_object_update) | **PATCH** /dns/txt_record/{dn} | Modify an TXT record object (moving is currently not possible) + + +# **udm_dns_txt_record_object** +> DnsTxtRecord udm_dns_txt_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the TXT record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsTxtRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the TXT record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_dns_txt_record_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsTxtRecordApi->udm_dns_txt_record_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsTxtRecord**](DnsTxtRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_txt_record_object_create** +> InlineResponse201 udm_dns_txt_record_object_create(dns_txt_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new TXT record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsTxtRecordApi(api_client) + dns_txt_record = openapi_client_udm.DnsTxtRecord() # DnsTxtRecord | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new TXT record object + api_response = api_instance.udm_dns_txt_record_object_create(dns_txt_record, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsTxtRecordApi->udm_dns_txt_record_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_txt_record** | [**DnsTxtRecord**](DnsTxtRecord.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_dns_txt_record_object_modify** +> InlineResponse201 udm_dns_txt_record_object_modify(dn, dns_txt_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an TXT record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsTxtRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_txt_record = openapi_client_udm.DnsTxtRecord() # DnsTxtRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an TXT record object + api_response = api_instance.udm_dns_txt_record_object_modify(dn, dns_txt_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsTxtRecordApi->udm_dns_txt_record_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_txt_record** | [**DnsTxtRecord**](DnsTxtRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_txt_record_object_remove** +> udm_dns_txt_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a TXT record object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsTxtRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a TXT record object + api_instance.udm_dns_txt_record_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsTxtRecordApi->udm_dns_txt_record_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_txt_record_object_search** +> DnsTxtRecordList udm_dns_txt_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + +Search for TXT record objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsTxtRecordApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) +superordinate = 'null' # str | The superordinate DN of the objects to find. `position` is sufficient. (optional) (default to 'null') + + try: + # Search for TXT record objects + api_response = api_instance.udm_dns_txt_record_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id, superordinate=superordinate) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsTxtRecordApi->udm_dns_txt_record_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + **superordinate** | **str**| The superordinate DN of the objects to find. `position` is sufficient. | [optional] [default to 'null'] + +### Return type + +[**DnsTxtRecordList**](DnsTxtRecordList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_txt_record_object_template** +> DnsTxtRecord udm_dns_txt_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an TXT record object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsTxtRecordApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an TXT record object (contains all properties and their default values) + api_response = api_instance.udm_dns_txt_record_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DnsTxtRecordApi->udm_dns_txt_record_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**DnsTxtRecord**](DnsTxtRecord.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new TXT record. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_dns_txt_record_object_update** +> udm_dns_txt_record_object_update(dn, dns_txt_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an TXT record object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.DnsTxtRecordApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +dns_txt_record = openapi_client_udm.DnsTxtRecord() # DnsTxtRecord | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an TXT record object (moving is currently not possible) + api_instance.udm_dns_txt_record_object_update(dn, dns_txt_record, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling DnsTxtRecordApi->udm_dns_txt_record_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **dns_txt_record** | [**DnsTxtRecord**](DnsTxtRecord.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/DnsTxtRecordList.md b/docs/DnsTxtRecordList.md new file mode 100644 index 0000000..b0bfd59 --- /dev/null +++ b/docs/DnsTxtRecordList.md @@ -0,0 +1,11 @@ +# DnsTxtRecordList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**DnsTxtRecordListEmbedded**](DnsTxtRecordListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsTxtRecordListEmbedded.md b/docs/DnsTxtRecordListEmbedded.md new file mode 100644 index 0000000..464a671 --- /dev/null +++ b/docs/DnsTxtRecordListEmbedded.md @@ -0,0 +1,11 @@ +# DnsTxtRecordListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[DnsTxtRecord]**](DnsTxtRecord.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsTxtRecordRequest.md b/docs/DnsTxtRecordRequest.md new file mode 100644 index 0000000..af399d7 --- /dev/null +++ b/docs/DnsTxtRecordRequest.md @@ -0,0 +1,16 @@ +# DnsTxtRecordRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsTxtRecordRequestPatch.md b/docs/DnsTxtRecordRequestPatch.md new file mode 100644 index 0000000..57bea77 --- /dev/null +++ b/docs/DnsTxtRecordRequestPatch.md @@ -0,0 +1,15 @@ +# DnsTxtRecordRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**superordinate** | **str** | The superordinate DN of the object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DnsTxtRecordResponseMixin.md b/docs/DnsTxtRecordResponseMixin.md new file mode 100644 index 0000000..2bf7462 --- /dev/null +++ b/docs/DnsTxtRecordResponseMixin.md @@ -0,0 +1,15 @@ +# DnsTxtRecordResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EmbeddedError.md b/docs/EmbeddedError.md new file mode 100644 index 0000000..06d6248 --- /dev/null +++ b/docs/EmbeddedError.md @@ -0,0 +1,15 @@ +# EmbeddedError + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | **dict(str, object)** | | [optional] +**code** | **int** | HTTP status code equivalent. | [optional] +**message** | **str** | A human readable error message. | [optional] +**title** | **str** | short title for the error. | [optional] +**traceback** | **str** | A stacktrace (if enabled and server error). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupsGroup.md b/docs/GroupsGroup.md new file mode 100644 index 0000000..aa27860 --- /dev/null +++ b/docs/GroupsGroup.md @@ -0,0 +1,20 @@ +# GroupsGroup + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**GroupsGroupOptions**](GroupsGroupOptions.md) | | [optional] +**policies** | [**GroupsGroupPolicies**](GroupsGroupPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupsGroupApi.md b/docs/GroupsGroupApi.md new file mode 100644 index 0000000..01cee44 --- /dev/null +++ b/docs/GroupsGroupApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.GroupsGroupApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_groups_group_object**](GroupsGroupApi.md#udm_groups_group_object) | **GET** /groups/group/{dn} | Get a representation of the Group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_groups_group_object_create**](GroupsGroupApi.md#udm_groups_group_object_create) | **POST** /groups/group/ | Create a new Group object +[**udm_groups_group_object_modify**](GroupsGroupApi.md#udm_groups_group_object_modify) | **PUT** /groups/group/{dn} | Modify or move an Group object +[**udm_groups_group_object_remove**](GroupsGroupApi.md#udm_groups_group_object_remove) | **DELETE** /groups/group/{dn} | Remove a Groups object +[**udm_groups_group_object_search**](GroupsGroupApi.md#udm_groups_group_object_search) | **GET** /groups/group/ | Search for Groups objects +[**udm_groups_group_object_template**](GroupsGroupApi.md#udm_groups_group_object_template) | **GET** /groups/group/add | Get a template for creating an Group object (contains all properties and their default values) +[**udm_groups_group_object_update**](GroupsGroupApi.md#udm_groups_group_object_update) | **PATCH** /groups/group/{dn} | Modify an Group object (moving is currently not possible) + + +# **udm_groups_group_object** +> GroupsGroup udm_groups_group_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.GroupsGroupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_groups_group_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling GroupsGroupApi->udm_groups_group_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**GroupsGroup**](GroupsGroup.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_groups_group_object_create** +> InlineResponse201 udm_groups_group_object_create(groups_group, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Group object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.GroupsGroupApi(api_client) + groups_group = openapi_client_udm.GroupsGroup() # GroupsGroup | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Group object + api_response = api_instance.udm_groups_group_object_create(groups_group, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling GroupsGroupApi->udm_groups_group_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groups_group** | [**GroupsGroup**](GroupsGroup.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_groups_group_object_modify** +> InlineResponse201 udm_groups_group_object_modify(dn, groups_group, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Group object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.GroupsGroupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +groups_group = openapi_client_udm.GroupsGroup() # GroupsGroup | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Group object + api_response = api_instance.udm_groups_group_object_modify(dn, groups_group, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling GroupsGroupApi->udm_groups_group_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **groups_group** | [**GroupsGroup**](GroupsGroup.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_groups_group_object_remove** +> udm_groups_group_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Groups object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.GroupsGroupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Groups object + api_instance.udm_groups_group_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling GroupsGroupApi->udm_groups_group_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_groups_group_object_search** +> GroupsGroupList udm_groups_group_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Groups objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.GroupsGroupApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Groups objects + api_response = api_instance.udm_groups_group_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling GroupsGroupApi->udm_groups_group_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**GroupsGroupList**](GroupsGroupList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_groups_group_object_template** +> GroupsGroup udm_groups_group_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Group object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.GroupsGroupApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Group object (contains all properties and their default values) + api_response = api_instance.udm_groups_group_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling GroupsGroupApi->udm_groups_group_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**GroupsGroup**](GroupsGroup.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Group. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_groups_group_object_update** +> udm_groups_group_object_update(dn, groups_group, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Group object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.GroupsGroupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +groups_group = openapi_client_udm.GroupsGroup() # GroupsGroup | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Group object (moving is currently not possible) + api_instance.udm_groups_group_object_update(dn, groups_group, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling GroupsGroupApi->udm_groups_group_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **groups_group** | [**GroupsGroup**](GroupsGroup.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/GroupsGroupList.md b/docs/GroupsGroupList.md new file mode 100644 index 0000000..2b3b501 --- /dev/null +++ b/docs/GroupsGroupList.md @@ -0,0 +1,11 @@ +# GroupsGroupList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**GroupsGroupListEmbedded**](GroupsGroupListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupsGroupListEmbedded.md b/docs/GroupsGroupListEmbedded.md new file mode 100644 index 0000000..6e2a778 --- /dev/null +++ b/docs/GroupsGroupListEmbedded.md @@ -0,0 +1,11 @@ +# GroupsGroupListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[GroupsGroup]**](GroupsGroup.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupsGroupOptions.md b/docs/GroupsGroupOptions.md new file mode 100644 index 0000000..34d347e --- /dev/null +++ b/docs/GroupsGroupOptions.md @@ -0,0 +1,13 @@ +# GroupsGroupOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posix** | **bool** | Posix group | [optional] [default to True] +**samba** | **bool** | Samba group | [optional] [default to True] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupsGroupPolicies.md b/docs/GroupsGroupPolicies.md new file mode 100644 index 0000000..ac4e2f9 --- /dev/null +++ b/docs/GroupsGroupPolicies.md @@ -0,0 +1,12 @@ +# GroupsGroupPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_umc** | **list[str]** | Policy: UMC | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupsGroupRequest.md b/docs/GroupsGroupRequest.md new file mode 100644 index 0000000..16c699a --- /dev/null +++ b/docs/GroupsGroupRequest.md @@ -0,0 +1,15 @@ +# GroupsGroupRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**GroupsGroupOptions**](GroupsGroupOptions.md) | | [optional] +**policies** | [**GroupsGroupPolicies**](GroupsGroupPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupsGroupRequestPatch.md b/docs/GroupsGroupRequestPatch.md new file mode 100644 index 0000000..353167a --- /dev/null +++ b/docs/GroupsGroupRequestPatch.md @@ -0,0 +1,14 @@ +# GroupsGroupRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**GroupsGroupOptions**](GroupsGroupOptions.md) | | [optional] +**policies** | [**GroupsGroupPolicies**](GroupsGroupPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupsGroupResponseMixin.md b/docs/GroupsGroupResponseMixin.md new file mode 100644 index 0000000..3df2de8 --- /dev/null +++ b/docs/GroupsGroupResponseMixin.md @@ -0,0 +1,15 @@ +# GroupsGroupResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineResponse201.md b/docs/InlineResponse201.md new file mode 100644 index 0000000..3091412 --- /dev/null +++ b/docs/InlineResponse201.md @@ -0,0 +1,12 @@ +# InlineResponse201 + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KerberosKdcentry.md b/docs/KerberosKdcentry.md new file mode 100644 index 0000000..9627d3a --- /dev/null +++ b/docs/KerberosKdcentry.md @@ -0,0 +1,20 @@ +# KerberosKdcentry + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KerberosKdcentryApi.md b/docs/KerberosKdcentryApi.md new file mode 100644 index 0000000..8fb41a3 --- /dev/null +++ b/docs/KerberosKdcentryApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.KerberosKdcentryApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_kerberos_kdcentry_object**](KerberosKdcentryApi.md#udm_kerberos_kdcentry_object) | **GET** /kerberos/kdcentry/{dn} | Get a representation of the KDC Entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_kerberos_kdcentry_object_create**](KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_create) | **POST** /kerberos/kdcentry/ | Create a new KDC Entry object +[**udm_kerberos_kdcentry_object_modify**](KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_modify) | **PUT** /kerberos/kdcentry/{dn} | Modify or move an KDC Entry object +[**udm_kerberos_kdcentry_object_remove**](KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_remove) | **DELETE** /kerberos/kdcentry/{dn} | Remove a KDC Entries object +[**udm_kerberos_kdcentry_object_search**](KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_search) | **GET** /kerberos/kdcentry/ | Search for KDC Entries objects +[**udm_kerberos_kdcentry_object_template**](KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_template) | **GET** /kerberos/kdcentry/add | Get a template for creating an KDC Entry object (contains all properties and their default values) +[**udm_kerberos_kdcentry_object_update**](KerberosKdcentryApi.md#udm_kerberos_kdcentry_object_update) | **PATCH** /kerberos/kdcentry/{dn} | Modify an KDC Entry object (moving is currently not possible) + + +# **udm_kerberos_kdcentry_object** +> KerberosKdcentry udm_kerberos_kdcentry_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the KDC Entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.KerberosKdcentryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the KDC Entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_kerberos_kdcentry_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling KerberosKdcentryApi->udm_kerberos_kdcentry_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**KerberosKdcentry**](KerberosKdcentry.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_kerberos_kdcentry_object_create** +> InlineResponse201 udm_kerberos_kdcentry_object_create(kerberos_kdcentry, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new KDC Entry object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.KerberosKdcentryApi(api_client) + kerberos_kdcentry = openapi_client_udm.KerberosKdcentry() # KerberosKdcentry | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new KDC Entry object + api_response = api_instance.udm_kerberos_kdcentry_object_create(kerberos_kdcentry, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling KerberosKdcentryApi->udm_kerberos_kdcentry_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **kerberos_kdcentry** | [**KerberosKdcentry**](KerberosKdcentry.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_kerberos_kdcentry_object_modify** +> InlineResponse201 udm_kerberos_kdcentry_object_modify(dn, kerberos_kdcentry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an KDC Entry object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.KerberosKdcentryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +kerberos_kdcentry = openapi_client_udm.KerberosKdcentry() # KerberosKdcentry | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an KDC Entry object + api_response = api_instance.udm_kerberos_kdcentry_object_modify(dn, kerberos_kdcentry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling KerberosKdcentryApi->udm_kerberos_kdcentry_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **kerberos_kdcentry** | [**KerberosKdcentry**](KerberosKdcentry.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_kerberos_kdcentry_object_remove** +> udm_kerberos_kdcentry_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a KDC Entries object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.KerberosKdcentryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a KDC Entries object + api_instance.udm_kerberos_kdcentry_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling KerberosKdcentryApi->udm_kerberos_kdcentry_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_kerberos_kdcentry_object_search** +> KerberosKdcentryList udm_kerberos_kdcentry_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for KDC Entries objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.KerberosKdcentryApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for KDC Entries objects + api_response = api_instance.udm_kerberos_kdcentry_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling KerberosKdcentryApi->udm_kerberos_kdcentry_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**KerberosKdcentryList**](KerberosKdcentryList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_kerberos_kdcentry_object_template** +> KerberosKdcentry udm_kerberos_kdcentry_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an KDC Entry object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.KerberosKdcentryApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an KDC Entry object (contains all properties and their default values) + api_response = api_instance.udm_kerberos_kdcentry_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling KerberosKdcentryApi->udm_kerberos_kdcentry_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**KerberosKdcentry**](KerberosKdcentry.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new KDC Entry. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_kerberos_kdcentry_object_update** +> udm_kerberos_kdcentry_object_update(dn, kerberos_kdcentry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an KDC Entry object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.KerberosKdcentryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +kerberos_kdcentry = openapi_client_udm.KerberosKdcentry() # KerberosKdcentry | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an KDC Entry object (moving is currently not possible) + api_instance.udm_kerberos_kdcentry_object_update(dn, kerberos_kdcentry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling KerberosKdcentryApi->udm_kerberos_kdcentry_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **kerberos_kdcentry** | [**KerberosKdcentry**](KerberosKdcentry.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/KerberosKdcentryList.md b/docs/KerberosKdcentryList.md new file mode 100644 index 0000000..16d418b --- /dev/null +++ b/docs/KerberosKdcentryList.md @@ -0,0 +1,11 @@ +# KerberosKdcentryList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**KerberosKdcentryListEmbedded**](KerberosKdcentryListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KerberosKdcentryListEmbedded.md b/docs/KerberosKdcentryListEmbedded.md new file mode 100644 index 0000000..7243ae6 --- /dev/null +++ b/docs/KerberosKdcentryListEmbedded.md @@ -0,0 +1,11 @@ +# KerberosKdcentryListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[KerberosKdcentry]**](KerberosKdcentry.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KerberosKdcentryRequest.md b/docs/KerberosKdcentryRequest.md new file mode 100644 index 0000000..f2e60d7 --- /dev/null +++ b/docs/KerberosKdcentryRequest.md @@ -0,0 +1,15 @@ +# KerberosKdcentryRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KerberosKdcentryRequestPatch.md b/docs/KerberosKdcentryRequestPatch.md new file mode 100644 index 0000000..d6dbfa6 --- /dev/null +++ b/docs/KerberosKdcentryRequestPatch.md @@ -0,0 +1,14 @@ +# KerberosKdcentryRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KerberosKdcentryResponseMixin.md b/docs/KerberosKdcentryResponseMixin.md new file mode 100644 index 0000000..17c6694 --- /dev/null +++ b/docs/KerberosKdcentryResponseMixin.md @@ -0,0 +1,15 @@ +# KerberosKdcentryResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Links.md b/docs/Links.md new file mode 100644 index 0000000..5d91fee --- /dev/null +++ b/docs/Links.md @@ -0,0 +1,12 @@ +# Links + +Hypertext Application Language (HAL) links. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | **list[dict(str, object)]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailDomain.md b/docs/MailDomain.md new file mode 100644 index 0000000..76e7620 --- /dev/null +++ b/docs/MailDomain.md @@ -0,0 +1,20 @@ +# MailDomain + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailDomainApi.md b/docs/MailDomainApi.md new file mode 100644 index 0000000..19b5fbe --- /dev/null +++ b/docs/MailDomainApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MailDomainApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_mail_domain_object**](MailDomainApi.md#udm_mail_domain_object) | **GET** /mail/domain/{dn} | Get a representation of the Mail domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_mail_domain_object_create**](MailDomainApi.md#udm_mail_domain_object_create) | **POST** /mail/domain/ | Create a new Mail domain object +[**udm_mail_domain_object_modify**](MailDomainApi.md#udm_mail_domain_object_modify) | **PUT** /mail/domain/{dn} | Modify or move an Mail domain object +[**udm_mail_domain_object_remove**](MailDomainApi.md#udm_mail_domain_object_remove) | **DELETE** /mail/domain/{dn} | Remove a Mail domains object +[**udm_mail_domain_object_search**](MailDomainApi.md#udm_mail_domain_object_search) | **GET** /mail/domain/ | Search for Mail domains objects +[**udm_mail_domain_object_template**](MailDomainApi.md#udm_mail_domain_object_template) | **GET** /mail/domain/add | Get a template for creating an Mail domain object (contains all properties and their default values) +[**udm_mail_domain_object_update**](MailDomainApi.md#udm_mail_domain_object_update) | **PATCH** /mail/domain/{dn} | Modify an Mail domain object (moving is currently not possible) + + +# **udm_mail_domain_object** +> MailDomain udm_mail_domain_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Mail domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailDomainApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Mail domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_mail_domain_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailDomainApi->udm_mail_domain_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailDomain**](MailDomain.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_domain_object_create** +> InlineResponse201 udm_mail_domain_object_create(mail_domain, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Mail domain object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailDomainApi(api_client) + mail_domain = openapi_client_udm.MailDomain() # MailDomain | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Mail domain object + api_response = api_instance.udm_mail_domain_object_create(mail_domain, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailDomainApi->udm_mail_domain_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mail_domain** | [**MailDomain**](MailDomain.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_mail_domain_object_modify** +> InlineResponse201 udm_mail_domain_object_modify(dn, mail_domain, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Mail domain object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailDomainApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +mail_domain = openapi_client_udm.MailDomain() # MailDomain | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Mail domain object + api_response = api_instance.udm_mail_domain_object_modify(dn, mail_domain, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailDomainApi->udm_mail_domain_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **mail_domain** | [**MailDomain**](MailDomain.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_domain_object_remove** +> udm_mail_domain_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Mail domains object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailDomainApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Mail domains object + api_instance.udm_mail_domain_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MailDomainApi->udm_mail_domain_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_domain_object_search** +> MailDomainList udm_mail_domain_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Mail domains objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailDomainApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Mail domains objects + api_response = api_instance.udm_mail_domain_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailDomainApi->udm_mail_domain_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailDomainList**](MailDomainList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_domain_object_template** +> MailDomain udm_mail_domain_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Mail domain object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailDomainApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Mail domain object (contains all properties and their default values) + api_response = api_instance.udm_mail_domain_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailDomainApi->udm_mail_domain_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailDomain**](MailDomain.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Mail domain. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_domain_object_update** +> udm_mail_domain_object_update(dn, mail_domain, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Mail domain object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailDomainApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +mail_domain = openapi_client_udm.MailDomain() # MailDomain | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Mail domain object (moving is currently not possible) + api_instance.udm_mail_domain_object_update(dn, mail_domain, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MailDomainApi->udm_mail_domain_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **mail_domain** | [**MailDomain**](MailDomain.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MailDomainList.md b/docs/MailDomainList.md new file mode 100644 index 0000000..f1d503c --- /dev/null +++ b/docs/MailDomainList.md @@ -0,0 +1,11 @@ +# MailDomainList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MailDomainListEmbedded**](MailDomainListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailDomainListEmbedded.md b/docs/MailDomainListEmbedded.md new file mode 100644 index 0000000..fda7cfe --- /dev/null +++ b/docs/MailDomainListEmbedded.md @@ -0,0 +1,11 @@ +# MailDomainListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MailDomain]**](MailDomain.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailDomainRequest.md b/docs/MailDomainRequest.md new file mode 100644 index 0000000..3f08138 --- /dev/null +++ b/docs/MailDomainRequest.md @@ -0,0 +1,15 @@ +# MailDomainRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailDomainRequestPatch.md b/docs/MailDomainRequestPatch.md new file mode 100644 index 0000000..bd301e6 --- /dev/null +++ b/docs/MailDomainRequestPatch.md @@ -0,0 +1,14 @@ +# MailDomainRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailDomainResponseMixin.md b/docs/MailDomainResponseMixin.md new file mode 100644 index 0000000..17f2fa2 --- /dev/null +++ b/docs/MailDomainResponseMixin.md @@ -0,0 +1,15 @@ +# MailDomainResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailFolder.md b/docs/MailFolder.md new file mode 100644 index 0000000..05e5886 --- /dev/null +++ b/docs/MailFolder.md @@ -0,0 +1,20 @@ +# MailFolder + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailFolderApi.md b/docs/MailFolderApi.md new file mode 100644 index 0000000..c1e4540 --- /dev/null +++ b/docs/MailFolderApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MailFolderApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_mail_folder_object**](MailFolderApi.md#udm_mail_folder_object) | **GET** /mail/folder/{dn} | Get a representation of the IMAP mail folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_mail_folder_object_create**](MailFolderApi.md#udm_mail_folder_object_create) | **POST** /mail/folder/ | Create a new IMAP mail folder object +[**udm_mail_folder_object_modify**](MailFolderApi.md#udm_mail_folder_object_modify) | **PUT** /mail/folder/{dn} | Modify or move an IMAP mail folder object +[**udm_mail_folder_object_remove**](MailFolderApi.md#udm_mail_folder_object_remove) | **DELETE** /mail/folder/{dn} | Remove a IMAP mail folders object +[**udm_mail_folder_object_search**](MailFolderApi.md#udm_mail_folder_object_search) | **GET** /mail/folder/ | Search for IMAP mail folders objects +[**udm_mail_folder_object_template**](MailFolderApi.md#udm_mail_folder_object_template) | **GET** /mail/folder/add | Get a template for creating an IMAP mail folder object (contains all properties and their default values) +[**udm_mail_folder_object_update**](MailFolderApi.md#udm_mail_folder_object_update) | **PATCH** /mail/folder/{dn} | Modify an IMAP mail folder object (moving is currently not possible) + + +# **udm_mail_folder_object** +> MailFolder udm_mail_folder_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the IMAP mail folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailFolderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the IMAP mail folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_mail_folder_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailFolderApi->udm_mail_folder_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailFolder**](MailFolder.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_folder_object_create** +> InlineResponse201 udm_mail_folder_object_create(mail_folder, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new IMAP mail folder object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailFolderApi(api_client) + mail_folder = openapi_client_udm.MailFolder() # MailFolder | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new IMAP mail folder object + api_response = api_instance.udm_mail_folder_object_create(mail_folder, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailFolderApi->udm_mail_folder_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mail_folder** | [**MailFolder**](MailFolder.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_mail_folder_object_modify** +> InlineResponse201 udm_mail_folder_object_modify(dn, mail_folder, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an IMAP mail folder object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailFolderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +mail_folder = openapi_client_udm.MailFolder() # MailFolder | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an IMAP mail folder object + api_response = api_instance.udm_mail_folder_object_modify(dn, mail_folder, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailFolderApi->udm_mail_folder_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **mail_folder** | [**MailFolder**](MailFolder.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_folder_object_remove** +> udm_mail_folder_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a IMAP mail folders object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailFolderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a IMAP mail folders object + api_instance.udm_mail_folder_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MailFolderApi->udm_mail_folder_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_folder_object_search** +> MailFolderList udm_mail_folder_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for IMAP mail folders objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailFolderApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for IMAP mail folders objects + api_response = api_instance.udm_mail_folder_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailFolderApi->udm_mail_folder_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailFolderList**](MailFolderList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_folder_object_template** +> MailFolder udm_mail_folder_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an IMAP mail folder object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailFolderApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an IMAP mail folder object (contains all properties and their default values) + api_response = api_instance.udm_mail_folder_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailFolderApi->udm_mail_folder_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailFolder**](MailFolder.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new IMAP mail folder. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_folder_object_update** +> udm_mail_folder_object_update(dn, mail_folder, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an IMAP mail folder object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailFolderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +mail_folder = openapi_client_udm.MailFolder() # MailFolder | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an IMAP mail folder object (moving is currently not possible) + api_instance.udm_mail_folder_object_update(dn, mail_folder, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MailFolderApi->udm_mail_folder_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **mail_folder** | [**MailFolder**](MailFolder.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MailFolderList.md b/docs/MailFolderList.md new file mode 100644 index 0000000..0fd27e4 --- /dev/null +++ b/docs/MailFolderList.md @@ -0,0 +1,11 @@ +# MailFolderList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MailFolderListEmbedded**](MailFolderListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailFolderListEmbedded.md b/docs/MailFolderListEmbedded.md new file mode 100644 index 0000000..8c5a76e --- /dev/null +++ b/docs/MailFolderListEmbedded.md @@ -0,0 +1,11 @@ +# MailFolderListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MailFolder]**](MailFolder.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailFolderRequest.md b/docs/MailFolderRequest.md new file mode 100644 index 0000000..2c0c41e --- /dev/null +++ b/docs/MailFolderRequest.md @@ -0,0 +1,15 @@ +# MailFolderRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailFolderRequestPatch.md b/docs/MailFolderRequestPatch.md new file mode 100644 index 0000000..25d1806 --- /dev/null +++ b/docs/MailFolderRequestPatch.md @@ -0,0 +1,14 @@ +# MailFolderRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailFolderResponseMixin.md b/docs/MailFolderResponseMixin.md new file mode 100644 index 0000000..ee91f19 --- /dev/null +++ b/docs/MailFolderResponseMixin.md @@ -0,0 +1,15 @@ +# MailFolderResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailLists.md b/docs/MailLists.md new file mode 100644 index 0000000..25c5da6 --- /dev/null +++ b/docs/MailLists.md @@ -0,0 +1,20 @@ +# MailLists + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailListsApi.md b/docs/MailListsApi.md new file mode 100644 index 0000000..15fad23 --- /dev/null +++ b/docs/MailListsApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MailListsApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_mail_lists_object**](MailListsApi.md#udm_mail_lists_object) | **GET** /mail/lists/{dn} | Get a representation of the Mailing list object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_mail_lists_object_create**](MailListsApi.md#udm_mail_lists_object_create) | **POST** /mail/lists/ | Create a new Mailing list object +[**udm_mail_lists_object_modify**](MailListsApi.md#udm_mail_lists_object_modify) | **PUT** /mail/lists/{dn} | Modify or move an Mailing list object +[**udm_mail_lists_object_remove**](MailListsApi.md#udm_mail_lists_object_remove) | **DELETE** /mail/lists/{dn} | Remove a Mailing lists object +[**udm_mail_lists_object_search**](MailListsApi.md#udm_mail_lists_object_search) | **GET** /mail/lists/ | Search for Mailing lists objects +[**udm_mail_lists_object_template**](MailListsApi.md#udm_mail_lists_object_template) | **GET** /mail/lists/add | Get a template for creating an Mailing list object (contains all properties and their default values) +[**udm_mail_lists_object_update**](MailListsApi.md#udm_mail_lists_object_update) | **PATCH** /mail/lists/{dn} | Modify an Mailing list object (moving is currently not possible) + + +# **udm_mail_lists_object** +> MailLists udm_mail_lists_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Mailing list object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailListsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Mailing list object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_mail_lists_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailListsApi->udm_mail_lists_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailLists**](MailLists.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_lists_object_create** +> InlineResponse201 udm_mail_lists_object_create(mail_lists, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Mailing list object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailListsApi(api_client) + mail_lists = openapi_client_udm.MailLists() # MailLists | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Mailing list object + api_response = api_instance.udm_mail_lists_object_create(mail_lists, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailListsApi->udm_mail_lists_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mail_lists** | [**MailLists**](MailLists.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_mail_lists_object_modify** +> InlineResponse201 udm_mail_lists_object_modify(dn, mail_lists, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Mailing list object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailListsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +mail_lists = openapi_client_udm.MailLists() # MailLists | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Mailing list object + api_response = api_instance.udm_mail_lists_object_modify(dn, mail_lists, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailListsApi->udm_mail_lists_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **mail_lists** | [**MailLists**](MailLists.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_lists_object_remove** +> udm_mail_lists_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Mailing lists object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailListsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Mailing lists object + api_instance.udm_mail_lists_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MailListsApi->udm_mail_lists_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_lists_object_search** +> MailListsList udm_mail_lists_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Mailing lists objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailListsApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Mailing lists objects + api_response = api_instance.udm_mail_lists_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailListsApi->udm_mail_lists_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailListsList**](MailListsList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_lists_object_template** +> MailLists udm_mail_lists_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Mailing list object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailListsApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Mailing list object (contains all properties and their default values) + api_response = api_instance.udm_mail_lists_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailListsApi->udm_mail_lists_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailLists**](MailLists.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Mailing list. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_lists_object_update** +> udm_mail_lists_object_update(dn, mail_lists, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Mailing list object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailListsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +mail_lists = openapi_client_udm.MailLists() # MailLists | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Mailing list object (moving is currently not possible) + api_instance.udm_mail_lists_object_update(dn, mail_lists, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MailListsApi->udm_mail_lists_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **mail_lists** | [**MailLists**](MailLists.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MailListsList.md b/docs/MailListsList.md new file mode 100644 index 0000000..5481f83 --- /dev/null +++ b/docs/MailListsList.md @@ -0,0 +1,11 @@ +# MailListsList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MailListsListEmbedded**](MailListsListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailListsListEmbedded.md b/docs/MailListsListEmbedded.md new file mode 100644 index 0000000..6b48718 --- /dev/null +++ b/docs/MailListsListEmbedded.md @@ -0,0 +1,11 @@ +# MailListsListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MailLists]**](MailLists.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailListsRequest.md b/docs/MailListsRequest.md new file mode 100644 index 0000000..e56bd7e --- /dev/null +++ b/docs/MailListsRequest.md @@ -0,0 +1,15 @@ +# MailListsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailListsRequestPatch.md b/docs/MailListsRequestPatch.md new file mode 100644 index 0000000..94aa871 --- /dev/null +++ b/docs/MailListsRequestPatch.md @@ -0,0 +1,14 @@ +# MailListsRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailListsResponseMixin.md b/docs/MailListsResponseMixin.md new file mode 100644 index 0000000..2056951 --- /dev/null +++ b/docs/MailListsResponseMixin.md @@ -0,0 +1,15 @@ +# MailListsResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailMail.md b/docs/MailMail.md new file mode 100644 index 0000000..8957eb7 --- /dev/null +++ b/docs/MailMail.md @@ -0,0 +1,20 @@ +# MailMail + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailMailApi.md b/docs/MailMailApi.md new file mode 100644 index 0000000..b8069d2 --- /dev/null +++ b/docs/MailMailApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.MailMailApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_mail_mail_object**](MailMailApi.md#udm_mail_mail_object) | **GET** /mail/mail/{dn} | Get a representation of the Mail object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_mail_mail_object_search**](MailMailApi.md#udm_mail_mail_object_search) | **GET** /mail/mail/ | Search for Mail objects objects + + +# **udm_mail_mail_object** +> MailMail udm_mail_mail_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Mail object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailMailApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Mail object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_mail_mail_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailMailApi->udm_mail_mail_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailMail**](MailMail.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_mail_mail_object_search** +> MailMailList udm_mail_mail_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Mail objects objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MailMailApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Mail objects objects + api_response = api_instance.udm_mail_mail_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MailMailApi->udm_mail_mail_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MailMailList**](MailMailList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MailMailList.md b/docs/MailMailList.md new file mode 100644 index 0000000..15e6c70 --- /dev/null +++ b/docs/MailMailList.md @@ -0,0 +1,11 @@ +# MailMailList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MailMailListEmbedded**](MailMailListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailMailListEmbedded.md b/docs/MailMailListEmbedded.md new file mode 100644 index 0000000..fb6f6ab --- /dev/null +++ b/docs/MailMailListEmbedded.md @@ -0,0 +1,11 @@ +# MailMailListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MailMail]**](MailMail.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailMailRequest.md b/docs/MailMailRequest.md new file mode 100644 index 0000000..ed413f5 --- /dev/null +++ b/docs/MailMailRequest.md @@ -0,0 +1,15 @@ +# MailMailRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailMailRequestPatch.md b/docs/MailMailRequestPatch.md new file mode 100644 index 0000000..4484070 --- /dev/null +++ b/docs/MailMailRequestPatch.md @@ -0,0 +1,14 @@ +# MailMailRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MailMailResponseMixin.md b/docs/MailMailResponseMixin.md new file mode 100644 index 0000000..5ad678d --- /dev/null +++ b/docs/MailMailResponseMixin.md @@ -0,0 +1,15 @@ +# MailMailResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringAlert.md b/docs/MonitoringAlert.md new file mode 100644 index 0000000..b8d8a7a --- /dev/null +++ b/docs/MonitoringAlert.md @@ -0,0 +1,20 @@ +# MonitoringAlert + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringAlertApi.md b/docs/MonitoringAlertApi.md new file mode 100644 index 0000000..cdd78b0 --- /dev/null +++ b/docs/MonitoringAlertApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MonitoringAlertApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_monitoring_alert_object**](MonitoringAlertApi.md#udm_monitoring_alert_object) | **GET** /monitoring/alert/{dn} | Get a representation of the Alert object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_monitoring_alert_object_create**](MonitoringAlertApi.md#udm_monitoring_alert_object_create) | **POST** /monitoring/alert/ | Create a new Alert object +[**udm_monitoring_alert_object_modify**](MonitoringAlertApi.md#udm_monitoring_alert_object_modify) | **PUT** /monitoring/alert/{dn} | Modify or move an Alert object +[**udm_monitoring_alert_object_remove**](MonitoringAlertApi.md#udm_monitoring_alert_object_remove) | **DELETE** /monitoring/alert/{dn} | Remove a Alerts object +[**udm_monitoring_alert_object_search**](MonitoringAlertApi.md#udm_monitoring_alert_object_search) | **GET** /monitoring/alert/ | Search for Alerts objects +[**udm_monitoring_alert_object_template**](MonitoringAlertApi.md#udm_monitoring_alert_object_template) | **GET** /monitoring/alert/add | Get a template for creating an Alert object (contains all properties and their default values) +[**udm_monitoring_alert_object_update**](MonitoringAlertApi.md#udm_monitoring_alert_object_update) | **PATCH** /monitoring/alert/{dn} | Modify an Alert object (moving is currently not possible) + + +# **udm_monitoring_alert_object** +> MonitoringAlert udm_monitoring_alert_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Alert object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MonitoringAlertApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Alert object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_monitoring_alert_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringAlertApi->udm_monitoring_alert_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MonitoringAlert**](MonitoringAlert.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_monitoring_alert_object_create** +> InlineResponse201 udm_monitoring_alert_object_create(monitoring_alert, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Alert object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MonitoringAlertApi(api_client) + monitoring_alert = openapi_client_udm.MonitoringAlert() # MonitoringAlert | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Alert object + api_response = api_instance.udm_monitoring_alert_object_create(monitoring_alert, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringAlertApi->udm_monitoring_alert_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **monitoring_alert** | [**MonitoringAlert**](MonitoringAlert.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_monitoring_alert_object_modify** +> InlineResponse201 udm_monitoring_alert_object_modify(dn, monitoring_alert, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Alert object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MonitoringAlertApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +monitoring_alert = openapi_client_udm.MonitoringAlert() # MonitoringAlert | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Alert object + api_response = api_instance.udm_monitoring_alert_object_modify(dn, monitoring_alert, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringAlertApi->udm_monitoring_alert_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **monitoring_alert** | [**MonitoringAlert**](MonitoringAlert.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_monitoring_alert_object_remove** +> udm_monitoring_alert_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Alerts object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MonitoringAlertApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Alerts object + api_instance.udm_monitoring_alert_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MonitoringAlertApi->udm_monitoring_alert_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_monitoring_alert_object_search** +> MonitoringAlertList udm_monitoring_alert_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Alerts objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MonitoringAlertApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Alerts objects + api_response = api_instance.udm_monitoring_alert_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringAlertApi->udm_monitoring_alert_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MonitoringAlertList**](MonitoringAlertList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_monitoring_alert_object_template** +> MonitoringAlert udm_monitoring_alert_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Alert object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MonitoringAlertApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Alert object (contains all properties and their default values) + api_response = api_instance.udm_monitoring_alert_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MonitoringAlertApi->udm_monitoring_alert_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MonitoringAlert**](MonitoringAlert.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Alert. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_monitoring_alert_object_update** +> udm_monitoring_alert_object_update(dn, monitoring_alert, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Alert object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MonitoringAlertApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +monitoring_alert = openapi_client_udm.MonitoringAlert() # MonitoringAlert | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Alert object (moving is currently not possible) + api_instance.udm_monitoring_alert_object_update(dn, monitoring_alert, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MonitoringAlertApi->udm_monitoring_alert_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **monitoring_alert** | [**MonitoringAlert**](MonitoringAlert.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MonitoringAlertList.md b/docs/MonitoringAlertList.md new file mode 100644 index 0000000..058cbe2 --- /dev/null +++ b/docs/MonitoringAlertList.md @@ -0,0 +1,11 @@ +# MonitoringAlertList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MonitoringAlertListEmbedded**](MonitoringAlertListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringAlertListEmbedded.md b/docs/MonitoringAlertListEmbedded.md new file mode 100644 index 0000000..d2a1fd5 --- /dev/null +++ b/docs/MonitoringAlertListEmbedded.md @@ -0,0 +1,11 @@ +# MonitoringAlertListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MonitoringAlert]**](MonitoringAlert.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringAlertRequest.md b/docs/MonitoringAlertRequest.md new file mode 100644 index 0000000..9eb42b2 --- /dev/null +++ b/docs/MonitoringAlertRequest.md @@ -0,0 +1,15 @@ +# MonitoringAlertRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringAlertRequestPatch.md b/docs/MonitoringAlertRequestPatch.md new file mode 100644 index 0000000..fe29f88 --- /dev/null +++ b/docs/MonitoringAlertRequestPatch.md @@ -0,0 +1,14 @@ +# MonitoringAlertRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MonitoringAlertResponseMixin.md b/docs/MonitoringAlertResponseMixin.md new file mode 100644 index 0000000..bbac8f8 --- /dev/null +++ b/docs/MonitoringAlertResponseMixin.md @@ -0,0 +1,15 @@ +# MonitoringAlertResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsDomainpolicy.md b/docs/MsDomainpolicy.md new file mode 100644 index 0000000..2f14f5f --- /dev/null +++ b/docs/MsDomainpolicy.md @@ -0,0 +1,20 @@ +# MsDomainpolicy + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsDomainpolicyPolicies**](MsDomainpolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsDomainpolicyApi.md b/docs/MsDomainpolicyApi.md new file mode 100644 index 0000000..0cd93d6 --- /dev/null +++ b/docs/MsDomainpolicyApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsDomainpolicyApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_domainpolicy_object**](MsDomainpolicyApi.md#udm_ms_domainpolicy_object) | **GET** /ms/domainpolicy/{dn} | Get a representation of the MS Domain Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_domainpolicy_object_create**](MsDomainpolicyApi.md#udm_ms_domainpolicy_object_create) | **POST** /ms/domainpolicy/ | Create a new MS Domain Policy object +[**udm_ms_domainpolicy_object_modify**](MsDomainpolicyApi.md#udm_ms_domainpolicy_object_modify) | **PUT** /ms/domainpolicy/{dn} | Modify or move an MS Domain Policy object +[**udm_ms_domainpolicy_object_remove**](MsDomainpolicyApi.md#udm_ms_domainpolicy_object_remove) | **DELETE** /ms/domainpolicy/{dn} | Remove a MS Domain Policy object +[**udm_ms_domainpolicy_object_search**](MsDomainpolicyApi.md#udm_ms_domainpolicy_object_search) | **GET** /ms/domainpolicy/ | Search for MS Domain Policy objects +[**udm_ms_domainpolicy_object_template**](MsDomainpolicyApi.md#udm_ms_domainpolicy_object_template) | **GET** /ms/domainpolicy/add | Get a template for creating an MS Domain Policy object (contains all properties and their default values) +[**udm_ms_domainpolicy_object_update**](MsDomainpolicyApi.md#udm_ms_domainpolicy_object_update) | **PATCH** /ms/domainpolicy/{dn} | Modify an MS Domain Policy object (moving is currently not possible) + + +# **udm_ms_domainpolicy_object** +> MsDomainpolicy udm_ms_domainpolicy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS Domain Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsDomainpolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS Domain Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_domainpolicy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsDomainpolicyApi->udm_ms_domainpolicy_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsDomainpolicy**](MsDomainpolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_domainpolicy_object_create** +> InlineResponse201 udm_ms_domainpolicy_object_create(ms_domainpolicy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS Domain Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsDomainpolicyApi(api_client) + ms_domainpolicy = openapi_client_udm.MsDomainpolicy() # MsDomainpolicy | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS Domain Policy object + api_response = api_instance.udm_ms_domainpolicy_object_create(ms_domainpolicy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsDomainpolicyApi->udm_ms_domainpolicy_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_domainpolicy** | [**MsDomainpolicy**](MsDomainpolicy.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_domainpolicy_object_modify** +> InlineResponse201 udm_ms_domainpolicy_object_modify(dn, ms_domainpolicy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS Domain Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsDomainpolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_domainpolicy = openapi_client_udm.MsDomainpolicy() # MsDomainpolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS Domain Policy object + api_response = api_instance.udm_ms_domainpolicy_object_modify(dn, ms_domainpolicy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsDomainpolicyApi->udm_ms_domainpolicy_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_domainpolicy** | [**MsDomainpolicy**](MsDomainpolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_domainpolicy_object_remove** +> udm_ms_domainpolicy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS Domain Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsDomainpolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS Domain Policy object + api_instance.udm_ms_domainpolicy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsDomainpolicyApi->udm_ms_domainpolicy_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_domainpolicy_object_search** +> MsDomainpolicyList udm_ms_domainpolicy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS Domain Policy objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsDomainpolicyApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS Domain Policy objects + api_response = api_instance.udm_ms_domainpolicy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsDomainpolicyApi->udm_ms_domainpolicy_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsDomainpolicyList**](MsDomainpolicyList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_domainpolicy_object_template** +> MsDomainpolicy udm_ms_domainpolicy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS Domain Policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsDomainpolicyApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS Domain Policy object (contains all properties and their default values) + api_response = api_instance.udm_ms_domainpolicy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsDomainpolicyApi->udm_ms_domainpolicy_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsDomainpolicy**](MsDomainpolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS Domain Policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_domainpolicy_object_update** +> udm_ms_domainpolicy_object_update(dn, ms_domainpolicy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS Domain Policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsDomainpolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_domainpolicy = openapi_client_udm.MsDomainpolicy() # MsDomainpolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS Domain Policy object (moving is currently not possible) + api_instance.udm_ms_domainpolicy_object_update(dn, ms_domainpolicy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsDomainpolicyApi->udm_ms_domainpolicy_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_domainpolicy** | [**MsDomainpolicy**](MsDomainpolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsDomainpolicyList.md b/docs/MsDomainpolicyList.md new file mode 100644 index 0000000..f140030 --- /dev/null +++ b/docs/MsDomainpolicyList.md @@ -0,0 +1,11 @@ +# MsDomainpolicyList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsDomainpolicyListEmbedded**](MsDomainpolicyListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsDomainpolicyListEmbedded.md b/docs/MsDomainpolicyListEmbedded.md new file mode 100644 index 0000000..4bfe540 --- /dev/null +++ b/docs/MsDomainpolicyListEmbedded.md @@ -0,0 +1,11 @@ +# MsDomainpolicyListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsDomainpolicy]**](MsDomainpolicy.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsDomainpolicyPolicies.md b/docs/MsDomainpolicyPolicies.md new file mode 100644 index 0000000..b0f4828 --- /dev/null +++ b/docs/MsDomainpolicyPolicies.md @@ -0,0 +1,35 @@ +# MsDomainpolicyPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsDomainpolicyRequest.md b/docs/MsDomainpolicyRequest.md new file mode 100644 index 0000000..d0a0a27 --- /dev/null +++ b/docs/MsDomainpolicyRequest.md @@ -0,0 +1,15 @@ +# MsDomainpolicyRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsDomainpolicyPolicies**](MsDomainpolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsDomainpolicyRequestPatch.md b/docs/MsDomainpolicyRequestPatch.md new file mode 100644 index 0000000..509b50f --- /dev/null +++ b/docs/MsDomainpolicyRequestPatch.md @@ -0,0 +1,14 @@ +# MsDomainpolicyRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsDomainpolicyPolicies**](MsDomainpolicyPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsDomainpolicyResponseMixin.md b/docs/MsDomainpolicyResponseMixin.md new file mode 100644 index 0000000..0fd131f --- /dev/null +++ b/docs/MsDomainpolicyResponseMixin.md @@ -0,0 +1,15 @@ +# MsDomainpolicyResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecFilter.md b/docs/MsGpipsecFilter.md new file mode 100644 index 0000000..6518f8a --- /dev/null +++ b/docs/MsGpipsecFilter.md @@ -0,0 +1,20 @@ +# MsGpipsecFilter + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecFilterPolicies**](MsGpipsecFilterPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecFilterApi.md b/docs/MsGpipsecFilterApi.md new file mode 100644 index 0000000..ba42407 --- /dev/null +++ b/docs/MsGpipsecFilterApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpipsecFilterApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpipsec_filter_object**](MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object) | **GET** /ms/gpipsec-filter/{dn} | Get a representation of the MS IPsec policy: filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpipsec_filter_object_create**](MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_create) | **POST** /ms/gpipsec-filter/ | Create a new MS IPsec policy: filter object +[**udm_ms_gpipsec_filter_object_modify**](MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_modify) | **PUT** /ms/gpipsec-filter/{dn} | Modify or move an MS IPsec policy: filter object +[**udm_ms_gpipsec_filter_object_remove**](MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_remove) | **DELETE** /ms/gpipsec-filter/{dn} | Remove a MS IPsec policy: filter object +[**udm_ms_gpipsec_filter_object_search**](MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_search) | **GET** /ms/gpipsec-filter/ | Search for MS IPsec policy: filter objects +[**udm_ms_gpipsec_filter_object_template**](MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_template) | **GET** /ms/gpipsec-filter/add | Get a template for creating an MS IPsec policy: filter object (contains all properties and their default values) +[**udm_ms_gpipsec_filter_object_update**](MsGpipsecFilterApi.md#udm_ms_gpipsec_filter_object_update) | **PATCH** /ms/gpipsec-filter/{dn} | Modify an MS IPsec policy: filter object (moving is currently not possible) + + +# **udm_ms_gpipsec_filter_object** +> MsGpipsecFilter udm_ms_gpipsec_filter_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS IPsec policy: filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecFilterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS IPsec policy: filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpipsec_filter_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecFilterApi->udm_ms_gpipsec_filter_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecFilter**](MsGpipsecFilter.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_filter_object_create** +> InlineResponse201 udm_ms_gpipsec_filter_object_create(ms_gpipsec_filter, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS IPsec policy: filter object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecFilterApi(api_client) + ms_gpipsec_filter = openapi_client_udm.MsGpipsecFilter() # MsGpipsecFilter | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS IPsec policy: filter object + api_response = api_instance.udm_ms_gpipsec_filter_object_create(ms_gpipsec_filter, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecFilterApi->udm_ms_gpipsec_filter_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpipsec_filter** | [**MsGpipsecFilter**](MsGpipsecFilter.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpipsec_filter_object_modify** +> InlineResponse201 udm_ms_gpipsec_filter_object_modify(dn, ms_gpipsec_filter, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS IPsec policy: filter object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecFilterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_filter = openapi_client_udm.MsGpipsecFilter() # MsGpipsecFilter | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS IPsec policy: filter object + api_response = api_instance.udm_ms_gpipsec_filter_object_modify(dn, ms_gpipsec_filter, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecFilterApi->udm_ms_gpipsec_filter_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_filter** | [**MsGpipsecFilter**](MsGpipsecFilter.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_filter_object_remove** +> udm_ms_gpipsec_filter_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS IPsec policy: filter object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecFilterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS IPsec policy: filter object + api_instance.udm_ms_gpipsec_filter_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecFilterApi->udm_ms_gpipsec_filter_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_filter_object_search** +> MsGpipsecFilterList udm_ms_gpipsec_filter_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS IPsec policy: filter objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecFilterApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS IPsec policy: filter objects + api_response = api_instance.udm_ms_gpipsec_filter_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecFilterApi->udm_ms_gpipsec_filter_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecFilterList**](MsGpipsecFilterList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_filter_object_template** +> MsGpipsecFilter udm_ms_gpipsec_filter_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS IPsec policy: filter object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecFilterApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS IPsec policy: filter object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpipsec_filter_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecFilterApi->udm_ms_gpipsec_filter_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecFilter**](MsGpipsecFilter.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS IPsec policy: filter. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_filter_object_update** +> udm_ms_gpipsec_filter_object_update(dn, ms_gpipsec_filter, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS IPsec policy: filter object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecFilterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_filter = openapi_client_udm.MsGpipsecFilter() # MsGpipsecFilter | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS IPsec policy: filter object (moving is currently not possible) + api_instance.udm_ms_gpipsec_filter_object_update(dn, ms_gpipsec_filter, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecFilterApi->udm_ms_gpipsec_filter_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_filter** | [**MsGpipsecFilter**](MsGpipsecFilter.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpipsecFilterList.md b/docs/MsGpipsecFilterList.md new file mode 100644 index 0000000..456d040 --- /dev/null +++ b/docs/MsGpipsecFilterList.md @@ -0,0 +1,11 @@ +# MsGpipsecFilterList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpipsecFilterListEmbedded**](MsGpipsecFilterListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecFilterListEmbedded.md b/docs/MsGpipsecFilterListEmbedded.md new file mode 100644 index 0000000..c2a8b09 --- /dev/null +++ b/docs/MsGpipsecFilterListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpipsecFilterListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpipsecFilter]**](MsGpipsecFilter.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecFilterPolicies.md b/docs/MsGpipsecFilterPolicies.md new file mode 100644 index 0000000..0ed5fe4 --- /dev/null +++ b/docs/MsGpipsecFilterPolicies.md @@ -0,0 +1,35 @@ +# MsGpipsecFilterPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecFilterRequest.md b/docs/MsGpipsecFilterRequest.md new file mode 100644 index 0000000..cb7f1ba --- /dev/null +++ b/docs/MsGpipsecFilterRequest.md @@ -0,0 +1,15 @@ +# MsGpipsecFilterRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecFilterPolicies**](MsGpipsecFilterPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecFilterRequestPatch.md b/docs/MsGpipsecFilterRequestPatch.md new file mode 100644 index 0000000..5825c36 --- /dev/null +++ b/docs/MsGpipsecFilterRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpipsecFilterRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecFilterPolicies**](MsGpipsecFilterPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecFilterResponseMixin.md b/docs/MsGpipsecFilterResponseMixin.md new file mode 100644 index 0000000..5d6c0e0 --- /dev/null +++ b/docs/MsGpipsecFilterResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpipsecFilterResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecIsakmpPolicy.md b/docs/MsGpipsecIsakmpPolicy.md new file mode 100644 index 0000000..d904cb7 --- /dev/null +++ b/docs/MsGpipsecIsakmpPolicy.md @@ -0,0 +1,20 @@ +# MsGpipsecIsakmpPolicy + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecIsakmpPolicyPolicies**](MsGpipsecIsakmpPolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecIsakmpPolicyApi.md b/docs/MsGpipsecIsakmpPolicyApi.md new file mode 100644 index 0000000..759698a --- /dev/null +++ b/docs/MsGpipsecIsakmpPolicyApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpipsecIsakmpPolicyApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpipsec_isakmp_policy_object**](MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object) | **GET** /ms/gpipsec-isakmp-policy/{dn} | Get a representation of the MS IPsec policy: ISAKMP Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpipsec_isakmp_policy_object_create**](MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_create) | **POST** /ms/gpipsec-isakmp-policy/ | Create a new MS IPsec policy: ISAKMP Policy object +[**udm_ms_gpipsec_isakmp_policy_object_modify**](MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_modify) | **PUT** /ms/gpipsec-isakmp-policy/{dn} | Modify or move an MS IPsec policy: ISAKMP Policy object +[**udm_ms_gpipsec_isakmp_policy_object_remove**](MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_remove) | **DELETE** /ms/gpipsec-isakmp-policy/{dn} | Remove a MS IPsec policy: ISAKMP Policy object +[**udm_ms_gpipsec_isakmp_policy_object_search**](MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_search) | **GET** /ms/gpipsec-isakmp-policy/ | Search for MS IPsec policy: ISAKMP Policy objects +[**udm_ms_gpipsec_isakmp_policy_object_template**](MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_template) | **GET** /ms/gpipsec-isakmp-policy/add | Get a template for creating an MS IPsec policy: ISAKMP Policy object (contains all properties and their default values) +[**udm_ms_gpipsec_isakmp_policy_object_update**](MsGpipsecIsakmpPolicyApi.md#udm_ms_gpipsec_isakmp_policy_object_update) | **PATCH** /ms/gpipsec-isakmp-policy/{dn} | Modify an MS IPsec policy: ISAKMP Policy object (moving is currently not possible) + + +# **udm_ms_gpipsec_isakmp_policy_object** +> MsGpipsecIsakmpPolicy udm_ms_gpipsec_isakmp_policy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS IPsec policy: ISAKMP Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecIsakmpPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS IPsec policy: ISAKMP Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpipsec_isakmp_policy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecIsakmpPolicyApi->udm_ms_gpipsec_isakmp_policy_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecIsakmpPolicy**](MsGpipsecIsakmpPolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_isakmp_policy_object_create** +> InlineResponse201 udm_ms_gpipsec_isakmp_policy_object_create(ms_gpipsec_isakmp_policy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS IPsec policy: ISAKMP Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecIsakmpPolicyApi(api_client) + ms_gpipsec_isakmp_policy = openapi_client_udm.MsGpipsecIsakmpPolicy() # MsGpipsecIsakmpPolicy | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS IPsec policy: ISAKMP Policy object + api_response = api_instance.udm_ms_gpipsec_isakmp_policy_object_create(ms_gpipsec_isakmp_policy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecIsakmpPolicyApi->udm_ms_gpipsec_isakmp_policy_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpipsec_isakmp_policy** | [**MsGpipsecIsakmpPolicy**](MsGpipsecIsakmpPolicy.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpipsec_isakmp_policy_object_modify** +> InlineResponse201 udm_ms_gpipsec_isakmp_policy_object_modify(dn, ms_gpipsec_isakmp_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS IPsec policy: ISAKMP Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecIsakmpPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_isakmp_policy = openapi_client_udm.MsGpipsecIsakmpPolicy() # MsGpipsecIsakmpPolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS IPsec policy: ISAKMP Policy object + api_response = api_instance.udm_ms_gpipsec_isakmp_policy_object_modify(dn, ms_gpipsec_isakmp_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecIsakmpPolicyApi->udm_ms_gpipsec_isakmp_policy_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_isakmp_policy** | [**MsGpipsecIsakmpPolicy**](MsGpipsecIsakmpPolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_isakmp_policy_object_remove** +> udm_ms_gpipsec_isakmp_policy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS IPsec policy: ISAKMP Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecIsakmpPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS IPsec policy: ISAKMP Policy object + api_instance.udm_ms_gpipsec_isakmp_policy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecIsakmpPolicyApi->udm_ms_gpipsec_isakmp_policy_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_isakmp_policy_object_search** +> MsGpipsecIsakmpPolicyList udm_ms_gpipsec_isakmp_policy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS IPsec policy: ISAKMP Policy objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecIsakmpPolicyApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS IPsec policy: ISAKMP Policy objects + api_response = api_instance.udm_ms_gpipsec_isakmp_policy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecIsakmpPolicyApi->udm_ms_gpipsec_isakmp_policy_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecIsakmpPolicyList**](MsGpipsecIsakmpPolicyList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_isakmp_policy_object_template** +> MsGpipsecIsakmpPolicy udm_ms_gpipsec_isakmp_policy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS IPsec policy: ISAKMP Policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecIsakmpPolicyApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS IPsec policy: ISAKMP Policy object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpipsec_isakmp_policy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecIsakmpPolicyApi->udm_ms_gpipsec_isakmp_policy_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecIsakmpPolicy**](MsGpipsecIsakmpPolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS IPsec policy: ISAKMP Policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_isakmp_policy_object_update** +> udm_ms_gpipsec_isakmp_policy_object_update(dn, ms_gpipsec_isakmp_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS IPsec policy: ISAKMP Policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecIsakmpPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_isakmp_policy = openapi_client_udm.MsGpipsecIsakmpPolicy() # MsGpipsecIsakmpPolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS IPsec policy: ISAKMP Policy object (moving is currently not possible) + api_instance.udm_ms_gpipsec_isakmp_policy_object_update(dn, ms_gpipsec_isakmp_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecIsakmpPolicyApi->udm_ms_gpipsec_isakmp_policy_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_isakmp_policy** | [**MsGpipsecIsakmpPolicy**](MsGpipsecIsakmpPolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpipsecIsakmpPolicyList.md b/docs/MsGpipsecIsakmpPolicyList.md new file mode 100644 index 0000000..c35841b --- /dev/null +++ b/docs/MsGpipsecIsakmpPolicyList.md @@ -0,0 +1,11 @@ +# MsGpipsecIsakmpPolicyList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpipsecIsakmpPolicyListEmbedded**](MsGpipsecIsakmpPolicyListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecIsakmpPolicyListEmbedded.md b/docs/MsGpipsecIsakmpPolicyListEmbedded.md new file mode 100644 index 0000000..175ee67 --- /dev/null +++ b/docs/MsGpipsecIsakmpPolicyListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpipsecIsakmpPolicyListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpipsecIsakmpPolicy]**](MsGpipsecIsakmpPolicy.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecIsakmpPolicyPolicies.md b/docs/MsGpipsecIsakmpPolicyPolicies.md new file mode 100644 index 0000000..e6beb83 --- /dev/null +++ b/docs/MsGpipsecIsakmpPolicyPolicies.md @@ -0,0 +1,35 @@ +# MsGpipsecIsakmpPolicyPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecIsakmpPolicyRequest.md b/docs/MsGpipsecIsakmpPolicyRequest.md new file mode 100644 index 0000000..da6f312 --- /dev/null +++ b/docs/MsGpipsecIsakmpPolicyRequest.md @@ -0,0 +1,15 @@ +# MsGpipsecIsakmpPolicyRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecIsakmpPolicyPolicies**](MsGpipsecIsakmpPolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecIsakmpPolicyRequestPatch.md b/docs/MsGpipsecIsakmpPolicyRequestPatch.md new file mode 100644 index 0000000..88ce60a --- /dev/null +++ b/docs/MsGpipsecIsakmpPolicyRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpipsecIsakmpPolicyRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecIsakmpPolicyPolicies**](MsGpipsecIsakmpPolicyPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecIsakmpPolicyResponseMixin.md b/docs/MsGpipsecIsakmpPolicyResponseMixin.md new file mode 100644 index 0000000..12bf7fe --- /dev/null +++ b/docs/MsGpipsecIsakmpPolicyResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpipsecIsakmpPolicyResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNegotiationPolicy.md b/docs/MsGpipsecNegotiationPolicy.md new file mode 100644 index 0000000..ab6bcc6 --- /dev/null +++ b/docs/MsGpipsecNegotiationPolicy.md @@ -0,0 +1,20 @@ +# MsGpipsecNegotiationPolicy + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecNegotiationPolicyPolicies**](MsGpipsecNegotiationPolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNegotiationPolicyApi.md b/docs/MsGpipsecNegotiationPolicyApi.md new file mode 100644 index 0000000..4c65cda --- /dev/null +++ b/docs/MsGpipsecNegotiationPolicyApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpipsecNegotiationPolicyApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpipsec_negotiation_policy_object**](MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object) | **GET** /ms/gpipsec-negotiation-policy/{dn} | Get a representation of the MS IPsec policy: Negotiation Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpipsec_negotiation_policy_object_create**](MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_create) | **POST** /ms/gpipsec-negotiation-policy/ | Create a new MS IPsec policy: Negotiation Policy object +[**udm_ms_gpipsec_negotiation_policy_object_modify**](MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_modify) | **PUT** /ms/gpipsec-negotiation-policy/{dn} | Modify or move an MS IPsec policy: Negotiation Policy object +[**udm_ms_gpipsec_negotiation_policy_object_remove**](MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_remove) | **DELETE** /ms/gpipsec-negotiation-policy/{dn} | Remove a MS IPsec policy: Negotiation Policy object +[**udm_ms_gpipsec_negotiation_policy_object_search**](MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_search) | **GET** /ms/gpipsec-negotiation-policy/ | Search for MS IPsec policy: Negotiation Policy objects +[**udm_ms_gpipsec_negotiation_policy_object_template**](MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_template) | **GET** /ms/gpipsec-negotiation-policy/add | Get a template for creating an MS IPsec policy: Negotiation Policy object (contains all properties and their default values) +[**udm_ms_gpipsec_negotiation_policy_object_update**](MsGpipsecNegotiationPolicyApi.md#udm_ms_gpipsec_negotiation_policy_object_update) | **PATCH** /ms/gpipsec-negotiation-policy/{dn} | Modify an MS IPsec policy: Negotiation Policy object (moving is currently not possible) + + +# **udm_ms_gpipsec_negotiation_policy_object** +> MsGpipsecNegotiationPolicy udm_ms_gpipsec_negotiation_policy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS IPsec policy: Negotiation Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNegotiationPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS IPsec policy: Negotiation Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpipsec_negotiation_policy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNegotiationPolicyApi->udm_ms_gpipsec_negotiation_policy_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecNegotiationPolicy**](MsGpipsecNegotiationPolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_negotiation_policy_object_create** +> InlineResponse201 udm_ms_gpipsec_negotiation_policy_object_create(ms_gpipsec_negotiation_policy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS IPsec policy: Negotiation Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNegotiationPolicyApi(api_client) + ms_gpipsec_negotiation_policy = openapi_client_udm.MsGpipsecNegotiationPolicy() # MsGpipsecNegotiationPolicy | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS IPsec policy: Negotiation Policy object + api_response = api_instance.udm_ms_gpipsec_negotiation_policy_object_create(ms_gpipsec_negotiation_policy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNegotiationPolicyApi->udm_ms_gpipsec_negotiation_policy_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpipsec_negotiation_policy** | [**MsGpipsecNegotiationPolicy**](MsGpipsecNegotiationPolicy.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpipsec_negotiation_policy_object_modify** +> InlineResponse201 udm_ms_gpipsec_negotiation_policy_object_modify(dn, ms_gpipsec_negotiation_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS IPsec policy: Negotiation Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNegotiationPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_negotiation_policy = openapi_client_udm.MsGpipsecNegotiationPolicy() # MsGpipsecNegotiationPolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS IPsec policy: Negotiation Policy object + api_response = api_instance.udm_ms_gpipsec_negotiation_policy_object_modify(dn, ms_gpipsec_negotiation_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNegotiationPolicyApi->udm_ms_gpipsec_negotiation_policy_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_negotiation_policy** | [**MsGpipsecNegotiationPolicy**](MsGpipsecNegotiationPolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_negotiation_policy_object_remove** +> udm_ms_gpipsec_negotiation_policy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS IPsec policy: Negotiation Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNegotiationPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS IPsec policy: Negotiation Policy object + api_instance.udm_ms_gpipsec_negotiation_policy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecNegotiationPolicyApi->udm_ms_gpipsec_negotiation_policy_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_negotiation_policy_object_search** +> MsGpipsecNegotiationPolicyList udm_ms_gpipsec_negotiation_policy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS IPsec policy: Negotiation Policy objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNegotiationPolicyApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS IPsec policy: Negotiation Policy objects + api_response = api_instance.udm_ms_gpipsec_negotiation_policy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNegotiationPolicyApi->udm_ms_gpipsec_negotiation_policy_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecNegotiationPolicyList**](MsGpipsecNegotiationPolicyList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_negotiation_policy_object_template** +> MsGpipsecNegotiationPolicy udm_ms_gpipsec_negotiation_policy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS IPsec policy: Negotiation Policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNegotiationPolicyApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS IPsec policy: Negotiation Policy object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpipsec_negotiation_policy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNegotiationPolicyApi->udm_ms_gpipsec_negotiation_policy_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecNegotiationPolicy**](MsGpipsecNegotiationPolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS IPsec policy: Negotiation Policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_negotiation_policy_object_update** +> udm_ms_gpipsec_negotiation_policy_object_update(dn, ms_gpipsec_negotiation_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS IPsec policy: Negotiation Policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNegotiationPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_negotiation_policy = openapi_client_udm.MsGpipsecNegotiationPolicy() # MsGpipsecNegotiationPolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS IPsec policy: Negotiation Policy object (moving is currently not possible) + api_instance.udm_ms_gpipsec_negotiation_policy_object_update(dn, ms_gpipsec_negotiation_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecNegotiationPolicyApi->udm_ms_gpipsec_negotiation_policy_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_negotiation_policy** | [**MsGpipsecNegotiationPolicy**](MsGpipsecNegotiationPolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpipsecNegotiationPolicyList.md b/docs/MsGpipsecNegotiationPolicyList.md new file mode 100644 index 0000000..4b6f6f9 --- /dev/null +++ b/docs/MsGpipsecNegotiationPolicyList.md @@ -0,0 +1,11 @@ +# MsGpipsecNegotiationPolicyList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpipsecNegotiationPolicyListEmbedded**](MsGpipsecNegotiationPolicyListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNegotiationPolicyListEmbedded.md b/docs/MsGpipsecNegotiationPolicyListEmbedded.md new file mode 100644 index 0000000..b16609f --- /dev/null +++ b/docs/MsGpipsecNegotiationPolicyListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpipsecNegotiationPolicyListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpipsecNegotiationPolicy]**](MsGpipsecNegotiationPolicy.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNegotiationPolicyPolicies.md b/docs/MsGpipsecNegotiationPolicyPolicies.md new file mode 100644 index 0000000..de090a0 --- /dev/null +++ b/docs/MsGpipsecNegotiationPolicyPolicies.md @@ -0,0 +1,35 @@ +# MsGpipsecNegotiationPolicyPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNegotiationPolicyRequest.md b/docs/MsGpipsecNegotiationPolicyRequest.md new file mode 100644 index 0000000..046d034 --- /dev/null +++ b/docs/MsGpipsecNegotiationPolicyRequest.md @@ -0,0 +1,15 @@ +# MsGpipsecNegotiationPolicyRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecNegotiationPolicyPolicies**](MsGpipsecNegotiationPolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNegotiationPolicyRequestPatch.md b/docs/MsGpipsecNegotiationPolicyRequestPatch.md new file mode 100644 index 0000000..cc48799 --- /dev/null +++ b/docs/MsGpipsecNegotiationPolicyRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpipsecNegotiationPolicyRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecNegotiationPolicyPolicies**](MsGpipsecNegotiationPolicyPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNegotiationPolicyResponseMixin.md b/docs/MsGpipsecNegotiationPolicyResponseMixin.md new file mode 100644 index 0000000..ed67057 --- /dev/null +++ b/docs/MsGpipsecNegotiationPolicyResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpipsecNegotiationPolicyResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNfa.md b/docs/MsGpipsecNfa.md new file mode 100644 index 0000000..9fe25d4 --- /dev/null +++ b/docs/MsGpipsecNfa.md @@ -0,0 +1,20 @@ +# MsGpipsecNfa + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecNfaPolicies**](MsGpipsecNfaPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNfaApi.md b/docs/MsGpipsecNfaApi.md new file mode 100644 index 0000000..f04246d --- /dev/null +++ b/docs/MsGpipsecNfaApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpipsecNfaApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpipsec_nfa_object**](MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object) | **GET** /ms/gpipsec-nfa/{dn} | Get a representation of the MS IPsec policy: NFA object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpipsec_nfa_object_create**](MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_create) | **POST** /ms/gpipsec-nfa/ | Create a new MS IPsec policy: NFA object +[**udm_ms_gpipsec_nfa_object_modify**](MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_modify) | **PUT** /ms/gpipsec-nfa/{dn} | Modify or move an MS IPsec policy: NFA object +[**udm_ms_gpipsec_nfa_object_remove**](MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_remove) | **DELETE** /ms/gpipsec-nfa/{dn} | Remove a MS IPsec policy: NFA object +[**udm_ms_gpipsec_nfa_object_search**](MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_search) | **GET** /ms/gpipsec-nfa/ | Search for MS IPsec policy: NFA objects +[**udm_ms_gpipsec_nfa_object_template**](MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_template) | **GET** /ms/gpipsec-nfa/add | Get a template for creating an MS IPsec policy: NFA object (contains all properties and their default values) +[**udm_ms_gpipsec_nfa_object_update**](MsGpipsecNfaApi.md#udm_ms_gpipsec_nfa_object_update) | **PATCH** /ms/gpipsec-nfa/{dn} | Modify an MS IPsec policy: NFA object (moving is currently not possible) + + +# **udm_ms_gpipsec_nfa_object** +> MsGpipsecNfa udm_ms_gpipsec_nfa_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS IPsec policy: NFA object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNfaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS IPsec policy: NFA object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpipsec_nfa_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNfaApi->udm_ms_gpipsec_nfa_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecNfa**](MsGpipsecNfa.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_nfa_object_create** +> InlineResponse201 udm_ms_gpipsec_nfa_object_create(ms_gpipsec_nfa, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS IPsec policy: NFA object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNfaApi(api_client) + ms_gpipsec_nfa = openapi_client_udm.MsGpipsecNfa() # MsGpipsecNfa | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS IPsec policy: NFA object + api_response = api_instance.udm_ms_gpipsec_nfa_object_create(ms_gpipsec_nfa, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNfaApi->udm_ms_gpipsec_nfa_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpipsec_nfa** | [**MsGpipsecNfa**](MsGpipsecNfa.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpipsec_nfa_object_modify** +> InlineResponse201 udm_ms_gpipsec_nfa_object_modify(dn, ms_gpipsec_nfa, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS IPsec policy: NFA object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNfaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_nfa = openapi_client_udm.MsGpipsecNfa() # MsGpipsecNfa | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS IPsec policy: NFA object + api_response = api_instance.udm_ms_gpipsec_nfa_object_modify(dn, ms_gpipsec_nfa, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNfaApi->udm_ms_gpipsec_nfa_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_nfa** | [**MsGpipsecNfa**](MsGpipsecNfa.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_nfa_object_remove** +> udm_ms_gpipsec_nfa_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS IPsec policy: NFA object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNfaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS IPsec policy: NFA object + api_instance.udm_ms_gpipsec_nfa_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecNfaApi->udm_ms_gpipsec_nfa_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_nfa_object_search** +> MsGpipsecNfaList udm_ms_gpipsec_nfa_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS IPsec policy: NFA objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNfaApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS IPsec policy: NFA objects + api_response = api_instance.udm_ms_gpipsec_nfa_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNfaApi->udm_ms_gpipsec_nfa_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecNfaList**](MsGpipsecNfaList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_nfa_object_template** +> MsGpipsecNfa udm_ms_gpipsec_nfa_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS IPsec policy: NFA object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNfaApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS IPsec policy: NFA object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpipsec_nfa_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecNfaApi->udm_ms_gpipsec_nfa_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecNfa**](MsGpipsecNfa.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS IPsec policy: NFA. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_nfa_object_update** +> udm_ms_gpipsec_nfa_object_update(dn, ms_gpipsec_nfa, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS IPsec policy: NFA object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecNfaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_nfa = openapi_client_udm.MsGpipsecNfa() # MsGpipsecNfa | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS IPsec policy: NFA object (moving is currently not possible) + api_instance.udm_ms_gpipsec_nfa_object_update(dn, ms_gpipsec_nfa, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecNfaApi->udm_ms_gpipsec_nfa_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_nfa** | [**MsGpipsecNfa**](MsGpipsecNfa.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpipsecNfaList.md b/docs/MsGpipsecNfaList.md new file mode 100644 index 0000000..184dcd6 --- /dev/null +++ b/docs/MsGpipsecNfaList.md @@ -0,0 +1,11 @@ +# MsGpipsecNfaList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpipsecNfaListEmbedded**](MsGpipsecNfaListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNfaListEmbedded.md b/docs/MsGpipsecNfaListEmbedded.md new file mode 100644 index 0000000..a1b406f --- /dev/null +++ b/docs/MsGpipsecNfaListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpipsecNfaListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpipsecNfa]**](MsGpipsecNfa.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNfaPolicies.md b/docs/MsGpipsecNfaPolicies.md new file mode 100644 index 0000000..884c8ba --- /dev/null +++ b/docs/MsGpipsecNfaPolicies.md @@ -0,0 +1,35 @@ +# MsGpipsecNfaPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNfaRequest.md b/docs/MsGpipsecNfaRequest.md new file mode 100644 index 0000000..556146f --- /dev/null +++ b/docs/MsGpipsecNfaRequest.md @@ -0,0 +1,15 @@ +# MsGpipsecNfaRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecNfaPolicies**](MsGpipsecNfaPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNfaRequestPatch.md b/docs/MsGpipsecNfaRequestPatch.md new file mode 100644 index 0000000..7b5abca --- /dev/null +++ b/docs/MsGpipsecNfaRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpipsecNfaRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecNfaPolicies**](MsGpipsecNfaPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecNfaResponseMixin.md b/docs/MsGpipsecNfaResponseMixin.md new file mode 100644 index 0000000..fac3285 --- /dev/null +++ b/docs/MsGpipsecNfaResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpipsecNfaResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecPolicy.md b/docs/MsGpipsecPolicy.md new file mode 100644 index 0000000..32f0abe --- /dev/null +++ b/docs/MsGpipsecPolicy.md @@ -0,0 +1,20 @@ +# MsGpipsecPolicy + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecPolicyPolicies**](MsGpipsecPolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecPolicyApi.md b/docs/MsGpipsecPolicyApi.md new file mode 100644 index 0000000..d30c904 --- /dev/null +++ b/docs/MsGpipsecPolicyApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpipsecPolicyApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpipsec_policy_object**](MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object) | **GET** /ms/gpipsec-policy/{dn} | Get a representation of the MS IPsec policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpipsec_policy_object_create**](MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_create) | **POST** /ms/gpipsec-policy/ | Create a new MS IPsec policy object +[**udm_ms_gpipsec_policy_object_modify**](MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_modify) | **PUT** /ms/gpipsec-policy/{dn} | Modify or move an MS IPsec policy object +[**udm_ms_gpipsec_policy_object_remove**](MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_remove) | **DELETE** /ms/gpipsec-policy/{dn} | Remove a MS IPsec policy object +[**udm_ms_gpipsec_policy_object_search**](MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_search) | **GET** /ms/gpipsec-policy/ | Search for MS IPsec policy objects +[**udm_ms_gpipsec_policy_object_template**](MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_template) | **GET** /ms/gpipsec-policy/add | Get a template for creating an MS IPsec policy object (contains all properties and their default values) +[**udm_ms_gpipsec_policy_object_update**](MsGpipsecPolicyApi.md#udm_ms_gpipsec_policy_object_update) | **PATCH** /ms/gpipsec-policy/{dn} | Modify an MS IPsec policy object (moving is currently not possible) + + +# **udm_ms_gpipsec_policy_object** +> MsGpipsecPolicy udm_ms_gpipsec_policy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS IPsec policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS IPsec policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpipsec_policy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecPolicyApi->udm_ms_gpipsec_policy_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecPolicy**](MsGpipsecPolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_policy_object_create** +> InlineResponse201 udm_ms_gpipsec_policy_object_create(ms_gpipsec_policy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS IPsec policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecPolicyApi(api_client) + ms_gpipsec_policy = openapi_client_udm.MsGpipsecPolicy() # MsGpipsecPolicy | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS IPsec policy object + api_response = api_instance.udm_ms_gpipsec_policy_object_create(ms_gpipsec_policy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecPolicyApi->udm_ms_gpipsec_policy_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpipsec_policy** | [**MsGpipsecPolicy**](MsGpipsecPolicy.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpipsec_policy_object_modify** +> InlineResponse201 udm_ms_gpipsec_policy_object_modify(dn, ms_gpipsec_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS IPsec policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_policy = openapi_client_udm.MsGpipsecPolicy() # MsGpipsecPolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS IPsec policy object + api_response = api_instance.udm_ms_gpipsec_policy_object_modify(dn, ms_gpipsec_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecPolicyApi->udm_ms_gpipsec_policy_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_policy** | [**MsGpipsecPolicy**](MsGpipsecPolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_policy_object_remove** +> udm_ms_gpipsec_policy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS IPsec policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS IPsec policy object + api_instance.udm_ms_gpipsec_policy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecPolicyApi->udm_ms_gpipsec_policy_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_policy_object_search** +> MsGpipsecPolicyList udm_ms_gpipsec_policy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS IPsec policy objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecPolicyApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS IPsec policy objects + api_response = api_instance.udm_ms_gpipsec_policy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecPolicyApi->udm_ms_gpipsec_policy_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecPolicyList**](MsGpipsecPolicyList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_policy_object_template** +> MsGpipsecPolicy udm_ms_gpipsec_policy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS IPsec policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecPolicyApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS IPsec policy object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpipsec_policy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpipsecPolicyApi->udm_ms_gpipsec_policy_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpipsecPolicy**](MsGpipsecPolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS IPsec policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpipsec_policy_object_update** +> udm_ms_gpipsec_policy_object_update(dn, ms_gpipsec_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS IPsec policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpipsecPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpipsec_policy = openapi_client_udm.MsGpipsecPolicy() # MsGpipsecPolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS IPsec policy object (moving is currently not possible) + api_instance.udm_ms_gpipsec_policy_object_update(dn, ms_gpipsec_policy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpipsecPolicyApi->udm_ms_gpipsec_policy_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpipsec_policy** | [**MsGpipsecPolicy**](MsGpipsecPolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpipsecPolicyList.md b/docs/MsGpipsecPolicyList.md new file mode 100644 index 0000000..4500a1a --- /dev/null +++ b/docs/MsGpipsecPolicyList.md @@ -0,0 +1,11 @@ +# MsGpipsecPolicyList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpipsecPolicyListEmbedded**](MsGpipsecPolicyListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecPolicyListEmbedded.md b/docs/MsGpipsecPolicyListEmbedded.md new file mode 100644 index 0000000..6e1365a --- /dev/null +++ b/docs/MsGpipsecPolicyListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpipsecPolicyListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpipsecPolicy]**](MsGpipsecPolicy.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecPolicyPolicies.md b/docs/MsGpipsecPolicyPolicies.md new file mode 100644 index 0000000..0d8229e --- /dev/null +++ b/docs/MsGpipsecPolicyPolicies.md @@ -0,0 +1,35 @@ +# MsGpipsecPolicyPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecPolicyRequest.md b/docs/MsGpipsecPolicyRequest.md new file mode 100644 index 0000000..0396d67 --- /dev/null +++ b/docs/MsGpipsecPolicyRequest.md @@ -0,0 +1,15 @@ +# MsGpipsecPolicyRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecPolicyPolicies**](MsGpipsecPolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecPolicyRequestPatch.md b/docs/MsGpipsecPolicyRequestPatch.md new file mode 100644 index 0000000..d01b97a --- /dev/null +++ b/docs/MsGpipsecPolicyRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpipsecPolicyRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpipsecPolicyPolicies**](MsGpipsecPolicyPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpipsecPolicyResponseMixin.md b/docs/MsGpipsecPolicyResponseMixin.md new file mode 100644 index 0000000..15a23dd --- /dev/null +++ b/docs/MsGpipsecPolicyResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpipsecPolicyResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiCategoryRegistration.md b/docs/MsGpsiCategoryRegistration.md new file mode 100644 index 0000000..ed76a17 --- /dev/null +++ b/docs/MsGpsiCategoryRegistration.md @@ -0,0 +1,20 @@ +# MsGpsiCategoryRegistration + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiCategoryRegistrationPolicies**](MsGpsiCategoryRegistrationPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiCategoryRegistrationApi.md b/docs/MsGpsiCategoryRegistrationApi.md new file mode 100644 index 0000000..62a46b8 --- /dev/null +++ b/docs/MsGpsiCategoryRegistrationApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpsiCategoryRegistrationApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpsi_category_registration_object**](MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object) | **GET** /ms/gpsi-category-registration/{dn} | Get a representation of the MS Software Installation Group Policy: Category Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpsi_category_registration_object_create**](MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_create) | **POST** /ms/gpsi-category-registration/ | Create a new MS Software Installation Group Policy: Category Registration object +[**udm_ms_gpsi_category_registration_object_modify**](MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_modify) | **PUT** /ms/gpsi-category-registration/{dn} | Modify or move an MS Software Installation Group Policy: Category Registration object +[**udm_ms_gpsi_category_registration_object_remove**](MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_remove) | **DELETE** /ms/gpsi-category-registration/{dn} | Remove a MS Software Installation Group Policy: Category Registration object +[**udm_ms_gpsi_category_registration_object_search**](MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_search) | **GET** /ms/gpsi-category-registration/ | Search for MS Software Installation Group Policy: Category Registration objects +[**udm_ms_gpsi_category_registration_object_template**](MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_template) | **GET** /ms/gpsi-category-registration/add | Get a template for creating an MS Software Installation Group Policy: Category Registration object (contains all properties and their default values) +[**udm_ms_gpsi_category_registration_object_update**](MsGpsiCategoryRegistrationApi.md#udm_ms_gpsi_category_registration_object_update) | **PATCH** /ms/gpsi-category-registration/{dn} | Modify an MS Software Installation Group Policy: Category Registration object (moving is currently not possible) + + +# **udm_ms_gpsi_category_registration_object** +> MsGpsiCategoryRegistration udm_ms_gpsi_category_registration_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS Software Installation Group Policy: Category Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiCategoryRegistrationApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS Software Installation Group Policy: Category Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpsi_category_registration_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiCategoryRegistrationApi->udm_ms_gpsi_category_registration_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiCategoryRegistration**](MsGpsiCategoryRegistration.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_category_registration_object_create** +> InlineResponse201 udm_ms_gpsi_category_registration_object_create(ms_gpsi_category_registration, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS Software Installation Group Policy: Category Registration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiCategoryRegistrationApi(api_client) + ms_gpsi_category_registration = openapi_client_udm.MsGpsiCategoryRegistration() # MsGpsiCategoryRegistration | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS Software Installation Group Policy: Category Registration object + api_response = api_instance.udm_ms_gpsi_category_registration_object_create(ms_gpsi_category_registration, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiCategoryRegistrationApi->udm_ms_gpsi_category_registration_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpsi_category_registration** | [**MsGpsiCategoryRegistration**](MsGpsiCategoryRegistration.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpsi_category_registration_object_modify** +> InlineResponse201 udm_ms_gpsi_category_registration_object_modify(dn, ms_gpsi_category_registration, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS Software Installation Group Policy: Category Registration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiCategoryRegistrationApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpsi_category_registration = openapi_client_udm.MsGpsiCategoryRegistration() # MsGpsiCategoryRegistration | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS Software Installation Group Policy: Category Registration object + api_response = api_instance.udm_ms_gpsi_category_registration_object_modify(dn, ms_gpsi_category_registration, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiCategoryRegistrationApi->udm_ms_gpsi_category_registration_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpsi_category_registration** | [**MsGpsiCategoryRegistration**](MsGpsiCategoryRegistration.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_category_registration_object_remove** +> udm_ms_gpsi_category_registration_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS Software Installation Group Policy: Category Registration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiCategoryRegistrationApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS Software Installation Group Policy: Category Registration object + api_instance.udm_ms_gpsi_category_registration_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpsiCategoryRegistrationApi->udm_ms_gpsi_category_registration_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_category_registration_object_search** +> MsGpsiCategoryRegistrationList udm_ms_gpsi_category_registration_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS Software Installation Group Policy: Category Registration objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiCategoryRegistrationApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS Software Installation Group Policy: Category Registration objects + api_response = api_instance.udm_ms_gpsi_category_registration_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiCategoryRegistrationApi->udm_ms_gpsi_category_registration_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiCategoryRegistrationList**](MsGpsiCategoryRegistrationList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_category_registration_object_template** +> MsGpsiCategoryRegistration udm_ms_gpsi_category_registration_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS Software Installation Group Policy: Category Registration object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiCategoryRegistrationApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS Software Installation Group Policy: Category Registration object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpsi_category_registration_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiCategoryRegistrationApi->udm_ms_gpsi_category_registration_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiCategoryRegistration**](MsGpsiCategoryRegistration.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS Software Installation Group Policy: Category Registration. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_category_registration_object_update** +> udm_ms_gpsi_category_registration_object_update(dn, ms_gpsi_category_registration, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS Software Installation Group Policy: Category Registration object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiCategoryRegistrationApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpsi_category_registration = openapi_client_udm.MsGpsiCategoryRegistration() # MsGpsiCategoryRegistration | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS Software Installation Group Policy: Category Registration object (moving is currently not possible) + api_instance.udm_ms_gpsi_category_registration_object_update(dn, ms_gpsi_category_registration, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpsiCategoryRegistrationApi->udm_ms_gpsi_category_registration_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpsi_category_registration** | [**MsGpsiCategoryRegistration**](MsGpsiCategoryRegistration.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpsiCategoryRegistrationList.md b/docs/MsGpsiCategoryRegistrationList.md new file mode 100644 index 0000000..615369b --- /dev/null +++ b/docs/MsGpsiCategoryRegistrationList.md @@ -0,0 +1,11 @@ +# MsGpsiCategoryRegistrationList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpsiCategoryRegistrationListEmbedded**](MsGpsiCategoryRegistrationListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiCategoryRegistrationListEmbedded.md b/docs/MsGpsiCategoryRegistrationListEmbedded.md new file mode 100644 index 0000000..2f1e860 --- /dev/null +++ b/docs/MsGpsiCategoryRegistrationListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpsiCategoryRegistrationListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpsiCategoryRegistration]**](MsGpsiCategoryRegistration.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiCategoryRegistrationPolicies.md b/docs/MsGpsiCategoryRegistrationPolicies.md new file mode 100644 index 0000000..7487911 --- /dev/null +++ b/docs/MsGpsiCategoryRegistrationPolicies.md @@ -0,0 +1,35 @@ +# MsGpsiCategoryRegistrationPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiCategoryRegistrationRequest.md b/docs/MsGpsiCategoryRegistrationRequest.md new file mode 100644 index 0000000..be0cf9a --- /dev/null +++ b/docs/MsGpsiCategoryRegistrationRequest.md @@ -0,0 +1,15 @@ +# MsGpsiCategoryRegistrationRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiCategoryRegistrationPolicies**](MsGpsiCategoryRegistrationPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiCategoryRegistrationRequestPatch.md b/docs/MsGpsiCategoryRegistrationRequestPatch.md new file mode 100644 index 0000000..07de732 --- /dev/null +++ b/docs/MsGpsiCategoryRegistrationRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpsiCategoryRegistrationRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiCategoryRegistrationPolicies**](MsGpsiCategoryRegistrationPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiCategoryRegistrationResponseMixin.md b/docs/MsGpsiCategoryRegistrationResponseMixin.md new file mode 100644 index 0000000..9a0c2c0 --- /dev/null +++ b/docs/MsGpsiCategoryRegistrationResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpsiCategoryRegistrationResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiClassStore.md b/docs/MsGpsiClassStore.md new file mode 100644 index 0000000..b5b2a62 --- /dev/null +++ b/docs/MsGpsiClassStore.md @@ -0,0 +1,20 @@ +# MsGpsiClassStore + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiClassStorePolicies**](MsGpsiClassStorePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiClassStoreApi.md b/docs/MsGpsiClassStoreApi.md new file mode 100644 index 0000000..c843392 --- /dev/null +++ b/docs/MsGpsiClassStoreApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpsiClassStoreApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpsi_class_store_object**](MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object) | **GET** /ms/gpsi-class-store/{dn} | Get a representation of the Software Installation Group Policy: Class Store object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpsi_class_store_object_create**](MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_create) | **POST** /ms/gpsi-class-store/ | Create a new Software Installation Group Policy: Class Store object +[**udm_ms_gpsi_class_store_object_modify**](MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_modify) | **PUT** /ms/gpsi-class-store/{dn} | Modify or move an Software Installation Group Policy: Class Store object +[**udm_ms_gpsi_class_store_object_remove**](MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_remove) | **DELETE** /ms/gpsi-class-store/{dn} | Remove a Software Installation Group Policy: Class Store object +[**udm_ms_gpsi_class_store_object_search**](MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_search) | **GET** /ms/gpsi-class-store/ | Search for Software Installation Group Policy: Class Store objects +[**udm_ms_gpsi_class_store_object_template**](MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_template) | **GET** /ms/gpsi-class-store/add | Get a template for creating an Software Installation Group Policy: Class Store object (contains all properties and their default values) +[**udm_ms_gpsi_class_store_object_update**](MsGpsiClassStoreApi.md#udm_ms_gpsi_class_store_object_update) | **PATCH** /ms/gpsi-class-store/{dn} | Modify an Software Installation Group Policy: Class Store object (moving is currently not possible) + + +# **udm_ms_gpsi_class_store_object** +> MsGpsiClassStore udm_ms_gpsi_class_store_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Software Installation Group Policy: Class Store object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiClassStoreApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Software Installation Group Policy: Class Store object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpsi_class_store_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiClassStoreApi->udm_ms_gpsi_class_store_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiClassStore**](MsGpsiClassStore.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_class_store_object_create** +> InlineResponse201 udm_ms_gpsi_class_store_object_create(ms_gpsi_class_store, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Software Installation Group Policy: Class Store object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiClassStoreApi(api_client) + ms_gpsi_class_store = openapi_client_udm.MsGpsiClassStore() # MsGpsiClassStore | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Software Installation Group Policy: Class Store object + api_response = api_instance.udm_ms_gpsi_class_store_object_create(ms_gpsi_class_store, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiClassStoreApi->udm_ms_gpsi_class_store_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpsi_class_store** | [**MsGpsiClassStore**](MsGpsiClassStore.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpsi_class_store_object_modify** +> InlineResponse201 udm_ms_gpsi_class_store_object_modify(dn, ms_gpsi_class_store, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Software Installation Group Policy: Class Store object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiClassStoreApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpsi_class_store = openapi_client_udm.MsGpsiClassStore() # MsGpsiClassStore | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Software Installation Group Policy: Class Store object + api_response = api_instance.udm_ms_gpsi_class_store_object_modify(dn, ms_gpsi_class_store, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiClassStoreApi->udm_ms_gpsi_class_store_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpsi_class_store** | [**MsGpsiClassStore**](MsGpsiClassStore.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_class_store_object_remove** +> udm_ms_gpsi_class_store_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Software Installation Group Policy: Class Store object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiClassStoreApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Software Installation Group Policy: Class Store object + api_instance.udm_ms_gpsi_class_store_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpsiClassStoreApi->udm_ms_gpsi_class_store_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_class_store_object_search** +> MsGpsiClassStoreList udm_ms_gpsi_class_store_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Software Installation Group Policy: Class Store objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiClassStoreApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Software Installation Group Policy: Class Store objects + api_response = api_instance.udm_ms_gpsi_class_store_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiClassStoreApi->udm_ms_gpsi_class_store_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiClassStoreList**](MsGpsiClassStoreList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_class_store_object_template** +> MsGpsiClassStore udm_ms_gpsi_class_store_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Software Installation Group Policy: Class Store object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiClassStoreApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Software Installation Group Policy: Class Store object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpsi_class_store_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiClassStoreApi->udm_ms_gpsi_class_store_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiClassStore**](MsGpsiClassStore.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Software Installation Group Policy: Class Store. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_class_store_object_update** +> udm_ms_gpsi_class_store_object_update(dn, ms_gpsi_class_store, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Software Installation Group Policy: Class Store object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiClassStoreApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpsi_class_store = openapi_client_udm.MsGpsiClassStore() # MsGpsiClassStore | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Software Installation Group Policy: Class Store object (moving is currently not possible) + api_instance.udm_ms_gpsi_class_store_object_update(dn, ms_gpsi_class_store, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpsiClassStoreApi->udm_ms_gpsi_class_store_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpsi_class_store** | [**MsGpsiClassStore**](MsGpsiClassStore.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpsiClassStoreList.md b/docs/MsGpsiClassStoreList.md new file mode 100644 index 0000000..2fbf9c8 --- /dev/null +++ b/docs/MsGpsiClassStoreList.md @@ -0,0 +1,11 @@ +# MsGpsiClassStoreList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpsiClassStoreListEmbedded**](MsGpsiClassStoreListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiClassStoreListEmbedded.md b/docs/MsGpsiClassStoreListEmbedded.md new file mode 100644 index 0000000..245f201 --- /dev/null +++ b/docs/MsGpsiClassStoreListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpsiClassStoreListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpsiClassStore]**](MsGpsiClassStore.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiClassStorePolicies.md b/docs/MsGpsiClassStorePolicies.md new file mode 100644 index 0000000..1de35f6 --- /dev/null +++ b/docs/MsGpsiClassStorePolicies.md @@ -0,0 +1,35 @@ +# MsGpsiClassStorePolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiClassStoreRequest.md b/docs/MsGpsiClassStoreRequest.md new file mode 100644 index 0000000..9256b8d --- /dev/null +++ b/docs/MsGpsiClassStoreRequest.md @@ -0,0 +1,15 @@ +# MsGpsiClassStoreRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiClassStorePolicies**](MsGpsiClassStorePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiClassStoreRequestPatch.md b/docs/MsGpsiClassStoreRequestPatch.md new file mode 100644 index 0000000..893df71 --- /dev/null +++ b/docs/MsGpsiClassStoreRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpsiClassStoreRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiClassStorePolicies**](MsGpsiClassStorePolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiClassStoreResponseMixin.md b/docs/MsGpsiClassStoreResponseMixin.md new file mode 100644 index 0000000..5f649fd --- /dev/null +++ b/docs/MsGpsiClassStoreResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpsiClassStoreResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiPackageRegistration.md b/docs/MsGpsiPackageRegistration.md new file mode 100644 index 0000000..5770dc5 --- /dev/null +++ b/docs/MsGpsiPackageRegistration.md @@ -0,0 +1,20 @@ +# MsGpsiPackageRegistration + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiPackageRegistrationPolicies**](MsGpsiPackageRegistrationPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiPackageRegistrationApi.md b/docs/MsGpsiPackageRegistrationApi.md new file mode 100644 index 0000000..589b556 --- /dev/null +++ b/docs/MsGpsiPackageRegistrationApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpsiPackageRegistrationApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpsi_package_registration_object**](MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object) | **GET** /ms/gpsi-package-registration/{dn} | Get a representation of the Software Installation Group Policy: Package Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpsi_package_registration_object_create**](MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_create) | **POST** /ms/gpsi-package-registration/ | Create a new Software Installation Group Policy: Package Registration object +[**udm_ms_gpsi_package_registration_object_modify**](MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_modify) | **PUT** /ms/gpsi-package-registration/{dn} | Modify or move an Software Installation Group Policy: Package Registration object +[**udm_ms_gpsi_package_registration_object_remove**](MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_remove) | **DELETE** /ms/gpsi-package-registration/{dn} | Remove a Software Installation Group Policy: Package Registration object +[**udm_ms_gpsi_package_registration_object_search**](MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_search) | **GET** /ms/gpsi-package-registration/ | Search for Software Installation Group Policy: Package Registration objects +[**udm_ms_gpsi_package_registration_object_template**](MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_template) | **GET** /ms/gpsi-package-registration/add | Get a template for creating an Software Installation Group Policy: Package Registration object (contains all properties and their default values) +[**udm_ms_gpsi_package_registration_object_update**](MsGpsiPackageRegistrationApi.md#udm_ms_gpsi_package_registration_object_update) | **PATCH** /ms/gpsi-package-registration/{dn} | Modify an Software Installation Group Policy: Package Registration object (moving is currently not possible) + + +# **udm_ms_gpsi_package_registration_object** +> MsGpsiPackageRegistration udm_ms_gpsi_package_registration_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Software Installation Group Policy: Package Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiPackageRegistrationApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Software Installation Group Policy: Package Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpsi_package_registration_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiPackageRegistrationApi->udm_ms_gpsi_package_registration_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiPackageRegistration**](MsGpsiPackageRegistration.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_package_registration_object_create** +> InlineResponse201 udm_ms_gpsi_package_registration_object_create(ms_gpsi_package_registration, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Software Installation Group Policy: Package Registration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiPackageRegistrationApi(api_client) + ms_gpsi_package_registration = openapi_client_udm.MsGpsiPackageRegistration() # MsGpsiPackageRegistration | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Software Installation Group Policy: Package Registration object + api_response = api_instance.udm_ms_gpsi_package_registration_object_create(ms_gpsi_package_registration, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiPackageRegistrationApi->udm_ms_gpsi_package_registration_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpsi_package_registration** | [**MsGpsiPackageRegistration**](MsGpsiPackageRegistration.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpsi_package_registration_object_modify** +> InlineResponse201 udm_ms_gpsi_package_registration_object_modify(dn, ms_gpsi_package_registration, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Software Installation Group Policy: Package Registration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiPackageRegistrationApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpsi_package_registration = openapi_client_udm.MsGpsiPackageRegistration() # MsGpsiPackageRegistration | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Software Installation Group Policy: Package Registration object + api_response = api_instance.udm_ms_gpsi_package_registration_object_modify(dn, ms_gpsi_package_registration, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiPackageRegistrationApi->udm_ms_gpsi_package_registration_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpsi_package_registration** | [**MsGpsiPackageRegistration**](MsGpsiPackageRegistration.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_package_registration_object_remove** +> udm_ms_gpsi_package_registration_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Software Installation Group Policy: Package Registration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiPackageRegistrationApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Software Installation Group Policy: Package Registration object + api_instance.udm_ms_gpsi_package_registration_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpsiPackageRegistrationApi->udm_ms_gpsi_package_registration_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_package_registration_object_search** +> MsGpsiPackageRegistrationList udm_ms_gpsi_package_registration_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Software Installation Group Policy: Package Registration objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiPackageRegistrationApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Software Installation Group Policy: Package Registration objects + api_response = api_instance.udm_ms_gpsi_package_registration_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiPackageRegistrationApi->udm_ms_gpsi_package_registration_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiPackageRegistrationList**](MsGpsiPackageRegistrationList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_package_registration_object_template** +> MsGpsiPackageRegistration udm_ms_gpsi_package_registration_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Software Installation Group Policy: Package Registration object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiPackageRegistrationApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Software Installation Group Policy: Package Registration object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpsi_package_registration_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpsiPackageRegistrationApi->udm_ms_gpsi_package_registration_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpsiPackageRegistration**](MsGpsiPackageRegistration.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Software Installation Group Policy: Package Registration. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpsi_package_registration_object_update** +> udm_ms_gpsi_package_registration_object_update(dn, ms_gpsi_package_registration, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Software Installation Group Policy: Package Registration object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpsiPackageRegistrationApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpsi_package_registration = openapi_client_udm.MsGpsiPackageRegistration() # MsGpsiPackageRegistration | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Software Installation Group Policy: Package Registration object (moving is currently not possible) + api_instance.udm_ms_gpsi_package_registration_object_update(dn, ms_gpsi_package_registration, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpsiPackageRegistrationApi->udm_ms_gpsi_package_registration_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpsi_package_registration** | [**MsGpsiPackageRegistration**](MsGpsiPackageRegistration.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpsiPackageRegistrationList.md b/docs/MsGpsiPackageRegistrationList.md new file mode 100644 index 0000000..353b174 --- /dev/null +++ b/docs/MsGpsiPackageRegistrationList.md @@ -0,0 +1,11 @@ +# MsGpsiPackageRegistrationList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpsiPackageRegistrationListEmbedded**](MsGpsiPackageRegistrationListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiPackageRegistrationListEmbedded.md b/docs/MsGpsiPackageRegistrationListEmbedded.md new file mode 100644 index 0000000..1817e5b --- /dev/null +++ b/docs/MsGpsiPackageRegistrationListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpsiPackageRegistrationListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpsiPackageRegistration]**](MsGpsiPackageRegistration.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiPackageRegistrationPolicies.md b/docs/MsGpsiPackageRegistrationPolicies.md new file mode 100644 index 0000000..89e8916 --- /dev/null +++ b/docs/MsGpsiPackageRegistrationPolicies.md @@ -0,0 +1,35 @@ +# MsGpsiPackageRegistrationPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiPackageRegistrationRequest.md b/docs/MsGpsiPackageRegistrationRequest.md new file mode 100644 index 0000000..924f6ab --- /dev/null +++ b/docs/MsGpsiPackageRegistrationRequest.md @@ -0,0 +1,15 @@ +# MsGpsiPackageRegistrationRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiPackageRegistrationPolicies**](MsGpsiPackageRegistrationPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiPackageRegistrationRequestPatch.md b/docs/MsGpsiPackageRegistrationRequestPatch.md new file mode 100644 index 0000000..419aec5 --- /dev/null +++ b/docs/MsGpsiPackageRegistrationRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpsiPackageRegistrationRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpsiPackageRegistrationPolicies**](MsGpsiPackageRegistrationPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpsiPackageRegistrationResponseMixin.md b/docs/MsGpsiPackageRegistrationResponseMixin.md new file mode 100644 index 0000000..d681270 --- /dev/null +++ b/docs/MsGpsiPackageRegistrationResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpsiPackageRegistrationResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWired.md b/docs/MsGpwlWired.md new file mode 100644 index 0000000..915260a --- /dev/null +++ b/docs/MsGpwlWired.md @@ -0,0 +1,20 @@ +# MsGpwlWired + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWiredPolicies**](MsGpwlWiredPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWiredApi.md b/docs/MsGpwlWiredApi.md new file mode 100644 index 0000000..0f84385 --- /dev/null +++ b/docs/MsGpwlWiredApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpwlWiredApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpwl_wired_object**](MsGpwlWiredApi.md#udm_ms_gpwl_wired_object) | **GET** /ms/gpwl-wired/{dn} | Get a representation of the MS wired Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpwl_wired_object_create**](MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_create) | **POST** /ms/gpwl-wired/ | Create a new MS wired Group Policy object +[**udm_ms_gpwl_wired_object_modify**](MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_modify) | **PUT** /ms/gpwl-wired/{dn} | Modify or move an MS wired Group Policy object +[**udm_ms_gpwl_wired_object_remove**](MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_remove) | **DELETE** /ms/gpwl-wired/{dn} | Remove a MS wired Group Policy object +[**udm_ms_gpwl_wired_object_search**](MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_search) | **GET** /ms/gpwl-wired/ | Search for MS wired Group Policy objects +[**udm_ms_gpwl_wired_object_template**](MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_template) | **GET** /ms/gpwl-wired/add | Get a template for creating an MS wired Group Policy object (contains all properties and their default values) +[**udm_ms_gpwl_wired_object_update**](MsGpwlWiredApi.md#udm_ms_gpwl_wired_object_update) | **PATCH** /ms/gpwl-wired/{dn} | Modify an MS wired Group Policy object (moving is currently not possible) + + +# **udm_ms_gpwl_wired_object** +> MsGpwlWired udm_ms_gpwl_wired_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS wired Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWiredApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS wired Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpwl_wired_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWiredApi->udm_ms_gpwl_wired_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWired**](MsGpwlWired.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wired_object_create** +> InlineResponse201 udm_ms_gpwl_wired_object_create(ms_gpwl_wired, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS wired Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWiredApi(api_client) + ms_gpwl_wired = openapi_client_udm.MsGpwlWired() # MsGpwlWired | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS wired Group Policy object + api_response = api_instance.udm_ms_gpwl_wired_object_create(ms_gpwl_wired, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWiredApi->udm_ms_gpwl_wired_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpwl_wired** | [**MsGpwlWired**](MsGpwlWired.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpwl_wired_object_modify** +> InlineResponse201 udm_ms_gpwl_wired_object_modify(dn, ms_gpwl_wired, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS wired Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWiredApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpwl_wired = openapi_client_udm.MsGpwlWired() # MsGpwlWired | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS wired Group Policy object + api_response = api_instance.udm_ms_gpwl_wired_object_modify(dn, ms_gpwl_wired, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWiredApi->udm_ms_gpwl_wired_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpwl_wired** | [**MsGpwlWired**](MsGpwlWired.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wired_object_remove** +> udm_ms_gpwl_wired_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS wired Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWiredApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS wired Group Policy object + api_instance.udm_ms_gpwl_wired_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpwlWiredApi->udm_ms_gpwl_wired_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wired_object_search** +> MsGpwlWiredList udm_ms_gpwl_wired_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS wired Group Policy objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWiredApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS wired Group Policy objects + api_response = api_instance.udm_ms_gpwl_wired_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWiredApi->udm_ms_gpwl_wired_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWiredList**](MsGpwlWiredList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wired_object_template** +> MsGpwlWired udm_ms_gpwl_wired_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS wired Group Policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWiredApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS wired Group Policy object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpwl_wired_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWiredApi->udm_ms_gpwl_wired_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWired**](MsGpwlWired.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS wired Group Policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wired_object_update** +> udm_ms_gpwl_wired_object_update(dn, ms_gpwl_wired, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS wired Group Policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWiredApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpwl_wired = openapi_client_udm.MsGpwlWired() # MsGpwlWired | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS wired Group Policy object (moving is currently not possible) + api_instance.udm_ms_gpwl_wired_object_update(dn, ms_gpwl_wired, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpwlWiredApi->udm_ms_gpwl_wired_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpwl_wired** | [**MsGpwlWired**](MsGpwlWired.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpwlWiredList.md b/docs/MsGpwlWiredList.md new file mode 100644 index 0000000..8d708fe --- /dev/null +++ b/docs/MsGpwlWiredList.md @@ -0,0 +1,11 @@ +# MsGpwlWiredList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpwlWiredListEmbedded**](MsGpwlWiredListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWiredListEmbedded.md b/docs/MsGpwlWiredListEmbedded.md new file mode 100644 index 0000000..5acd6a5 --- /dev/null +++ b/docs/MsGpwlWiredListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpwlWiredListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpwlWired]**](MsGpwlWired.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWiredPolicies.md b/docs/MsGpwlWiredPolicies.md new file mode 100644 index 0000000..efc2a8a --- /dev/null +++ b/docs/MsGpwlWiredPolicies.md @@ -0,0 +1,35 @@ +# MsGpwlWiredPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWiredRequest.md b/docs/MsGpwlWiredRequest.md new file mode 100644 index 0000000..1a2913f --- /dev/null +++ b/docs/MsGpwlWiredRequest.md @@ -0,0 +1,15 @@ +# MsGpwlWiredRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWiredPolicies**](MsGpwlWiredPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWiredRequestPatch.md b/docs/MsGpwlWiredRequestPatch.md new file mode 100644 index 0000000..2271a13 --- /dev/null +++ b/docs/MsGpwlWiredRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpwlWiredRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWiredPolicies**](MsGpwlWiredPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWiredResponseMixin.md b/docs/MsGpwlWiredResponseMixin.md new file mode 100644 index 0000000..3688608 --- /dev/null +++ b/docs/MsGpwlWiredResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpwlWiredResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWireless.md b/docs/MsGpwlWireless.md new file mode 100644 index 0000000..e1036c1 --- /dev/null +++ b/docs/MsGpwlWireless.md @@ -0,0 +1,20 @@ +# MsGpwlWireless + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWirelessPolicies**](MsGpwlWirelessPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessApi.md b/docs/MsGpwlWirelessApi.md new file mode 100644 index 0000000..6ebaca3 --- /dev/null +++ b/docs/MsGpwlWirelessApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpwlWirelessApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpwl_wireless_object**](MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object) | **GET** /ms/gpwl-wireless/{dn} | Get a representation of the MS wireless Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpwl_wireless_object_create**](MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_create) | **POST** /ms/gpwl-wireless/ | Create a new MS wireless Group Policy object +[**udm_ms_gpwl_wireless_object_modify**](MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_modify) | **PUT** /ms/gpwl-wireless/{dn} | Modify or move an MS wireless Group Policy object +[**udm_ms_gpwl_wireless_object_remove**](MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_remove) | **DELETE** /ms/gpwl-wireless/{dn} | Remove a MS wireless Group Policy object +[**udm_ms_gpwl_wireless_object_search**](MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_search) | **GET** /ms/gpwl-wireless/ | Search for MS wireless Group Policy objects +[**udm_ms_gpwl_wireless_object_template**](MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_template) | **GET** /ms/gpwl-wireless/add | Get a template for creating an MS wireless Group Policy object (contains all properties and their default values) +[**udm_ms_gpwl_wireless_object_update**](MsGpwlWirelessApi.md#udm_ms_gpwl_wireless_object_update) | **PATCH** /ms/gpwl-wireless/{dn} | Modify an MS wireless Group Policy object (moving is currently not possible) + + +# **udm_ms_gpwl_wireless_object** +> MsGpwlWireless udm_ms_gpwl_wireless_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS wireless Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS wireless Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpwl_wireless_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessApi->udm_ms_gpwl_wireless_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWireless**](MsGpwlWireless.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_object_create** +> InlineResponse201 udm_ms_gpwl_wireless_object_create(ms_gpwl_wireless, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS wireless Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessApi(api_client) + ms_gpwl_wireless = openapi_client_udm.MsGpwlWireless() # MsGpwlWireless | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS wireless Group Policy object + api_response = api_instance.udm_ms_gpwl_wireless_object_create(ms_gpwl_wireless, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessApi->udm_ms_gpwl_wireless_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpwl_wireless** | [**MsGpwlWireless**](MsGpwlWireless.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpwl_wireless_object_modify** +> InlineResponse201 udm_ms_gpwl_wireless_object_modify(dn, ms_gpwl_wireless, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS wireless Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpwl_wireless = openapi_client_udm.MsGpwlWireless() # MsGpwlWireless | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS wireless Group Policy object + api_response = api_instance.udm_ms_gpwl_wireless_object_modify(dn, ms_gpwl_wireless, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessApi->udm_ms_gpwl_wireless_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpwl_wireless** | [**MsGpwlWireless**](MsGpwlWireless.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_object_remove** +> udm_ms_gpwl_wireless_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS wireless Group Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS wireless Group Policy object + api_instance.udm_ms_gpwl_wireless_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpwlWirelessApi->udm_ms_gpwl_wireless_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_object_search** +> MsGpwlWirelessList udm_ms_gpwl_wireless_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS wireless Group Policy objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS wireless Group Policy objects + api_response = api_instance.udm_ms_gpwl_wireless_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessApi->udm_ms_gpwl_wireless_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWirelessList**](MsGpwlWirelessList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_object_template** +> MsGpwlWireless udm_ms_gpwl_wireless_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS wireless Group Policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS wireless Group Policy object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpwl_wireless_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessApi->udm_ms_gpwl_wireless_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWireless**](MsGpwlWireless.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS wireless Group Policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_object_update** +> udm_ms_gpwl_wireless_object_update(dn, ms_gpwl_wireless, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS wireless Group Policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpwl_wireless = openapi_client_udm.MsGpwlWireless() # MsGpwlWireless | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS wireless Group Policy object (moving is currently not possible) + api_instance.udm_ms_gpwl_wireless_object_update(dn, ms_gpwl_wireless, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpwlWirelessApi->udm_ms_gpwl_wireless_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpwl_wireless** | [**MsGpwlWireless**](MsGpwlWireless.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpwlWirelessBlob.md b/docs/MsGpwlWirelessBlob.md new file mode 100644 index 0000000..2be035d --- /dev/null +++ b/docs/MsGpwlWirelessBlob.md @@ -0,0 +1,20 @@ +# MsGpwlWirelessBlob + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWirelessBlobPolicies**](MsGpwlWirelessBlobPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessBlobApi.md b/docs/MsGpwlWirelessBlobApi.md new file mode 100644 index 0000000..9fd4938 --- /dev/null +++ b/docs/MsGpwlWirelessBlobApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.MsGpwlWirelessBlobApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_ms_gpwl_wireless_blob_object**](MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object) | **GET** /ms/gpwl-wireless-blob/{dn} | Get a representation of the MS wireless Group Policy blob object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_ms_gpwl_wireless_blob_object_create**](MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_create) | **POST** /ms/gpwl-wireless-blob/ | Create a new MS wireless Group Policy blob object +[**udm_ms_gpwl_wireless_blob_object_modify**](MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_modify) | **PUT** /ms/gpwl-wireless-blob/{dn} | Modify or move an MS wireless Group Policy blob object +[**udm_ms_gpwl_wireless_blob_object_remove**](MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_remove) | **DELETE** /ms/gpwl-wireless-blob/{dn} | Remove a MS wireless Group Policy blob object +[**udm_ms_gpwl_wireless_blob_object_search**](MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_search) | **GET** /ms/gpwl-wireless-blob/ | Search for MS wireless Group Policy blob objects +[**udm_ms_gpwl_wireless_blob_object_template**](MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_template) | **GET** /ms/gpwl-wireless-blob/add | Get a template for creating an MS wireless Group Policy blob object (contains all properties and their default values) +[**udm_ms_gpwl_wireless_blob_object_update**](MsGpwlWirelessBlobApi.md#udm_ms_gpwl_wireless_blob_object_update) | **PATCH** /ms/gpwl-wireless-blob/{dn} | Modify an MS wireless Group Policy blob object (moving is currently not possible) + + +# **udm_ms_gpwl_wireless_blob_object** +> MsGpwlWirelessBlob udm_ms_gpwl_wireless_blob_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the MS wireless Group Policy blob object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessBlobApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the MS wireless Group Policy blob object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_ms_gpwl_wireless_blob_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessBlobApi->udm_ms_gpwl_wireless_blob_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWirelessBlob**](MsGpwlWirelessBlob.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_blob_object_create** +> InlineResponse201 udm_ms_gpwl_wireless_blob_object_create(ms_gpwl_wireless_blob, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new MS wireless Group Policy blob object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessBlobApi(api_client) + ms_gpwl_wireless_blob = openapi_client_udm.MsGpwlWirelessBlob() # MsGpwlWirelessBlob | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new MS wireless Group Policy blob object + api_response = api_instance.udm_ms_gpwl_wireless_blob_object_create(ms_gpwl_wireless_blob, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessBlobApi->udm_ms_gpwl_wireless_blob_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ms_gpwl_wireless_blob** | [**MsGpwlWirelessBlob**](MsGpwlWirelessBlob.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_ms_gpwl_wireless_blob_object_modify** +> InlineResponse201 udm_ms_gpwl_wireless_blob_object_modify(dn, ms_gpwl_wireless_blob, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an MS wireless Group Policy blob object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessBlobApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpwl_wireless_blob = openapi_client_udm.MsGpwlWirelessBlob() # MsGpwlWirelessBlob | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an MS wireless Group Policy blob object + api_response = api_instance.udm_ms_gpwl_wireless_blob_object_modify(dn, ms_gpwl_wireless_blob, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessBlobApi->udm_ms_gpwl_wireless_blob_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpwl_wireless_blob** | [**MsGpwlWirelessBlob**](MsGpwlWirelessBlob.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_blob_object_remove** +> udm_ms_gpwl_wireless_blob_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a MS wireless Group Policy blob object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessBlobApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a MS wireless Group Policy blob object + api_instance.udm_ms_gpwl_wireless_blob_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpwlWirelessBlobApi->udm_ms_gpwl_wireless_blob_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_blob_object_search** +> MsGpwlWirelessBlobList udm_ms_gpwl_wireless_blob_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for MS wireless Group Policy blob objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessBlobApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for MS wireless Group Policy blob objects + api_response = api_instance.udm_ms_gpwl_wireless_blob_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessBlobApi->udm_ms_gpwl_wireless_blob_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWirelessBlobList**](MsGpwlWirelessBlobList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_blob_object_template** +> MsGpwlWirelessBlob udm_ms_gpwl_wireless_blob_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an MS wireless Group Policy blob object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessBlobApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an MS wireless Group Policy blob object (contains all properties and their default values) + api_response = api_instance.udm_ms_gpwl_wireless_blob_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling MsGpwlWirelessBlobApi->udm_ms_gpwl_wireless_blob_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**MsGpwlWirelessBlob**](MsGpwlWirelessBlob.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new MS wireless Group Policy blob. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_ms_gpwl_wireless_blob_object_update** +> udm_ms_gpwl_wireless_blob_object_update(dn, ms_gpwl_wireless_blob, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an MS wireless Group Policy blob object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.MsGpwlWirelessBlobApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +ms_gpwl_wireless_blob = openapi_client_udm.MsGpwlWirelessBlob() # MsGpwlWirelessBlob | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an MS wireless Group Policy blob object (moving is currently not possible) + api_instance.udm_ms_gpwl_wireless_blob_object_update(dn, ms_gpwl_wireless_blob, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling MsGpwlWirelessBlobApi->udm_ms_gpwl_wireless_blob_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **ms_gpwl_wireless_blob** | [**MsGpwlWirelessBlob**](MsGpwlWirelessBlob.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/MsGpwlWirelessBlobList.md b/docs/MsGpwlWirelessBlobList.md new file mode 100644 index 0000000..45bc2ac --- /dev/null +++ b/docs/MsGpwlWirelessBlobList.md @@ -0,0 +1,11 @@ +# MsGpwlWirelessBlobList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpwlWirelessBlobListEmbedded**](MsGpwlWirelessBlobListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessBlobListEmbedded.md b/docs/MsGpwlWirelessBlobListEmbedded.md new file mode 100644 index 0000000..f9f827f --- /dev/null +++ b/docs/MsGpwlWirelessBlobListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpwlWirelessBlobListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpwlWirelessBlob]**](MsGpwlWirelessBlob.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessBlobPolicies.md b/docs/MsGpwlWirelessBlobPolicies.md new file mode 100644 index 0000000..6b17ca8 --- /dev/null +++ b/docs/MsGpwlWirelessBlobPolicies.md @@ -0,0 +1,35 @@ +# MsGpwlWirelessBlobPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessBlobRequest.md b/docs/MsGpwlWirelessBlobRequest.md new file mode 100644 index 0000000..ee2027d --- /dev/null +++ b/docs/MsGpwlWirelessBlobRequest.md @@ -0,0 +1,15 @@ +# MsGpwlWirelessBlobRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWirelessBlobPolicies**](MsGpwlWirelessBlobPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessBlobRequestPatch.md b/docs/MsGpwlWirelessBlobRequestPatch.md new file mode 100644 index 0000000..8239432 --- /dev/null +++ b/docs/MsGpwlWirelessBlobRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpwlWirelessBlobRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWirelessBlobPolicies**](MsGpwlWirelessBlobPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessBlobResponseMixin.md b/docs/MsGpwlWirelessBlobResponseMixin.md new file mode 100644 index 0000000..038b539 --- /dev/null +++ b/docs/MsGpwlWirelessBlobResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpwlWirelessBlobResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessList.md b/docs/MsGpwlWirelessList.md new file mode 100644 index 0000000..f936415 --- /dev/null +++ b/docs/MsGpwlWirelessList.md @@ -0,0 +1,11 @@ +# MsGpwlWirelessList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**MsGpwlWirelessListEmbedded**](MsGpwlWirelessListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessListEmbedded.md b/docs/MsGpwlWirelessListEmbedded.md new file mode 100644 index 0000000..0f7478c --- /dev/null +++ b/docs/MsGpwlWirelessListEmbedded.md @@ -0,0 +1,11 @@ +# MsGpwlWirelessListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[MsGpwlWireless]**](MsGpwlWireless.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessPolicies.md b/docs/MsGpwlWirelessPolicies.md new file mode 100644 index 0000000..4574759 --- /dev/null +++ b/docs/MsGpwlWirelessPolicies.md @@ -0,0 +1,35 @@ +# MsGpwlWirelessPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessRequest.md b/docs/MsGpwlWirelessRequest.md new file mode 100644 index 0000000..1568d43 --- /dev/null +++ b/docs/MsGpwlWirelessRequest.md @@ -0,0 +1,15 @@ +# MsGpwlWirelessRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWirelessPolicies**](MsGpwlWirelessPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessRequestPatch.md b/docs/MsGpwlWirelessRequestPatch.md new file mode 100644 index 0000000..e672dad --- /dev/null +++ b/docs/MsGpwlWirelessRequestPatch.md @@ -0,0 +1,14 @@ +# MsGpwlWirelessRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**MsGpwlWirelessPolicies**](MsGpwlWirelessPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MsGpwlWirelessResponseMixin.md b/docs/MsGpwlWirelessResponseMixin.md new file mode 100644 index 0000000..642b18a --- /dev/null +++ b/docs/MsGpwlWirelessResponseMixin.md @@ -0,0 +1,15 @@ +# MsGpwlWirelessResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosNagios.md b/docs/NagiosNagios.md new file mode 100644 index 0000000..924b581 --- /dev/null +++ b/docs/NagiosNagios.md @@ -0,0 +1,20 @@ +# NagiosNagios + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosNagiosApi.md b/docs/NagiosNagiosApi.md new file mode 100644 index 0000000..a0df7be --- /dev/null +++ b/docs/NagiosNagiosApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.NagiosNagiosApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_nagios_nagios_object**](NagiosNagiosApi.md#udm_nagios_nagios_object) | **GET** /nagios/nagios/{dn} | Get a representation of the Nagios object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_nagios_nagios_object_search**](NagiosNagiosApi.md#udm_nagios_nagios_object_search) | **GET** /nagios/nagios/ | Search for Nagios objects objects + + +# **udm_nagios_nagios_object** +> NagiosNagios udm_nagios_nagios_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Nagios object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosNagiosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Nagios object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_nagios_nagios_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosNagiosApi->udm_nagios_nagios_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NagiosNagios**](NagiosNagios.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_nagios_object_search** +> NagiosNagiosList udm_nagios_nagios_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Nagios objects objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosNagiosApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Nagios objects objects + api_response = api_instance.udm_nagios_nagios_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosNagiosApi->udm_nagios_nagios_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NagiosNagiosList**](NagiosNagiosList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/NagiosNagiosList.md b/docs/NagiosNagiosList.md new file mode 100644 index 0000000..87381d8 --- /dev/null +++ b/docs/NagiosNagiosList.md @@ -0,0 +1,11 @@ +# NagiosNagiosList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**NagiosNagiosListEmbedded**](NagiosNagiosListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosNagiosListEmbedded.md b/docs/NagiosNagiosListEmbedded.md new file mode 100644 index 0000000..04f0327 --- /dev/null +++ b/docs/NagiosNagiosListEmbedded.md @@ -0,0 +1,11 @@ +# NagiosNagiosListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[NagiosNagios]**](NagiosNagios.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosNagiosRequest.md b/docs/NagiosNagiosRequest.md new file mode 100644 index 0000000..7da9f73 --- /dev/null +++ b/docs/NagiosNagiosRequest.md @@ -0,0 +1,15 @@ +# NagiosNagiosRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosNagiosRequestPatch.md b/docs/NagiosNagiosRequestPatch.md new file mode 100644 index 0000000..28c6d57 --- /dev/null +++ b/docs/NagiosNagiosRequestPatch.md @@ -0,0 +1,14 @@ +# NagiosNagiosRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosNagiosResponseMixin.md b/docs/NagiosNagiosResponseMixin.md new file mode 100644 index 0000000..3031f22 --- /dev/null +++ b/docs/NagiosNagiosResponseMixin.md @@ -0,0 +1,15 @@ +# NagiosNagiosResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosService.md b/docs/NagiosService.md new file mode 100644 index 0000000..d61bbcf --- /dev/null +++ b/docs/NagiosService.md @@ -0,0 +1,20 @@ +# NagiosService + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosServiceApi.md b/docs/NagiosServiceApi.md new file mode 100644 index 0000000..015a694 --- /dev/null +++ b/docs/NagiosServiceApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.NagiosServiceApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_nagios_service_object**](NagiosServiceApi.md#udm_nagios_service_object) | **GET** /nagios/service/{dn} | Get a representation of the Nagios service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_nagios_service_object_create**](NagiosServiceApi.md#udm_nagios_service_object_create) | **POST** /nagios/service/ | Create a new Nagios service object +[**udm_nagios_service_object_modify**](NagiosServiceApi.md#udm_nagios_service_object_modify) | **PUT** /nagios/service/{dn} | Modify or move an Nagios service object +[**udm_nagios_service_object_remove**](NagiosServiceApi.md#udm_nagios_service_object_remove) | **DELETE** /nagios/service/{dn} | Remove a Nagios services object +[**udm_nagios_service_object_search**](NagiosServiceApi.md#udm_nagios_service_object_search) | **GET** /nagios/service/ | Search for Nagios services objects +[**udm_nagios_service_object_template**](NagiosServiceApi.md#udm_nagios_service_object_template) | **GET** /nagios/service/add | Get a template for creating an Nagios service object (contains all properties and their default values) +[**udm_nagios_service_object_update**](NagiosServiceApi.md#udm_nagios_service_object_update) | **PATCH** /nagios/service/{dn} | Modify an Nagios service object (moving is currently not possible) + + +# **udm_nagios_service_object** +> NagiosService udm_nagios_service_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Nagios service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Nagios service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_nagios_service_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosServiceApi->udm_nagios_service_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NagiosService**](NagiosService.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_service_object_create** +> InlineResponse201 udm_nagios_service_object_create(nagios_service, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Nagios service object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosServiceApi(api_client) + nagios_service = openapi_client_udm.NagiosService() # NagiosService | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Nagios service object + api_response = api_instance.udm_nagios_service_object_create(nagios_service, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosServiceApi->udm_nagios_service_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nagios_service** | [**NagiosService**](NagiosService.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_nagios_service_object_modify** +> InlineResponse201 udm_nagios_service_object_modify(dn, nagios_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Nagios service object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +nagios_service = openapi_client_udm.NagiosService() # NagiosService | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Nagios service object + api_response = api_instance.udm_nagios_service_object_modify(dn, nagios_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosServiceApi->udm_nagios_service_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **nagios_service** | [**NagiosService**](NagiosService.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_service_object_remove** +> udm_nagios_service_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Nagios services object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Nagios services object + api_instance.udm_nagios_service_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling NagiosServiceApi->udm_nagios_service_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_service_object_search** +> NagiosServiceList udm_nagios_service_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Nagios services objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosServiceApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Nagios services objects + api_response = api_instance.udm_nagios_service_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosServiceApi->udm_nagios_service_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NagiosServiceList**](NagiosServiceList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_service_object_template** +> NagiosService udm_nagios_service_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Nagios service object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosServiceApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Nagios service object (contains all properties and their default values) + api_response = api_instance.udm_nagios_service_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosServiceApi->udm_nagios_service_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NagiosService**](NagiosService.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Nagios service. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_service_object_update** +> udm_nagios_service_object_update(dn, nagios_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Nagios service object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +nagios_service = openapi_client_udm.NagiosService() # NagiosService | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Nagios service object (moving is currently not possible) + api_instance.udm_nagios_service_object_update(dn, nagios_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling NagiosServiceApi->udm_nagios_service_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **nagios_service** | [**NagiosService**](NagiosService.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/NagiosServiceList.md b/docs/NagiosServiceList.md new file mode 100644 index 0000000..b536a97 --- /dev/null +++ b/docs/NagiosServiceList.md @@ -0,0 +1,11 @@ +# NagiosServiceList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**NagiosServiceListEmbedded**](NagiosServiceListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosServiceListEmbedded.md b/docs/NagiosServiceListEmbedded.md new file mode 100644 index 0000000..5b9a61f --- /dev/null +++ b/docs/NagiosServiceListEmbedded.md @@ -0,0 +1,11 @@ +# NagiosServiceListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[NagiosService]**](NagiosService.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosServiceRequest.md b/docs/NagiosServiceRequest.md new file mode 100644 index 0000000..6ace3d0 --- /dev/null +++ b/docs/NagiosServiceRequest.md @@ -0,0 +1,15 @@ +# NagiosServiceRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosServiceRequestPatch.md b/docs/NagiosServiceRequestPatch.md new file mode 100644 index 0000000..1eeb5f4 --- /dev/null +++ b/docs/NagiosServiceRequestPatch.md @@ -0,0 +1,14 @@ +# NagiosServiceRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosServiceResponseMixin.md b/docs/NagiosServiceResponseMixin.md new file mode 100644 index 0000000..3515efb --- /dev/null +++ b/docs/NagiosServiceResponseMixin.md @@ -0,0 +1,15 @@ +# NagiosServiceResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosTimeperiod.md b/docs/NagiosTimeperiod.md new file mode 100644 index 0000000..731946e --- /dev/null +++ b/docs/NagiosTimeperiod.md @@ -0,0 +1,20 @@ +# NagiosTimeperiod + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosTimeperiodApi.md b/docs/NagiosTimeperiodApi.md new file mode 100644 index 0000000..1d3a5ef --- /dev/null +++ b/docs/NagiosTimeperiodApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.NagiosTimeperiodApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_nagios_timeperiod_object**](NagiosTimeperiodApi.md#udm_nagios_timeperiod_object) | **GET** /nagios/timeperiod/{dn} | Get a representation of the Nagios time period object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_nagios_timeperiod_object_create**](NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_create) | **POST** /nagios/timeperiod/ | Create a new Nagios time period object +[**udm_nagios_timeperiod_object_modify**](NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_modify) | **PUT** /nagios/timeperiod/{dn} | Modify or move an Nagios time period object +[**udm_nagios_timeperiod_object_remove**](NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_remove) | **DELETE** /nagios/timeperiod/{dn} | Remove a Nagios time periods object +[**udm_nagios_timeperiod_object_search**](NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_search) | **GET** /nagios/timeperiod/ | Search for Nagios time periods objects +[**udm_nagios_timeperiod_object_template**](NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_template) | **GET** /nagios/timeperiod/add | Get a template for creating an Nagios time period object (contains all properties and their default values) +[**udm_nagios_timeperiod_object_update**](NagiosTimeperiodApi.md#udm_nagios_timeperiod_object_update) | **PATCH** /nagios/timeperiod/{dn} | Modify an Nagios time period object (moving is currently not possible) + + +# **udm_nagios_timeperiod_object** +> NagiosTimeperiod udm_nagios_timeperiod_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Nagios time period object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosTimeperiodApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Nagios time period object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_nagios_timeperiod_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosTimeperiodApi->udm_nagios_timeperiod_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NagiosTimeperiod**](NagiosTimeperiod.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_timeperiod_object_create** +> InlineResponse201 udm_nagios_timeperiod_object_create(nagios_timeperiod, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Nagios time period object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosTimeperiodApi(api_client) + nagios_timeperiod = openapi_client_udm.NagiosTimeperiod() # NagiosTimeperiod | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Nagios time period object + api_response = api_instance.udm_nagios_timeperiod_object_create(nagios_timeperiod, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosTimeperiodApi->udm_nagios_timeperiod_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **nagios_timeperiod** | [**NagiosTimeperiod**](NagiosTimeperiod.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_nagios_timeperiod_object_modify** +> InlineResponse201 udm_nagios_timeperiod_object_modify(dn, nagios_timeperiod, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Nagios time period object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosTimeperiodApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +nagios_timeperiod = openapi_client_udm.NagiosTimeperiod() # NagiosTimeperiod | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Nagios time period object + api_response = api_instance.udm_nagios_timeperiod_object_modify(dn, nagios_timeperiod, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosTimeperiodApi->udm_nagios_timeperiod_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **nagios_timeperiod** | [**NagiosTimeperiod**](NagiosTimeperiod.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_timeperiod_object_remove** +> udm_nagios_timeperiod_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Nagios time periods object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosTimeperiodApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Nagios time periods object + api_instance.udm_nagios_timeperiod_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling NagiosTimeperiodApi->udm_nagios_timeperiod_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_timeperiod_object_search** +> NagiosTimeperiodList udm_nagios_timeperiod_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Nagios time periods objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosTimeperiodApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Nagios time periods objects + api_response = api_instance.udm_nagios_timeperiod_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosTimeperiodApi->udm_nagios_timeperiod_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NagiosTimeperiodList**](NagiosTimeperiodList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_timeperiod_object_template** +> NagiosTimeperiod udm_nagios_timeperiod_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Nagios time period object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosTimeperiodApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Nagios time period object (contains all properties and their default values) + api_response = api_instance.udm_nagios_timeperiod_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NagiosTimeperiodApi->udm_nagios_timeperiod_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NagiosTimeperiod**](NagiosTimeperiod.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Nagios time period. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_nagios_timeperiod_object_update** +> udm_nagios_timeperiod_object_update(dn, nagios_timeperiod, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Nagios time period object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NagiosTimeperiodApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +nagios_timeperiod = openapi_client_udm.NagiosTimeperiod() # NagiosTimeperiod | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Nagios time period object (moving is currently not possible) + api_instance.udm_nagios_timeperiod_object_update(dn, nagios_timeperiod, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling NagiosTimeperiodApi->udm_nagios_timeperiod_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **nagios_timeperiod** | [**NagiosTimeperiod**](NagiosTimeperiod.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/NagiosTimeperiodList.md b/docs/NagiosTimeperiodList.md new file mode 100644 index 0000000..fd0d555 --- /dev/null +++ b/docs/NagiosTimeperiodList.md @@ -0,0 +1,11 @@ +# NagiosTimeperiodList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**NagiosTimeperiodListEmbedded**](NagiosTimeperiodListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosTimeperiodListEmbedded.md b/docs/NagiosTimeperiodListEmbedded.md new file mode 100644 index 0000000..eec1e11 --- /dev/null +++ b/docs/NagiosTimeperiodListEmbedded.md @@ -0,0 +1,11 @@ +# NagiosTimeperiodListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[NagiosTimeperiod]**](NagiosTimeperiod.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosTimeperiodRequest.md b/docs/NagiosTimeperiodRequest.md new file mode 100644 index 0000000..355e6cc --- /dev/null +++ b/docs/NagiosTimeperiodRequest.md @@ -0,0 +1,15 @@ +# NagiosTimeperiodRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosTimeperiodRequestPatch.md b/docs/NagiosTimeperiodRequestPatch.md new file mode 100644 index 0000000..2bb1e13 --- /dev/null +++ b/docs/NagiosTimeperiodRequestPatch.md @@ -0,0 +1,14 @@ +# NagiosTimeperiodRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NagiosTimeperiodResponseMixin.md b/docs/NagiosTimeperiodResponseMixin.md new file mode 100644 index 0000000..e22c6db --- /dev/null +++ b/docs/NagiosTimeperiodResponseMixin.md @@ -0,0 +1,15 @@ +# NagiosTimeperiodResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworksNetwork.md b/docs/NetworksNetwork.md new file mode 100644 index 0000000..d854bbd --- /dev/null +++ b/docs/NetworksNetwork.md @@ -0,0 +1,20 @@ +# NetworksNetwork + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworksNetworkApi.md b/docs/NetworksNetworkApi.md new file mode 100644 index 0000000..02c9f71 --- /dev/null +++ b/docs/NetworksNetworkApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.NetworksNetworkApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_networks_network_object**](NetworksNetworkApi.md#udm_networks_network_object) | **GET** /networks/network/{dn} | Get a representation of the Network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_networks_network_object_create**](NetworksNetworkApi.md#udm_networks_network_object_create) | **POST** /networks/network/ | Create a new Network object +[**udm_networks_network_object_modify**](NetworksNetworkApi.md#udm_networks_network_object_modify) | **PUT** /networks/network/{dn} | Modify or move an Network object +[**udm_networks_network_object_remove**](NetworksNetworkApi.md#udm_networks_network_object_remove) | **DELETE** /networks/network/{dn} | Remove a Networks object +[**udm_networks_network_object_search**](NetworksNetworkApi.md#udm_networks_network_object_search) | **GET** /networks/network/ | Search for Networks objects +[**udm_networks_network_object_template**](NetworksNetworkApi.md#udm_networks_network_object_template) | **GET** /networks/network/add | Get a template for creating an Network object (contains all properties and their default values) +[**udm_networks_network_object_update**](NetworksNetworkApi.md#udm_networks_network_object_update) | **PATCH** /networks/network/{dn} | Modify an Network object (moving is currently not possible) + + +# **udm_networks_network_object** +> NetworksNetwork udm_networks_network_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NetworksNetworkApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_networks_network_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworksNetworkApi->udm_networks_network_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NetworksNetwork**](NetworksNetwork.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_networks_network_object_create** +> InlineResponse201 udm_networks_network_object_create(networks_network, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Network object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NetworksNetworkApi(api_client) + networks_network = openapi_client_udm.NetworksNetwork() # NetworksNetwork | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Network object + api_response = api_instance.udm_networks_network_object_create(networks_network, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworksNetworkApi->udm_networks_network_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **networks_network** | [**NetworksNetwork**](NetworksNetwork.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_networks_network_object_modify** +> InlineResponse201 udm_networks_network_object_modify(dn, networks_network, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Network object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NetworksNetworkApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +networks_network = openapi_client_udm.NetworksNetwork() # NetworksNetwork | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Network object + api_response = api_instance.udm_networks_network_object_modify(dn, networks_network, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworksNetworkApi->udm_networks_network_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **networks_network** | [**NetworksNetwork**](NetworksNetwork.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_networks_network_object_remove** +> udm_networks_network_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Networks object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NetworksNetworkApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Networks object + api_instance.udm_networks_network_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling NetworksNetworkApi->udm_networks_network_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_networks_network_object_search** +> NetworksNetworkList udm_networks_network_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Networks objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NetworksNetworkApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Networks objects + api_response = api_instance.udm_networks_network_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworksNetworkApi->udm_networks_network_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NetworksNetworkList**](NetworksNetworkList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_networks_network_object_template** +> NetworksNetwork udm_networks_network_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Network object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NetworksNetworkApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Network object (contains all properties and their default values) + api_response = api_instance.udm_networks_network_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworksNetworkApi->udm_networks_network_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**NetworksNetwork**](NetworksNetwork.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Network. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_networks_network_object_update** +> udm_networks_network_object_update(dn, networks_network, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Network object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.NetworksNetworkApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +networks_network = openapi_client_udm.NetworksNetwork() # NetworksNetwork | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Network object (moving is currently not possible) + api_instance.udm_networks_network_object_update(dn, networks_network, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling NetworksNetworkApi->udm_networks_network_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **networks_network** | [**NetworksNetwork**](NetworksNetwork.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/NetworksNetworkList.md b/docs/NetworksNetworkList.md new file mode 100644 index 0000000..1094c97 --- /dev/null +++ b/docs/NetworksNetworkList.md @@ -0,0 +1,11 @@ +# NetworksNetworkList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**NetworksNetworkListEmbedded**](NetworksNetworkListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworksNetworkListEmbedded.md b/docs/NetworksNetworkListEmbedded.md new file mode 100644 index 0000000..2e2d323 --- /dev/null +++ b/docs/NetworksNetworkListEmbedded.md @@ -0,0 +1,11 @@ +# NetworksNetworkListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[NetworksNetwork]**](NetworksNetwork.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworksNetworkRequest.md b/docs/NetworksNetworkRequest.md new file mode 100644 index 0000000..c717512 --- /dev/null +++ b/docs/NetworksNetworkRequest.md @@ -0,0 +1,15 @@ +# NetworksNetworkRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworksNetworkRequestPatch.md b/docs/NetworksNetworkRequestPatch.md new file mode 100644 index 0000000..cd76f32 --- /dev/null +++ b/docs/NetworksNetworkRequestPatch.md @@ -0,0 +1,14 @@ +# NetworksNetworkRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworksNetworkResponseMixin.md b/docs/NetworksNetworkResponseMixin.md new file mode 100644 index 0000000..8ec3683 --- /dev/null +++ b/docs/NetworksNetworkResponseMixin.md @@ -0,0 +1,15 @@ +# NetworksNetworkResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesAdminContainer.md b/docs/PoliciesAdminContainer.md new file mode 100644 index 0000000..4f89446 --- /dev/null +++ b/docs/PoliciesAdminContainer.md @@ -0,0 +1,20 @@ +# PoliciesAdminContainer + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesAdminContainerApi.md b/docs/PoliciesAdminContainerApi.md new file mode 100644 index 0000000..af8afc2 --- /dev/null +++ b/docs/PoliciesAdminContainerApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesAdminContainerApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_admin_container_object**](PoliciesAdminContainerApi.md#udm_policies_admin_container_object) | **GET** /policies/admin_container/{dn} | Get a representation of the Univention Directory Manager container settings policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_admin_container_object_create**](PoliciesAdminContainerApi.md#udm_policies_admin_container_object_create) | **POST** /policies/admin_container/ | Create a new Univention Directory Manager container settings policy object +[**udm_policies_admin_container_object_modify**](PoliciesAdminContainerApi.md#udm_policies_admin_container_object_modify) | **PUT** /policies/admin_container/{dn} | Modify or move an Univention Directory Manager container settings policy object +[**udm_policies_admin_container_object_remove**](PoliciesAdminContainerApi.md#udm_policies_admin_container_object_remove) | **DELETE** /policies/admin_container/{dn} | Remove a Univention Directory Manager container settings policies object +[**udm_policies_admin_container_object_search**](PoliciesAdminContainerApi.md#udm_policies_admin_container_object_search) | **GET** /policies/admin_container/ | Search for Univention Directory Manager container settings policies objects +[**udm_policies_admin_container_object_template**](PoliciesAdminContainerApi.md#udm_policies_admin_container_object_template) | **GET** /policies/admin_container/add | Get a template for creating an Univention Directory Manager container settings policy object (contains all properties and their default values) +[**udm_policies_admin_container_object_update**](PoliciesAdminContainerApi.md#udm_policies_admin_container_object_update) | **PATCH** /policies/admin_container/{dn} | Modify an Univention Directory Manager container settings policy object (moving is currently not possible) + + +# **udm_policies_admin_container_object** +> PoliciesAdminContainer udm_policies_admin_container_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Univention Directory Manager container settings policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesAdminContainerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Univention Directory Manager container settings policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_admin_container_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesAdminContainerApi->udm_policies_admin_container_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesAdminContainer**](PoliciesAdminContainer.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_admin_container_object_create** +> InlineResponse201 udm_policies_admin_container_object_create(policies_admin_container, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Univention Directory Manager container settings policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesAdminContainerApi(api_client) + policies_admin_container = openapi_client_udm.PoliciesAdminContainer() # PoliciesAdminContainer | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Univention Directory Manager container settings policy object + api_response = api_instance.udm_policies_admin_container_object_create(policies_admin_container, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesAdminContainerApi->udm_policies_admin_container_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_admin_container** | [**PoliciesAdminContainer**](PoliciesAdminContainer.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_admin_container_object_modify** +> InlineResponse201 udm_policies_admin_container_object_modify(dn, policies_admin_container, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Univention Directory Manager container settings policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesAdminContainerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_admin_container = openapi_client_udm.PoliciesAdminContainer() # PoliciesAdminContainer | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Univention Directory Manager container settings policy object + api_response = api_instance.udm_policies_admin_container_object_modify(dn, policies_admin_container, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesAdminContainerApi->udm_policies_admin_container_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_admin_container** | [**PoliciesAdminContainer**](PoliciesAdminContainer.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_admin_container_object_remove** +> udm_policies_admin_container_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Univention Directory Manager container settings policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesAdminContainerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Univention Directory Manager container settings policies object + api_instance.udm_policies_admin_container_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesAdminContainerApi->udm_policies_admin_container_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_admin_container_object_search** +> PoliciesAdminContainerList udm_policies_admin_container_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Univention Directory Manager container settings policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesAdminContainerApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Univention Directory Manager container settings policies objects + api_response = api_instance.udm_policies_admin_container_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesAdminContainerApi->udm_policies_admin_container_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesAdminContainerList**](PoliciesAdminContainerList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_admin_container_object_template** +> PoliciesAdminContainer udm_policies_admin_container_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Univention Directory Manager container settings policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesAdminContainerApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Univention Directory Manager container settings policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_admin_container_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesAdminContainerApi->udm_policies_admin_container_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesAdminContainer**](PoliciesAdminContainer.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Univention Directory Manager container settings policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_admin_container_object_update** +> udm_policies_admin_container_object_update(dn, policies_admin_container, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Univention Directory Manager container settings policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesAdminContainerApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_admin_container = openapi_client_udm.PoliciesAdminContainer() # PoliciesAdminContainer | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Univention Directory Manager container settings policy object (moving is currently not possible) + api_instance.udm_policies_admin_container_object_update(dn, policies_admin_container, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesAdminContainerApi->udm_policies_admin_container_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_admin_container** | [**PoliciesAdminContainer**](PoliciesAdminContainer.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesAdminContainerList.md b/docs/PoliciesAdminContainerList.md new file mode 100644 index 0000000..21166ff --- /dev/null +++ b/docs/PoliciesAdminContainerList.md @@ -0,0 +1,11 @@ +# PoliciesAdminContainerList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesAdminContainerListEmbedded**](PoliciesAdminContainerListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesAdminContainerListEmbedded.md b/docs/PoliciesAdminContainerListEmbedded.md new file mode 100644 index 0000000..7fb3289 --- /dev/null +++ b/docs/PoliciesAdminContainerListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesAdminContainerListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesAdminContainer]**](PoliciesAdminContainer.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesAdminContainerRequest.md b/docs/PoliciesAdminContainerRequest.md new file mode 100644 index 0000000..94ecd7b --- /dev/null +++ b/docs/PoliciesAdminContainerRequest.md @@ -0,0 +1,15 @@ +# PoliciesAdminContainerRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesAdminContainerRequestPatch.md b/docs/PoliciesAdminContainerRequestPatch.md new file mode 100644 index 0000000..0cd3ae7 --- /dev/null +++ b/docs/PoliciesAdminContainerRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesAdminContainerRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesAdminContainerResponseMixin.md b/docs/PoliciesAdminContainerResponseMixin.md new file mode 100644 index 0000000..29ef8dd --- /dev/null +++ b/docs/PoliciesAdminContainerResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesAdminContainerResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDesktop.md b/docs/PoliciesDesktop.md new file mode 100644 index 0000000..6e6b409 --- /dev/null +++ b/docs/PoliciesDesktop.md @@ -0,0 +1,20 @@ +# PoliciesDesktop + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDesktopApi.md b/docs/PoliciesDesktopApi.md new file mode 100644 index 0000000..75128f5 --- /dev/null +++ b/docs/PoliciesDesktopApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDesktopApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_desktop_object**](PoliciesDesktopApi.md#udm_policies_desktop_object) | **GET** /policies/desktop/{dn} | Get a representation of the Desktop policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_desktop_object_create**](PoliciesDesktopApi.md#udm_policies_desktop_object_create) | **POST** /policies/desktop/ | Create a new Desktop policy object +[**udm_policies_desktop_object_modify**](PoliciesDesktopApi.md#udm_policies_desktop_object_modify) | **PUT** /policies/desktop/{dn} | Modify or move an Desktop policy object +[**udm_policies_desktop_object_remove**](PoliciesDesktopApi.md#udm_policies_desktop_object_remove) | **DELETE** /policies/desktop/{dn} | Remove a Desktop policies object +[**udm_policies_desktop_object_search**](PoliciesDesktopApi.md#udm_policies_desktop_object_search) | **GET** /policies/desktop/ | Search for Desktop policies objects +[**udm_policies_desktop_object_template**](PoliciesDesktopApi.md#udm_policies_desktop_object_template) | **GET** /policies/desktop/add | Get a template for creating an Desktop policy object (contains all properties and their default values) +[**udm_policies_desktop_object_update**](PoliciesDesktopApi.md#udm_policies_desktop_object_update) | **PATCH** /policies/desktop/{dn} | Modify an Desktop policy object (moving is currently not possible) + + +# **udm_policies_desktop_object** +> PoliciesDesktop udm_policies_desktop_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Desktop policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDesktopApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Desktop policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_desktop_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDesktopApi->udm_policies_desktop_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDesktop**](PoliciesDesktop.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_desktop_object_create** +> InlineResponse201 udm_policies_desktop_object_create(policies_desktop, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Desktop policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDesktopApi(api_client) + policies_desktop = openapi_client_udm.PoliciesDesktop() # PoliciesDesktop | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Desktop policy object + api_response = api_instance.udm_policies_desktop_object_create(policies_desktop, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDesktopApi->udm_policies_desktop_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_desktop** | [**PoliciesDesktop**](PoliciesDesktop.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_desktop_object_modify** +> InlineResponse201 udm_policies_desktop_object_modify(dn, policies_desktop, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Desktop policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDesktopApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_desktop = openapi_client_udm.PoliciesDesktop() # PoliciesDesktop | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Desktop policy object + api_response = api_instance.udm_policies_desktop_object_modify(dn, policies_desktop, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDesktopApi->udm_policies_desktop_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_desktop** | [**PoliciesDesktop**](PoliciesDesktop.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_desktop_object_remove** +> udm_policies_desktop_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Desktop policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDesktopApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Desktop policies object + api_instance.udm_policies_desktop_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDesktopApi->udm_policies_desktop_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_desktop_object_search** +> PoliciesDesktopList udm_policies_desktop_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Desktop policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDesktopApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Desktop policies objects + api_response = api_instance.udm_policies_desktop_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDesktopApi->udm_policies_desktop_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDesktopList**](PoliciesDesktopList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_desktop_object_template** +> PoliciesDesktop udm_policies_desktop_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Desktop policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDesktopApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Desktop policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_desktop_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDesktopApi->udm_policies_desktop_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDesktop**](PoliciesDesktop.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Desktop policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_desktop_object_update** +> udm_policies_desktop_object_update(dn, policies_desktop, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Desktop policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDesktopApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_desktop = openapi_client_udm.PoliciesDesktop() # PoliciesDesktop | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Desktop policy object (moving is currently not possible) + api_instance.udm_policies_desktop_object_update(dn, policies_desktop, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDesktopApi->udm_policies_desktop_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_desktop** | [**PoliciesDesktop**](PoliciesDesktop.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDesktopList.md b/docs/PoliciesDesktopList.md new file mode 100644 index 0000000..2c7137b --- /dev/null +++ b/docs/PoliciesDesktopList.md @@ -0,0 +1,11 @@ +# PoliciesDesktopList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDesktopListEmbedded**](PoliciesDesktopListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDesktopListEmbedded.md b/docs/PoliciesDesktopListEmbedded.md new file mode 100644 index 0000000..ad3da7f --- /dev/null +++ b/docs/PoliciesDesktopListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDesktopListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDesktop]**](PoliciesDesktop.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDesktopRequest.md b/docs/PoliciesDesktopRequest.md new file mode 100644 index 0000000..58febfd --- /dev/null +++ b/docs/PoliciesDesktopRequest.md @@ -0,0 +1,15 @@ +# PoliciesDesktopRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDesktopRequestPatch.md b/docs/PoliciesDesktopRequestPatch.md new file mode 100644 index 0000000..0ad940f --- /dev/null +++ b/docs/PoliciesDesktopRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDesktopRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDesktopResponseMixin.md b/docs/PoliciesDesktopResponseMixin.md new file mode 100644 index 0000000..db96055 --- /dev/null +++ b/docs/PoliciesDesktopResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDesktopResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpBoot.md b/docs/PoliciesDhcpBoot.md new file mode 100644 index 0000000..f53748f --- /dev/null +++ b/docs/PoliciesDhcpBoot.md @@ -0,0 +1,20 @@ +# PoliciesDhcpBoot + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpBootApi.md b/docs/PoliciesDhcpBootApi.md new file mode 100644 index 0000000..cb0e195 --- /dev/null +++ b/docs/PoliciesDhcpBootApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDhcpBootApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_dhcp_boot_object**](PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object) | **GET** /policies/dhcp_boot/{dn} | Get a representation of the DHCP Boot policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_dhcp_boot_object_create**](PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_create) | **POST** /policies/dhcp_boot/ | Create a new DHCP Boot policy object +[**udm_policies_dhcp_boot_object_modify**](PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_modify) | **PUT** /policies/dhcp_boot/{dn} | Modify or move an DHCP Boot policy object +[**udm_policies_dhcp_boot_object_remove**](PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_remove) | **DELETE** /policies/dhcp_boot/{dn} | Remove a DHCP Boot policies object +[**udm_policies_dhcp_boot_object_search**](PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_search) | **GET** /policies/dhcp_boot/ | Search for DHCP Boot policies objects +[**udm_policies_dhcp_boot_object_template**](PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_template) | **GET** /policies/dhcp_boot/add | Get a template for creating an DHCP Boot policy object (contains all properties and their default values) +[**udm_policies_dhcp_boot_object_update**](PoliciesDhcpBootApi.md#udm_policies_dhcp_boot_object_update) | **PATCH** /policies/dhcp_boot/{dn} | Modify an DHCP Boot policy object (moving is currently not possible) + + +# **udm_policies_dhcp_boot_object** +> PoliciesDhcpBoot udm_policies_dhcp_boot_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP Boot policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpBootApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP Boot policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_dhcp_boot_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpBootApi->udm_policies_dhcp_boot_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpBoot**](PoliciesDhcpBoot.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_boot_object_create** +> InlineResponse201 udm_policies_dhcp_boot_object_create(policies_dhcp_boot, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP Boot policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpBootApi(api_client) + policies_dhcp_boot = openapi_client_udm.PoliciesDhcpBoot() # PoliciesDhcpBoot | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP Boot policy object + api_response = api_instance.udm_policies_dhcp_boot_object_create(policies_dhcp_boot, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpBootApi->udm_policies_dhcp_boot_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_dhcp_boot** | [**PoliciesDhcpBoot**](PoliciesDhcpBoot.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_dhcp_boot_object_modify** +> InlineResponse201 udm_policies_dhcp_boot_object_modify(dn, policies_dhcp_boot, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP Boot policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpBootApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_boot = openapi_client_udm.PoliciesDhcpBoot() # PoliciesDhcpBoot | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP Boot policy object + api_response = api_instance.udm_policies_dhcp_boot_object_modify(dn, policies_dhcp_boot, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpBootApi->udm_policies_dhcp_boot_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_boot** | [**PoliciesDhcpBoot**](PoliciesDhcpBoot.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_boot_object_remove** +> udm_policies_dhcp_boot_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP Boot policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpBootApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP Boot policies object + api_instance.udm_policies_dhcp_boot_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpBootApi->udm_policies_dhcp_boot_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_boot_object_search** +> PoliciesDhcpBootList udm_policies_dhcp_boot_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP Boot policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpBootApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP Boot policies objects + api_response = api_instance.udm_policies_dhcp_boot_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpBootApi->udm_policies_dhcp_boot_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpBootList**](PoliciesDhcpBootList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_boot_object_template** +> PoliciesDhcpBoot udm_policies_dhcp_boot_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP Boot policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpBootApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP Boot policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_dhcp_boot_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpBootApi->udm_policies_dhcp_boot_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpBoot**](PoliciesDhcpBoot.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP Boot policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_boot_object_update** +> udm_policies_dhcp_boot_object_update(dn, policies_dhcp_boot, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP Boot policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpBootApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_boot = openapi_client_udm.PoliciesDhcpBoot() # PoliciesDhcpBoot | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP Boot policy object (moving is currently not possible) + api_instance.udm_policies_dhcp_boot_object_update(dn, policies_dhcp_boot, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpBootApi->udm_policies_dhcp_boot_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_boot** | [**PoliciesDhcpBoot**](PoliciesDhcpBoot.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDhcpBootList.md b/docs/PoliciesDhcpBootList.md new file mode 100644 index 0000000..5c27990 --- /dev/null +++ b/docs/PoliciesDhcpBootList.md @@ -0,0 +1,11 @@ +# PoliciesDhcpBootList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDhcpBootListEmbedded**](PoliciesDhcpBootListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpBootListEmbedded.md b/docs/PoliciesDhcpBootListEmbedded.md new file mode 100644 index 0000000..dbe35a2 --- /dev/null +++ b/docs/PoliciesDhcpBootListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDhcpBootListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDhcpBoot]**](PoliciesDhcpBoot.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpBootRequest.md b/docs/PoliciesDhcpBootRequest.md new file mode 100644 index 0000000..102bdc7 --- /dev/null +++ b/docs/PoliciesDhcpBootRequest.md @@ -0,0 +1,15 @@ +# PoliciesDhcpBootRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpBootRequestPatch.md b/docs/PoliciesDhcpBootRequestPatch.md new file mode 100644 index 0000000..e6afed5 --- /dev/null +++ b/docs/PoliciesDhcpBootRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDhcpBootRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpBootResponseMixin.md b/docs/PoliciesDhcpBootResponseMixin.md new file mode 100644 index 0000000..66c1199 --- /dev/null +++ b/docs/PoliciesDhcpBootResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDhcpBootResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDns.md b/docs/PoliciesDhcpDns.md new file mode 100644 index 0000000..0a53a78 --- /dev/null +++ b/docs/PoliciesDhcpDns.md @@ -0,0 +1,20 @@ +# PoliciesDhcpDns + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsApi.md b/docs/PoliciesDhcpDnsApi.md new file mode 100644 index 0000000..f233081 --- /dev/null +++ b/docs/PoliciesDhcpDnsApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDhcpDnsApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_dhcp_dns_object**](PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object) | **GET** /policies/dhcp_dns/{dn} | Get a representation of the DHCP DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_dhcp_dns_object_create**](PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_create) | **POST** /policies/dhcp_dns/ | Create a new DHCP DNS policy object +[**udm_policies_dhcp_dns_object_modify**](PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_modify) | **PUT** /policies/dhcp_dns/{dn} | Modify or move an DHCP DNS policy object +[**udm_policies_dhcp_dns_object_remove**](PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_remove) | **DELETE** /policies/dhcp_dns/{dn} | Remove a DHCP DNS policies object +[**udm_policies_dhcp_dns_object_search**](PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_search) | **GET** /policies/dhcp_dns/ | Search for DHCP DNS policies objects +[**udm_policies_dhcp_dns_object_template**](PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_template) | **GET** /policies/dhcp_dns/add | Get a template for creating an DHCP DNS policy object (contains all properties and their default values) +[**udm_policies_dhcp_dns_object_update**](PoliciesDhcpDnsApi.md#udm_policies_dhcp_dns_object_update) | **PATCH** /policies/dhcp_dns/{dn} | Modify an DHCP DNS policy object (moving is currently not possible) + + +# **udm_policies_dhcp_dns_object** +> PoliciesDhcpDns udm_policies_dhcp_dns_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_dhcp_dns_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsApi->udm_policies_dhcp_dns_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpDns**](PoliciesDhcpDns.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dns_object_create** +> InlineResponse201 udm_policies_dhcp_dns_object_create(policies_dhcp_dns, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP DNS policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsApi(api_client) + policies_dhcp_dns = openapi_client_udm.PoliciesDhcpDns() # PoliciesDhcpDns | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP DNS policy object + api_response = api_instance.udm_policies_dhcp_dns_object_create(policies_dhcp_dns, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsApi->udm_policies_dhcp_dns_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_dhcp_dns** | [**PoliciesDhcpDns**](PoliciesDhcpDns.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_dhcp_dns_object_modify** +> InlineResponse201 udm_policies_dhcp_dns_object_modify(dn, policies_dhcp_dns, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP DNS policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_dns = openapi_client_udm.PoliciesDhcpDns() # PoliciesDhcpDns | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP DNS policy object + api_response = api_instance.udm_policies_dhcp_dns_object_modify(dn, policies_dhcp_dns, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsApi->udm_policies_dhcp_dns_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_dns** | [**PoliciesDhcpDns**](PoliciesDhcpDns.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dns_object_remove** +> udm_policies_dhcp_dns_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP DNS policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP DNS policies object + api_instance.udm_policies_dhcp_dns_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsApi->udm_policies_dhcp_dns_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dns_object_search** +> PoliciesDhcpDnsList udm_policies_dhcp_dns_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP DNS policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP DNS policies objects + api_response = api_instance.udm_policies_dhcp_dns_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsApi->udm_policies_dhcp_dns_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpDnsList**](PoliciesDhcpDnsList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dns_object_template** +> PoliciesDhcpDns udm_policies_dhcp_dns_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP DNS policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP DNS policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_dhcp_dns_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsApi->udm_policies_dhcp_dns_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpDns**](PoliciesDhcpDns.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP DNS policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dns_object_update** +> udm_policies_dhcp_dns_object_update(dn, policies_dhcp_dns, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP DNS policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_dns = openapi_client_udm.PoliciesDhcpDns() # PoliciesDhcpDns | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP DNS policy object (moving is currently not possible) + api_instance.udm_policies_dhcp_dns_object_update(dn, policies_dhcp_dns, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsApi->udm_policies_dhcp_dns_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_dns** | [**PoliciesDhcpDns**](PoliciesDhcpDns.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDhcpDnsList.md b/docs/PoliciesDhcpDnsList.md new file mode 100644 index 0000000..ead79ba --- /dev/null +++ b/docs/PoliciesDhcpDnsList.md @@ -0,0 +1,11 @@ +# PoliciesDhcpDnsList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDhcpDnsListEmbedded**](PoliciesDhcpDnsListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsListEmbedded.md b/docs/PoliciesDhcpDnsListEmbedded.md new file mode 100644 index 0000000..042d0ed --- /dev/null +++ b/docs/PoliciesDhcpDnsListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDhcpDnsListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDhcpDns]**](PoliciesDhcpDns.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsRequest.md b/docs/PoliciesDhcpDnsRequest.md new file mode 100644 index 0000000..13a7d63 --- /dev/null +++ b/docs/PoliciesDhcpDnsRequest.md @@ -0,0 +1,15 @@ +# PoliciesDhcpDnsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsRequestPatch.md b/docs/PoliciesDhcpDnsRequestPatch.md new file mode 100644 index 0000000..9a1b1d4 --- /dev/null +++ b/docs/PoliciesDhcpDnsRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDhcpDnsRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsResponseMixin.md b/docs/PoliciesDhcpDnsResponseMixin.md new file mode 100644 index 0000000..7e328a1 --- /dev/null +++ b/docs/PoliciesDhcpDnsResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDhcpDnsResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsupdate.md b/docs/PoliciesDhcpDnsupdate.md new file mode 100644 index 0000000..d3d5115 --- /dev/null +++ b/docs/PoliciesDhcpDnsupdate.md @@ -0,0 +1,20 @@ +# PoliciesDhcpDnsupdate + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsupdateApi.md b/docs/PoliciesDhcpDnsupdateApi.md new file mode 100644 index 0000000..9e2f2cb --- /dev/null +++ b/docs/PoliciesDhcpDnsupdateApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDhcpDnsupdateApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_dhcp_dnsupdate_object**](PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object) | **GET** /policies/dhcp_dnsupdate/{dn} | Get a representation of the DHCP Dynamic DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_dhcp_dnsupdate_object_create**](PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_create) | **POST** /policies/dhcp_dnsupdate/ | Create a new DHCP Dynamic DNS policy object +[**udm_policies_dhcp_dnsupdate_object_modify**](PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_modify) | **PUT** /policies/dhcp_dnsupdate/{dn} | Modify or move an DHCP Dynamic DNS policy object +[**udm_policies_dhcp_dnsupdate_object_remove**](PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_remove) | **DELETE** /policies/dhcp_dnsupdate/{dn} | Remove a DHCP Dynamic DNS policies object +[**udm_policies_dhcp_dnsupdate_object_search**](PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_search) | **GET** /policies/dhcp_dnsupdate/ | Search for DHCP Dynamic DNS policies objects +[**udm_policies_dhcp_dnsupdate_object_template**](PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_template) | **GET** /policies/dhcp_dnsupdate/add | Get a template for creating an DHCP Dynamic DNS policy object (contains all properties and their default values) +[**udm_policies_dhcp_dnsupdate_object_update**](PoliciesDhcpDnsupdateApi.md#udm_policies_dhcp_dnsupdate_object_update) | **PATCH** /policies/dhcp_dnsupdate/{dn} | Modify an DHCP Dynamic DNS policy object (moving is currently not possible) + + +# **udm_policies_dhcp_dnsupdate_object** +> PoliciesDhcpDnsupdate udm_policies_dhcp_dnsupdate_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP Dynamic DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsupdateApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP Dynamic DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_dhcp_dnsupdate_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsupdateApi->udm_policies_dhcp_dnsupdate_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpDnsupdate**](PoliciesDhcpDnsupdate.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dnsupdate_object_create** +> InlineResponse201 udm_policies_dhcp_dnsupdate_object_create(policies_dhcp_dnsupdate, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP Dynamic DNS policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsupdateApi(api_client) + policies_dhcp_dnsupdate = openapi_client_udm.PoliciesDhcpDnsupdate() # PoliciesDhcpDnsupdate | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP Dynamic DNS policy object + api_response = api_instance.udm_policies_dhcp_dnsupdate_object_create(policies_dhcp_dnsupdate, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsupdateApi->udm_policies_dhcp_dnsupdate_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_dhcp_dnsupdate** | [**PoliciesDhcpDnsupdate**](PoliciesDhcpDnsupdate.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_dhcp_dnsupdate_object_modify** +> InlineResponse201 udm_policies_dhcp_dnsupdate_object_modify(dn, policies_dhcp_dnsupdate, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP Dynamic DNS policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsupdateApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_dnsupdate = openapi_client_udm.PoliciesDhcpDnsupdate() # PoliciesDhcpDnsupdate | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP Dynamic DNS policy object + api_response = api_instance.udm_policies_dhcp_dnsupdate_object_modify(dn, policies_dhcp_dnsupdate, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsupdateApi->udm_policies_dhcp_dnsupdate_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_dnsupdate** | [**PoliciesDhcpDnsupdate**](PoliciesDhcpDnsupdate.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dnsupdate_object_remove** +> udm_policies_dhcp_dnsupdate_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP Dynamic DNS policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsupdateApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP Dynamic DNS policies object + api_instance.udm_policies_dhcp_dnsupdate_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsupdateApi->udm_policies_dhcp_dnsupdate_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dnsupdate_object_search** +> PoliciesDhcpDnsupdateList udm_policies_dhcp_dnsupdate_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP Dynamic DNS policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsupdateApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP Dynamic DNS policies objects + api_response = api_instance.udm_policies_dhcp_dnsupdate_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsupdateApi->udm_policies_dhcp_dnsupdate_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpDnsupdateList**](PoliciesDhcpDnsupdateList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dnsupdate_object_template** +> PoliciesDhcpDnsupdate udm_policies_dhcp_dnsupdate_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP Dynamic DNS policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsupdateApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP Dynamic DNS policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_dhcp_dnsupdate_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsupdateApi->udm_policies_dhcp_dnsupdate_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpDnsupdate**](PoliciesDhcpDnsupdate.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP Dynamic DNS policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_dnsupdate_object_update** +> udm_policies_dhcp_dnsupdate_object_update(dn, policies_dhcp_dnsupdate, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP Dynamic DNS policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpDnsupdateApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_dnsupdate = openapi_client_udm.PoliciesDhcpDnsupdate() # PoliciesDhcpDnsupdate | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP Dynamic DNS policy object (moving is currently not possible) + api_instance.udm_policies_dhcp_dnsupdate_object_update(dn, policies_dhcp_dnsupdate, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpDnsupdateApi->udm_policies_dhcp_dnsupdate_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_dnsupdate** | [**PoliciesDhcpDnsupdate**](PoliciesDhcpDnsupdate.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDhcpDnsupdateList.md b/docs/PoliciesDhcpDnsupdateList.md new file mode 100644 index 0000000..18244b6 --- /dev/null +++ b/docs/PoliciesDhcpDnsupdateList.md @@ -0,0 +1,11 @@ +# PoliciesDhcpDnsupdateList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDhcpDnsupdateListEmbedded**](PoliciesDhcpDnsupdateListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsupdateListEmbedded.md b/docs/PoliciesDhcpDnsupdateListEmbedded.md new file mode 100644 index 0000000..5762404 --- /dev/null +++ b/docs/PoliciesDhcpDnsupdateListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDhcpDnsupdateListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDhcpDnsupdate]**](PoliciesDhcpDnsupdate.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsupdateRequest.md b/docs/PoliciesDhcpDnsupdateRequest.md new file mode 100644 index 0000000..c8a4a3a --- /dev/null +++ b/docs/PoliciesDhcpDnsupdateRequest.md @@ -0,0 +1,15 @@ +# PoliciesDhcpDnsupdateRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsupdateRequestPatch.md b/docs/PoliciesDhcpDnsupdateRequestPatch.md new file mode 100644 index 0000000..688cc84 --- /dev/null +++ b/docs/PoliciesDhcpDnsupdateRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDhcpDnsupdateRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpDnsupdateResponseMixin.md b/docs/PoliciesDhcpDnsupdateResponseMixin.md new file mode 100644 index 0000000..52d352a --- /dev/null +++ b/docs/PoliciesDhcpDnsupdateResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDhcpDnsupdateResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpLeasetime.md b/docs/PoliciesDhcpLeasetime.md new file mode 100644 index 0000000..f5e48e7 --- /dev/null +++ b/docs/PoliciesDhcpLeasetime.md @@ -0,0 +1,20 @@ +# PoliciesDhcpLeasetime + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpLeasetimeApi.md b/docs/PoliciesDhcpLeasetimeApi.md new file mode 100644 index 0000000..89a928a --- /dev/null +++ b/docs/PoliciesDhcpLeasetimeApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDhcpLeasetimeApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_dhcp_leasetime_object**](PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object) | **GET** /policies/dhcp_leasetime/{dn} | Get a representation of the DHCP lease time policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_dhcp_leasetime_object_create**](PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_create) | **POST** /policies/dhcp_leasetime/ | Create a new DHCP lease time policy object +[**udm_policies_dhcp_leasetime_object_modify**](PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_modify) | **PUT** /policies/dhcp_leasetime/{dn} | Modify or move an DHCP lease time policy object +[**udm_policies_dhcp_leasetime_object_remove**](PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_remove) | **DELETE** /policies/dhcp_leasetime/{dn} | Remove a DHCP lease time policies object +[**udm_policies_dhcp_leasetime_object_search**](PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_search) | **GET** /policies/dhcp_leasetime/ | Search for DHCP lease time policies objects +[**udm_policies_dhcp_leasetime_object_template**](PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_template) | **GET** /policies/dhcp_leasetime/add | Get a template for creating an DHCP lease time policy object (contains all properties and their default values) +[**udm_policies_dhcp_leasetime_object_update**](PoliciesDhcpLeasetimeApi.md#udm_policies_dhcp_leasetime_object_update) | **PATCH** /policies/dhcp_leasetime/{dn} | Modify an DHCP lease time policy object (moving is currently not possible) + + +# **udm_policies_dhcp_leasetime_object** +> PoliciesDhcpLeasetime udm_policies_dhcp_leasetime_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP lease time policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpLeasetimeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP lease time policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_dhcp_leasetime_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpLeasetimeApi->udm_policies_dhcp_leasetime_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpLeasetime**](PoliciesDhcpLeasetime.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_leasetime_object_create** +> InlineResponse201 udm_policies_dhcp_leasetime_object_create(policies_dhcp_leasetime, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP lease time policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpLeasetimeApi(api_client) + policies_dhcp_leasetime = openapi_client_udm.PoliciesDhcpLeasetime() # PoliciesDhcpLeasetime | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP lease time policy object + api_response = api_instance.udm_policies_dhcp_leasetime_object_create(policies_dhcp_leasetime, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpLeasetimeApi->udm_policies_dhcp_leasetime_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_dhcp_leasetime** | [**PoliciesDhcpLeasetime**](PoliciesDhcpLeasetime.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_dhcp_leasetime_object_modify** +> InlineResponse201 udm_policies_dhcp_leasetime_object_modify(dn, policies_dhcp_leasetime, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP lease time policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpLeasetimeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_leasetime = openapi_client_udm.PoliciesDhcpLeasetime() # PoliciesDhcpLeasetime | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP lease time policy object + api_response = api_instance.udm_policies_dhcp_leasetime_object_modify(dn, policies_dhcp_leasetime, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpLeasetimeApi->udm_policies_dhcp_leasetime_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_leasetime** | [**PoliciesDhcpLeasetime**](PoliciesDhcpLeasetime.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_leasetime_object_remove** +> udm_policies_dhcp_leasetime_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP lease time policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpLeasetimeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP lease time policies object + api_instance.udm_policies_dhcp_leasetime_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpLeasetimeApi->udm_policies_dhcp_leasetime_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_leasetime_object_search** +> PoliciesDhcpLeasetimeList udm_policies_dhcp_leasetime_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP lease time policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpLeasetimeApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP lease time policies objects + api_response = api_instance.udm_policies_dhcp_leasetime_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpLeasetimeApi->udm_policies_dhcp_leasetime_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpLeasetimeList**](PoliciesDhcpLeasetimeList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_leasetime_object_template** +> PoliciesDhcpLeasetime udm_policies_dhcp_leasetime_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP lease time policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpLeasetimeApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP lease time policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_dhcp_leasetime_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpLeasetimeApi->udm_policies_dhcp_leasetime_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpLeasetime**](PoliciesDhcpLeasetime.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP lease time policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_leasetime_object_update** +> udm_policies_dhcp_leasetime_object_update(dn, policies_dhcp_leasetime, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP lease time policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpLeasetimeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_leasetime = openapi_client_udm.PoliciesDhcpLeasetime() # PoliciesDhcpLeasetime | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP lease time policy object (moving is currently not possible) + api_instance.udm_policies_dhcp_leasetime_object_update(dn, policies_dhcp_leasetime, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpLeasetimeApi->udm_policies_dhcp_leasetime_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_leasetime** | [**PoliciesDhcpLeasetime**](PoliciesDhcpLeasetime.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDhcpLeasetimeList.md b/docs/PoliciesDhcpLeasetimeList.md new file mode 100644 index 0000000..4bafcc3 --- /dev/null +++ b/docs/PoliciesDhcpLeasetimeList.md @@ -0,0 +1,11 @@ +# PoliciesDhcpLeasetimeList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDhcpLeasetimeListEmbedded**](PoliciesDhcpLeasetimeListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpLeasetimeListEmbedded.md b/docs/PoliciesDhcpLeasetimeListEmbedded.md new file mode 100644 index 0000000..543fe7a --- /dev/null +++ b/docs/PoliciesDhcpLeasetimeListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDhcpLeasetimeListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDhcpLeasetime]**](PoliciesDhcpLeasetime.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpLeasetimeRequest.md b/docs/PoliciesDhcpLeasetimeRequest.md new file mode 100644 index 0000000..6049f4b --- /dev/null +++ b/docs/PoliciesDhcpLeasetimeRequest.md @@ -0,0 +1,15 @@ +# PoliciesDhcpLeasetimeRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpLeasetimeRequestPatch.md b/docs/PoliciesDhcpLeasetimeRequestPatch.md new file mode 100644 index 0000000..7ccb255 --- /dev/null +++ b/docs/PoliciesDhcpLeasetimeRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDhcpLeasetimeRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpLeasetimeResponseMixin.md b/docs/PoliciesDhcpLeasetimeResponseMixin.md new file mode 100644 index 0000000..0ff4ea6 --- /dev/null +++ b/docs/PoliciesDhcpLeasetimeResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDhcpLeasetimeResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpNetbios.md b/docs/PoliciesDhcpNetbios.md new file mode 100644 index 0000000..b204c7f --- /dev/null +++ b/docs/PoliciesDhcpNetbios.md @@ -0,0 +1,20 @@ +# PoliciesDhcpNetbios + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpNetbiosApi.md b/docs/PoliciesDhcpNetbiosApi.md new file mode 100644 index 0000000..597e052 --- /dev/null +++ b/docs/PoliciesDhcpNetbiosApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDhcpNetbiosApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_dhcp_netbios_object**](PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object) | **GET** /policies/dhcp_netbios/{dn} | Get a representation of the DHCP NetBIOS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_dhcp_netbios_object_create**](PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_create) | **POST** /policies/dhcp_netbios/ | Create a new DHCP NetBIOS policy object +[**udm_policies_dhcp_netbios_object_modify**](PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_modify) | **PUT** /policies/dhcp_netbios/{dn} | Modify or move an DHCP NetBIOS policy object +[**udm_policies_dhcp_netbios_object_remove**](PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_remove) | **DELETE** /policies/dhcp_netbios/{dn} | Remove a DHCP NetBIOS policies object +[**udm_policies_dhcp_netbios_object_search**](PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_search) | **GET** /policies/dhcp_netbios/ | Search for DHCP NetBIOS policies objects +[**udm_policies_dhcp_netbios_object_template**](PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_template) | **GET** /policies/dhcp_netbios/add | Get a template for creating an DHCP NetBIOS policy object (contains all properties and their default values) +[**udm_policies_dhcp_netbios_object_update**](PoliciesDhcpNetbiosApi.md#udm_policies_dhcp_netbios_object_update) | **PATCH** /policies/dhcp_netbios/{dn} | Modify an DHCP NetBIOS policy object (moving is currently not possible) + + +# **udm_policies_dhcp_netbios_object** +> PoliciesDhcpNetbios udm_policies_dhcp_netbios_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP NetBIOS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpNetbiosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP NetBIOS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_dhcp_netbios_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpNetbiosApi->udm_policies_dhcp_netbios_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpNetbios**](PoliciesDhcpNetbios.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_netbios_object_create** +> InlineResponse201 udm_policies_dhcp_netbios_object_create(policies_dhcp_netbios, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP NetBIOS policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpNetbiosApi(api_client) + policies_dhcp_netbios = openapi_client_udm.PoliciesDhcpNetbios() # PoliciesDhcpNetbios | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP NetBIOS policy object + api_response = api_instance.udm_policies_dhcp_netbios_object_create(policies_dhcp_netbios, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpNetbiosApi->udm_policies_dhcp_netbios_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_dhcp_netbios** | [**PoliciesDhcpNetbios**](PoliciesDhcpNetbios.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_dhcp_netbios_object_modify** +> InlineResponse201 udm_policies_dhcp_netbios_object_modify(dn, policies_dhcp_netbios, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP NetBIOS policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpNetbiosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_netbios = openapi_client_udm.PoliciesDhcpNetbios() # PoliciesDhcpNetbios | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP NetBIOS policy object + api_response = api_instance.udm_policies_dhcp_netbios_object_modify(dn, policies_dhcp_netbios, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpNetbiosApi->udm_policies_dhcp_netbios_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_netbios** | [**PoliciesDhcpNetbios**](PoliciesDhcpNetbios.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_netbios_object_remove** +> udm_policies_dhcp_netbios_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP NetBIOS policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpNetbiosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP NetBIOS policies object + api_instance.udm_policies_dhcp_netbios_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpNetbiosApi->udm_policies_dhcp_netbios_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_netbios_object_search** +> PoliciesDhcpNetbiosList udm_policies_dhcp_netbios_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP NetBIOS policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpNetbiosApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP NetBIOS policies objects + api_response = api_instance.udm_policies_dhcp_netbios_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpNetbiosApi->udm_policies_dhcp_netbios_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpNetbiosList**](PoliciesDhcpNetbiosList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_netbios_object_template** +> PoliciesDhcpNetbios udm_policies_dhcp_netbios_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP NetBIOS policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpNetbiosApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP NetBIOS policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_dhcp_netbios_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpNetbiosApi->udm_policies_dhcp_netbios_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpNetbios**](PoliciesDhcpNetbios.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP NetBIOS policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_netbios_object_update** +> udm_policies_dhcp_netbios_object_update(dn, policies_dhcp_netbios, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP NetBIOS policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpNetbiosApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_netbios = openapi_client_udm.PoliciesDhcpNetbios() # PoliciesDhcpNetbios | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP NetBIOS policy object (moving is currently not possible) + api_instance.udm_policies_dhcp_netbios_object_update(dn, policies_dhcp_netbios, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpNetbiosApi->udm_policies_dhcp_netbios_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_netbios** | [**PoliciesDhcpNetbios**](PoliciesDhcpNetbios.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDhcpNetbiosList.md b/docs/PoliciesDhcpNetbiosList.md new file mode 100644 index 0000000..e1f310f --- /dev/null +++ b/docs/PoliciesDhcpNetbiosList.md @@ -0,0 +1,11 @@ +# PoliciesDhcpNetbiosList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDhcpNetbiosListEmbedded**](PoliciesDhcpNetbiosListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpNetbiosListEmbedded.md b/docs/PoliciesDhcpNetbiosListEmbedded.md new file mode 100644 index 0000000..3c82bb2 --- /dev/null +++ b/docs/PoliciesDhcpNetbiosListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDhcpNetbiosListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDhcpNetbios]**](PoliciesDhcpNetbios.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpNetbiosRequest.md b/docs/PoliciesDhcpNetbiosRequest.md new file mode 100644 index 0000000..2cfdc2f --- /dev/null +++ b/docs/PoliciesDhcpNetbiosRequest.md @@ -0,0 +1,15 @@ +# PoliciesDhcpNetbiosRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpNetbiosRequestPatch.md b/docs/PoliciesDhcpNetbiosRequestPatch.md new file mode 100644 index 0000000..f2c57b5 --- /dev/null +++ b/docs/PoliciesDhcpNetbiosRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDhcpNetbiosRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpNetbiosResponseMixin.md b/docs/PoliciesDhcpNetbiosResponseMixin.md new file mode 100644 index 0000000..8a9481c --- /dev/null +++ b/docs/PoliciesDhcpNetbiosResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDhcpNetbiosResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpRouting.md b/docs/PoliciesDhcpRouting.md new file mode 100644 index 0000000..f6175d8 --- /dev/null +++ b/docs/PoliciesDhcpRouting.md @@ -0,0 +1,20 @@ +# PoliciesDhcpRouting + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpRoutingApi.md b/docs/PoliciesDhcpRoutingApi.md new file mode 100644 index 0000000..3483918 --- /dev/null +++ b/docs/PoliciesDhcpRoutingApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDhcpRoutingApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_dhcp_routing_object**](PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object) | **GET** /policies/dhcp_routing/{dn} | Get a representation of the DHCP routing policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_dhcp_routing_object_create**](PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_create) | **POST** /policies/dhcp_routing/ | Create a new DHCP routing policy object +[**udm_policies_dhcp_routing_object_modify**](PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_modify) | **PUT** /policies/dhcp_routing/{dn} | Modify or move an DHCP routing policy object +[**udm_policies_dhcp_routing_object_remove**](PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_remove) | **DELETE** /policies/dhcp_routing/{dn} | Remove a DHCP routing policies object +[**udm_policies_dhcp_routing_object_search**](PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_search) | **GET** /policies/dhcp_routing/ | Search for DHCP routing policies objects +[**udm_policies_dhcp_routing_object_template**](PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_template) | **GET** /policies/dhcp_routing/add | Get a template for creating an DHCP routing policy object (contains all properties and their default values) +[**udm_policies_dhcp_routing_object_update**](PoliciesDhcpRoutingApi.md#udm_policies_dhcp_routing_object_update) | **PATCH** /policies/dhcp_routing/{dn} | Modify an DHCP routing policy object (moving is currently not possible) + + +# **udm_policies_dhcp_routing_object** +> PoliciesDhcpRouting udm_policies_dhcp_routing_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP routing policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpRoutingApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP routing policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_dhcp_routing_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpRoutingApi->udm_policies_dhcp_routing_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpRouting**](PoliciesDhcpRouting.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_routing_object_create** +> InlineResponse201 udm_policies_dhcp_routing_object_create(policies_dhcp_routing, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP routing policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpRoutingApi(api_client) + policies_dhcp_routing = openapi_client_udm.PoliciesDhcpRouting() # PoliciesDhcpRouting | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP routing policy object + api_response = api_instance.udm_policies_dhcp_routing_object_create(policies_dhcp_routing, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpRoutingApi->udm_policies_dhcp_routing_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_dhcp_routing** | [**PoliciesDhcpRouting**](PoliciesDhcpRouting.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_dhcp_routing_object_modify** +> InlineResponse201 udm_policies_dhcp_routing_object_modify(dn, policies_dhcp_routing, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP routing policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpRoutingApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_routing = openapi_client_udm.PoliciesDhcpRouting() # PoliciesDhcpRouting | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP routing policy object + api_response = api_instance.udm_policies_dhcp_routing_object_modify(dn, policies_dhcp_routing, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpRoutingApi->udm_policies_dhcp_routing_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_routing** | [**PoliciesDhcpRouting**](PoliciesDhcpRouting.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_routing_object_remove** +> udm_policies_dhcp_routing_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP routing policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpRoutingApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP routing policies object + api_instance.udm_policies_dhcp_routing_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpRoutingApi->udm_policies_dhcp_routing_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_routing_object_search** +> PoliciesDhcpRoutingList udm_policies_dhcp_routing_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP routing policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpRoutingApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP routing policies objects + api_response = api_instance.udm_policies_dhcp_routing_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpRoutingApi->udm_policies_dhcp_routing_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpRoutingList**](PoliciesDhcpRoutingList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_routing_object_template** +> PoliciesDhcpRouting udm_policies_dhcp_routing_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP routing policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpRoutingApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP routing policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_dhcp_routing_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpRoutingApi->udm_policies_dhcp_routing_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpRouting**](PoliciesDhcpRouting.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP routing policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_routing_object_update** +> udm_policies_dhcp_routing_object_update(dn, policies_dhcp_routing, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP routing policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpRoutingApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_routing = openapi_client_udm.PoliciesDhcpRouting() # PoliciesDhcpRouting | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP routing policy object (moving is currently not possible) + api_instance.udm_policies_dhcp_routing_object_update(dn, policies_dhcp_routing, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpRoutingApi->udm_policies_dhcp_routing_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_routing** | [**PoliciesDhcpRouting**](PoliciesDhcpRouting.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDhcpRoutingList.md b/docs/PoliciesDhcpRoutingList.md new file mode 100644 index 0000000..8c7eedc --- /dev/null +++ b/docs/PoliciesDhcpRoutingList.md @@ -0,0 +1,11 @@ +# PoliciesDhcpRoutingList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDhcpRoutingListEmbedded**](PoliciesDhcpRoutingListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpRoutingListEmbedded.md b/docs/PoliciesDhcpRoutingListEmbedded.md new file mode 100644 index 0000000..d73ebb1 --- /dev/null +++ b/docs/PoliciesDhcpRoutingListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDhcpRoutingListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDhcpRouting]**](PoliciesDhcpRouting.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpRoutingRequest.md b/docs/PoliciesDhcpRoutingRequest.md new file mode 100644 index 0000000..eab2197 --- /dev/null +++ b/docs/PoliciesDhcpRoutingRequest.md @@ -0,0 +1,15 @@ +# PoliciesDhcpRoutingRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpRoutingRequestPatch.md b/docs/PoliciesDhcpRoutingRequestPatch.md new file mode 100644 index 0000000..27c081f --- /dev/null +++ b/docs/PoliciesDhcpRoutingRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDhcpRoutingRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpRoutingResponseMixin.md b/docs/PoliciesDhcpRoutingResponseMixin.md new file mode 100644 index 0000000..b5855f4 --- /dev/null +++ b/docs/PoliciesDhcpRoutingResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDhcpRoutingResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpScope.md b/docs/PoliciesDhcpScope.md new file mode 100644 index 0000000..6bd3b20 --- /dev/null +++ b/docs/PoliciesDhcpScope.md @@ -0,0 +1,20 @@ +# PoliciesDhcpScope + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpScopeApi.md b/docs/PoliciesDhcpScopeApi.md new file mode 100644 index 0000000..dcdcfe5 --- /dev/null +++ b/docs/PoliciesDhcpScopeApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDhcpScopeApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_dhcp_scope_object**](PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object) | **GET** /policies/dhcp_scope/{dn} | Get a representation of the DHCP Allow/Deny policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_dhcp_scope_object_create**](PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_create) | **POST** /policies/dhcp_scope/ | Create a new DHCP Allow/Deny policy object +[**udm_policies_dhcp_scope_object_modify**](PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_modify) | **PUT** /policies/dhcp_scope/{dn} | Modify or move an DHCP Allow/Deny policy object +[**udm_policies_dhcp_scope_object_remove**](PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_remove) | **DELETE** /policies/dhcp_scope/{dn} | Remove a DHCP Allow/Deny policies object +[**udm_policies_dhcp_scope_object_search**](PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_search) | **GET** /policies/dhcp_scope/ | Search for DHCP Allow/Deny policies objects +[**udm_policies_dhcp_scope_object_template**](PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_template) | **GET** /policies/dhcp_scope/add | Get a template for creating an DHCP Allow/Deny policy object (contains all properties and their default values) +[**udm_policies_dhcp_scope_object_update**](PoliciesDhcpScopeApi.md#udm_policies_dhcp_scope_object_update) | **PATCH** /policies/dhcp_scope/{dn} | Modify an DHCP Allow/Deny policy object (moving is currently not possible) + + +# **udm_policies_dhcp_scope_object** +> PoliciesDhcpScope udm_policies_dhcp_scope_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP Allow/Deny policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpScopeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP Allow/Deny policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_dhcp_scope_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpScopeApi->udm_policies_dhcp_scope_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpScope**](PoliciesDhcpScope.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_scope_object_create** +> InlineResponse201 udm_policies_dhcp_scope_object_create(policies_dhcp_scope, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP Allow/Deny policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpScopeApi(api_client) + policies_dhcp_scope = openapi_client_udm.PoliciesDhcpScope() # PoliciesDhcpScope | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP Allow/Deny policy object + api_response = api_instance.udm_policies_dhcp_scope_object_create(policies_dhcp_scope, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpScopeApi->udm_policies_dhcp_scope_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_dhcp_scope** | [**PoliciesDhcpScope**](PoliciesDhcpScope.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_dhcp_scope_object_modify** +> InlineResponse201 udm_policies_dhcp_scope_object_modify(dn, policies_dhcp_scope, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP Allow/Deny policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpScopeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_scope = openapi_client_udm.PoliciesDhcpScope() # PoliciesDhcpScope | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP Allow/Deny policy object + api_response = api_instance.udm_policies_dhcp_scope_object_modify(dn, policies_dhcp_scope, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpScopeApi->udm_policies_dhcp_scope_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_scope** | [**PoliciesDhcpScope**](PoliciesDhcpScope.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_scope_object_remove** +> udm_policies_dhcp_scope_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP Allow/Deny policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpScopeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP Allow/Deny policies object + api_instance.udm_policies_dhcp_scope_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpScopeApi->udm_policies_dhcp_scope_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_scope_object_search** +> PoliciesDhcpScopeList udm_policies_dhcp_scope_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP Allow/Deny policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpScopeApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP Allow/Deny policies objects + api_response = api_instance.udm_policies_dhcp_scope_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpScopeApi->udm_policies_dhcp_scope_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpScopeList**](PoliciesDhcpScopeList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_scope_object_template** +> PoliciesDhcpScope udm_policies_dhcp_scope_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP Allow/Deny policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpScopeApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP Allow/Deny policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_dhcp_scope_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpScopeApi->udm_policies_dhcp_scope_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpScope**](PoliciesDhcpScope.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP Allow/Deny policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_scope_object_update** +> udm_policies_dhcp_scope_object_update(dn, policies_dhcp_scope, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP Allow/Deny policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpScopeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_scope = openapi_client_udm.PoliciesDhcpScope() # PoliciesDhcpScope | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP Allow/Deny policy object (moving is currently not possible) + api_instance.udm_policies_dhcp_scope_object_update(dn, policies_dhcp_scope, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpScopeApi->udm_policies_dhcp_scope_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_scope** | [**PoliciesDhcpScope**](PoliciesDhcpScope.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDhcpScopeList.md b/docs/PoliciesDhcpScopeList.md new file mode 100644 index 0000000..b0d7d2c --- /dev/null +++ b/docs/PoliciesDhcpScopeList.md @@ -0,0 +1,11 @@ +# PoliciesDhcpScopeList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDhcpScopeListEmbedded**](PoliciesDhcpScopeListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpScopeListEmbedded.md b/docs/PoliciesDhcpScopeListEmbedded.md new file mode 100644 index 0000000..3475748 --- /dev/null +++ b/docs/PoliciesDhcpScopeListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDhcpScopeListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDhcpScope]**](PoliciesDhcpScope.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpScopeRequest.md b/docs/PoliciesDhcpScopeRequest.md new file mode 100644 index 0000000..7421c48 --- /dev/null +++ b/docs/PoliciesDhcpScopeRequest.md @@ -0,0 +1,15 @@ +# PoliciesDhcpScopeRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpScopeRequestPatch.md b/docs/PoliciesDhcpScopeRequestPatch.md new file mode 100644 index 0000000..c3f2dd9 --- /dev/null +++ b/docs/PoliciesDhcpScopeRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDhcpScopeRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpScopeResponseMixin.md b/docs/PoliciesDhcpScopeResponseMixin.md new file mode 100644 index 0000000..adb6324 --- /dev/null +++ b/docs/PoliciesDhcpScopeResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDhcpScopeResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpStatements.md b/docs/PoliciesDhcpStatements.md new file mode 100644 index 0000000..a849909 --- /dev/null +++ b/docs/PoliciesDhcpStatements.md @@ -0,0 +1,20 @@ +# PoliciesDhcpStatements + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpStatementsApi.md b/docs/PoliciesDhcpStatementsApi.md new file mode 100644 index 0000000..c21311c --- /dev/null +++ b/docs/PoliciesDhcpStatementsApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesDhcpStatementsApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_dhcp_statements_object**](PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object) | **GET** /policies/dhcp_statements/{dn} | Get a representation of the DHCP statements policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_dhcp_statements_object_create**](PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_create) | **POST** /policies/dhcp_statements/ | Create a new DHCP statements policy object +[**udm_policies_dhcp_statements_object_modify**](PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_modify) | **PUT** /policies/dhcp_statements/{dn} | Modify or move an DHCP statements policy object +[**udm_policies_dhcp_statements_object_remove**](PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_remove) | **DELETE** /policies/dhcp_statements/{dn} | Remove a DHCP statements policies object +[**udm_policies_dhcp_statements_object_search**](PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_search) | **GET** /policies/dhcp_statements/ | Search for DHCP statements policies objects +[**udm_policies_dhcp_statements_object_template**](PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_template) | **GET** /policies/dhcp_statements/add | Get a template for creating an DHCP statements policy object (contains all properties and their default values) +[**udm_policies_dhcp_statements_object_update**](PoliciesDhcpStatementsApi.md#udm_policies_dhcp_statements_object_update) | **PATCH** /policies/dhcp_statements/{dn} | Modify an DHCP statements policy object (moving is currently not possible) + + +# **udm_policies_dhcp_statements_object** +> PoliciesDhcpStatements udm_policies_dhcp_statements_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the DHCP statements policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpStatementsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the DHCP statements policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_dhcp_statements_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpStatementsApi->udm_policies_dhcp_statements_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpStatements**](PoliciesDhcpStatements.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_statements_object_create** +> InlineResponse201 udm_policies_dhcp_statements_object_create(policies_dhcp_statements, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new DHCP statements policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpStatementsApi(api_client) + policies_dhcp_statements = openapi_client_udm.PoliciesDhcpStatements() # PoliciesDhcpStatements | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new DHCP statements policy object + api_response = api_instance.udm_policies_dhcp_statements_object_create(policies_dhcp_statements, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpStatementsApi->udm_policies_dhcp_statements_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_dhcp_statements** | [**PoliciesDhcpStatements**](PoliciesDhcpStatements.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_dhcp_statements_object_modify** +> InlineResponse201 udm_policies_dhcp_statements_object_modify(dn, policies_dhcp_statements, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an DHCP statements policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpStatementsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_statements = openapi_client_udm.PoliciesDhcpStatements() # PoliciesDhcpStatements | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an DHCP statements policy object + api_response = api_instance.udm_policies_dhcp_statements_object_modify(dn, policies_dhcp_statements, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpStatementsApi->udm_policies_dhcp_statements_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_statements** | [**PoliciesDhcpStatements**](PoliciesDhcpStatements.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_statements_object_remove** +> udm_policies_dhcp_statements_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a DHCP statements policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpStatementsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a DHCP statements policies object + api_instance.udm_policies_dhcp_statements_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpStatementsApi->udm_policies_dhcp_statements_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_statements_object_search** +> PoliciesDhcpStatementsList udm_policies_dhcp_statements_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for DHCP statements policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpStatementsApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for DHCP statements policies objects + api_response = api_instance.udm_policies_dhcp_statements_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpStatementsApi->udm_policies_dhcp_statements_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpStatementsList**](PoliciesDhcpStatementsList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_statements_object_template** +> PoliciesDhcpStatements udm_policies_dhcp_statements_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an DHCP statements policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpStatementsApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an DHCP statements policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_dhcp_statements_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesDhcpStatementsApi->udm_policies_dhcp_statements_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesDhcpStatements**](PoliciesDhcpStatements.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new DHCP statements policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_dhcp_statements_object_update** +> udm_policies_dhcp_statements_object_update(dn, policies_dhcp_statements, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an DHCP statements policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesDhcpStatementsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_dhcp_statements = openapi_client_udm.PoliciesDhcpStatements() # PoliciesDhcpStatements | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an DHCP statements policy object (moving is currently not possible) + api_instance.udm_policies_dhcp_statements_object_update(dn, policies_dhcp_statements, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesDhcpStatementsApi->udm_policies_dhcp_statements_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_dhcp_statements** | [**PoliciesDhcpStatements**](PoliciesDhcpStatements.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesDhcpStatementsList.md b/docs/PoliciesDhcpStatementsList.md new file mode 100644 index 0000000..98a5067 --- /dev/null +++ b/docs/PoliciesDhcpStatementsList.md @@ -0,0 +1,11 @@ +# PoliciesDhcpStatementsList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesDhcpStatementsListEmbedded**](PoliciesDhcpStatementsListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpStatementsListEmbedded.md b/docs/PoliciesDhcpStatementsListEmbedded.md new file mode 100644 index 0000000..81ba6c2 --- /dev/null +++ b/docs/PoliciesDhcpStatementsListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesDhcpStatementsListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesDhcpStatements]**](PoliciesDhcpStatements.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpStatementsRequest.md b/docs/PoliciesDhcpStatementsRequest.md new file mode 100644 index 0000000..cfd15fc --- /dev/null +++ b/docs/PoliciesDhcpStatementsRequest.md @@ -0,0 +1,15 @@ +# PoliciesDhcpStatementsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpStatementsRequestPatch.md b/docs/PoliciesDhcpStatementsRequestPatch.md new file mode 100644 index 0000000..b4aa9ba --- /dev/null +++ b/docs/PoliciesDhcpStatementsRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesDhcpStatementsRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesDhcpStatementsResponseMixin.md b/docs/PoliciesDhcpStatementsResponseMixin.md new file mode 100644 index 0000000..935ed3e --- /dev/null +++ b/docs/PoliciesDhcpStatementsResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesDhcpStatementsResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesLdapserver.md b/docs/PoliciesLdapserver.md new file mode 100644 index 0000000..0138fb5 --- /dev/null +++ b/docs/PoliciesLdapserver.md @@ -0,0 +1,20 @@ +# PoliciesLdapserver + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesLdapserverApi.md b/docs/PoliciesLdapserverApi.md new file mode 100644 index 0000000..8646d0a --- /dev/null +++ b/docs/PoliciesLdapserverApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesLdapserverApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_ldapserver_object**](PoliciesLdapserverApi.md#udm_policies_ldapserver_object) | **GET** /policies/ldapserver/{dn} | Get a representation of the LDAP server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_ldapserver_object_create**](PoliciesLdapserverApi.md#udm_policies_ldapserver_object_create) | **POST** /policies/ldapserver/ | Create a new LDAP server policy object +[**udm_policies_ldapserver_object_modify**](PoliciesLdapserverApi.md#udm_policies_ldapserver_object_modify) | **PUT** /policies/ldapserver/{dn} | Modify or move an LDAP server policy object +[**udm_policies_ldapserver_object_remove**](PoliciesLdapserverApi.md#udm_policies_ldapserver_object_remove) | **DELETE** /policies/ldapserver/{dn} | Remove a LDAP server policies object +[**udm_policies_ldapserver_object_search**](PoliciesLdapserverApi.md#udm_policies_ldapserver_object_search) | **GET** /policies/ldapserver/ | Search for LDAP server policies objects +[**udm_policies_ldapserver_object_template**](PoliciesLdapserverApi.md#udm_policies_ldapserver_object_template) | **GET** /policies/ldapserver/add | Get a template for creating an LDAP server policy object (contains all properties and their default values) +[**udm_policies_ldapserver_object_update**](PoliciesLdapserverApi.md#udm_policies_ldapserver_object_update) | **PATCH** /policies/ldapserver/{dn} | Modify an LDAP server policy object (moving is currently not possible) + + +# **udm_policies_ldapserver_object** +> PoliciesLdapserver udm_policies_ldapserver_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the LDAP server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesLdapserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the LDAP server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_ldapserver_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesLdapserverApi->udm_policies_ldapserver_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesLdapserver**](PoliciesLdapserver.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_ldapserver_object_create** +> InlineResponse201 udm_policies_ldapserver_object_create(policies_ldapserver, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new LDAP server policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesLdapserverApi(api_client) + policies_ldapserver = openapi_client_udm.PoliciesLdapserver() # PoliciesLdapserver | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new LDAP server policy object + api_response = api_instance.udm_policies_ldapserver_object_create(policies_ldapserver, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesLdapserverApi->udm_policies_ldapserver_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_ldapserver** | [**PoliciesLdapserver**](PoliciesLdapserver.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_ldapserver_object_modify** +> InlineResponse201 udm_policies_ldapserver_object_modify(dn, policies_ldapserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an LDAP server policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesLdapserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_ldapserver = openapi_client_udm.PoliciesLdapserver() # PoliciesLdapserver | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an LDAP server policy object + api_response = api_instance.udm_policies_ldapserver_object_modify(dn, policies_ldapserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesLdapserverApi->udm_policies_ldapserver_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_ldapserver** | [**PoliciesLdapserver**](PoliciesLdapserver.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_ldapserver_object_remove** +> udm_policies_ldapserver_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a LDAP server policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesLdapserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a LDAP server policies object + api_instance.udm_policies_ldapserver_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesLdapserverApi->udm_policies_ldapserver_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_ldapserver_object_search** +> PoliciesLdapserverList udm_policies_ldapserver_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for LDAP server policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesLdapserverApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for LDAP server policies objects + api_response = api_instance.udm_policies_ldapserver_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesLdapserverApi->udm_policies_ldapserver_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesLdapserverList**](PoliciesLdapserverList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_ldapserver_object_template** +> PoliciesLdapserver udm_policies_ldapserver_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an LDAP server policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesLdapserverApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an LDAP server policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_ldapserver_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesLdapserverApi->udm_policies_ldapserver_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesLdapserver**](PoliciesLdapserver.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new LDAP server policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_ldapserver_object_update** +> udm_policies_ldapserver_object_update(dn, policies_ldapserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an LDAP server policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesLdapserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_ldapserver = openapi_client_udm.PoliciesLdapserver() # PoliciesLdapserver | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an LDAP server policy object (moving is currently not possible) + api_instance.udm_policies_ldapserver_object_update(dn, policies_ldapserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesLdapserverApi->udm_policies_ldapserver_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_ldapserver** | [**PoliciesLdapserver**](PoliciesLdapserver.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesLdapserverList.md b/docs/PoliciesLdapserverList.md new file mode 100644 index 0000000..90304ee --- /dev/null +++ b/docs/PoliciesLdapserverList.md @@ -0,0 +1,11 @@ +# PoliciesLdapserverList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesLdapserverListEmbedded**](PoliciesLdapserverListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesLdapserverListEmbedded.md b/docs/PoliciesLdapserverListEmbedded.md new file mode 100644 index 0000000..3ed3aef --- /dev/null +++ b/docs/PoliciesLdapserverListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesLdapserverListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesLdapserver]**](PoliciesLdapserver.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesLdapserverRequest.md b/docs/PoliciesLdapserverRequest.md new file mode 100644 index 0000000..37a588a --- /dev/null +++ b/docs/PoliciesLdapserverRequest.md @@ -0,0 +1,15 @@ +# PoliciesLdapserverRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesLdapserverRequestPatch.md b/docs/PoliciesLdapserverRequestPatch.md new file mode 100644 index 0000000..f81f6df --- /dev/null +++ b/docs/PoliciesLdapserverRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesLdapserverRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesLdapserverResponseMixin.md b/docs/PoliciesLdapserverResponseMixin.md new file mode 100644 index 0000000..f5fb039 --- /dev/null +++ b/docs/PoliciesLdapserverResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesLdapserverResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMaintenance.md b/docs/PoliciesMaintenance.md new file mode 100644 index 0000000..d21b773 --- /dev/null +++ b/docs/PoliciesMaintenance.md @@ -0,0 +1,20 @@ +# PoliciesMaintenance + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMaintenanceApi.md b/docs/PoliciesMaintenanceApi.md new file mode 100644 index 0000000..0967108 --- /dev/null +++ b/docs/PoliciesMaintenanceApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesMaintenanceApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_maintenance_object**](PoliciesMaintenanceApi.md#udm_policies_maintenance_object) | **GET** /policies/maintenance/{dn} | Get a representation of the Maintenance policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_maintenance_object_create**](PoliciesMaintenanceApi.md#udm_policies_maintenance_object_create) | **POST** /policies/maintenance/ | Create a new Maintenance policy object +[**udm_policies_maintenance_object_modify**](PoliciesMaintenanceApi.md#udm_policies_maintenance_object_modify) | **PUT** /policies/maintenance/{dn} | Modify or move an Maintenance policy object +[**udm_policies_maintenance_object_remove**](PoliciesMaintenanceApi.md#udm_policies_maintenance_object_remove) | **DELETE** /policies/maintenance/{dn} | Remove a Maintenance policies object +[**udm_policies_maintenance_object_search**](PoliciesMaintenanceApi.md#udm_policies_maintenance_object_search) | **GET** /policies/maintenance/ | Search for Maintenance policies objects +[**udm_policies_maintenance_object_template**](PoliciesMaintenanceApi.md#udm_policies_maintenance_object_template) | **GET** /policies/maintenance/add | Get a template for creating an Maintenance policy object (contains all properties and their default values) +[**udm_policies_maintenance_object_update**](PoliciesMaintenanceApi.md#udm_policies_maintenance_object_update) | **PATCH** /policies/maintenance/{dn} | Modify an Maintenance policy object (moving is currently not possible) + + +# **udm_policies_maintenance_object** +> PoliciesMaintenance udm_policies_maintenance_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Maintenance policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMaintenanceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Maintenance policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_maintenance_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMaintenanceApi->udm_policies_maintenance_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMaintenance**](PoliciesMaintenance.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_maintenance_object_create** +> InlineResponse201 udm_policies_maintenance_object_create(policies_maintenance, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Maintenance policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMaintenanceApi(api_client) + policies_maintenance = openapi_client_udm.PoliciesMaintenance() # PoliciesMaintenance | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Maintenance policy object + api_response = api_instance.udm_policies_maintenance_object_create(policies_maintenance, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMaintenanceApi->udm_policies_maintenance_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_maintenance** | [**PoliciesMaintenance**](PoliciesMaintenance.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_maintenance_object_modify** +> InlineResponse201 udm_policies_maintenance_object_modify(dn, policies_maintenance, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Maintenance policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMaintenanceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_maintenance = openapi_client_udm.PoliciesMaintenance() # PoliciesMaintenance | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Maintenance policy object + api_response = api_instance.udm_policies_maintenance_object_modify(dn, policies_maintenance, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMaintenanceApi->udm_policies_maintenance_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_maintenance** | [**PoliciesMaintenance**](PoliciesMaintenance.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_maintenance_object_remove** +> udm_policies_maintenance_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Maintenance policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMaintenanceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Maintenance policies object + api_instance.udm_policies_maintenance_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesMaintenanceApi->udm_policies_maintenance_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_maintenance_object_search** +> PoliciesMaintenanceList udm_policies_maintenance_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Maintenance policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMaintenanceApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Maintenance policies objects + api_response = api_instance.udm_policies_maintenance_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMaintenanceApi->udm_policies_maintenance_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMaintenanceList**](PoliciesMaintenanceList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_maintenance_object_template** +> PoliciesMaintenance udm_policies_maintenance_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Maintenance policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMaintenanceApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Maintenance policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_maintenance_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMaintenanceApi->udm_policies_maintenance_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMaintenance**](PoliciesMaintenance.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Maintenance policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_maintenance_object_update** +> udm_policies_maintenance_object_update(dn, policies_maintenance, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Maintenance policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMaintenanceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_maintenance = openapi_client_udm.PoliciesMaintenance() # PoliciesMaintenance | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Maintenance policy object (moving is currently not possible) + api_instance.udm_policies_maintenance_object_update(dn, policies_maintenance, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesMaintenanceApi->udm_policies_maintenance_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_maintenance** | [**PoliciesMaintenance**](PoliciesMaintenance.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesMaintenanceList.md b/docs/PoliciesMaintenanceList.md new file mode 100644 index 0000000..7e1d951 --- /dev/null +++ b/docs/PoliciesMaintenanceList.md @@ -0,0 +1,11 @@ +# PoliciesMaintenanceList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesMaintenanceListEmbedded**](PoliciesMaintenanceListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMaintenanceListEmbedded.md b/docs/PoliciesMaintenanceListEmbedded.md new file mode 100644 index 0000000..6fc368b --- /dev/null +++ b/docs/PoliciesMaintenanceListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesMaintenanceListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesMaintenance]**](PoliciesMaintenance.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMaintenanceRequest.md b/docs/PoliciesMaintenanceRequest.md new file mode 100644 index 0000000..98534af --- /dev/null +++ b/docs/PoliciesMaintenanceRequest.md @@ -0,0 +1,15 @@ +# PoliciesMaintenanceRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMaintenanceRequestPatch.md b/docs/PoliciesMaintenanceRequestPatch.md new file mode 100644 index 0000000..7b6753c --- /dev/null +++ b/docs/PoliciesMaintenanceRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesMaintenanceRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMaintenanceResponseMixin.md b/docs/PoliciesMaintenanceResponseMixin.md new file mode 100644 index 0000000..8341dac --- /dev/null +++ b/docs/PoliciesMaintenanceResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesMaintenanceResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMasterpackages.md b/docs/PoliciesMasterpackages.md new file mode 100644 index 0000000..fabf2f3 --- /dev/null +++ b/docs/PoliciesMasterpackages.md @@ -0,0 +1,20 @@ +# PoliciesMasterpackages + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMasterpackagesApi.md b/docs/PoliciesMasterpackagesApi.md new file mode 100644 index 0000000..d6ada0c --- /dev/null +++ b/docs/PoliciesMasterpackagesApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesMasterpackagesApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_masterpackages_object**](PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object) | **GET** /policies/masterpackages/{dn} | Get a representation of the Primary/Backup Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_masterpackages_object_create**](PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_create) | **POST** /policies/masterpackages/ | Create a new Primary/Backup Node packages policy object +[**udm_policies_masterpackages_object_modify**](PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_modify) | **PUT** /policies/masterpackages/{dn} | Modify or move an Primary/Backup Node packages policy object +[**udm_policies_masterpackages_object_remove**](PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_remove) | **DELETE** /policies/masterpackages/{dn} | Remove a Primary/Backup Node packages policies object +[**udm_policies_masterpackages_object_search**](PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_search) | **GET** /policies/masterpackages/ | Search for Primary/Backup Node packages policies objects +[**udm_policies_masterpackages_object_template**](PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_template) | **GET** /policies/masterpackages/add | Get a template for creating an Primary/Backup Node packages policy object (contains all properties and their default values) +[**udm_policies_masterpackages_object_update**](PoliciesMasterpackagesApi.md#udm_policies_masterpackages_object_update) | **PATCH** /policies/masterpackages/{dn} | Modify an Primary/Backup Node packages policy object (moving is currently not possible) + + +# **udm_policies_masterpackages_object** +> PoliciesMasterpackages udm_policies_masterpackages_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Primary/Backup Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMasterpackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Primary/Backup Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_masterpackages_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMasterpackagesApi->udm_policies_masterpackages_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMasterpackages**](PoliciesMasterpackages.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_masterpackages_object_create** +> InlineResponse201 udm_policies_masterpackages_object_create(policies_masterpackages, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Primary/Backup Node packages policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMasterpackagesApi(api_client) + policies_masterpackages = openapi_client_udm.PoliciesMasterpackages() # PoliciesMasterpackages | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Primary/Backup Node packages policy object + api_response = api_instance.udm_policies_masterpackages_object_create(policies_masterpackages, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMasterpackagesApi->udm_policies_masterpackages_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_masterpackages** | [**PoliciesMasterpackages**](PoliciesMasterpackages.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_masterpackages_object_modify** +> InlineResponse201 udm_policies_masterpackages_object_modify(dn, policies_masterpackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Primary/Backup Node packages policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMasterpackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_masterpackages = openapi_client_udm.PoliciesMasterpackages() # PoliciesMasterpackages | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Primary/Backup Node packages policy object + api_response = api_instance.udm_policies_masterpackages_object_modify(dn, policies_masterpackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMasterpackagesApi->udm_policies_masterpackages_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_masterpackages** | [**PoliciesMasterpackages**](PoliciesMasterpackages.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_masterpackages_object_remove** +> udm_policies_masterpackages_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Primary/Backup Node packages policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMasterpackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Primary/Backup Node packages policies object + api_instance.udm_policies_masterpackages_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesMasterpackagesApi->udm_policies_masterpackages_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_masterpackages_object_search** +> PoliciesMasterpackagesList udm_policies_masterpackages_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Primary/Backup Node packages policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMasterpackagesApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Primary/Backup Node packages policies objects + api_response = api_instance.udm_policies_masterpackages_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMasterpackagesApi->udm_policies_masterpackages_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMasterpackagesList**](PoliciesMasterpackagesList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_masterpackages_object_template** +> PoliciesMasterpackages udm_policies_masterpackages_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Primary/Backup Node packages policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMasterpackagesApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Primary/Backup Node packages policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_masterpackages_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMasterpackagesApi->udm_policies_masterpackages_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMasterpackages**](PoliciesMasterpackages.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Primary/Backup Node packages policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_masterpackages_object_update** +> udm_policies_masterpackages_object_update(dn, policies_masterpackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Primary/Backup Node packages policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMasterpackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_masterpackages = openapi_client_udm.PoliciesMasterpackages() # PoliciesMasterpackages | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Primary/Backup Node packages policy object (moving is currently not possible) + api_instance.udm_policies_masterpackages_object_update(dn, policies_masterpackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesMasterpackagesApi->udm_policies_masterpackages_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_masterpackages** | [**PoliciesMasterpackages**](PoliciesMasterpackages.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesMasterpackagesList.md b/docs/PoliciesMasterpackagesList.md new file mode 100644 index 0000000..1c64b7d --- /dev/null +++ b/docs/PoliciesMasterpackagesList.md @@ -0,0 +1,11 @@ +# PoliciesMasterpackagesList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesMasterpackagesListEmbedded**](PoliciesMasterpackagesListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMasterpackagesListEmbedded.md b/docs/PoliciesMasterpackagesListEmbedded.md new file mode 100644 index 0000000..fdfdeb1 --- /dev/null +++ b/docs/PoliciesMasterpackagesListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesMasterpackagesListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesMasterpackages]**](PoliciesMasterpackages.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMasterpackagesRequest.md b/docs/PoliciesMasterpackagesRequest.md new file mode 100644 index 0000000..f6b7300 --- /dev/null +++ b/docs/PoliciesMasterpackagesRequest.md @@ -0,0 +1,15 @@ +# PoliciesMasterpackagesRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMasterpackagesRequestPatch.md b/docs/PoliciesMasterpackagesRequestPatch.md new file mode 100644 index 0000000..730ee6a --- /dev/null +++ b/docs/PoliciesMasterpackagesRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesMasterpackagesRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMasterpackagesResponseMixin.md b/docs/PoliciesMasterpackagesResponseMixin.md new file mode 100644 index 0000000..bb413cc --- /dev/null +++ b/docs/PoliciesMasterpackagesResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesMasterpackagesResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMemberpackages.md b/docs/PoliciesMemberpackages.md new file mode 100644 index 0000000..a4d080f --- /dev/null +++ b/docs/PoliciesMemberpackages.md @@ -0,0 +1,20 @@ +# PoliciesMemberpackages + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMemberpackagesApi.md b/docs/PoliciesMemberpackagesApi.md new file mode 100644 index 0000000..c09ba79 --- /dev/null +++ b/docs/PoliciesMemberpackagesApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesMemberpackagesApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_memberpackages_object**](PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object) | **GET** /policies/memberpackages/{dn} | Get a representation of the Managed Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_memberpackages_object_create**](PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_create) | **POST** /policies/memberpackages/ | Create a new Managed Node packages policy object +[**udm_policies_memberpackages_object_modify**](PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_modify) | **PUT** /policies/memberpackages/{dn} | Modify or move an Managed Node packages policy object +[**udm_policies_memberpackages_object_remove**](PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_remove) | **DELETE** /policies/memberpackages/{dn} | Remove a Managed Node packages policies object +[**udm_policies_memberpackages_object_search**](PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_search) | **GET** /policies/memberpackages/ | Search for Managed Node packages policies objects +[**udm_policies_memberpackages_object_template**](PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_template) | **GET** /policies/memberpackages/add | Get a template for creating an Managed Node packages policy object (contains all properties and their default values) +[**udm_policies_memberpackages_object_update**](PoliciesMemberpackagesApi.md#udm_policies_memberpackages_object_update) | **PATCH** /policies/memberpackages/{dn} | Modify an Managed Node packages policy object (moving is currently not possible) + + +# **udm_policies_memberpackages_object** +> PoliciesMemberpackages udm_policies_memberpackages_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Managed Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMemberpackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Managed Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_memberpackages_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMemberpackagesApi->udm_policies_memberpackages_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMemberpackages**](PoliciesMemberpackages.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_memberpackages_object_create** +> InlineResponse201 udm_policies_memberpackages_object_create(policies_memberpackages, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Managed Node packages policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMemberpackagesApi(api_client) + policies_memberpackages = openapi_client_udm.PoliciesMemberpackages() # PoliciesMemberpackages | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Managed Node packages policy object + api_response = api_instance.udm_policies_memberpackages_object_create(policies_memberpackages, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMemberpackagesApi->udm_policies_memberpackages_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_memberpackages** | [**PoliciesMemberpackages**](PoliciesMemberpackages.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_memberpackages_object_modify** +> InlineResponse201 udm_policies_memberpackages_object_modify(dn, policies_memberpackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Managed Node packages policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMemberpackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_memberpackages = openapi_client_udm.PoliciesMemberpackages() # PoliciesMemberpackages | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Managed Node packages policy object + api_response = api_instance.udm_policies_memberpackages_object_modify(dn, policies_memberpackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMemberpackagesApi->udm_policies_memberpackages_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_memberpackages** | [**PoliciesMemberpackages**](PoliciesMemberpackages.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_memberpackages_object_remove** +> udm_policies_memberpackages_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Managed Node packages policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMemberpackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Managed Node packages policies object + api_instance.udm_policies_memberpackages_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesMemberpackagesApi->udm_policies_memberpackages_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_memberpackages_object_search** +> PoliciesMemberpackagesList udm_policies_memberpackages_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Managed Node packages policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMemberpackagesApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Managed Node packages policies objects + api_response = api_instance.udm_policies_memberpackages_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMemberpackagesApi->udm_policies_memberpackages_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMemberpackagesList**](PoliciesMemberpackagesList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_memberpackages_object_template** +> PoliciesMemberpackages udm_policies_memberpackages_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Managed Node packages policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMemberpackagesApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Managed Node packages policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_memberpackages_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesMemberpackagesApi->udm_policies_memberpackages_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesMemberpackages**](PoliciesMemberpackages.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Managed Node packages policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_memberpackages_object_update** +> udm_policies_memberpackages_object_update(dn, policies_memberpackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Managed Node packages policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesMemberpackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_memberpackages = openapi_client_udm.PoliciesMemberpackages() # PoliciesMemberpackages | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Managed Node packages policy object (moving is currently not possible) + api_instance.udm_policies_memberpackages_object_update(dn, policies_memberpackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesMemberpackagesApi->udm_policies_memberpackages_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_memberpackages** | [**PoliciesMemberpackages**](PoliciesMemberpackages.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesMemberpackagesList.md b/docs/PoliciesMemberpackagesList.md new file mode 100644 index 0000000..fd9b183 --- /dev/null +++ b/docs/PoliciesMemberpackagesList.md @@ -0,0 +1,11 @@ +# PoliciesMemberpackagesList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesMemberpackagesListEmbedded**](PoliciesMemberpackagesListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMemberpackagesListEmbedded.md b/docs/PoliciesMemberpackagesListEmbedded.md new file mode 100644 index 0000000..66f8063 --- /dev/null +++ b/docs/PoliciesMemberpackagesListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesMemberpackagesListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesMemberpackages]**](PoliciesMemberpackages.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMemberpackagesRequest.md b/docs/PoliciesMemberpackagesRequest.md new file mode 100644 index 0000000..01bd470 --- /dev/null +++ b/docs/PoliciesMemberpackagesRequest.md @@ -0,0 +1,15 @@ +# PoliciesMemberpackagesRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMemberpackagesRequestPatch.md b/docs/PoliciesMemberpackagesRequestPatch.md new file mode 100644 index 0000000..15fbb5a --- /dev/null +++ b/docs/PoliciesMemberpackagesRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesMemberpackagesRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesMemberpackagesResponseMixin.md b/docs/PoliciesMemberpackagesResponseMixin.md new file mode 100644 index 0000000..7a4881f --- /dev/null +++ b/docs/PoliciesMemberpackagesResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesMemberpackagesResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesNfsmounts.md b/docs/PoliciesNfsmounts.md new file mode 100644 index 0000000..fce69a8 --- /dev/null +++ b/docs/PoliciesNfsmounts.md @@ -0,0 +1,20 @@ +# PoliciesNfsmounts + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesNfsmountsApi.md b/docs/PoliciesNfsmountsApi.md new file mode 100644 index 0000000..652c2f4 --- /dev/null +++ b/docs/PoliciesNfsmountsApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesNfsmountsApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_nfsmounts_object**](PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object) | **GET** /policies/nfsmounts/{dn} | Get a representation of the NFS mounts policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_nfsmounts_object_create**](PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_create) | **POST** /policies/nfsmounts/ | Create a new NFS mounts policy object +[**udm_policies_nfsmounts_object_modify**](PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_modify) | **PUT** /policies/nfsmounts/{dn} | Modify or move an NFS mounts policy object +[**udm_policies_nfsmounts_object_remove**](PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_remove) | **DELETE** /policies/nfsmounts/{dn} | Remove a NFS mounts policies object +[**udm_policies_nfsmounts_object_search**](PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_search) | **GET** /policies/nfsmounts/ | Search for NFS mounts policies objects +[**udm_policies_nfsmounts_object_template**](PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_template) | **GET** /policies/nfsmounts/add | Get a template for creating an NFS mounts policy object (contains all properties and their default values) +[**udm_policies_nfsmounts_object_update**](PoliciesNfsmountsApi.md#udm_policies_nfsmounts_object_update) | **PATCH** /policies/nfsmounts/{dn} | Modify an NFS mounts policy object (moving is currently not possible) + + +# **udm_policies_nfsmounts_object** +> PoliciesNfsmounts udm_policies_nfsmounts_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the NFS mounts policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesNfsmountsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the NFS mounts policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_nfsmounts_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesNfsmountsApi->udm_policies_nfsmounts_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesNfsmounts**](PoliciesNfsmounts.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_nfsmounts_object_create** +> InlineResponse201 udm_policies_nfsmounts_object_create(policies_nfsmounts, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new NFS mounts policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesNfsmountsApi(api_client) + policies_nfsmounts = openapi_client_udm.PoliciesNfsmounts() # PoliciesNfsmounts | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new NFS mounts policy object + api_response = api_instance.udm_policies_nfsmounts_object_create(policies_nfsmounts, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesNfsmountsApi->udm_policies_nfsmounts_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_nfsmounts** | [**PoliciesNfsmounts**](PoliciesNfsmounts.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_nfsmounts_object_modify** +> InlineResponse201 udm_policies_nfsmounts_object_modify(dn, policies_nfsmounts, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an NFS mounts policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesNfsmountsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_nfsmounts = openapi_client_udm.PoliciesNfsmounts() # PoliciesNfsmounts | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an NFS mounts policy object + api_response = api_instance.udm_policies_nfsmounts_object_modify(dn, policies_nfsmounts, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesNfsmountsApi->udm_policies_nfsmounts_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_nfsmounts** | [**PoliciesNfsmounts**](PoliciesNfsmounts.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_nfsmounts_object_remove** +> udm_policies_nfsmounts_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a NFS mounts policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesNfsmountsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a NFS mounts policies object + api_instance.udm_policies_nfsmounts_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesNfsmountsApi->udm_policies_nfsmounts_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_nfsmounts_object_search** +> PoliciesNfsmountsList udm_policies_nfsmounts_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for NFS mounts policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesNfsmountsApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for NFS mounts policies objects + api_response = api_instance.udm_policies_nfsmounts_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesNfsmountsApi->udm_policies_nfsmounts_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesNfsmountsList**](PoliciesNfsmountsList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_nfsmounts_object_template** +> PoliciesNfsmounts udm_policies_nfsmounts_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an NFS mounts policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesNfsmountsApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an NFS mounts policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_nfsmounts_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesNfsmountsApi->udm_policies_nfsmounts_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesNfsmounts**](PoliciesNfsmounts.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new NFS mounts policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_nfsmounts_object_update** +> udm_policies_nfsmounts_object_update(dn, policies_nfsmounts, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an NFS mounts policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesNfsmountsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_nfsmounts = openapi_client_udm.PoliciesNfsmounts() # PoliciesNfsmounts | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an NFS mounts policy object (moving is currently not possible) + api_instance.udm_policies_nfsmounts_object_update(dn, policies_nfsmounts, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesNfsmountsApi->udm_policies_nfsmounts_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_nfsmounts** | [**PoliciesNfsmounts**](PoliciesNfsmounts.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesNfsmountsList.md b/docs/PoliciesNfsmountsList.md new file mode 100644 index 0000000..967e27a --- /dev/null +++ b/docs/PoliciesNfsmountsList.md @@ -0,0 +1,11 @@ +# PoliciesNfsmountsList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesNfsmountsListEmbedded**](PoliciesNfsmountsListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesNfsmountsListEmbedded.md b/docs/PoliciesNfsmountsListEmbedded.md new file mode 100644 index 0000000..528047a --- /dev/null +++ b/docs/PoliciesNfsmountsListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesNfsmountsListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesNfsmounts]**](PoliciesNfsmounts.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesNfsmountsRequest.md b/docs/PoliciesNfsmountsRequest.md new file mode 100644 index 0000000..2e451f3 --- /dev/null +++ b/docs/PoliciesNfsmountsRequest.md @@ -0,0 +1,15 @@ +# PoliciesNfsmountsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesNfsmountsRequestPatch.md b/docs/PoliciesNfsmountsRequestPatch.md new file mode 100644 index 0000000..7cfda78 --- /dev/null +++ b/docs/PoliciesNfsmountsRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesNfsmountsRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesNfsmountsResponseMixin.md b/docs/PoliciesNfsmountsResponseMixin.md new file mode 100644 index 0000000..cd5ff77 --- /dev/null +++ b/docs/PoliciesNfsmountsResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesNfsmountsResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPolicy.md b/docs/PoliciesPolicy.md new file mode 100644 index 0000000..af4ced1 --- /dev/null +++ b/docs/PoliciesPolicy.md @@ -0,0 +1,20 @@ +# PoliciesPolicy + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPolicyApi.md b/docs/PoliciesPolicyApi.md new file mode 100644 index 0000000..5b88ae5 --- /dev/null +++ b/docs/PoliciesPolicyApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.PoliciesPolicyApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_policy_object**](PoliciesPolicyApi.md#udm_policies_policy_object) | **GET** /policies/policy/{dn} | Get a representation of the Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_policy_object_search**](PoliciesPolicyApi.md#udm_policies_policy_object_search) | **GET** /policies/policy/ | Search for Policies objects + + +# **udm_policies_policy_object** +> PoliciesPolicy udm_policies_policy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_policy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPolicyApi->udm_policies_policy_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesPolicy**](PoliciesPolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_policy_object_search** +> PoliciesPolicyList udm_policies_policy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPolicyApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Policies objects + api_response = api_instance.udm_policies_policy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPolicyApi->udm_policies_policy_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesPolicyList**](PoliciesPolicyList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesPolicyList.md b/docs/PoliciesPolicyList.md new file mode 100644 index 0000000..769cb32 --- /dev/null +++ b/docs/PoliciesPolicyList.md @@ -0,0 +1,11 @@ +# PoliciesPolicyList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesPolicyListEmbedded**](PoliciesPolicyListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPolicyListEmbedded.md b/docs/PoliciesPolicyListEmbedded.md new file mode 100644 index 0000000..f8d728f --- /dev/null +++ b/docs/PoliciesPolicyListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesPolicyListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesPolicy]**](PoliciesPolicy.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPolicyRequest.md b/docs/PoliciesPolicyRequest.md new file mode 100644 index 0000000..006c3af --- /dev/null +++ b/docs/PoliciesPolicyRequest.md @@ -0,0 +1,15 @@ +# PoliciesPolicyRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPolicyRequestPatch.md b/docs/PoliciesPolicyRequestPatch.md new file mode 100644 index 0000000..0d41dae --- /dev/null +++ b/docs/PoliciesPolicyRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesPolicyRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPolicyResponseMixin.md b/docs/PoliciesPolicyResponseMixin.md new file mode 100644 index 0000000..01db092 --- /dev/null +++ b/docs/PoliciesPolicyResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesPolicyResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPrintserver.md b/docs/PoliciesPrintserver.md new file mode 100644 index 0000000..7d24587 --- /dev/null +++ b/docs/PoliciesPrintserver.md @@ -0,0 +1,20 @@ +# PoliciesPrintserver + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPrintserverApi.md b/docs/PoliciesPrintserverApi.md new file mode 100644 index 0000000..2dbe591 --- /dev/null +++ b/docs/PoliciesPrintserverApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesPrintserverApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_printserver_object**](PoliciesPrintserverApi.md#udm_policies_printserver_object) | **GET** /policies/printserver/{dn} | Get a representation of the Print server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_printserver_object_create**](PoliciesPrintserverApi.md#udm_policies_printserver_object_create) | **POST** /policies/printserver/ | Create a new Print server policy object +[**udm_policies_printserver_object_modify**](PoliciesPrintserverApi.md#udm_policies_printserver_object_modify) | **PUT** /policies/printserver/{dn} | Modify or move an Print server policy object +[**udm_policies_printserver_object_remove**](PoliciesPrintserverApi.md#udm_policies_printserver_object_remove) | **DELETE** /policies/printserver/{dn} | Remove a Print server policies object +[**udm_policies_printserver_object_search**](PoliciesPrintserverApi.md#udm_policies_printserver_object_search) | **GET** /policies/printserver/ | Search for Print server policies objects +[**udm_policies_printserver_object_template**](PoliciesPrintserverApi.md#udm_policies_printserver_object_template) | **GET** /policies/printserver/add | Get a template for creating an Print server policy object (contains all properties and their default values) +[**udm_policies_printserver_object_update**](PoliciesPrintserverApi.md#udm_policies_printserver_object_update) | **PATCH** /policies/printserver/{dn} | Modify an Print server policy object (moving is currently not possible) + + +# **udm_policies_printserver_object** +> PoliciesPrintserver udm_policies_printserver_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Print server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPrintserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Print server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_printserver_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPrintserverApi->udm_policies_printserver_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesPrintserver**](PoliciesPrintserver.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_printserver_object_create** +> InlineResponse201 udm_policies_printserver_object_create(policies_printserver, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Print server policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPrintserverApi(api_client) + policies_printserver = openapi_client_udm.PoliciesPrintserver() # PoliciesPrintserver | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Print server policy object + api_response = api_instance.udm_policies_printserver_object_create(policies_printserver, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPrintserverApi->udm_policies_printserver_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_printserver** | [**PoliciesPrintserver**](PoliciesPrintserver.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_printserver_object_modify** +> InlineResponse201 udm_policies_printserver_object_modify(dn, policies_printserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Print server policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPrintserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_printserver = openapi_client_udm.PoliciesPrintserver() # PoliciesPrintserver | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Print server policy object + api_response = api_instance.udm_policies_printserver_object_modify(dn, policies_printserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPrintserverApi->udm_policies_printserver_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_printserver** | [**PoliciesPrintserver**](PoliciesPrintserver.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_printserver_object_remove** +> udm_policies_printserver_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Print server policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPrintserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Print server policies object + api_instance.udm_policies_printserver_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesPrintserverApi->udm_policies_printserver_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_printserver_object_search** +> PoliciesPrintserverList udm_policies_printserver_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Print server policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPrintserverApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Print server policies objects + api_response = api_instance.udm_policies_printserver_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPrintserverApi->udm_policies_printserver_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesPrintserverList**](PoliciesPrintserverList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_printserver_object_template** +> PoliciesPrintserver udm_policies_printserver_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Print server policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPrintserverApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Print server policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_printserver_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPrintserverApi->udm_policies_printserver_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesPrintserver**](PoliciesPrintserver.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Print server policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_printserver_object_update** +> udm_policies_printserver_object_update(dn, policies_printserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Print server policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPrintserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_printserver = openapi_client_udm.PoliciesPrintserver() # PoliciesPrintserver | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Print server policy object (moving is currently not possible) + api_instance.udm_policies_printserver_object_update(dn, policies_printserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesPrintserverApi->udm_policies_printserver_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_printserver** | [**PoliciesPrintserver**](PoliciesPrintserver.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesPrintserverList.md b/docs/PoliciesPrintserverList.md new file mode 100644 index 0000000..c28e71c --- /dev/null +++ b/docs/PoliciesPrintserverList.md @@ -0,0 +1,11 @@ +# PoliciesPrintserverList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesPrintserverListEmbedded**](PoliciesPrintserverListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPrintserverListEmbedded.md b/docs/PoliciesPrintserverListEmbedded.md new file mode 100644 index 0000000..ad73455 --- /dev/null +++ b/docs/PoliciesPrintserverListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesPrintserverListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesPrintserver]**](PoliciesPrintserver.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPrintserverRequest.md b/docs/PoliciesPrintserverRequest.md new file mode 100644 index 0000000..fa13389 --- /dev/null +++ b/docs/PoliciesPrintserverRequest.md @@ -0,0 +1,15 @@ +# PoliciesPrintserverRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPrintserverRequestPatch.md b/docs/PoliciesPrintserverRequestPatch.md new file mode 100644 index 0000000..560fa38 --- /dev/null +++ b/docs/PoliciesPrintserverRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesPrintserverRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPrintserverResponseMixin.md b/docs/PoliciesPrintserverResponseMixin.md new file mode 100644 index 0000000..8c8af2f --- /dev/null +++ b/docs/PoliciesPrintserverResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesPrintserverResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPwhistory.md b/docs/PoliciesPwhistory.md new file mode 100644 index 0000000..76ae307 --- /dev/null +++ b/docs/PoliciesPwhistory.md @@ -0,0 +1,20 @@ +# PoliciesPwhistory + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPwhistoryApi.md b/docs/PoliciesPwhistoryApi.md new file mode 100644 index 0000000..445c599 --- /dev/null +++ b/docs/PoliciesPwhistoryApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesPwhistoryApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_pwhistory_object**](PoliciesPwhistoryApi.md#udm_policies_pwhistory_object) | **GET** /policies/pwhistory/{dn} | Get a representation of the Passwords policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_pwhistory_object_create**](PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_create) | **POST** /policies/pwhistory/ | Create a new Passwords policy object +[**udm_policies_pwhistory_object_modify**](PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_modify) | **PUT** /policies/pwhistory/{dn} | Modify or move an Passwords policy object +[**udm_policies_pwhistory_object_remove**](PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_remove) | **DELETE** /policies/pwhistory/{dn} | Remove a Passwords policies object +[**udm_policies_pwhistory_object_search**](PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_search) | **GET** /policies/pwhistory/ | Search for Passwords policies objects +[**udm_policies_pwhistory_object_template**](PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_template) | **GET** /policies/pwhistory/add | Get a template for creating an Passwords policy object (contains all properties and their default values) +[**udm_policies_pwhistory_object_update**](PoliciesPwhistoryApi.md#udm_policies_pwhistory_object_update) | **PATCH** /policies/pwhistory/{dn} | Modify an Passwords policy object (moving is currently not possible) + + +# **udm_policies_pwhistory_object** +> PoliciesPwhistory udm_policies_pwhistory_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Passwords policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPwhistoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Passwords policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_pwhistory_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPwhistoryApi->udm_policies_pwhistory_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesPwhistory**](PoliciesPwhistory.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_pwhistory_object_create** +> InlineResponse201 udm_policies_pwhistory_object_create(policies_pwhistory, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Passwords policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPwhistoryApi(api_client) + policies_pwhistory = openapi_client_udm.PoliciesPwhistory() # PoliciesPwhistory | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Passwords policy object + api_response = api_instance.udm_policies_pwhistory_object_create(policies_pwhistory, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPwhistoryApi->udm_policies_pwhistory_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_pwhistory** | [**PoliciesPwhistory**](PoliciesPwhistory.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_pwhistory_object_modify** +> InlineResponse201 udm_policies_pwhistory_object_modify(dn, policies_pwhistory, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Passwords policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPwhistoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_pwhistory = openapi_client_udm.PoliciesPwhistory() # PoliciesPwhistory | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Passwords policy object + api_response = api_instance.udm_policies_pwhistory_object_modify(dn, policies_pwhistory, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPwhistoryApi->udm_policies_pwhistory_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_pwhistory** | [**PoliciesPwhistory**](PoliciesPwhistory.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_pwhistory_object_remove** +> udm_policies_pwhistory_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Passwords policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPwhistoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Passwords policies object + api_instance.udm_policies_pwhistory_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesPwhistoryApi->udm_policies_pwhistory_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_pwhistory_object_search** +> PoliciesPwhistoryList udm_policies_pwhistory_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Passwords policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPwhistoryApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Passwords policies objects + api_response = api_instance.udm_policies_pwhistory_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPwhistoryApi->udm_policies_pwhistory_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesPwhistoryList**](PoliciesPwhistoryList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_pwhistory_object_template** +> PoliciesPwhistory udm_policies_pwhistory_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Passwords policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPwhistoryApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Passwords policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_pwhistory_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesPwhistoryApi->udm_policies_pwhistory_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesPwhistory**](PoliciesPwhistory.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Passwords policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_pwhistory_object_update** +> udm_policies_pwhistory_object_update(dn, policies_pwhistory, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Passwords policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesPwhistoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_pwhistory = openapi_client_udm.PoliciesPwhistory() # PoliciesPwhistory | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Passwords policy object (moving is currently not possible) + api_instance.udm_policies_pwhistory_object_update(dn, policies_pwhistory, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesPwhistoryApi->udm_policies_pwhistory_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_pwhistory** | [**PoliciesPwhistory**](PoliciesPwhistory.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesPwhistoryList.md b/docs/PoliciesPwhistoryList.md new file mode 100644 index 0000000..2f66df6 --- /dev/null +++ b/docs/PoliciesPwhistoryList.md @@ -0,0 +1,11 @@ +# PoliciesPwhistoryList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesPwhistoryListEmbedded**](PoliciesPwhistoryListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPwhistoryListEmbedded.md b/docs/PoliciesPwhistoryListEmbedded.md new file mode 100644 index 0000000..d1541cb --- /dev/null +++ b/docs/PoliciesPwhistoryListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesPwhistoryListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesPwhistory]**](PoliciesPwhistory.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPwhistoryRequest.md b/docs/PoliciesPwhistoryRequest.md new file mode 100644 index 0000000..9340efd --- /dev/null +++ b/docs/PoliciesPwhistoryRequest.md @@ -0,0 +1,15 @@ +# PoliciesPwhistoryRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPwhistoryRequestPatch.md b/docs/PoliciesPwhistoryRequestPatch.md new file mode 100644 index 0000000..67aac3e --- /dev/null +++ b/docs/PoliciesPwhistoryRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesPwhistoryRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesPwhistoryResponseMixin.md b/docs/PoliciesPwhistoryResponseMixin.md new file mode 100644 index 0000000..cba2c6f --- /dev/null +++ b/docs/PoliciesPwhistoryResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesPwhistoryResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRegistry.md b/docs/PoliciesRegistry.md new file mode 100644 index 0000000..22cb52d --- /dev/null +++ b/docs/PoliciesRegistry.md @@ -0,0 +1,20 @@ +# PoliciesRegistry + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRegistryApi.md b/docs/PoliciesRegistryApi.md new file mode 100644 index 0000000..f2b3167 --- /dev/null +++ b/docs/PoliciesRegistryApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesRegistryApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_registry_object**](PoliciesRegistryApi.md#udm_policies_registry_object) | **GET** /policies/registry/{dn} | Get a representation of the Univention Configuration Registry policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_registry_object_create**](PoliciesRegistryApi.md#udm_policies_registry_object_create) | **POST** /policies/registry/ | Create a new Univention Configuration Registry policy object +[**udm_policies_registry_object_modify**](PoliciesRegistryApi.md#udm_policies_registry_object_modify) | **PUT** /policies/registry/{dn} | Modify or move an Univention Configuration Registry policy object +[**udm_policies_registry_object_remove**](PoliciesRegistryApi.md#udm_policies_registry_object_remove) | **DELETE** /policies/registry/{dn} | Remove a Univention Configuration Registry policies object +[**udm_policies_registry_object_search**](PoliciesRegistryApi.md#udm_policies_registry_object_search) | **GET** /policies/registry/ | Search for Univention Configuration Registry policies objects +[**udm_policies_registry_object_template**](PoliciesRegistryApi.md#udm_policies_registry_object_template) | **GET** /policies/registry/add | Get a template for creating an Univention Configuration Registry policy object (contains all properties and their default values) +[**udm_policies_registry_object_update**](PoliciesRegistryApi.md#udm_policies_registry_object_update) | **PATCH** /policies/registry/{dn} | Modify an Univention Configuration Registry policy object (moving is currently not possible) + + +# **udm_policies_registry_object** +> PoliciesRegistry udm_policies_registry_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Univention Configuration Registry policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRegistryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Univention Configuration Registry policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_registry_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRegistryApi->udm_policies_registry_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRegistry**](PoliciesRegistry.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_registry_object_create** +> InlineResponse201 udm_policies_registry_object_create(policies_registry, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Univention Configuration Registry policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRegistryApi(api_client) + policies_registry = openapi_client_udm.PoliciesRegistry() # PoliciesRegistry | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Univention Configuration Registry policy object + api_response = api_instance.udm_policies_registry_object_create(policies_registry, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRegistryApi->udm_policies_registry_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_registry** | [**PoliciesRegistry**](PoliciesRegistry.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_registry_object_modify** +> InlineResponse201 udm_policies_registry_object_modify(dn, policies_registry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Univention Configuration Registry policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRegistryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_registry = openapi_client_udm.PoliciesRegistry() # PoliciesRegistry | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Univention Configuration Registry policy object + api_response = api_instance.udm_policies_registry_object_modify(dn, policies_registry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRegistryApi->udm_policies_registry_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_registry** | [**PoliciesRegistry**](PoliciesRegistry.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_registry_object_remove** +> udm_policies_registry_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Univention Configuration Registry policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRegistryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Univention Configuration Registry policies object + api_instance.udm_policies_registry_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesRegistryApi->udm_policies_registry_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_registry_object_search** +> PoliciesRegistryList udm_policies_registry_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Univention Configuration Registry policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRegistryApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Univention Configuration Registry policies objects + api_response = api_instance.udm_policies_registry_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRegistryApi->udm_policies_registry_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRegistryList**](PoliciesRegistryList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_registry_object_template** +> PoliciesRegistry udm_policies_registry_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Univention Configuration Registry policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRegistryApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Univention Configuration Registry policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_registry_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRegistryApi->udm_policies_registry_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRegistry**](PoliciesRegistry.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Univention Configuration Registry policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_registry_object_update** +> udm_policies_registry_object_update(dn, policies_registry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Univention Configuration Registry policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRegistryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_registry = openapi_client_udm.PoliciesRegistry() # PoliciesRegistry | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Univention Configuration Registry policy object (moving is currently not possible) + api_instance.udm_policies_registry_object_update(dn, policies_registry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesRegistryApi->udm_policies_registry_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_registry** | [**PoliciesRegistry**](PoliciesRegistry.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesRegistryList.md b/docs/PoliciesRegistryList.md new file mode 100644 index 0000000..7d76bac --- /dev/null +++ b/docs/PoliciesRegistryList.md @@ -0,0 +1,11 @@ +# PoliciesRegistryList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesRegistryListEmbedded**](PoliciesRegistryListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRegistryListEmbedded.md b/docs/PoliciesRegistryListEmbedded.md new file mode 100644 index 0000000..22f3716 --- /dev/null +++ b/docs/PoliciesRegistryListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesRegistryListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesRegistry]**](PoliciesRegistry.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRegistryRequest.md b/docs/PoliciesRegistryRequest.md new file mode 100644 index 0000000..a6377ba --- /dev/null +++ b/docs/PoliciesRegistryRequest.md @@ -0,0 +1,15 @@ +# PoliciesRegistryRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRegistryRequestPatch.md b/docs/PoliciesRegistryRequestPatch.md new file mode 100644 index 0000000..6bffd9e --- /dev/null +++ b/docs/PoliciesRegistryRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesRegistryRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRegistryResponseMixin.md b/docs/PoliciesRegistryResponseMixin.md new file mode 100644 index 0000000..121fde6 --- /dev/null +++ b/docs/PoliciesRegistryResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesRegistryResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRelease.md b/docs/PoliciesRelease.md new file mode 100644 index 0000000..7ee2623 --- /dev/null +++ b/docs/PoliciesRelease.md @@ -0,0 +1,20 @@ +# PoliciesRelease + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesReleaseApi.md b/docs/PoliciesReleaseApi.md new file mode 100644 index 0000000..151b6f0 --- /dev/null +++ b/docs/PoliciesReleaseApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesReleaseApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_release_object**](PoliciesReleaseApi.md#udm_policies_release_object) | **GET** /policies/release/{dn} | Get a representation of the Automatic updates policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_release_object_create**](PoliciesReleaseApi.md#udm_policies_release_object_create) | **POST** /policies/release/ | Create a new Automatic updates policy object +[**udm_policies_release_object_modify**](PoliciesReleaseApi.md#udm_policies_release_object_modify) | **PUT** /policies/release/{dn} | Modify or move an Automatic updates policy object +[**udm_policies_release_object_remove**](PoliciesReleaseApi.md#udm_policies_release_object_remove) | **DELETE** /policies/release/{dn} | Remove a Automatic updates policies object +[**udm_policies_release_object_search**](PoliciesReleaseApi.md#udm_policies_release_object_search) | **GET** /policies/release/ | Search for Automatic updates policies objects +[**udm_policies_release_object_template**](PoliciesReleaseApi.md#udm_policies_release_object_template) | **GET** /policies/release/add | Get a template for creating an Automatic updates policy object (contains all properties and their default values) +[**udm_policies_release_object_update**](PoliciesReleaseApi.md#udm_policies_release_object_update) | **PATCH** /policies/release/{dn} | Modify an Automatic updates policy object (moving is currently not possible) + + +# **udm_policies_release_object** +> PoliciesRelease udm_policies_release_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Automatic updates policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesReleaseApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Automatic updates policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_release_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesReleaseApi->udm_policies_release_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRelease**](PoliciesRelease.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_release_object_create** +> InlineResponse201 udm_policies_release_object_create(policies_release, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Automatic updates policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesReleaseApi(api_client) + policies_release = openapi_client_udm.PoliciesRelease() # PoliciesRelease | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Automatic updates policy object + api_response = api_instance.udm_policies_release_object_create(policies_release, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesReleaseApi->udm_policies_release_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_release** | [**PoliciesRelease**](PoliciesRelease.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_release_object_modify** +> InlineResponse201 udm_policies_release_object_modify(dn, policies_release, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Automatic updates policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesReleaseApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_release = openapi_client_udm.PoliciesRelease() # PoliciesRelease | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Automatic updates policy object + api_response = api_instance.udm_policies_release_object_modify(dn, policies_release, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesReleaseApi->udm_policies_release_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_release** | [**PoliciesRelease**](PoliciesRelease.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_release_object_remove** +> udm_policies_release_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Automatic updates policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesReleaseApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Automatic updates policies object + api_instance.udm_policies_release_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesReleaseApi->udm_policies_release_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_release_object_search** +> PoliciesReleaseList udm_policies_release_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Automatic updates policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesReleaseApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Automatic updates policies objects + api_response = api_instance.udm_policies_release_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesReleaseApi->udm_policies_release_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesReleaseList**](PoliciesReleaseList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_release_object_template** +> PoliciesRelease udm_policies_release_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Automatic updates policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesReleaseApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Automatic updates policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_release_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesReleaseApi->udm_policies_release_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRelease**](PoliciesRelease.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Automatic updates policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_release_object_update** +> udm_policies_release_object_update(dn, policies_release, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Automatic updates policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesReleaseApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_release = openapi_client_udm.PoliciesRelease() # PoliciesRelease | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Automatic updates policy object (moving is currently not possible) + api_instance.udm_policies_release_object_update(dn, policies_release, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesReleaseApi->udm_policies_release_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_release** | [**PoliciesRelease**](PoliciesRelease.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesReleaseList.md b/docs/PoliciesReleaseList.md new file mode 100644 index 0000000..ad474f2 --- /dev/null +++ b/docs/PoliciesReleaseList.md @@ -0,0 +1,11 @@ +# PoliciesReleaseList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesReleaseListEmbedded**](PoliciesReleaseListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesReleaseListEmbedded.md b/docs/PoliciesReleaseListEmbedded.md new file mode 100644 index 0000000..666fb27 --- /dev/null +++ b/docs/PoliciesReleaseListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesReleaseListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesRelease]**](PoliciesRelease.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesReleaseRequest.md b/docs/PoliciesReleaseRequest.md new file mode 100644 index 0000000..af0d5e8 --- /dev/null +++ b/docs/PoliciesReleaseRequest.md @@ -0,0 +1,15 @@ +# PoliciesReleaseRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesReleaseRequestPatch.md b/docs/PoliciesReleaseRequestPatch.md new file mode 100644 index 0000000..5de70d6 --- /dev/null +++ b/docs/PoliciesReleaseRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesReleaseRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesReleaseResponseMixin.md b/docs/PoliciesReleaseResponseMixin.md new file mode 100644 index 0000000..0adb107 --- /dev/null +++ b/docs/PoliciesReleaseResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesReleaseResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositoryserver.md b/docs/PoliciesRepositoryserver.md new file mode 100644 index 0000000..2e86724 --- /dev/null +++ b/docs/PoliciesRepositoryserver.md @@ -0,0 +1,20 @@ +# PoliciesRepositoryserver + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositoryserverApi.md b/docs/PoliciesRepositoryserverApi.md new file mode 100644 index 0000000..b3a5f9b --- /dev/null +++ b/docs/PoliciesRepositoryserverApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesRepositoryserverApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_repositoryserver_object**](PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object) | **GET** /policies/repositoryserver/{dn} | Get a representation of the Repository server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_repositoryserver_object_create**](PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_create) | **POST** /policies/repositoryserver/ | Create a new Repository server policy object +[**udm_policies_repositoryserver_object_modify**](PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_modify) | **PUT** /policies/repositoryserver/{dn} | Modify or move an Repository server policy object +[**udm_policies_repositoryserver_object_remove**](PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_remove) | **DELETE** /policies/repositoryserver/{dn} | Remove a Repository server policies object +[**udm_policies_repositoryserver_object_search**](PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_search) | **GET** /policies/repositoryserver/ | Search for Repository server policies objects +[**udm_policies_repositoryserver_object_template**](PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_template) | **GET** /policies/repositoryserver/add | Get a template for creating an Repository server policy object (contains all properties and their default values) +[**udm_policies_repositoryserver_object_update**](PoliciesRepositoryserverApi.md#udm_policies_repositoryserver_object_update) | **PATCH** /policies/repositoryserver/{dn} | Modify an Repository server policy object (moving is currently not possible) + + +# **udm_policies_repositoryserver_object** +> PoliciesRepositoryserver udm_policies_repositoryserver_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Repository server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositoryserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Repository server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_repositoryserver_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositoryserverApi->udm_policies_repositoryserver_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRepositoryserver**](PoliciesRepositoryserver.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositoryserver_object_create** +> InlineResponse201 udm_policies_repositoryserver_object_create(policies_repositoryserver, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Repository server policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositoryserverApi(api_client) + policies_repositoryserver = openapi_client_udm.PoliciesRepositoryserver() # PoliciesRepositoryserver | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Repository server policy object + api_response = api_instance.udm_policies_repositoryserver_object_create(policies_repositoryserver, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositoryserverApi->udm_policies_repositoryserver_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_repositoryserver** | [**PoliciesRepositoryserver**](PoliciesRepositoryserver.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_repositoryserver_object_modify** +> InlineResponse201 udm_policies_repositoryserver_object_modify(dn, policies_repositoryserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Repository server policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositoryserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_repositoryserver = openapi_client_udm.PoliciesRepositoryserver() # PoliciesRepositoryserver | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Repository server policy object + api_response = api_instance.udm_policies_repositoryserver_object_modify(dn, policies_repositoryserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositoryserverApi->udm_policies_repositoryserver_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_repositoryserver** | [**PoliciesRepositoryserver**](PoliciesRepositoryserver.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositoryserver_object_remove** +> udm_policies_repositoryserver_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Repository server policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositoryserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Repository server policies object + api_instance.udm_policies_repositoryserver_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesRepositoryserverApi->udm_policies_repositoryserver_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositoryserver_object_search** +> PoliciesRepositoryserverList udm_policies_repositoryserver_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Repository server policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositoryserverApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Repository server policies objects + api_response = api_instance.udm_policies_repositoryserver_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositoryserverApi->udm_policies_repositoryserver_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRepositoryserverList**](PoliciesRepositoryserverList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositoryserver_object_template** +> PoliciesRepositoryserver udm_policies_repositoryserver_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Repository server policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositoryserverApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Repository server policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_repositoryserver_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositoryserverApi->udm_policies_repositoryserver_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRepositoryserver**](PoliciesRepositoryserver.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Repository server policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositoryserver_object_update** +> udm_policies_repositoryserver_object_update(dn, policies_repositoryserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Repository server policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositoryserverApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_repositoryserver = openapi_client_udm.PoliciesRepositoryserver() # PoliciesRepositoryserver | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Repository server policy object (moving is currently not possible) + api_instance.udm_policies_repositoryserver_object_update(dn, policies_repositoryserver, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesRepositoryserverApi->udm_policies_repositoryserver_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_repositoryserver** | [**PoliciesRepositoryserver**](PoliciesRepositoryserver.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesRepositoryserverList.md b/docs/PoliciesRepositoryserverList.md new file mode 100644 index 0000000..4604260 --- /dev/null +++ b/docs/PoliciesRepositoryserverList.md @@ -0,0 +1,11 @@ +# PoliciesRepositoryserverList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesRepositoryserverListEmbedded**](PoliciesRepositoryserverListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositoryserverListEmbedded.md b/docs/PoliciesRepositoryserverListEmbedded.md new file mode 100644 index 0000000..cefd628 --- /dev/null +++ b/docs/PoliciesRepositoryserverListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesRepositoryserverListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesRepositoryserver]**](PoliciesRepositoryserver.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositoryserverRequest.md b/docs/PoliciesRepositoryserverRequest.md new file mode 100644 index 0000000..5db804d --- /dev/null +++ b/docs/PoliciesRepositoryserverRequest.md @@ -0,0 +1,15 @@ +# PoliciesRepositoryserverRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositoryserverRequestPatch.md b/docs/PoliciesRepositoryserverRequestPatch.md new file mode 100644 index 0000000..a072db1 --- /dev/null +++ b/docs/PoliciesRepositoryserverRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesRepositoryserverRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositoryserverResponseMixin.md b/docs/PoliciesRepositoryserverResponseMixin.md new file mode 100644 index 0000000..22f78c0 --- /dev/null +++ b/docs/PoliciesRepositoryserverResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesRepositoryserverResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositorysync.md b/docs/PoliciesRepositorysync.md new file mode 100644 index 0000000..4c401cc --- /dev/null +++ b/docs/PoliciesRepositorysync.md @@ -0,0 +1,20 @@ +# PoliciesRepositorysync + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositorysyncApi.md b/docs/PoliciesRepositorysyncApi.md new file mode 100644 index 0000000..fe95095 --- /dev/null +++ b/docs/PoliciesRepositorysyncApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesRepositorysyncApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_repositorysync_object**](PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object) | **GET** /policies/repositorysync/{dn} | Get a representation of the Repository synchronisation policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_repositorysync_object_create**](PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_create) | **POST** /policies/repositorysync/ | Create a new Repository synchronisation policy object +[**udm_policies_repositorysync_object_modify**](PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_modify) | **PUT** /policies/repositorysync/{dn} | Modify or move an Repository synchronisation policy object +[**udm_policies_repositorysync_object_remove**](PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_remove) | **DELETE** /policies/repositorysync/{dn} | Remove a Repository synchronisation policies object +[**udm_policies_repositorysync_object_search**](PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_search) | **GET** /policies/repositorysync/ | Search for Repository synchronisation policies objects +[**udm_policies_repositorysync_object_template**](PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_template) | **GET** /policies/repositorysync/add | Get a template for creating an Repository synchronisation policy object (contains all properties and their default values) +[**udm_policies_repositorysync_object_update**](PoliciesRepositorysyncApi.md#udm_policies_repositorysync_object_update) | **PATCH** /policies/repositorysync/{dn} | Modify an Repository synchronisation policy object (moving is currently not possible) + + +# **udm_policies_repositorysync_object** +> PoliciesRepositorysync udm_policies_repositorysync_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Repository synchronisation policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositorysyncApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Repository synchronisation policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_repositorysync_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositorysyncApi->udm_policies_repositorysync_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRepositorysync**](PoliciesRepositorysync.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositorysync_object_create** +> InlineResponse201 udm_policies_repositorysync_object_create(policies_repositorysync, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Repository synchronisation policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositorysyncApi(api_client) + policies_repositorysync = openapi_client_udm.PoliciesRepositorysync() # PoliciesRepositorysync | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Repository synchronisation policy object + api_response = api_instance.udm_policies_repositorysync_object_create(policies_repositorysync, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositorysyncApi->udm_policies_repositorysync_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_repositorysync** | [**PoliciesRepositorysync**](PoliciesRepositorysync.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_repositorysync_object_modify** +> InlineResponse201 udm_policies_repositorysync_object_modify(dn, policies_repositorysync, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Repository synchronisation policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositorysyncApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_repositorysync = openapi_client_udm.PoliciesRepositorysync() # PoliciesRepositorysync | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Repository synchronisation policy object + api_response = api_instance.udm_policies_repositorysync_object_modify(dn, policies_repositorysync, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositorysyncApi->udm_policies_repositorysync_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_repositorysync** | [**PoliciesRepositorysync**](PoliciesRepositorysync.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositorysync_object_remove** +> udm_policies_repositorysync_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Repository synchronisation policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositorysyncApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Repository synchronisation policies object + api_instance.udm_policies_repositorysync_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesRepositorysyncApi->udm_policies_repositorysync_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositorysync_object_search** +> PoliciesRepositorysyncList udm_policies_repositorysync_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Repository synchronisation policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositorysyncApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Repository synchronisation policies objects + api_response = api_instance.udm_policies_repositorysync_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositorysyncApi->udm_policies_repositorysync_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRepositorysyncList**](PoliciesRepositorysyncList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositorysync_object_template** +> PoliciesRepositorysync udm_policies_repositorysync_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Repository synchronisation policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositorysyncApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Repository synchronisation policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_repositorysync_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesRepositorysyncApi->udm_policies_repositorysync_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesRepositorysync**](PoliciesRepositorysync.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Repository synchronisation policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_repositorysync_object_update** +> udm_policies_repositorysync_object_update(dn, policies_repositorysync, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Repository synchronisation policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesRepositorysyncApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_repositorysync = openapi_client_udm.PoliciesRepositorysync() # PoliciesRepositorysync | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Repository synchronisation policy object (moving is currently not possible) + api_instance.udm_policies_repositorysync_object_update(dn, policies_repositorysync, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesRepositorysyncApi->udm_policies_repositorysync_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_repositorysync** | [**PoliciesRepositorysync**](PoliciesRepositorysync.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesRepositorysyncList.md b/docs/PoliciesRepositorysyncList.md new file mode 100644 index 0000000..4f0293a --- /dev/null +++ b/docs/PoliciesRepositorysyncList.md @@ -0,0 +1,11 @@ +# PoliciesRepositorysyncList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesRepositorysyncListEmbedded**](PoliciesRepositorysyncListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositorysyncListEmbedded.md b/docs/PoliciesRepositorysyncListEmbedded.md new file mode 100644 index 0000000..1fcf09a --- /dev/null +++ b/docs/PoliciesRepositorysyncListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesRepositorysyncListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesRepositorysync]**](PoliciesRepositorysync.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositorysyncRequest.md b/docs/PoliciesRepositorysyncRequest.md new file mode 100644 index 0000000..7c0f6af --- /dev/null +++ b/docs/PoliciesRepositorysyncRequest.md @@ -0,0 +1,15 @@ +# PoliciesRepositorysyncRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositorysyncRequestPatch.md b/docs/PoliciesRepositorysyncRequestPatch.md new file mode 100644 index 0000000..cf4039c --- /dev/null +++ b/docs/PoliciesRepositorysyncRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesRepositorysyncRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesRepositorysyncResponseMixin.md b/docs/PoliciesRepositorysyncResponseMixin.md new file mode 100644 index 0000000..b2083f4 --- /dev/null +++ b/docs/PoliciesRepositorysyncResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesRepositorysyncResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesShareUserquota.md b/docs/PoliciesShareUserquota.md new file mode 100644 index 0000000..d29f3b7 --- /dev/null +++ b/docs/PoliciesShareUserquota.md @@ -0,0 +1,20 @@ +# PoliciesShareUserquota + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesShareUserquotaApi.md b/docs/PoliciesShareUserquotaApi.md new file mode 100644 index 0000000..98d45c9 --- /dev/null +++ b/docs/PoliciesShareUserquotaApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesShareUserquotaApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_share_userquota_object**](PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object) | **GET** /policies/share_userquota/{dn} | Get a representation of the User quota policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_share_userquota_object_create**](PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_create) | **POST** /policies/share_userquota/ | Create a new User quota policy object +[**udm_policies_share_userquota_object_modify**](PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_modify) | **PUT** /policies/share_userquota/{dn} | Modify or move an User quota policy object +[**udm_policies_share_userquota_object_remove**](PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_remove) | **DELETE** /policies/share_userquota/{dn} | Remove a User quota policies object +[**udm_policies_share_userquota_object_search**](PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_search) | **GET** /policies/share_userquota/ | Search for User quota policies objects +[**udm_policies_share_userquota_object_template**](PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_template) | **GET** /policies/share_userquota/add | Get a template for creating an User quota policy object (contains all properties and their default values) +[**udm_policies_share_userquota_object_update**](PoliciesShareUserquotaApi.md#udm_policies_share_userquota_object_update) | **PATCH** /policies/share_userquota/{dn} | Modify an User quota policy object (moving is currently not possible) + + +# **udm_policies_share_userquota_object** +> PoliciesShareUserquota udm_policies_share_userquota_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the User quota policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesShareUserquotaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the User quota policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_share_userquota_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesShareUserquotaApi->udm_policies_share_userquota_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesShareUserquota**](PoliciesShareUserquota.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_share_userquota_object_create** +> InlineResponse201 udm_policies_share_userquota_object_create(policies_share_userquota, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new User quota policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesShareUserquotaApi(api_client) + policies_share_userquota = openapi_client_udm.PoliciesShareUserquota() # PoliciesShareUserquota | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new User quota policy object + api_response = api_instance.udm_policies_share_userquota_object_create(policies_share_userquota, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesShareUserquotaApi->udm_policies_share_userquota_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_share_userquota** | [**PoliciesShareUserquota**](PoliciesShareUserquota.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_share_userquota_object_modify** +> InlineResponse201 udm_policies_share_userquota_object_modify(dn, policies_share_userquota, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an User quota policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesShareUserquotaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_share_userquota = openapi_client_udm.PoliciesShareUserquota() # PoliciesShareUserquota | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an User quota policy object + api_response = api_instance.udm_policies_share_userquota_object_modify(dn, policies_share_userquota, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesShareUserquotaApi->udm_policies_share_userquota_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_share_userquota** | [**PoliciesShareUserquota**](PoliciesShareUserquota.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_share_userquota_object_remove** +> udm_policies_share_userquota_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a User quota policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesShareUserquotaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a User quota policies object + api_instance.udm_policies_share_userquota_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesShareUserquotaApi->udm_policies_share_userquota_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_share_userquota_object_search** +> PoliciesShareUserquotaList udm_policies_share_userquota_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for User quota policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesShareUserquotaApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for User quota policies objects + api_response = api_instance.udm_policies_share_userquota_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesShareUserquotaApi->udm_policies_share_userquota_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesShareUserquotaList**](PoliciesShareUserquotaList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_share_userquota_object_template** +> PoliciesShareUserquota udm_policies_share_userquota_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an User quota policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesShareUserquotaApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an User quota policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_share_userquota_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesShareUserquotaApi->udm_policies_share_userquota_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesShareUserquota**](PoliciesShareUserquota.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new User quota policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_share_userquota_object_update** +> udm_policies_share_userquota_object_update(dn, policies_share_userquota, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an User quota policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesShareUserquotaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_share_userquota = openapi_client_udm.PoliciesShareUserquota() # PoliciesShareUserquota | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an User quota policy object (moving is currently not possible) + api_instance.udm_policies_share_userquota_object_update(dn, policies_share_userquota, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesShareUserquotaApi->udm_policies_share_userquota_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_share_userquota** | [**PoliciesShareUserquota**](PoliciesShareUserquota.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesShareUserquotaList.md b/docs/PoliciesShareUserquotaList.md new file mode 100644 index 0000000..501ffdd --- /dev/null +++ b/docs/PoliciesShareUserquotaList.md @@ -0,0 +1,11 @@ +# PoliciesShareUserquotaList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesShareUserquotaListEmbedded**](PoliciesShareUserquotaListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesShareUserquotaListEmbedded.md b/docs/PoliciesShareUserquotaListEmbedded.md new file mode 100644 index 0000000..cd4229b --- /dev/null +++ b/docs/PoliciesShareUserquotaListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesShareUserquotaListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesShareUserquota]**](PoliciesShareUserquota.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesShareUserquotaRequest.md b/docs/PoliciesShareUserquotaRequest.md new file mode 100644 index 0000000..5027840 --- /dev/null +++ b/docs/PoliciesShareUserquotaRequest.md @@ -0,0 +1,15 @@ +# PoliciesShareUserquotaRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesShareUserquotaRequestPatch.md b/docs/PoliciesShareUserquotaRequestPatch.md new file mode 100644 index 0000000..5f2dd02 --- /dev/null +++ b/docs/PoliciesShareUserquotaRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesShareUserquotaRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesShareUserquotaResponseMixin.md b/docs/PoliciesShareUserquotaResponseMixin.md new file mode 100644 index 0000000..7594c62 --- /dev/null +++ b/docs/PoliciesShareUserquotaResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesShareUserquotaResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesSlavepackages.md b/docs/PoliciesSlavepackages.md new file mode 100644 index 0000000..bf0d4ce --- /dev/null +++ b/docs/PoliciesSlavepackages.md @@ -0,0 +1,20 @@ +# PoliciesSlavepackages + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesSlavepackagesApi.md b/docs/PoliciesSlavepackagesApi.md new file mode 100644 index 0000000..79faa83 --- /dev/null +++ b/docs/PoliciesSlavepackagesApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesSlavepackagesApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_slavepackages_object**](PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object) | **GET** /policies/slavepackages/{dn} | Get a representation of the Replica Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_slavepackages_object_create**](PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_create) | **POST** /policies/slavepackages/ | Create a new Replica Node packages policy object +[**udm_policies_slavepackages_object_modify**](PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_modify) | **PUT** /policies/slavepackages/{dn} | Modify or move an Replica Node packages policy object +[**udm_policies_slavepackages_object_remove**](PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_remove) | **DELETE** /policies/slavepackages/{dn} | Remove a Replica Node packages policies object +[**udm_policies_slavepackages_object_search**](PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_search) | **GET** /policies/slavepackages/ | Search for Replica Node packages policies objects +[**udm_policies_slavepackages_object_template**](PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_template) | **GET** /policies/slavepackages/add | Get a template for creating an Replica Node packages policy object (contains all properties and their default values) +[**udm_policies_slavepackages_object_update**](PoliciesSlavepackagesApi.md#udm_policies_slavepackages_object_update) | **PATCH** /policies/slavepackages/{dn} | Modify an Replica Node packages policy object (moving is currently not possible) + + +# **udm_policies_slavepackages_object** +> PoliciesSlavepackages udm_policies_slavepackages_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Replica Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesSlavepackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Replica Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_slavepackages_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesSlavepackagesApi->udm_policies_slavepackages_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesSlavepackages**](PoliciesSlavepackages.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_slavepackages_object_create** +> InlineResponse201 udm_policies_slavepackages_object_create(policies_slavepackages, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Replica Node packages policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesSlavepackagesApi(api_client) + policies_slavepackages = openapi_client_udm.PoliciesSlavepackages() # PoliciesSlavepackages | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Replica Node packages policy object + api_response = api_instance.udm_policies_slavepackages_object_create(policies_slavepackages, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesSlavepackagesApi->udm_policies_slavepackages_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_slavepackages** | [**PoliciesSlavepackages**](PoliciesSlavepackages.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_slavepackages_object_modify** +> InlineResponse201 udm_policies_slavepackages_object_modify(dn, policies_slavepackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Replica Node packages policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesSlavepackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_slavepackages = openapi_client_udm.PoliciesSlavepackages() # PoliciesSlavepackages | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Replica Node packages policy object + api_response = api_instance.udm_policies_slavepackages_object_modify(dn, policies_slavepackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesSlavepackagesApi->udm_policies_slavepackages_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_slavepackages** | [**PoliciesSlavepackages**](PoliciesSlavepackages.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_slavepackages_object_remove** +> udm_policies_slavepackages_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Replica Node packages policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesSlavepackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Replica Node packages policies object + api_instance.udm_policies_slavepackages_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesSlavepackagesApi->udm_policies_slavepackages_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_slavepackages_object_search** +> PoliciesSlavepackagesList udm_policies_slavepackages_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Replica Node packages policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesSlavepackagesApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Replica Node packages policies objects + api_response = api_instance.udm_policies_slavepackages_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesSlavepackagesApi->udm_policies_slavepackages_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesSlavepackagesList**](PoliciesSlavepackagesList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_slavepackages_object_template** +> PoliciesSlavepackages udm_policies_slavepackages_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Replica Node packages policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesSlavepackagesApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Replica Node packages policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_slavepackages_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesSlavepackagesApi->udm_policies_slavepackages_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesSlavepackages**](PoliciesSlavepackages.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Replica Node packages policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_slavepackages_object_update** +> udm_policies_slavepackages_object_update(dn, policies_slavepackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Replica Node packages policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesSlavepackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_slavepackages = openapi_client_udm.PoliciesSlavepackages() # PoliciesSlavepackages | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Replica Node packages policy object (moving is currently not possible) + api_instance.udm_policies_slavepackages_object_update(dn, policies_slavepackages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesSlavepackagesApi->udm_policies_slavepackages_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_slavepackages** | [**PoliciesSlavepackages**](PoliciesSlavepackages.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesSlavepackagesList.md b/docs/PoliciesSlavepackagesList.md new file mode 100644 index 0000000..43c1467 --- /dev/null +++ b/docs/PoliciesSlavepackagesList.md @@ -0,0 +1,11 @@ +# PoliciesSlavepackagesList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesSlavepackagesListEmbedded**](PoliciesSlavepackagesListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesSlavepackagesListEmbedded.md b/docs/PoliciesSlavepackagesListEmbedded.md new file mode 100644 index 0000000..cf58a41 --- /dev/null +++ b/docs/PoliciesSlavepackagesListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesSlavepackagesListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesSlavepackages]**](PoliciesSlavepackages.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesSlavepackagesRequest.md b/docs/PoliciesSlavepackagesRequest.md new file mode 100644 index 0000000..eddd50c --- /dev/null +++ b/docs/PoliciesSlavepackagesRequest.md @@ -0,0 +1,15 @@ +# PoliciesSlavepackagesRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesSlavepackagesRequestPatch.md b/docs/PoliciesSlavepackagesRequestPatch.md new file mode 100644 index 0000000..eae10d6 --- /dev/null +++ b/docs/PoliciesSlavepackagesRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesSlavepackagesRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesSlavepackagesResponseMixin.md b/docs/PoliciesSlavepackagesResponseMixin.md new file mode 100644 index 0000000..66ed464 --- /dev/null +++ b/docs/PoliciesSlavepackagesResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesSlavepackagesResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesUmc.md b/docs/PoliciesUmc.md new file mode 100644 index 0000000..c989b76 --- /dev/null +++ b/docs/PoliciesUmc.md @@ -0,0 +1,20 @@ +# PoliciesUmc + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesUmcApi.md b/docs/PoliciesUmcApi.md new file mode 100644 index 0000000..a2f9530 --- /dev/null +++ b/docs/PoliciesUmcApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PoliciesUmcApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_policies_umc_object**](PoliciesUmcApi.md#udm_policies_umc_object) | **GET** /policies/umc/{dn} | Get a representation of the UMC policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_policies_umc_object_create**](PoliciesUmcApi.md#udm_policies_umc_object_create) | **POST** /policies/umc/ | Create a new UMC policy object +[**udm_policies_umc_object_modify**](PoliciesUmcApi.md#udm_policies_umc_object_modify) | **PUT** /policies/umc/{dn} | Modify or move an UMC policy object +[**udm_policies_umc_object_remove**](PoliciesUmcApi.md#udm_policies_umc_object_remove) | **DELETE** /policies/umc/{dn} | Remove a UMC policies object +[**udm_policies_umc_object_search**](PoliciesUmcApi.md#udm_policies_umc_object_search) | **GET** /policies/umc/ | Search for UMC policies objects +[**udm_policies_umc_object_template**](PoliciesUmcApi.md#udm_policies_umc_object_template) | **GET** /policies/umc/add | Get a template for creating an UMC policy object (contains all properties and their default values) +[**udm_policies_umc_object_update**](PoliciesUmcApi.md#udm_policies_umc_object_update) | **PATCH** /policies/umc/{dn} | Modify an UMC policy object (moving is currently not possible) + + +# **udm_policies_umc_object** +> PoliciesUmc udm_policies_umc_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the UMC policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesUmcApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the UMC policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_policies_umc_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesUmcApi->udm_policies_umc_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesUmc**](PoliciesUmc.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_umc_object_create** +> InlineResponse201 udm_policies_umc_object_create(policies_umc, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new UMC policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesUmcApi(api_client) + policies_umc = openapi_client_udm.PoliciesUmc() # PoliciesUmc | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new UMC policy object + api_response = api_instance.udm_policies_umc_object_create(policies_umc, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesUmcApi->udm_policies_umc_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policies_umc** | [**PoliciesUmc**](PoliciesUmc.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_policies_umc_object_modify** +> InlineResponse201 udm_policies_umc_object_modify(dn, policies_umc, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an UMC policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesUmcApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_umc = openapi_client_udm.PoliciesUmc() # PoliciesUmc | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an UMC policy object + api_response = api_instance.udm_policies_umc_object_modify(dn, policies_umc, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesUmcApi->udm_policies_umc_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_umc** | [**PoliciesUmc**](PoliciesUmc.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_umc_object_remove** +> udm_policies_umc_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a UMC policies object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesUmcApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a UMC policies object + api_instance.udm_policies_umc_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesUmcApi->udm_policies_umc_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_umc_object_search** +> PoliciesUmcList udm_policies_umc_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for UMC policies objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesUmcApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for UMC policies objects + api_response = api_instance.udm_policies_umc_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesUmcApi->udm_policies_umc_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesUmcList**](PoliciesUmcList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_umc_object_template** +> PoliciesUmc udm_policies_umc_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an UMC policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesUmcApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an UMC policy object (contains all properties and their default values) + api_response = api_instance.udm_policies_umc_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PoliciesUmcApi->udm_policies_umc_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PoliciesUmc**](PoliciesUmc.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new UMC policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_policies_umc_object_update** +> udm_policies_umc_object_update(dn, policies_umc, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an UMC policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PoliciesUmcApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +policies_umc = openapi_client_udm.PoliciesUmc() # PoliciesUmc | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an UMC policy object (moving is currently not possible) + api_instance.udm_policies_umc_object_update(dn, policies_umc, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PoliciesUmcApi->udm_policies_umc_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **policies_umc** | [**PoliciesUmc**](PoliciesUmc.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PoliciesUmcList.md b/docs/PoliciesUmcList.md new file mode 100644 index 0000000..93ef7ed --- /dev/null +++ b/docs/PoliciesUmcList.md @@ -0,0 +1,11 @@ +# PoliciesUmcList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PoliciesUmcListEmbedded**](PoliciesUmcListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesUmcListEmbedded.md b/docs/PoliciesUmcListEmbedded.md new file mode 100644 index 0000000..f6dedd4 --- /dev/null +++ b/docs/PoliciesUmcListEmbedded.md @@ -0,0 +1,11 @@ +# PoliciesUmcListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PoliciesUmc]**](PoliciesUmc.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesUmcRequest.md b/docs/PoliciesUmcRequest.md new file mode 100644 index 0000000..3315a2a --- /dev/null +++ b/docs/PoliciesUmcRequest.md @@ -0,0 +1,15 @@ +# PoliciesUmcRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesUmcRequestPatch.md b/docs/PoliciesUmcRequestPatch.md new file mode 100644 index 0000000..4d1a623 --- /dev/null +++ b/docs/PoliciesUmcRequestPatch.md @@ -0,0 +1,14 @@ +# PoliciesUmcRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PoliciesUmcResponseMixin.md b/docs/PoliciesUmcResponseMixin.md new file mode 100644 index 0000000..274519b --- /dev/null +++ b/docs/PoliciesUmcResponseMixin.md @@ -0,0 +1,15 @@ +# PoliciesUmcResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAll.md b/docs/PortalsAll.md new file mode 100644 index 0000000..74fd583 --- /dev/null +++ b/docs/PortalsAll.md @@ -0,0 +1,20 @@ +# PortalsAll + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAllApi.md b/docs/PortalsAllApi.md new file mode 100644 index 0000000..8234c60 --- /dev/null +++ b/docs/PortalsAllApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.PortalsAllApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_portals_all_object**](PortalsAllApi.md#udm_portals_all_object) | **GET** /portals/all/{dn} | Get a representation of the Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_portals_all_object_search**](PortalsAllApi.md#udm_portals_all_object_search) | **GET** /portals/all/ | Search for Portal: Settings objects + + +# **udm_portals_all_object** +> PortalsAll udm_portals_all_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAllApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_portals_all_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsAllApi->udm_portals_all_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsAll**](PortalsAll.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_all_object_search** +> PortalsAllList udm_portals_all_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Portal: Settings objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAllApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Portal: Settings objects + api_response = api_instance.udm_portals_all_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsAllApi->udm_portals_all_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsAllList**](PortalsAllList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PortalsAllList.md b/docs/PortalsAllList.md new file mode 100644 index 0000000..32de6de --- /dev/null +++ b/docs/PortalsAllList.md @@ -0,0 +1,11 @@ +# PortalsAllList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PortalsAllListEmbedded**](PortalsAllListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAllListEmbedded.md b/docs/PortalsAllListEmbedded.md new file mode 100644 index 0000000..4832195 --- /dev/null +++ b/docs/PortalsAllListEmbedded.md @@ -0,0 +1,11 @@ +# PortalsAllListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PortalsAll]**](PortalsAll.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAllRequest.md b/docs/PortalsAllRequest.md new file mode 100644 index 0000000..93ecb77 --- /dev/null +++ b/docs/PortalsAllRequest.md @@ -0,0 +1,15 @@ +# PortalsAllRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAllRequestPatch.md b/docs/PortalsAllRequestPatch.md new file mode 100644 index 0000000..f97f259 --- /dev/null +++ b/docs/PortalsAllRequestPatch.md @@ -0,0 +1,14 @@ +# PortalsAllRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAllResponseMixin.md b/docs/PortalsAllResponseMixin.md new file mode 100644 index 0000000..8bb8c38 --- /dev/null +++ b/docs/PortalsAllResponseMixin.md @@ -0,0 +1,15 @@ +# PortalsAllResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAnnouncement.md b/docs/PortalsAnnouncement.md new file mode 100644 index 0000000..f33eba8 --- /dev/null +++ b/docs/PortalsAnnouncement.md @@ -0,0 +1,20 @@ +# PortalsAnnouncement + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAnnouncementApi.md b/docs/PortalsAnnouncementApi.md new file mode 100644 index 0000000..b75a112 --- /dev/null +++ b/docs/PortalsAnnouncementApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PortalsAnnouncementApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_portals_announcement_object**](PortalsAnnouncementApi.md#udm_portals_announcement_object) | **GET** /portals/announcement/{dn} | Get a representation of the Portal announcement object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_portals_announcement_object_create**](PortalsAnnouncementApi.md#udm_portals_announcement_object_create) | **POST** /portals/announcement/ | Create a new Portal announcement object +[**udm_portals_announcement_object_modify**](PortalsAnnouncementApi.md#udm_portals_announcement_object_modify) | **PUT** /portals/announcement/{dn} | Modify or move an Portal announcement object +[**udm_portals_announcement_object_remove**](PortalsAnnouncementApi.md#udm_portals_announcement_object_remove) | **DELETE** /portals/announcement/{dn} | Remove a Portal announcements object +[**udm_portals_announcement_object_search**](PortalsAnnouncementApi.md#udm_portals_announcement_object_search) | **GET** /portals/announcement/ | Search for Portal announcements objects +[**udm_portals_announcement_object_template**](PortalsAnnouncementApi.md#udm_portals_announcement_object_template) | **GET** /portals/announcement/add | Get a template for creating an Portal announcement object (contains all properties and their default values) +[**udm_portals_announcement_object_update**](PortalsAnnouncementApi.md#udm_portals_announcement_object_update) | **PATCH** /portals/announcement/{dn} | Modify an Portal announcement object (moving is currently not possible) + + +# **udm_portals_announcement_object** +> PortalsAnnouncement udm_portals_announcement_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Portal announcement object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAnnouncementApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Portal announcement object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_portals_announcement_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsAnnouncementApi->udm_portals_announcement_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsAnnouncement**](PortalsAnnouncement.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_announcement_object_create** +> InlineResponse201 udm_portals_announcement_object_create(portals_announcement, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Portal announcement object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAnnouncementApi(api_client) + portals_announcement = openapi_client_udm.PortalsAnnouncement() # PortalsAnnouncement | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Portal announcement object + api_response = api_instance.udm_portals_announcement_object_create(portals_announcement, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsAnnouncementApi->udm_portals_announcement_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portals_announcement** | [**PortalsAnnouncement**](PortalsAnnouncement.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_portals_announcement_object_modify** +> InlineResponse201 udm_portals_announcement_object_modify(dn, portals_announcement, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Portal announcement object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAnnouncementApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_announcement = openapi_client_udm.PortalsAnnouncement() # PortalsAnnouncement | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Portal announcement object + api_response = api_instance.udm_portals_announcement_object_modify(dn, portals_announcement, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsAnnouncementApi->udm_portals_announcement_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_announcement** | [**PortalsAnnouncement**](PortalsAnnouncement.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_announcement_object_remove** +> udm_portals_announcement_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Portal announcements object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAnnouncementApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Portal announcements object + api_instance.udm_portals_announcement_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsAnnouncementApi->udm_portals_announcement_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_announcement_object_search** +> PortalsAnnouncementList udm_portals_announcement_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Portal announcements objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAnnouncementApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Portal announcements objects + api_response = api_instance.udm_portals_announcement_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsAnnouncementApi->udm_portals_announcement_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsAnnouncementList**](PortalsAnnouncementList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_announcement_object_template** +> PortalsAnnouncement udm_portals_announcement_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Portal announcement object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAnnouncementApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Portal announcement object (contains all properties and their default values) + api_response = api_instance.udm_portals_announcement_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsAnnouncementApi->udm_portals_announcement_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsAnnouncement**](PortalsAnnouncement.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Portal announcement. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_announcement_object_update** +> udm_portals_announcement_object_update(dn, portals_announcement, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Portal announcement object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsAnnouncementApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_announcement = openapi_client_udm.PortalsAnnouncement() # PortalsAnnouncement | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Portal announcement object (moving is currently not possible) + api_instance.udm_portals_announcement_object_update(dn, portals_announcement, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsAnnouncementApi->udm_portals_announcement_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_announcement** | [**PortalsAnnouncement**](PortalsAnnouncement.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PortalsAnnouncementList.md b/docs/PortalsAnnouncementList.md new file mode 100644 index 0000000..971c81d --- /dev/null +++ b/docs/PortalsAnnouncementList.md @@ -0,0 +1,11 @@ +# PortalsAnnouncementList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PortalsAnnouncementListEmbedded**](PortalsAnnouncementListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAnnouncementListEmbedded.md b/docs/PortalsAnnouncementListEmbedded.md new file mode 100644 index 0000000..7d799ad --- /dev/null +++ b/docs/PortalsAnnouncementListEmbedded.md @@ -0,0 +1,11 @@ +# PortalsAnnouncementListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PortalsAnnouncement]**](PortalsAnnouncement.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAnnouncementRequest.md b/docs/PortalsAnnouncementRequest.md new file mode 100644 index 0000000..aed4795 --- /dev/null +++ b/docs/PortalsAnnouncementRequest.md @@ -0,0 +1,15 @@ +# PortalsAnnouncementRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAnnouncementRequestPatch.md b/docs/PortalsAnnouncementRequestPatch.md new file mode 100644 index 0000000..2179dfd --- /dev/null +++ b/docs/PortalsAnnouncementRequestPatch.md @@ -0,0 +1,14 @@ +# PortalsAnnouncementRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsAnnouncementResponseMixin.md b/docs/PortalsAnnouncementResponseMixin.md new file mode 100644 index 0000000..6160bdc --- /dev/null +++ b/docs/PortalsAnnouncementResponseMixin.md @@ -0,0 +1,15 @@ +# PortalsAnnouncementResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsCategory.md b/docs/PortalsCategory.md new file mode 100644 index 0000000..a32d28e --- /dev/null +++ b/docs/PortalsCategory.md @@ -0,0 +1,20 @@ +# PortalsCategory + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsCategoryApi.md b/docs/PortalsCategoryApi.md new file mode 100644 index 0000000..a7af873 --- /dev/null +++ b/docs/PortalsCategoryApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PortalsCategoryApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_portals_category_object**](PortalsCategoryApi.md#udm_portals_category_object) | **GET** /portals/category/{dn} | Get a representation of the Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_portals_category_object_create**](PortalsCategoryApi.md#udm_portals_category_object_create) | **POST** /portals/category/ | Create a new Portal category object +[**udm_portals_category_object_modify**](PortalsCategoryApi.md#udm_portals_category_object_modify) | **PUT** /portals/category/{dn} | Modify or move an Portal category object +[**udm_portals_category_object_remove**](PortalsCategoryApi.md#udm_portals_category_object_remove) | **DELETE** /portals/category/{dn} | Remove a Portal categories object +[**udm_portals_category_object_search**](PortalsCategoryApi.md#udm_portals_category_object_search) | **GET** /portals/category/ | Search for Portal categories objects +[**udm_portals_category_object_template**](PortalsCategoryApi.md#udm_portals_category_object_template) | **GET** /portals/category/add | Get a template for creating an Portal category object (contains all properties and their default values) +[**udm_portals_category_object_update**](PortalsCategoryApi.md#udm_portals_category_object_update) | **PATCH** /portals/category/{dn} | Modify an Portal category object (moving is currently not possible) + + +# **udm_portals_category_object** +> PortalsCategory udm_portals_category_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsCategoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_portals_category_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsCategoryApi->udm_portals_category_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsCategory**](PortalsCategory.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_category_object_create** +> InlineResponse201 udm_portals_category_object_create(portals_category, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Portal category object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsCategoryApi(api_client) + portals_category = openapi_client_udm.PortalsCategory() # PortalsCategory | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Portal category object + api_response = api_instance.udm_portals_category_object_create(portals_category, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsCategoryApi->udm_portals_category_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portals_category** | [**PortalsCategory**](PortalsCategory.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_portals_category_object_modify** +> InlineResponse201 udm_portals_category_object_modify(dn, portals_category, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Portal category object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsCategoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_category = openapi_client_udm.PortalsCategory() # PortalsCategory | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Portal category object + api_response = api_instance.udm_portals_category_object_modify(dn, portals_category, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsCategoryApi->udm_portals_category_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_category** | [**PortalsCategory**](PortalsCategory.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_category_object_remove** +> udm_portals_category_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Portal categories object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsCategoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Portal categories object + api_instance.udm_portals_category_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsCategoryApi->udm_portals_category_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_category_object_search** +> PortalsCategoryList udm_portals_category_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Portal categories objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsCategoryApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Portal categories objects + api_response = api_instance.udm_portals_category_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsCategoryApi->udm_portals_category_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsCategoryList**](PortalsCategoryList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_category_object_template** +> PortalsCategory udm_portals_category_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Portal category object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsCategoryApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Portal category object (contains all properties and their default values) + api_response = api_instance.udm_portals_category_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsCategoryApi->udm_portals_category_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsCategory**](PortalsCategory.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Portal category. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_category_object_update** +> udm_portals_category_object_update(dn, portals_category, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Portal category object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsCategoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_category = openapi_client_udm.PortalsCategory() # PortalsCategory | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Portal category object (moving is currently not possible) + api_instance.udm_portals_category_object_update(dn, portals_category, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsCategoryApi->udm_portals_category_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_category** | [**PortalsCategory**](PortalsCategory.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PortalsCategoryList.md b/docs/PortalsCategoryList.md new file mode 100644 index 0000000..1ae2fc5 --- /dev/null +++ b/docs/PortalsCategoryList.md @@ -0,0 +1,11 @@ +# PortalsCategoryList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PortalsCategoryListEmbedded**](PortalsCategoryListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsCategoryListEmbedded.md b/docs/PortalsCategoryListEmbedded.md new file mode 100644 index 0000000..fc0d148 --- /dev/null +++ b/docs/PortalsCategoryListEmbedded.md @@ -0,0 +1,11 @@ +# PortalsCategoryListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PortalsCategory]**](PortalsCategory.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsCategoryRequest.md b/docs/PortalsCategoryRequest.md new file mode 100644 index 0000000..2cd83e7 --- /dev/null +++ b/docs/PortalsCategoryRequest.md @@ -0,0 +1,15 @@ +# PortalsCategoryRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsCategoryRequestPatch.md b/docs/PortalsCategoryRequestPatch.md new file mode 100644 index 0000000..9a261e4 --- /dev/null +++ b/docs/PortalsCategoryRequestPatch.md @@ -0,0 +1,14 @@ +# PortalsCategoryRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsCategoryResponseMixin.md b/docs/PortalsCategoryResponseMixin.md new file mode 100644 index 0000000..4640354 --- /dev/null +++ b/docs/PortalsCategoryResponseMixin.md @@ -0,0 +1,15 @@ +# PortalsCategoryResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsEntry.md b/docs/PortalsEntry.md new file mode 100644 index 0000000..cd61c2b --- /dev/null +++ b/docs/PortalsEntry.md @@ -0,0 +1,20 @@ +# PortalsEntry + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsEntryApi.md b/docs/PortalsEntryApi.md new file mode 100644 index 0000000..ca97be4 --- /dev/null +++ b/docs/PortalsEntryApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PortalsEntryApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_portals_entry_object**](PortalsEntryApi.md#udm_portals_entry_object) | **GET** /portals/entry/{dn} | Get a representation of the Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_portals_entry_object_create**](PortalsEntryApi.md#udm_portals_entry_object_create) | **POST** /portals/entry/ | Create a new Portal entry object +[**udm_portals_entry_object_modify**](PortalsEntryApi.md#udm_portals_entry_object_modify) | **PUT** /portals/entry/{dn} | Modify or move an Portal entry object +[**udm_portals_entry_object_remove**](PortalsEntryApi.md#udm_portals_entry_object_remove) | **DELETE** /portals/entry/{dn} | Remove a Portal entries object +[**udm_portals_entry_object_search**](PortalsEntryApi.md#udm_portals_entry_object_search) | **GET** /portals/entry/ | Search for Portal entries objects +[**udm_portals_entry_object_template**](PortalsEntryApi.md#udm_portals_entry_object_template) | **GET** /portals/entry/add | Get a template for creating an Portal entry object (contains all properties and their default values) +[**udm_portals_entry_object_update**](PortalsEntryApi.md#udm_portals_entry_object_update) | **PATCH** /portals/entry/{dn} | Modify an Portal entry object (moving is currently not possible) + + +# **udm_portals_entry_object** +> PortalsEntry udm_portals_entry_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsEntryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_portals_entry_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsEntryApi->udm_portals_entry_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsEntry**](PortalsEntry.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_entry_object_create** +> InlineResponse201 udm_portals_entry_object_create(portals_entry, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Portal entry object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsEntryApi(api_client) + portals_entry = openapi_client_udm.PortalsEntry() # PortalsEntry | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Portal entry object + api_response = api_instance.udm_portals_entry_object_create(portals_entry, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsEntryApi->udm_portals_entry_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portals_entry** | [**PortalsEntry**](PortalsEntry.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_portals_entry_object_modify** +> InlineResponse201 udm_portals_entry_object_modify(dn, portals_entry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Portal entry object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsEntryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_entry = openapi_client_udm.PortalsEntry() # PortalsEntry | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Portal entry object + api_response = api_instance.udm_portals_entry_object_modify(dn, portals_entry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsEntryApi->udm_portals_entry_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_entry** | [**PortalsEntry**](PortalsEntry.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_entry_object_remove** +> udm_portals_entry_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Portal entries object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsEntryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Portal entries object + api_instance.udm_portals_entry_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsEntryApi->udm_portals_entry_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_entry_object_search** +> PortalsEntryList udm_portals_entry_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Portal entries objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsEntryApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Portal entries objects + api_response = api_instance.udm_portals_entry_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsEntryApi->udm_portals_entry_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsEntryList**](PortalsEntryList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_entry_object_template** +> PortalsEntry udm_portals_entry_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Portal entry object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsEntryApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Portal entry object (contains all properties and their default values) + api_response = api_instance.udm_portals_entry_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsEntryApi->udm_portals_entry_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsEntry**](PortalsEntry.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Portal entry. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_entry_object_update** +> udm_portals_entry_object_update(dn, portals_entry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Portal entry object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsEntryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_entry = openapi_client_udm.PortalsEntry() # PortalsEntry | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Portal entry object (moving is currently not possible) + api_instance.udm_portals_entry_object_update(dn, portals_entry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsEntryApi->udm_portals_entry_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_entry** | [**PortalsEntry**](PortalsEntry.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PortalsEntryList.md b/docs/PortalsEntryList.md new file mode 100644 index 0000000..c387c7e --- /dev/null +++ b/docs/PortalsEntryList.md @@ -0,0 +1,11 @@ +# PortalsEntryList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PortalsEntryListEmbedded**](PortalsEntryListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsEntryListEmbedded.md b/docs/PortalsEntryListEmbedded.md new file mode 100644 index 0000000..5e575fb --- /dev/null +++ b/docs/PortalsEntryListEmbedded.md @@ -0,0 +1,11 @@ +# PortalsEntryListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PortalsEntry]**](PortalsEntry.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsEntryRequest.md b/docs/PortalsEntryRequest.md new file mode 100644 index 0000000..500e5d0 --- /dev/null +++ b/docs/PortalsEntryRequest.md @@ -0,0 +1,15 @@ +# PortalsEntryRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsEntryRequestPatch.md b/docs/PortalsEntryRequestPatch.md new file mode 100644 index 0000000..baa3815 --- /dev/null +++ b/docs/PortalsEntryRequestPatch.md @@ -0,0 +1,14 @@ +# PortalsEntryRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsEntryResponseMixin.md b/docs/PortalsEntryResponseMixin.md new file mode 100644 index 0000000..983c1ce --- /dev/null +++ b/docs/PortalsEntryResponseMixin.md @@ -0,0 +1,15 @@ +# PortalsEntryResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsFolder.md b/docs/PortalsFolder.md new file mode 100644 index 0000000..5991e54 --- /dev/null +++ b/docs/PortalsFolder.md @@ -0,0 +1,20 @@ +# PortalsFolder + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsFolderApi.md b/docs/PortalsFolderApi.md new file mode 100644 index 0000000..9daad5f --- /dev/null +++ b/docs/PortalsFolderApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PortalsFolderApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_portals_folder_object**](PortalsFolderApi.md#udm_portals_folder_object) | **GET** /portals/folder/{dn} | Get a representation of the Portal folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_portals_folder_object_create**](PortalsFolderApi.md#udm_portals_folder_object_create) | **POST** /portals/folder/ | Create a new Portal folder object +[**udm_portals_folder_object_modify**](PortalsFolderApi.md#udm_portals_folder_object_modify) | **PUT** /portals/folder/{dn} | Modify or move an Portal folder object +[**udm_portals_folder_object_remove**](PortalsFolderApi.md#udm_portals_folder_object_remove) | **DELETE** /portals/folder/{dn} | Remove a Portal folders object +[**udm_portals_folder_object_search**](PortalsFolderApi.md#udm_portals_folder_object_search) | **GET** /portals/folder/ | Search for Portal folders objects +[**udm_portals_folder_object_template**](PortalsFolderApi.md#udm_portals_folder_object_template) | **GET** /portals/folder/add | Get a template for creating an Portal folder object (contains all properties and their default values) +[**udm_portals_folder_object_update**](PortalsFolderApi.md#udm_portals_folder_object_update) | **PATCH** /portals/folder/{dn} | Modify an Portal folder object (moving is currently not possible) + + +# **udm_portals_folder_object** +> PortalsFolder udm_portals_folder_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Portal folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsFolderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Portal folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_portals_folder_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsFolderApi->udm_portals_folder_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsFolder**](PortalsFolder.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_folder_object_create** +> InlineResponse201 udm_portals_folder_object_create(portals_folder, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Portal folder object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsFolderApi(api_client) + portals_folder = openapi_client_udm.PortalsFolder() # PortalsFolder | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Portal folder object + api_response = api_instance.udm_portals_folder_object_create(portals_folder, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsFolderApi->udm_portals_folder_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portals_folder** | [**PortalsFolder**](PortalsFolder.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_portals_folder_object_modify** +> InlineResponse201 udm_portals_folder_object_modify(dn, portals_folder, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Portal folder object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsFolderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_folder = openapi_client_udm.PortalsFolder() # PortalsFolder | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Portal folder object + api_response = api_instance.udm_portals_folder_object_modify(dn, portals_folder, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsFolderApi->udm_portals_folder_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_folder** | [**PortalsFolder**](PortalsFolder.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_folder_object_remove** +> udm_portals_folder_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Portal folders object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsFolderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Portal folders object + api_instance.udm_portals_folder_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsFolderApi->udm_portals_folder_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_folder_object_search** +> PortalsFolderList udm_portals_folder_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Portal folders objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsFolderApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Portal folders objects + api_response = api_instance.udm_portals_folder_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsFolderApi->udm_portals_folder_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsFolderList**](PortalsFolderList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_folder_object_template** +> PortalsFolder udm_portals_folder_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Portal folder object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsFolderApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Portal folder object (contains all properties and their default values) + api_response = api_instance.udm_portals_folder_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsFolderApi->udm_portals_folder_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsFolder**](PortalsFolder.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Portal folder. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_folder_object_update** +> udm_portals_folder_object_update(dn, portals_folder, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Portal folder object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsFolderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_folder = openapi_client_udm.PortalsFolder() # PortalsFolder | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Portal folder object (moving is currently not possible) + api_instance.udm_portals_folder_object_update(dn, portals_folder, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsFolderApi->udm_portals_folder_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_folder** | [**PortalsFolder**](PortalsFolder.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PortalsFolderList.md b/docs/PortalsFolderList.md new file mode 100644 index 0000000..d7a8fce --- /dev/null +++ b/docs/PortalsFolderList.md @@ -0,0 +1,11 @@ +# PortalsFolderList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PortalsFolderListEmbedded**](PortalsFolderListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsFolderListEmbedded.md b/docs/PortalsFolderListEmbedded.md new file mode 100644 index 0000000..73d294f --- /dev/null +++ b/docs/PortalsFolderListEmbedded.md @@ -0,0 +1,11 @@ +# PortalsFolderListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PortalsFolder]**](PortalsFolder.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsFolderRequest.md b/docs/PortalsFolderRequest.md new file mode 100644 index 0000000..7d016b3 --- /dev/null +++ b/docs/PortalsFolderRequest.md @@ -0,0 +1,15 @@ +# PortalsFolderRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsFolderRequestPatch.md b/docs/PortalsFolderRequestPatch.md new file mode 100644 index 0000000..45387a9 --- /dev/null +++ b/docs/PortalsFolderRequestPatch.md @@ -0,0 +1,14 @@ +# PortalsFolderRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsFolderResponseMixin.md b/docs/PortalsFolderResponseMixin.md new file mode 100644 index 0000000..7604687 --- /dev/null +++ b/docs/PortalsFolderResponseMixin.md @@ -0,0 +1,15 @@ +# PortalsFolderResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsPortal.md b/docs/PortalsPortal.md new file mode 100644 index 0000000..b3afee9 --- /dev/null +++ b/docs/PortalsPortal.md @@ -0,0 +1,20 @@ +# PortalsPortal + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsPortalApi.md b/docs/PortalsPortalApi.md new file mode 100644 index 0000000..8d7cf0e --- /dev/null +++ b/docs/PortalsPortalApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.PortalsPortalApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_portals_portal_object**](PortalsPortalApi.md#udm_portals_portal_object) | **GET** /portals/portal/{dn} | Get a representation of the Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_portals_portal_object_create**](PortalsPortalApi.md#udm_portals_portal_object_create) | **POST** /portals/portal/ | Create a new Portal object +[**udm_portals_portal_object_modify**](PortalsPortalApi.md#udm_portals_portal_object_modify) | **PUT** /portals/portal/{dn} | Modify or move an Portal object +[**udm_portals_portal_object_remove**](PortalsPortalApi.md#udm_portals_portal_object_remove) | **DELETE** /portals/portal/{dn} | Remove a Portals object +[**udm_portals_portal_object_search**](PortalsPortalApi.md#udm_portals_portal_object_search) | **GET** /portals/portal/ | Search for Portals objects +[**udm_portals_portal_object_template**](PortalsPortalApi.md#udm_portals_portal_object_template) | **GET** /portals/portal/add | Get a template for creating an Portal object (contains all properties and their default values) +[**udm_portals_portal_object_update**](PortalsPortalApi.md#udm_portals_portal_object_update) | **PATCH** /portals/portal/{dn} | Modify an Portal object (moving is currently not possible) + + +# **udm_portals_portal_object** +> PortalsPortal udm_portals_portal_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsPortalApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_portals_portal_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsPortalApi->udm_portals_portal_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsPortal**](PortalsPortal.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_portal_object_create** +> InlineResponse201 udm_portals_portal_object_create(portals_portal, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Portal object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsPortalApi(api_client) + portals_portal = openapi_client_udm.PortalsPortal() # PortalsPortal | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Portal object + api_response = api_instance.udm_portals_portal_object_create(portals_portal, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsPortalApi->udm_portals_portal_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **portals_portal** | [**PortalsPortal**](PortalsPortal.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_portals_portal_object_modify** +> InlineResponse201 udm_portals_portal_object_modify(dn, portals_portal, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Portal object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsPortalApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_portal = openapi_client_udm.PortalsPortal() # PortalsPortal | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Portal object + api_response = api_instance.udm_portals_portal_object_modify(dn, portals_portal, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsPortalApi->udm_portals_portal_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_portal** | [**PortalsPortal**](PortalsPortal.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_portal_object_remove** +> udm_portals_portal_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Portals object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsPortalApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Portals object + api_instance.udm_portals_portal_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsPortalApi->udm_portals_portal_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_portal_object_search** +> PortalsPortalList udm_portals_portal_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Portals objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsPortalApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Portals objects + api_response = api_instance.udm_portals_portal_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsPortalApi->udm_portals_portal_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsPortalList**](PortalsPortalList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_portal_object_template** +> PortalsPortal udm_portals_portal_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Portal object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsPortalApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Portal object (contains all properties and their default values) + api_response = api_instance.udm_portals_portal_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling PortalsPortalApi->udm_portals_portal_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**PortalsPortal**](PortalsPortal.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Portal. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_portals_portal_object_update** +> udm_portals_portal_object_update(dn, portals_portal, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Portal object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.PortalsPortalApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +portals_portal = openapi_client_udm.PortalsPortal() # PortalsPortal | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Portal object (moving is currently not possible) + api_instance.udm_portals_portal_object_update(dn, portals_portal, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling PortalsPortalApi->udm_portals_portal_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **portals_portal** | [**PortalsPortal**](PortalsPortal.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/PortalsPortalList.md b/docs/PortalsPortalList.md new file mode 100644 index 0000000..c7df336 --- /dev/null +++ b/docs/PortalsPortalList.md @@ -0,0 +1,11 @@ +# PortalsPortalList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**PortalsPortalListEmbedded**](PortalsPortalListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsPortalListEmbedded.md b/docs/PortalsPortalListEmbedded.md new file mode 100644 index 0000000..b4809e6 --- /dev/null +++ b/docs/PortalsPortalListEmbedded.md @@ -0,0 +1,11 @@ +# PortalsPortalListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[PortalsPortal]**](PortalsPortal.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsPortalRequest.md b/docs/PortalsPortalRequest.md new file mode 100644 index 0000000..bd12fe4 --- /dev/null +++ b/docs/PortalsPortalRequest.md @@ -0,0 +1,15 @@ +# PortalsPortalRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsPortalRequestPatch.md b/docs/PortalsPortalRequestPatch.md new file mode 100644 index 0000000..0eed283 --- /dev/null +++ b/docs/PortalsPortalRequestPatch.md @@ -0,0 +1,14 @@ +# PortalsPortalRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PortalsPortalResponseMixin.md b/docs/PortalsPortalResponseMixin.md new file mode 100644 index 0000000..69ea8c6 --- /dev/null +++ b/docs/PortalsPortalResponseMixin.md @@ -0,0 +1,15 @@ +# PortalsPortalResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlIdpconfig.md b/docs/SamlIdpconfig.md new file mode 100644 index 0000000..320dc60 --- /dev/null +++ b/docs/SamlIdpconfig.md @@ -0,0 +1,20 @@ +# SamlIdpconfig + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlIdpconfigApi.md b/docs/SamlIdpconfigApi.md new file mode 100644 index 0000000..a2e6559 --- /dev/null +++ b/docs/SamlIdpconfigApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SamlIdpconfigApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_saml_idpconfig_object**](SamlIdpconfigApi.md#udm_saml_idpconfig_object) | **GET** /saml/idpconfig/{dn} | Get a representation of the SAML IdP configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_saml_idpconfig_object_create**](SamlIdpconfigApi.md#udm_saml_idpconfig_object_create) | **POST** /saml/idpconfig/ | Create a new SAML IdP configuration object +[**udm_saml_idpconfig_object_modify**](SamlIdpconfigApi.md#udm_saml_idpconfig_object_modify) | **PUT** /saml/idpconfig/{dn} | Modify or move an SAML IdP configuration object +[**udm_saml_idpconfig_object_remove**](SamlIdpconfigApi.md#udm_saml_idpconfig_object_remove) | **DELETE** /saml/idpconfig/{dn} | Remove a SAML IdP configurations object +[**udm_saml_idpconfig_object_search**](SamlIdpconfigApi.md#udm_saml_idpconfig_object_search) | **GET** /saml/idpconfig/ | Search for SAML IdP configurations objects +[**udm_saml_idpconfig_object_template**](SamlIdpconfigApi.md#udm_saml_idpconfig_object_template) | **GET** /saml/idpconfig/add | Get a template for creating an SAML IdP configuration object (contains all properties and their default values) +[**udm_saml_idpconfig_object_update**](SamlIdpconfigApi.md#udm_saml_idpconfig_object_update) | **PATCH** /saml/idpconfig/{dn} | Modify an SAML IdP configuration object (moving is currently not possible) + + +# **udm_saml_idpconfig_object** +> SamlIdpconfig udm_saml_idpconfig_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the SAML IdP configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlIdpconfigApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the SAML IdP configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_saml_idpconfig_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlIdpconfigApi->udm_saml_idpconfig_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SamlIdpconfig**](SamlIdpconfig.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_idpconfig_object_create** +> InlineResponse201 udm_saml_idpconfig_object_create(saml_idpconfig, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new SAML IdP configuration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlIdpconfigApi(api_client) + saml_idpconfig = openapi_client_udm.SamlIdpconfig() # SamlIdpconfig | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new SAML IdP configuration object + api_response = api_instance.udm_saml_idpconfig_object_create(saml_idpconfig, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlIdpconfigApi->udm_saml_idpconfig_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **saml_idpconfig** | [**SamlIdpconfig**](SamlIdpconfig.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_saml_idpconfig_object_modify** +> InlineResponse201 udm_saml_idpconfig_object_modify(dn, saml_idpconfig, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an SAML IdP configuration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlIdpconfigApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +saml_idpconfig = openapi_client_udm.SamlIdpconfig() # SamlIdpconfig | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an SAML IdP configuration object + api_response = api_instance.udm_saml_idpconfig_object_modify(dn, saml_idpconfig, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlIdpconfigApi->udm_saml_idpconfig_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **saml_idpconfig** | [**SamlIdpconfig**](SamlIdpconfig.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_idpconfig_object_remove** +> udm_saml_idpconfig_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a SAML IdP configurations object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlIdpconfigApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a SAML IdP configurations object + api_instance.udm_saml_idpconfig_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SamlIdpconfigApi->udm_saml_idpconfig_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_idpconfig_object_search** +> SamlIdpconfigList udm_saml_idpconfig_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for SAML IdP configurations objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlIdpconfigApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for SAML IdP configurations objects + api_response = api_instance.udm_saml_idpconfig_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlIdpconfigApi->udm_saml_idpconfig_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SamlIdpconfigList**](SamlIdpconfigList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_idpconfig_object_template** +> SamlIdpconfig udm_saml_idpconfig_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an SAML IdP configuration object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlIdpconfigApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an SAML IdP configuration object (contains all properties and their default values) + api_response = api_instance.udm_saml_idpconfig_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlIdpconfigApi->udm_saml_idpconfig_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SamlIdpconfig**](SamlIdpconfig.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new SAML IdP configuration. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_idpconfig_object_update** +> udm_saml_idpconfig_object_update(dn, saml_idpconfig, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an SAML IdP configuration object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlIdpconfigApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +saml_idpconfig = openapi_client_udm.SamlIdpconfig() # SamlIdpconfig | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an SAML IdP configuration object (moving is currently not possible) + api_instance.udm_saml_idpconfig_object_update(dn, saml_idpconfig, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SamlIdpconfigApi->udm_saml_idpconfig_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **saml_idpconfig** | [**SamlIdpconfig**](SamlIdpconfig.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SamlIdpconfigList.md b/docs/SamlIdpconfigList.md new file mode 100644 index 0000000..cd27eae --- /dev/null +++ b/docs/SamlIdpconfigList.md @@ -0,0 +1,11 @@ +# SamlIdpconfigList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SamlIdpconfigListEmbedded**](SamlIdpconfigListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlIdpconfigListEmbedded.md b/docs/SamlIdpconfigListEmbedded.md new file mode 100644 index 0000000..1254642 --- /dev/null +++ b/docs/SamlIdpconfigListEmbedded.md @@ -0,0 +1,11 @@ +# SamlIdpconfigListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SamlIdpconfig]**](SamlIdpconfig.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlIdpconfigRequest.md b/docs/SamlIdpconfigRequest.md new file mode 100644 index 0000000..c8403ba --- /dev/null +++ b/docs/SamlIdpconfigRequest.md @@ -0,0 +1,15 @@ +# SamlIdpconfigRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlIdpconfigRequestPatch.md b/docs/SamlIdpconfigRequestPatch.md new file mode 100644 index 0000000..055df61 --- /dev/null +++ b/docs/SamlIdpconfigRequestPatch.md @@ -0,0 +1,14 @@ +# SamlIdpconfigRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlIdpconfigResponseMixin.md b/docs/SamlIdpconfigResponseMixin.md new file mode 100644 index 0000000..5802ca7 --- /dev/null +++ b/docs/SamlIdpconfigResponseMixin.md @@ -0,0 +1,15 @@ +# SamlIdpconfigResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlServiceprovider.md b/docs/SamlServiceprovider.md new file mode 100644 index 0000000..b914db6 --- /dev/null +++ b/docs/SamlServiceprovider.md @@ -0,0 +1,20 @@ +# SamlServiceprovider + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlServiceproviderApi.md b/docs/SamlServiceproviderApi.md new file mode 100644 index 0000000..a0e5837 --- /dev/null +++ b/docs/SamlServiceproviderApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SamlServiceproviderApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_saml_serviceprovider_object**](SamlServiceproviderApi.md#udm_saml_serviceprovider_object) | **GET** /saml/serviceprovider/{dn} | Get a representation of the SAML service provider object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_saml_serviceprovider_object_create**](SamlServiceproviderApi.md#udm_saml_serviceprovider_object_create) | **POST** /saml/serviceprovider/ | Create a new SAML service provider object +[**udm_saml_serviceprovider_object_modify**](SamlServiceproviderApi.md#udm_saml_serviceprovider_object_modify) | **PUT** /saml/serviceprovider/{dn} | Modify or move an SAML service provider object +[**udm_saml_serviceprovider_object_remove**](SamlServiceproviderApi.md#udm_saml_serviceprovider_object_remove) | **DELETE** /saml/serviceprovider/{dn} | Remove a SAML service providers object +[**udm_saml_serviceprovider_object_search**](SamlServiceproviderApi.md#udm_saml_serviceprovider_object_search) | **GET** /saml/serviceprovider/ | Search for SAML service providers objects +[**udm_saml_serviceprovider_object_template**](SamlServiceproviderApi.md#udm_saml_serviceprovider_object_template) | **GET** /saml/serviceprovider/add | Get a template for creating an SAML service provider object (contains all properties and their default values) +[**udm_saml_serviceprovider_object_update**](SamlServiceproviderApi.md#udm_saml_serviceprovider_object_update) | **PATCH** /saml/serviceprovider/{dn} | Modify an SAML service provider object (moving is currently not possible) + + +# **udm_saml_serviceprovider_object** +> SamlServiceprovider udm_saml_serviceprovider_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the SAML service provider object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlServiceproviderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the SAML service provider object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_saml_serviceprovider_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlServiceproviderApi->udm_saml_serviceprovider_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SamlServiceprovider**](SamlServiceprovider.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_serviceprovider_object_create** +> InlineResponse201 udm_saml_serviceprovider_object_create(saml_serviceprovider, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new SAML service provider object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlServiceproviderApi(api_client) + saml_serviceprovider = openapi_client_udm.SamlServiceprovider() # SamlServiceprovider | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new SAML service provider object + api_response = api_instance.udm_saml_serviceprovider_object_create(saml_serviceprovider, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlServiceproviderApi->udm_saml_serviceprovider_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **saml_serviceprovider** | [**SamlServiceprovider**](SamlServiceprovider.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_saml_serviceprovider_object_modify** +> InlineResponse201 udm_saml_serviceprovider_object_modify(dn, saml_serviceprovider, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an SAML service provider object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlServiceproviderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +saml_serviceprovider = openapi_client_udm.SamlServiceprovider() # SamlServiceprovider | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an SAML service provider object + api_response = api_instance.udm_saml_serviceprovider_object_modify(dn, saml_serviceprovider, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlServiceproviderApi->udm_saml_serviceprovider_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **saml_serviceprovider** | [**SamlServiceprovider**](SamlServiceprovider.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_serviceprovider_object_remove** +> udm_saml_serviceprovider_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a SAML service providers object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlServiceproviderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a SAML service providers object + api_instance.udm_saml_serviceprovider_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SamlServiceproviderApi->udm_saml_serviceprovider_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_serviceprovider_object_search** +> SamlServiceproviderList udm_saml_serviceprovider_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for SAML service providers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlServiceproviderApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for SAML service providers objects + api_response = api_instance.udm_saml_serviceprovider_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlServiceproviderApi->udm_saml_serviceprovider_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SamlServiceproviderList**](SamlServiceproviderList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_serviceprovider_object_template** +> SamlServiceprovider udm_saml_serviceprovider_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an SAML service provider object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlServiceproviderApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an SAML service provider object (contains all properties and their default values) + api_response = api_instance.udm_saml_serviceprovider_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SamlServiceproviderApi->udm_saml_serviceprovider_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SamlServiceprovider**](SamlServiceprovider.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new SAML service provider. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_saml_serviceprovider_object_update** +> udm_saml_serviceprovider_object_update(dn, saml_serviceprovider, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an SAML service provider object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SamlServiceproviderApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +saml_serviceprovider = openapi_client_udm.SamlServiceprovider() # SamlServiceprovider | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an SAML service provider object (moving is currently not possible) + api_instance.udm_saml_serviceprovider_object_update(dn, saml_serviceprovider, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SamlServiceproviderApi->udm_saml_serviceprovider_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **saml_serviceprovider** | [**SamlServiceprovider**](SamlServiceprovider.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SamlServiceproviderList.md b/docs/SamlServiceproviderList.md new file mode 100644 index 0000000..4fe905e --- /dev/null +++ b/docs/SamlServiceproviderList.md @@ -0,0 +1,11 @@ +# SamlServiceproviderList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SamlServiceproviderListEmbedded**](SamlServiceproviderListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlServiceproviderListEmbedded.md b/docs/SamlServiceproviderListEmbedded.md new file mode 100644 index 0000000..3d30377 --- /dev/null +++ b/docs/SamlServiceproviderListEmbedded.md @@ -0,0 +1,11 @@ +# SamlServiceproviderListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SamlServiceprovider]**](SamlServiceprovider.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlServiceproviderRequest.md b/docs/SamlServiceproviderRequest.md new file mode 100644 index 0000000..201a546 --- /dev/null +++ b/docs/SamlServiceproviderRequest.md @@ -0,0 +1,15 @@ +# SamlServiceproviderRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlServiceproviderRequestPatch.md b/docs/SamlServiceproviderRequestPatch.md new file mode 100644 index 0000000..3b0d14e --- /dev/null +++ b/docs/SamlServiceproviderRequestPatch.md @@ -0,0 +1,14 @@ +# SamlServiceproviderRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SamlServiceproviderResponseMixin.md b/docs/SamlServiceproviderResponseMixin.md new file mode 100644 index 0000000..f560398 --- /dev/null +++ b/docs/SamlServiceproviderResponseMixin.md @@ -0,0 +1,15 @@ +# SamlServiceproviderResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsCn.md b/docs/SettingsCn.md new file mode 100644 index 0000000..19bab0e --- /dev/null +++ b/docs/SettingsCn.md @@ -0,0 +1,20 @@ +# SettingsCn + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsCnPolicies**](SettingsCnPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsCnApi.md b/docs/SettingsCnApi.md new file mode 100644 index 0000000..1137731 --- /dev/null +++ b/docs/SettingsCnApi.md @@ -0,0 +1,209 @@ +# openapi_client_udm.SettingsCnApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_cn_object**](SettingsCnApi.md#udm_settings_cn_object) | **GET** /settings/cn/{dn} | Get a representation of the Univention Setting object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_cn_object_search**](SettingsCnApi.md#udm_settings_cn_object_search) | **GET** /settings/cn/ | Search for Univention Settings objects + + +# **udm_settings_cn_object** +> SettingsCn udm_settings_cn_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Univention Setting object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsCnApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Univention Setting object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_cn_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsCnApi->udm_settings_cn_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsCn**](SettingsCn.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_cn_object_search** +> SettingsCnList udm_settings_cn_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Univention Settings objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsCnApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Univention Settings objects + api_response = api_instance.udm_settings_cn_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsCnApi->udm_settings_cn_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsCnList**](SettingsCnList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsCnList.md b/docs/SettingsCnList.md new file mode 100644 index 0000000..7896d4f --- /dev/null +++ b/docs/SettingsCnList.md @@ -0,0 +1,11 @@ +# SettingsCnList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsCnListEmbedded**](SettingsCnListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsCnListEmbedded.md b/docs/SettingsCnListEmbedded.md new file mode 100644 index 0000000..dd34eb9 --- /dev/null +++ b/docs/SettingsCnListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsCnListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsCn]**](SettingsCn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsCnPolicies.md b/docs/SettingsCnPolicies.md new file mode 100644 index 0000000..d745b4e --- /dev/null +++ b/docs/SettingsCnPolicies.md @@ -0,0 +1,35 @@ +# SettingsCnPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsCnRequest.md b/docs/SettingsCnRequest.md new file mode 100644 index 0000000..cf9fa1d --- /dev/null +++ b/docs/SettingsCnRequest.md @@ -0,0 +1,15 @@ +# SettingsCnRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsCnPolicies**](SettingsCnPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsCnRequestPatch.md b/docs/SettingsCnRequestPatch.md new file mode 100644 index 0000000..af92f48 --- /dev/null +++ b/docs/SettingsCnRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsCnRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsCnPolicies**](SettingsCnPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsCnResponseMixin.md b/docs/SettingsCnResponseMixin.md new file mode 100644 index 0000000..5c75914 --- /dev/null +++ b/docs/SettingsCnResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsCnResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsData.md b/docs/SettingsData.md new file mode 100644 index 0000000..87fe48f --- /dev/null +++ b/docs/SettingsData.md @@ -0,0 +1,20 @@ +# SettingsData + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDataApi.md b/docs/SettingsDataApi.md new file mode 100644 index 0000000..933942f --- /dev/null +++ b/docs/SettingsDataApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsDataApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_data_object**](SettingsDataApi.md#udm_settings_data_object) | **GET** /settings/data/{dn} | Get a representation of the Data object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_data_object_create**](SettingsDataApi.md#udm_settings_data_object_create) | **POST** /settings/data/ | Create a new Data object +[**udm_settings_data_object_modify**](SettingsDataApi.md#udm_settings_data_object_modify) | **PUT** /settings/data/{dn} | Modify or move an Data object +[**udm_settings_data_object_remove**](SettingsDataApi.md#udm_settings_data_object_remove) | **DELETE** /settings/data/{dn} | Remove a Data object +[**udm_settings_data_object_search**](SettingsDataApi.md#udm_settings_data_object_search) | **GET** /settings/data/ | Search for Data objects +[**udm_settings_data_object_template**](SettingsDataApi.md#udm_settings_data_object_template) | **GET** /settings/data/add | Get a template for creating an Data object (contains all properties and their default values) +[**udm_settings_data_object_update**](SettingsDataApi.md#udm_settings_data_object_update) | **PATCH** /settings/data/{dn} | Modify an Data object (moving is currently not possible) + + +# **udm_settings_data_object** +> SettingsData udm_settings_data_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Data object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDataApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Data object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_data_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDataApi->udm_settings_data_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsData**](SettingsData.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_data_object_create** +> InlineResponse201 udm_settings_data_object_create(settings_data, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Data object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDataApi(api_client) + settings_data = openapi_client_udm.SettingsData() # SettingsData | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Data object + api_response = api_instance.udm_settings_data_object_create(settings_data, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDataApi->udm_settings_data_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_data** | [**SettingsData**](SettingsData.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_data_object_modify** +> InlineResponse201 udm_settings_data_object_modify(dn, settings_data, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Data object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDataApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_data = openapi_client_udm.SettingsData() # SettingsData | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Data object + api_response = api_instance.udm_settings_data_object_modify(dn, settings_data, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDataApi->udm_settings_data_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_data** | [**SettingsData**](SettingsData.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_data_object_remove** +> udm_settings_data_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Data object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDataApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Data object + api_instance.udm_settings_data_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsDataApi->udm_settings_data_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_data_object_search** +> SettingsDataList udm_settings_data_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Data objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDataApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Data objects + api_response = api_instance.udm_settings_data_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDataApi->udm_settings_data_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsDataList**](SettingsDataList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_data_object_template** +> SettingsData udm_settings_data_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Data object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDataApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Data object (contains all properties and their default values) + api_response = api_instance.udm_settings_data_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDataApi->udm_settings_data_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsData**](SettingsData.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Data. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_data_object_update** +> udm_settings_data_object_update(dn, settings_data, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Data object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDataApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_data = openapi_client_udm.SettingsData() # SettingsData | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Data object (moving is currently not possible) + api_instance.udm_settings_data_object_update(dn, settings_data, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsDataApi->udm_settings_data_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_data** | [**SettingsData**](SettingsData.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsDataList.md b/docs/SettingsDataList.md new file mode 100644 index 0000000..4a77cd7 --- /dev/null +++ b/docs/SettingsDataList.md @@ -0,0 +1,11 @@ +# SettingsDataList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsDataListEmbedded**](SettingsDataListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDataListEmbedded.md b/docs/SettingsDataListEmbedded.md new file mode 100644 index 0000000..73fba0e --- /dev/null +++ b/docs/SettingsDataListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsDataListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsData]**](SettingsData.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDataRequest.md b/docs/SettingsDataRequest.md new file mode 100644 index 0000000..2b80082 --- /dev/null +++ b/docs/SettingsDataRequest.md @@ -0,0 +1,15 @@ +# SettingsDataRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDataRequestPatch.md b/docs/SettingsDataRequestPatch.md new file mode 100644 index 0000000..f490a12 --- /dev/null +++ b/docs/SettingsDataRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsDataRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDataResponseMixin.md b/docs/SettingsDataResponseMixin.md new file mode 100644 index 0000000..9f2f5fc --- /dev/null +++ b/docs/SettingsDataResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsDataResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDefault.md b/docs/SettingsDefault.md new file mode 100644 index 0000000..3bfd437 --- /dev/null +++ b/docs/SettingsDefault.md @@ -0,0 +1,20 @@ +# SettingsDefault + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDefaultApi.md b/docs/SettingsDefaultApi.md new file mode 100644 index 0000000..6193511 --- /dev/null +++ b/docs/SettingsDefaultApi.md @@ -0,0 +1,404 @@ +# openapi_client_udm.SettingsDefaultApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_default_object**](SettingsDefaultApi.md#udm_settings_default_object) | **GET** /settings/default/{dn} | Get a representation of the Default preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_default_object_modify**](SettingsDefaultApi.md#udm_settings_default_object_modify) | **PUT** /settings/default/{dn} | Modify or move an Default preference object +[**udm_settings_default_object_search**](SettingsDefaultApi.md#udm_settings_default_object_search) | **GET** /settings/default/ | Search for Default preferences objects +[**udm_settings_default_object_update**](SettingsDefaultApi.md#udm_settings_default_object_update) | **PATCH** /settings/default/{dn} | Modify an Default preference object (moving is currently not possible) + + +# **udm_settings_default_object** +> SettingsDefault udm_settings_default_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Default preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDefaultApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Default preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_default_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDefaultApi->udm_settings_default_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsDefault**](SettingsDefault.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_default_object_modify** +> InlineResponse201 udm_settings_default_object_modify(dn, settings_default, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Default preference object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDefaultApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_default = openapi_client_udm.SettingsDefault() # SettingsDefault | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Default preference object + api_response = api_instance.udm_settings_default_object_modify(dn, settings_default, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDefaultApi->udm_settings_default_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_default** | [**SettingsDefault**](SettingsDefault.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_default_object_search** +> SettingsDefaultList udm_settings_default_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Default preferences objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDefaultApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Default preferences objects + api_response = api_instance.udm_settings_default_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDefaultApi->udm_settings_default_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsDefaultList**](SettingsDefaultList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_default_object_update** +> udm_settings_default_object_update(dn, settings_default, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Default preference object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDefaultApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_default = openapi_client_udm.SettingsDefault() # SettingsDefault | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Default preference object (moving is currently not possible) + api_instance.udm_settings_default_object_update(dn, settings_default, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsDefaultApi->udm_settings_default_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_default** | [**SettingsDefault**](SettingsDefault.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsDefaultList.md b/docs/SettingsDefaultList.md new file mode 100644 index 0000000..08d2fb7 --- /dev/null +++ b/docs/SettingsDefaultList.md @@ -0,0 +1,11 @@ +# SettingsDefaultList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsDefaultListEmbedded**](SettingsDefaultListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDefaultListEmbedded.md b/docs/SettingsDefaultListEmbedded.md new file mode 100644 index 0000000..a48cdec --- /dev/null +++ b/docs/SettingsDefaultListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsDefaultListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsDefault]**](SettingsDefault.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDefaultRequest.md b/docs/SettingsDefaultRequest.md new file mode 100644 index 0000000..56eb4be --- /dev/null +++ b/docs/SettingsDefaultRequest.md @@ -0,0 +1,15 @@ +# SettingsDefaultRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDefaultRequestPatch.md b/docs/SettingsDefaultRequestPatch.md new file mode 100644 index 0000000..f216c3b --- /dev/null +++ b/docs/SettingsDefaultRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsDefaultRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDefaultResponseMixin.md b/docs/SettingsDefaultResponseMixin.md new file mode 100644 index 0000000..ad4c082 --- /dev/null +++ b/docs/SettingsDefaultResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsDefaultResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDirectory.md b/docs/SettingsDirectory.md new file mode 100644 index 0000000..847e0f1 --- /dev/null +++ b/docs/SettingsDirectory.md @@ -0,0 +1,20 @@ +# SettingsDirectory + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDirectoryApi.md b/docs/SettingsDirectoryApi.md new file mode 100644 index 0000000..afd96eb --- /dev/null +++ b/docs/SettingsDirectoryApi.md @@ -0,0 +1,404 @@ +# openapi_client_udm.SettingsDirectoryApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_directory_object**](SettingsDirectoryApi.md#udm_settings_directory_object) | **GET** /settings/directory/{dn} | Get a representation of the Default container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_directory_object_modify**](SettingsDirectoryApi.md#udm_settings_directory_object_modify) | **PUT** /settings/directory/{dn} | Modify or move an Default container object +[**udm_settings_directory_object_search**](SettingsDirectoryApi.md#udm_settings_directory_object_search) | **GET** /settings/directory/ | Search for Default containers objects +[**udm_settings_directory_object_update**](SettingsDirectoryApi.md#udm_settings_directory_object_update) | **PATCH** /settings/directory/{dn} | Modify an Default container object (moving is currently not possible) + + +# **udm_settings_directory_object** +> SettingsDirectory udm_settings_directory_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Default container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDirectoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Default container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_directory_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDirectoryApi->udm_settings_directory_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsDirectory**](SettingsDirectory.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_directory_object_modify** +> InlineResponse201 udm_settings_directory_object_modify(dn, settings_directory, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Default container object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDirectoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_directory = openapi_client_udm.SettingsDirectory() # SettingsDirectory | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Default container object + api_response = api_instance.udm_settings_directory_object_modify(dn, settings_directory, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDirectoryApi->udm_settings_directory_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_directory** | [**SettingsDirectory**](SettingsDirectory.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_directory_object_search** +> SettingsDirectoryList udm_settings_directory_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Default containers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDirectoryApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Default containers objects + api_response = api_instance.udm_settings_directory_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsDirectoryApi->udm_settings_directory_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsDirectoryList**](SettingsDirectoryList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_directory_object_update** +> udm_settings_directory_object_update(dn, settings_directory, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Default container object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsDirectoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_directory = openapi_client_udm.SettingsDirectory() # SettingsDirectory | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Default container object (moving is currently not possible) + api_instance.udm_settings_directory_object_update(dn, settings_directory, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsDirectoryApi->udm_settings_directory_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_directory** | [**SettingsDirectory**](SettingsDirectory.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsDirectoryList.md b/docs/SettingsDirectoryList.md new file mode 100644 index 0000000..2c3693b --- /dev/null +++ b/docs/SettingsDirectoryList.md @@ -0,0 +1,11 @@ +# SettingsDirectoryList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsDirectoryListEmbedded**](SettingsDirectoryListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDirectoryListEmbedded.md b/docs/SettingsDirectoryListEmbedded.md new file mode 100644 index 0000000..e614912 --- /dev/null +++ b/docs/SettingsDirectoryListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsDirectoryListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsDirectory]**](SettingsDirectory.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDirectoryRequest.md b/docs/SettingsDirectoryRequest.md new file mode 100644 index 0000000..9934228 --- /dev/null +++ b/docs/SettingsDirectoryRequest.md @@ -0,0 +1,15 @@ +# SettingsDirectoryRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDirectoryRequestPatch.md b/docs/SettingsDirectoryRequestPatch.md new file mode 100644 index 0000000..169e1db --- /dev/null +++ b/docs/SettingsDirectoryRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsDirectoryRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsDirectoryResponseMixin.md b/docs/SettingsDirectoryResponseMixin.md new file mode 100644 index 0000000..fef032a --- /dev/null +++ b/docs/SettingsDirectoryResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsDirectoryResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedAttribute.md b/docs/SettingsExtendedAttribute.md new file mode 100644 index 0000000..6df1d65 --- /dev/null +++ b/docs/SettingsExtendedAttribute.md @@ -0,0 +1,20 @@ +# SettingsExtendedAttribute + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedAttributeApi.md b/docs/SettingsExtendedAttributeApi.md new file mode 100644 index 0000000..a7c18b5 --- /dev/null +++ b/docs/SettingsExtendedAttributeApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsExtendedAttributeApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_extended_attribute_object**](SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object) | **GET** /settings/extended_attribute/{dn} | Get a representation of the Extended attribute object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_extended_attribute_object_create**](SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_create) | **POST** /settings/extended_attribute/ | Create a new Extended attribute object +[**udm_settings_extended_attribute_object_modify**](SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_modify) | **PUT** /settings/extended_attribute/{dn} | Modify or move an Extended attribute object +[**udm_settings_extended_attribute_object_remove**](SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_remove) | **DELETE** /settings/extended_attribute/{dn} | Remove a Extended attributes object +[**udm_settings_extended_attribute_object_search**](SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_search) | **GET** /settings/extended_attribute/ | Search for Extended attributes objects +[**udm_settings_extended_attribute_object_template**](SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_template) | **GET** /settings/extended_attribute/add | Get a template for creating an Extended attribute object (contains all properties and their default values) +[**udm_settings_extended_attribute_object_update**](SettingsExtendedAttributeApi.md#udm_settings_extended_attribute_object_update) | **PATCH** /settings/extended_attribute/{dn} | Modify an Extended attribute object (moving is currently not possible) + + +# **udm_settings_extended_attribute_object** +> SettingsExtendedAttribute udm_settings_extended_attribute_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Extended attribute object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedAttributeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Extended attribute object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_extended_attribute_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedAttributeApi->udm_settings_extended_attribute_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsExtendedAttribute**](SettingsExtendedAttribute.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_attribute_object_create** +> InlineResponse201 udm_settings_extended_attribute_object_create(settings_extended_attribute, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Extended attribute object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedAttributeApi(api_client) + settings_extended_attribute = openapi_client_udm.SettingsExtendedAttribute() # SettingsExtendedAttribute | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Extended attribute object + api_response = api_instance.udm_settings_extended_attribute_object_create(settings_extended_attribute, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedAttributeApi->udm_settings_extended_attribute_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_extended_attribute** | [**SettingsExtendedAttribute**](SettingsExtendedAttribute.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_extended_attribute_object_modify** +> InlineResponse201 udm_settings_extended_attribute_object_modify(dn, settings_extended_attribute, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Extended attribute object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedAttributeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_extended_attribute = openapi_client_udm.SettingsExtendedAttribute() # SettingsExtendedAttribute | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Extended attribute object + api_response = api_instance.udm_settings_extended_attribute_object_modify(dn, settings_extended_attribute, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedAttributeApi->udm_settings_extended_attribute_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_extended_attribute** | [**SettingsExtendedAttribute**](SettingsExtendedAttribute.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_attribute_object_remove** +> udm_settings_extended_attribute_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Extended attributes object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedAttributeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Extended attributes object + api_instance.udm_settings_extended_attribute_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsExtendedAttributeApi->udm_settings_extended_attribute_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_attribute_object_search** +> SettingsExtendedAttributeList udm_settings_extended_attribute_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Extended attributes objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedAttributeApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Extended attributes objects + api_response = api_instance.udm_settings_extended_attribute_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedAttributeApi->udm_settings_extended_attribute_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsExtendedAttributeList**](SettingsExtendedAttributeList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_attribute_object_template** +> SettingsExtendedAttribute udm_settings_extended_attribute_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Extended attribute object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedAttributeApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Extended attribute object (contains all properties and their default values) + api_response = api_instance.udm_settings_extended_attribute_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedAttributeApi->udm_settings_extended_attribute_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsExtendedAttribute**](SettingsExtendedAttribute.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Extended attribute. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_attribute_object_update** +> udm_settings_extended_attribute_object_update(dn, settings_extended_attribute, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Extended attribute object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedAttributeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_extended_attribute = openapi_client_udm.SettingsExtendedAttribute() # SettingsExtendedAttribute | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Extended attribute object (moving is currently not possible) + api_instance.udm_settings_extended_attribute_object_update(dn, settings_extended_attribute, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsExtendedAttributeApi->udm_settings_extended_attribute_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_extended_attribute** | [**SettingsExtendedAttribute**](SettingsExtendedAttribute.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsExtendedAttributeList.md b/docs/SettingsExtendedAttributeList.md new file mode 100644 index 0000000..abfe333 --- /dev/null +++ b/docs/SettingsExtendedAttributeList.md @@ -0,0 +1,11 @@ +# SettingsExtendedAttributeList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsExtendedAttributeListEmbedded**](SettingsExtendedAttributeListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedAttributeListEmbedded.md b/docs/SettingsExtendedAttributeListEmbedded.md new file mode 100644 index 0000000..8fe69f6 --- /dev/null +++ b/docs/SettingsExtendedAttributeListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsExtendedAttributeListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsExtendedAttribute]**](SettingsExtendedAttribute.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedAttributeRequest.md b/docs/SettingsExtendedAttributeRequest.md new file mode 100644 index 0000000..82d8aba --- /dev/null +++ b/docs/SettingsExtendedAttributeRequest.md @@ -0,0 +1,15 @@ +# SettingsExtendedAttributeRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedAttributeRequestPatch.md b/docs/SettingsExtendedAttributeRequestPatch.md new file mode 100644 index 0000000..c798eda --- /dev/null +++ b/docs/SettingsExtendedAttributeRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsExtendedAttributeRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedAttributeResponseMixin.md b/docs/SettingsExtendedAttributeResponseMixin.md new file mode 100644 index 0000000..5fc2c11 --- /dev/null +++ b/docs/SettingsExtendedAttributeResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsExtendedAttributeResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedOptions.md b/docs/SettingsExtendedOptions.md new file mode 100644 index 0000000..4f854da --- /dev/null +++ b/docs/SettingsExtendedOptions.md @@ -0,0 +1,20 @@ +# SettingsExtendedOptions + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedOptionsApi.md b/docs/SettingsExtendedOptionsApi.md new file mode 100644 index 0000000..29dfdbc --- /dev/null +++ b/docs/SettingsExtendedOptionsApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsExtendedOptionsApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_extended_options_object**](SettingsExtendedOptionsApi.md#udm_settings_extended_options_object) | **GET** /settings/extended_options/{dn} | Get a representation of the Extended option object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_extended_options_object_create**](SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_create) | **POST** /settings/extended_options/ | Create a new Extended option object +[**udm_settings_extended_options_object_modify**](SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_modify) | **PUT** /settings/extended_options/{dn} | Modify or move an Extended option object +[**udm_settings_extended_options_object_remove**](SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_remove) | **DELETE** /settings/extended_options/{dn} | Remove a Extended options object +[**udm_settings_extended_options_object_search**](SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_search) | **GET** /settings/extended_options/ | Search for Extended options objects +[**udm_settings_extended_options_object_template**](SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_template) | **GET** /settings/extended_options/add | Get a template for creating an Extended option object (contains all properties and their default values) +[**udm_settings_extended_options_object_update**](SettingsExtendedOptionsApi.md#udm_settings_extended_options_object_update) | **PATCH** /settings/extended_options/{dn} | Modify an Extended option object (moving is currently not possible) + + +# **udm_settings_extended_options_object** +> SettingsExtendedOptions udm_settings_extended_options_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Extended option object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedOptionsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Extended option object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_extended_options_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedOptionsApi->udm_settings_extended_options_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsExtendedOptions**](SettingsExtendedOptions.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_options_object_create** +> InlineResponse201 udm_settings_extended_options_object_create(settings_extended_options, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Extended option object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedOptionsApi(api_client) + settings_extended_options = openapi_client_udm.SettingsExtendedOptions() # SettingsExtendedOptions | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Extended option object + api_response = api_instance.udm_settings_extended_options_object_create(settings_extended_options, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedOptionsApi->udm_settings_extended_options_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_extended_options** | [**SettingsExtendedOptions**](SettingsExtendedOptions.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_extended_options_object_modify** +> InlineResponse201 udm_settings_extended_options_object_modify(dn, settings_extended_options, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Extended option object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedOptionsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_extended_options = openapi_client_udm.SettingsExtendedOptions() # SettingsExtendedOptions | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Extended option object + api_response = api_instance.udm_settings_extended_options_object_modify(dn, settings_extended_options, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedOptionsApi->udm_settings_extended_options_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_extended_options** | [**SettingsExtendedOptions**](SettingsExtendedOptions.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_options_object_remove** +> udm_settings_extended_options_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Extended options object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedOptionsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Extended options object + api_instance.udm_settings_extended_options_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsExtendedOptionsApi->udm_settings_extended_options_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_options_object_search** +> SettingsExtendedOptionsList udm_settings_extended_options_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Extended options objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedOptionsApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Extended options objects + api_response = api_instance.udm_settings_extended_options_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedOptionsApi->udm_settings_extended_options_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsExtendedOptionsList**](SettingsExtendedOptionsList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_options_object_template** +> SettingsExtendedOptions udm_settings_extended_options_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Extended option object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedOptionsApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Extended option object (contains all properties and their default values) + api_response = api_instance.udm_settings_extended_options_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsExtendedOptionsApi->udm_settings_extended_options_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsExtendedOptions**](SettingsExtendedOptions.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Extended option. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_extended_options_object_update** +> udm_settings_extended_options_object_update(dn, settings_extended_options, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Extended option object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsExtendedOptionsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_extended_options = openapi_client_udm.SettingsExtendedOptions() # SettingsExtendedOptions | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Extended option object (moving is currently not possible) + api_instance.udm_settings_extended_options_object_update(dn, settings_extended_options, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsExtendedOptionsApi->udm_settings_extended_options_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_extended_options** | [**SettingsExtendedOptions**](SettingsExtendedOptions.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsExtendedOptionsList.md b/docs/SettingsExtendedOptionsList.md new file mode 100644 index 0000000..010c8d3 --- /dev/null +++ b/docs/SettingsExtendedOptionsList.md @@ -0,0 +1,11 @@ +# SettingsExtendedOptionsList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsExtendedOptionsListEmbedded**](SettingsExtendedOptionsListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedOptionsListEmbedded.md b/docs/SettingsExtendedOptionsListEmbedded.md new file mode 100644 index 0000000..542e184 --- /dev/null +++ b/docs/SettingsExtendedOptionsListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsExtendedOptionsListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsExtendedOptions]**](SettingsExtendedOptions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedOptionsRequest.md b/docs/SettingsExtendedOptionsRequest.md new file mode 100644 index 0000000..ffef4ce --- /dev/null +++ b/docs/SettingsExtendedOptionsRequest.md @@ -0,0 +1,15 @@ +# SettingsExtendedOptionsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedOptionsRequestPatch.md b/docs/SettingsExtendedOptionsRequestPatch.md new file mode 100644 index 0000000..f5ae630 --- /dev/null +++ b/docs/SettingsExtendedOptionsRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsExtendedOptionsRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsExtendedOptionsResponseMixin.md b/docs/SettingsExtendedOptionsResponseMixin.md new file mode 100644 index 0000000..6ab3919 --- /dev/null +++ b/docs/SettingsExtendedOptionsResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsExtendedOptionsResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapacl.md b/docs/SettingsLdapacl.md new file mode 100644 index 0000000..b1c68b9 --- /dev/null +++ b/docs/SettingsLdapacl.md @@ -0,0 +1,20 @@ +# SettingsLdapacl + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapaclApi.md b/docs/SettingsLdapaclApi.md new file mode 100644 index 0000000..0a32dd1 --- /dev/null +++ b/docs/SettingsLdapaclApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsLdapaclApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_ldapacl_object**](SettingsLdapaclApi.md#udm_settings_ldapacl_object) | **GET** /settings/ldapacl/{dn} | Get a representation of the LDAP ACL Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_ldapacl_object_create**](SettingsLdapaclApi.md#udm_settings_ldapacl_object_create) | **POST** /settings/ldapacl/ | Create a new LDAP ACL Extension object +[**udm_settings_ldapacl_object_modify**](SettingsLdapaclApi.md#udm_settings_ldapacl_object_modify) | **PUT** /settings/ldapacl/{dn} | Modify or move an LDAP ACL Extension object +[**udm_settings_ldapacl_object_remove**](SettingsLdapaclApi.md#udm_settings_ldapacl_object_remove) | **DELETE** /settings/ldapacl/{dn} | Remove a LDAP ACL Extensions object +[**udm_settings_ldapacl_object_search**](SettingsLdapaclApi.md#udm_settings_ldapacl_object_search) | **GET** /settings/ldapacl/ | Search for LDAP ACL Extensions objects +[**udm_settings_ldapacl_object_template**](SettingsLdapaclApi.md#udm_settings_ldapacl_object_template) | **GET** /settings/ldapacl/add | Get a template for creating an LDAP ACL Extension object (contains all properties and their default values) +[**udm_settings_ldapacl_object_update**](SettingsLdapaclApi.md#udm_settings_ldapacl_object_update) | **PATCH** /settings/ldapacl/{dn} | Modify an LDAP ACL Extension object (moving is currently not possible) + + +# **udm_settings_ldapacl_object** +> SettingsLdapacl udm_settings_ldapacl_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the LDAP ACL Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapaclApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the LDAP ACL Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_ldapacl_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapaclApi->udm_settings_ldapacl_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLdapacl**](SettingsLdapacl.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapacl_object_create** +> InlineResponse201 udm_settings_ldapacl_object_create(settings_ldapacl, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new LDAP ACL Extension object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapaclApi(api_client) + settings_ldapacl = openapi_client_udm.SettingsLdapacl() # SettingsLdapacl | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new LDAP ACL Extension object + api_response = api_instance.udm_settings_ldapacl_object_create(settings_ldapacl, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapaclApi->udm_settings_ldapacl_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_ldapacl** | [**SettingsLdapacl**](SettingsLdapacl.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_ldapacl_object_modify** +> InlineResponse201 udm_settings_ldapacl_object_modify(dn, settings_ldapacl, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an LDAP ACL Extension object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapaclApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_ldapacl = openapi_client_udm.SettingsLdapacl() # SettingsLdapacl | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an LDAP ACL Extension object + api_response = api_instance.udm_settings_ldapacl_object_modify(dn, settings_ldapacl, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapaclApi->udm_settings_ldapacl_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_ldapacl** | [**SettingsLdapacl**](SettingsLdapacl.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapacl_object_remove** +> udm_settings_ldapacl_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a LDAP ACL Extensions object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapaclApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a LDAP ACL Extensions object + api_instance.udm_settings_ldapacl_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsLdapaclApi->udm_settings_ldapacl_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapacl_object_search** +> SettingsLdapaclList udm_settings_ldapacl_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for LDAP ACL Extensions objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapaclApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for LDAP ACL Extensions objects + api_response = api_instance.udm_settings_ldapacl_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapaclApi->udm_settings_ldapacl_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLdapaclList**](SettingsLdapaclList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapacl_object_template** +> SettingsLdapacl udm_settings_ldapacl_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an LDAP ACL Extension object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapaclApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an LDAP ACL Extension object (contains all properties and their default values) + api_response = api_instance.udm_settings_ldapacl_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapaclApi->udm_settings_ldapacl_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLdapacl**](SettingsLdapacl.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new LDAP ACL Extension. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapacl_object_update** +> udm_settings_ldapacl_object_update(dn, settings_ldapacl, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an LDAP ACL Extension object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapaclApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_ldapacl = openapi_client_udm.SettingsLdapacl() # SettingsLdapacl | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an LDAP ACL Extension object (moving is currently not possible) + api_instance.udm_settings_ldapacl_object_update(dn, settings_ldapacl, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsLdapaclApi->udm_settings_ldapacl_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_ldapacl** | [**SettingsLdapacl**](SettingsLdapacl.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsLdapaclList.md b/docs/SettingsLdapaclList.md new file mode 100644 index 0000000..af7917a --- /dev/null +++ b/docs/SettingsLdapaclList.md @@ -0,0 +1,11 @@ +# SettingsLdapaclList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsLdapaclListEmbedded**](SettingsLdapaclListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapaclListEmbedded.md b/docs/SettingsLdapaclListEmbedded.md new file mode 100644 index 0000000..ddc9375 --- /dev/null +++ b/docs/SettingsLdapaclListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsLdapaclListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsLdapacl]**](SettingsLdapacl.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapaclRequest.md b/docs/SettingsLdapaclRequest.md new file mode 100644 index 0000000..ee61431 --- /dev/null +++ b/docs/SettingsLdapaclRequest.md @@ -0,0 +1,15 @@ +# SettingsLdapaclRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapaclRequestPatch.md b/docs/SettingsLdapaclRequestPatch.md new file mode 100644 index 0000000..9e323c1 --- /dev/null +++ b/docs/SettingsLdapaclRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsLdapaclRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapaclResponseMixin.md b/docs/SettingsLdapaclResponseMixin.md new file mode 100644 index 0000000..01e9c5f --- /dev/null +++ b/docs/SettingsLdapaclResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsLdapaclResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapschema.md b/docs/SettingsLdapschema.md new file mode 100644 index 0000000..a8c8d0c --- /dev/null +++ b/docs/SettingsLdapschema.md @@ -0,0 +1,20 @@ +# SettingsLdapschema + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapschemaApi.md b/docs/SettingsLdapschemaApi.md new file mode 100644 index 0000000..85d6017 --- /dev/null +++ b/docs/SettingsLdapschemaApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsLdapschemaApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_ldapschema_object**](SettingsLdapschemaApi.md#udm_settings_ldapschema_object) | **GET** /settings/ldapschema/{dn} | Get a representation of the LDAP Schema Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_ldapschema_object_create**](SettingsLdapschemaApi.md#udm_settings_ldapschema_object_create) | **POST** /settings/ldapschema/ | Create a new LDAP Schema Extension object +[**udm_settings_ldapschema_object_modify**](SettingsLdapschemaApi.md#udm_settings_ldapschema_object_modify) | **PUT** /settings/ldapschema/{dn} | Modify or move an LDAP Schema Extension object +[**udm_settings_ldapschema_object_remove**](SettingsLdapschemaApi.md#udm_settings_ldapschema_object_remove) | **DELETE** /settings/ldapschema/{dn} | Remove a LDAP Schema Extensions object +[**udm_settings_ldapschema_object_search**](SettingsLdapschemaApi.md#udm_settings_ldapschema_object_search) | **GET** /settings/ldapschema/ | Search for LDAP Schema Extensions objects +[**udm_settings_ldapschema_object_template**](SettingsLdapschemaApi.md#udm_settings_ldapschema_object_template) | **GET** /settings/ldapschema/add | Get a template for creating an LDAP Schema Extension object (contains all properties and their default values) +[**udm_settings_ldapschema_object_update**](SettingsLdapschemaApi.md#udm_settings_ldapschema_object_update) | **PATCH** /settings/ldapschema/{dn} | Modify an LDAP Schema Extension object (moving is currently not possible) + + +# **udm_settings_ldapschema_object** +> SettingsLdapschema udm_settings_ldapschema_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the LDAP Schema Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapschemaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the LDAP Schema Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_ldapschema_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapschemaApi->udm_settings_ldapschema_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLdapschema**](SettingsLdapschema.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapschema_object_create** +> InlineResponse201 udm_settings_ldapschema_object_create(settings_ldapschema, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new LDAP Schema Extension object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapschemaApi(api_client) + settings_ldapschema = openapi_client_udm.SettingsLdapschema() # SettingsLdapschema | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new LDAP Schema Extension object + api_response = api_instance.udm_settings_ldapschema_object_create(settings_ldapschema, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapschemaApi->udm_settings_ldapschema_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_ldapschema** | [**SettingsLdapschema**](SettingsLdapschema.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_ldapschema_object_modify** +> InlineResponse201 udm_settings_ldapschema_object_modify(dn, settings_ldapschema, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an LDAP Schema Extension object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapschemaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_ldapschema = openapi_client_udm.SettingsLdapschema() # SettingsLdapschema | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an LDAP Schema Extension object + api_response = api_instance.udm_settings_ldapschema_object_modify(dn, settings_ldapschema, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapschemaApi->udm_settings_ldapschema_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_ldapschema** | [**SettingsLdapschema**](SettingsLdapschema.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapschema_object_remove** +> udm_settings_ldapschema_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a LDAP Schema Extensions object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapschemaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a LDAP Schema Extensions object + api_instance.udm_settings_ldapschema_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsLdapschemaApi->udm_settings_ldapschema_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapschema_object_search** +> SettingsLdapschemaList udm_settings_ldapschema_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for LDAP Schema Extensions objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapschemaApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for LDAP Schema Extensions objects + api_response = api_instance.udm_settings_ldapschema_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapschemaApi->udm_settings_ldapschema_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLdapschemaList**](SettingsLdapschemaList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapschema_object_template** +> SettingsLdapschema udm_settings_ldapschema_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an LDAP Schema Extension object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapschemaApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an LDAP Schema Extension object (contains all properties and their default values) + api_response = api_instance.udm_settings_ldapschema_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLdapschemaApi->udm_settings_ldapschema_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLdapschema**](SettingsLdapschema.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new LDAP Schema Extension. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_ldapschema_object_update** +> udm_settings_ldapschema_object_update(dn, settings_ldapschema, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an LDAP Schema Extension object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLdapschemaApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_ldapschema = openapi_client_udm.SettingsLdapschema() # SettingsLdapschema | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an LDAP Schema Extension object (moving is currently not possible) + api_instance.udm_settings_ldapschema_object_update(dn, settings_ldapschema, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsLdapschemaApi->udm_settings_ldapschema_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_ldapschema** | [**SettingsLdapschema**](SettingsLdapschema.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsLdapschemaList.md b/docs/SettingsLdapschemaList.md new file mode 100644 index 0000000..34a9b17 --- /dev/null +++ b/docs/SettingsLdapschemaList.md @@ -0,0 +1,11 @@ +# SettingsLdapschemaList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsLdapschemaListEmbedded**](SettingsLdapschemaListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapschemaListEmbedded.md b/docs/SettingsLdapschemaListEmbedded.md new file mode 100644 index 0000000..484997a --- /dev/null +++ b/docs/SettingsLdapschemaListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsLdapschemaListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsLdapschema]**](SettingsLdapschema.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapschemaRequest.md b/docs/SettingsLdapschemaRequest.md new file mode 100644 index 0000000..65b6844 --- /dev/null +++ b/docs/SettingsLdapschemaRequest.md @@ -0,0 +1,15 @@ +# SettingsLdapschemaRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapschemaRequestPatch.md b/docs/SettingsLdapschemaRequestPatch.md new file mode 100644 index 0000000..dfb08d8 --- /dev/null +++ b/docs/SettingsLdapschemaRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsLdapschemaRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLdapschemaResponseMixin.md b/docs/SettingsLdapschemaResponseMixin.md new file mode 100644 index 0000000..332b889 --- /dev/null +++ b/docs/SettingsLdapschemaResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsLdapschemaResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLicense.md b/docs/SettingsLicense.md new file mode 100644 index 0000000..bb5f58a --- /dev/null +++ b/docs/SettingsLicense.md @@ -0,0 +1,20 @@ +# SettingsLicense + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**SettingsLicenseOptions**](SettingsLicenseOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLicenseApi.md b/docs/SettingsLicenseApi.md new file mode 100644 index 0000000..5a622cc --- /dev/null +++ b/docs/SettingsLicenseApi.md @@ -0,0 +1,307 @@ +# openapi_client_udm.SettingsLicenseApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_license_object**](SettingsLicenseApi.md#udm_settings_license_object) | **GET** /settings/license/{dn} | Get a representation of the License object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_license_object_remove**](SettingsLicenseApi.md#udm_settings_license_object_remove) | **DELETE** /settings/license/{dn} | Remove a Licenses object +[**udm_settings_license_object_search**](SettingsLicenseApi.md#udm_settings_license_object_search) | **GET** /settings/license/ | Search for Licenses objects + + +# **udm_settings_license_object** +> SettingsLicense udm_settings_license_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the License object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLicenseApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the License object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_license_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLicenseApi->udm_settings_license_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLicense**](SettingsLicense.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_license_object_remove** +> udm_settings_license_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Licenses object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLicenseApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Licenses object + api_instance.udm_settings_license_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsLicenseApi->udm_settings_license_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_license_object_search** +> SettingsLicenseList udm_settings_license_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Licenses objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLicenseApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Licenses objects + api_response = api_instance.udm_settings_license_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLicenseApi->udm_settings_license_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLicenseList**](SettingsLicenseList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsLicenseList.md b/docs/SettingsLicenseList.md new file mode 100644 index 0000000..8ddbc6b --- /dev/null +++ b/docs/SettingsLicenseList.md @@ -0,0 +1,11 @@ +# SettingsLicenseList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsLicenseListEmbedded**](SettingsLicenseListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLicenseListEmbedded.md b/docs/SettingsLicenseListEmbedded.md new file mode 100644 index 0000000..753a457 --- /dev/null +++ b/docs/SettingsLicenseListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsLicenseListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsLicense]**](SettingsLicense.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLicenseOptions.md b/docs/SettingsLicenseOptions.md new file mode 100644 index 0000000..343979e --- /dev/null +++ b/docs/SettingsLicenseOptions.md @@ -0,0 +1,13 @@ +# SettingsLicenseOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version_1** | **bool** | Version 1 license | [optional] [default to False] +**version_2** | **bool** | Version 2 license | [optional] [default to True] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLicenseRequest.md b/docs/SettingsLicenseRequest.md new file mode 100644 index 0000000..9f9c75d --- /dev/null +++ b/docs/SettingsLicenseRequest.md @@ -0,0 +1,15 @@ +# SettingsLicenseRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**SettingsLicenseOptions**](SettingsLicenseOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLicenseRequestPatch.md b/docs/SettingsLicenseRequestPatch.md new file mode 100644 index 0000000..b334445 --- /dev/null +++ b/docs/SettingsLicenseRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsLicenseRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**SettingsLicenseOptions**](SettingsLicenseOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLicenseResponseMixin.md b/docs/SettingsLicenseResponseMixin.md new file mode 100644 index 0000000..8987984 --- /dev/null +++ b/docs/SettingsLicenseResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsLicenseResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLock.md b/docs/SettingsLock.md new file mode 100644 index 0000000..5fd9c72 --- /dev/null +++ b/docs/SettingsLock.md @@ -0,0 +1,20 @@ +# SettingsLock + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLockApi.md b/docs/SettingsLockApi.md new file mode 100644 index 0000000..50baa2d --- /dev/null +++ b/docs/SettingsLockApi.md @@ -0,0 +1,502 @@ +# openapi_client_udm.SettingsLockApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_lock_object**](SettingsLockApi.md#udm_settings_lock_object) | **GET** /settings/lock/{dn} | Get a representation of the Lock object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_lock_object_modify**](SettingsLockApi.md#udm_settings_lock_object_modify) | **PUT** /settings/lock/{dn} | Modify or move an Lock object +[**udm_settings_lock_object_remove**](SettingsLockApi.md#udm_settings_lock_object_remove) | **DELETE** /settings/lock/{dn} | Remove a Locks object +[**udm_settings_lock_object_search**](SettingsLockApi.md#udm_settings_lock_object_search) | **GET** /settings/lock/ | Search for Locks objects +[**udm_settings_lock_object_update**](SettingsLockApi.md#udm_settings_lock_object_update) | **PATCH** /settings/lock/{dn} | Modify an Lock object (moving is currently not possible) + + +# **udm_settings_lock_object** +> SettingsLock udm_settings_lock_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Lock object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLockApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Lock object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_lock_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLockApi->udm_settings_lock_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLock**](SettingsLock.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_lock_object_modify** +> InlineResponse201 udm_settings_lock_object_modify(dn, settings_lock, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Lock object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLockApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_lock = openapi_client_udm.SettingsLock() # SettingsLock | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Lock object + api_response = api_instance.udm_settings_lock_object_modify(dn, settings_lock, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLockApi->udm_settings_lock_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_lock** | [**SettingsLock**](SettingsLock.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_lock_object_remove** +> udm_settings_lock_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Locks object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLockApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Locks object + api_instance.udm_settings_lock_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsLockApi->udm_settings_lock_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_lock_object_search** +> SettingsLockList udm_settings_lock_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Locks objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLockApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Locks objects + api_response = api_instance.udm_settings_lock_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsLockApi->udm_settings_lock_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsLockList**](SettingsLockList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_lock_object_update** +> udm_settings_lock_object_update(dn, settings_lock, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Lock object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsLockApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_lock = openapi_client_udm.SettingsLock() # SettingsLock | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Lock object (moving is currently not possible) + api_instance.udm_settings_lock_object_update(dn, settings_lock, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsLockApi->udm_settings_lock_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_lock** | [**SettingsLock**](SettingsLock.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsLockList.md b/docs/SettingsLockList.md new file mode 100644 index 0000000..fc3d182 --- /dev/null +++ b/docs/SettingsLockList.md @@ -0,0 +1,11 @@ +# SettingsLockList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsLockListEmbedded**](SettingsLockListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLockListEmbedded.md b/docs/SettingsLockListEmbedded.md new file mode 100644 index 0000000..8f2391f --- /dev/null +++ b/docs/SettingsLockListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsLockListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsLock]**](SettingsLock.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLockRequest.md b/docs/SettingsLockRequest.md new file mode 100644 index 0000000..e0a8572 --- /dev/null +++ b/docs/SettingsLockRequest.md @@ -0,0 +1,15 @@ +# SettingsLockRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLockRequestPatch.md b/docs/SettingsLockRequestPatch.md new file mode 100644 index 0000000..f8e9e5c --- /dev/null +++ b/docs/SettingsLockRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsLockRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsLockResponseMixin.md b/docs/SettingsLockResponseMixin.md new file mode 100644 index 0000000..d7fab58 --- /dev/null +++ b/docs/SettingsLockResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsLockResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMsprintconnectionpolicy.md b/docs/SettingsMsprintconnectionpolicy.md new file mode 100644 index 0000000..fb7dd64 --- /dev/null +++ b/docs/SettingsMsprintconnectionpolicy.md @@ -0,0 +1,20 @@ +# SettingsMsprintconnectionpolicy + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsMsprintconnectionpolicyPolicies**](SettingsMsprintconnectionpolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMsprintconnectionpolicyApi.md b/docs/SettingsMsprintconnectionpolicyApi.md new file mode 100644 index 0000000..79c2e95 --- /dev/null +++ b/docs/SettingsMsprintconnectionpolicyApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsMsprintconnectionpolicyApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_msprintconnectionpolicy_object**](SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object) | **GET** /settings/msprintconnectionpolicy/{dn} | Get a representation of the Settings: MS Print Connection Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_msprintconnectionpolicy_object_create**](SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_create) | **POST** /settings/msprintconnectionpolicy/ | Create a new Settings: MS Print Connection Policy object +[**udm_settings_msprintconnectionpolicy_object_modify**](SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_modify) | **PUT** /settings/msprintconnectionpolicy/{dn} | Modify or move an Settings: MS Print Connection Policy object +[**udm_settings_msprintconnectionpolicy_object_remove**](SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_remove) | **DELETE** /settings/msprintconnectionpolicy/{dn} | Remove a Settings: MS Print Connection Policy object +[**udm_settings_msprintconnectionpolicy_object_search**](SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_search) | **GET** /settings/msprintconnectionpolicy/ | Search for Settings: MS Print Connection Policy objects +[**udm_settings_msprintconnectionpolicy_object_template**](SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_template) | **GET** /settings/msprintconnectionpolicy/add | Get a template for creating an Settings: MS Print Connection Policy object (contains all properties and their default values) +[**udm_settings_msprintconnectionpolicy_object_update**](SettingsMsprintconnectionpolicyApi.md#udm_settings_msprintconnectionpolicy_object_update) | **PATCH** /settings/msprintconnectionpolicy/{dn} | Modify an Settings: MS Print Connection Policy object (moving is currently not possible) + + +# **udm_settings_msprintconnectionpolicy_object** +> SettingsMsprintconnectionpolicy udm_settings_msprintconnectionpolicy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Settings: MS Print Connection Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMsprintconnectionpolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Settings: MS Print Connection Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_msprintconnectionpolicy_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMsprintconnectionpolicyApi->udm_settings_msprintconnectionpolicy_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsMsprintconnectionpolicy**](SettingsMsprintconnectionpolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_msprintconnectionpolicy_object_create** +> InlineResponse201 udm_settings_msprintconnectionpolicy_object_create(settings_msprintconnectionpolicy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Settings: MS Print Connection Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMsprintconnectionpolicyApi(api_client) + settings_msprintconnectionpolicy = openapi_client_udm.SettingsMsprintconnectionpolicy() # SettingsMsprintconnectionpolicy | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Settings: MS Print Connection Policy object + api_response = api_instance.udm_settings_msprintconnectionpolicy_object_create(settings_msprintconnectionpolicy, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMsprintconnectionpolicyApi->udm_settings_msprintconnectionpolicy_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_msprintconnectionpolicy** | [**SettingsMsprintconnectionpolicy**](SettingsMsprintconnectionpolicy.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_msprintconnectionpolicy_object_modify** +> InlineResponse201 udm_settings_msprintconnectionpolicy_object_modify(dn, settings_msprintconnectionpolicy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Settings: MS Print Connection Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMsprintconnectionpolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_msprintconnectionpolicy = openapi_client_udm.SettingsMsprintconnectionpolicy() # SettingsMsprintconnectionpolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Settings: MS Print Connection Policy object + api_response = api_instance.udm_settings_msprintconnectionpolicy_object_modify(dn, settings_msprintconnectionpolicy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMsprintconnectionpolicyApi->udm_settings_msprintconnectionpolicy_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_msprintconnectionpolicy** | [**SettingsMsprintconnectionpolicy**](SettingsMsprintconnectionpolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_msprintconnectionpolicy_object_remove** +> udm_settings_msprintconnectionpolicy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Settings: MS Print Connection Policy object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMsprintconnectionpolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Settings: MS Print Connection Policy object + api_instance.udm_settings_msprintconnectionpolicy_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsMsprintconnectionpolicyApi->udm_settings_msprintconnectionpolicy_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_msprintconnectionpolicy_object_search** +> SettingsMsprintconnectionpolicyList udm_settings_msprintconnectionpolicy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Settings: MS Print Connection Policy objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMsprintconnectionpolicyApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Settings: MS Print Connection Policy objects + api_response = api_instance.udm_settings_msprintconnectionpolicy_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMsprintconnectionpolicyApi->udm_settings_msprintconnectionpolicy_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsMsprintconnectionpolicyList**](SettingsMsprintconnectionpolicyList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_msprintconnectionpolicy_object_template** +> SettingsMsprintconnectionpolicy udm_settings_msprintconnectionpolicy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Settings: MS Print Connection Policy object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMsprintconnectionpolicyApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Settings: MS Print Connection Policy object (contains all properties and their default values) + api_response = api_instance.udm_settings_msprintconnectionpolicy_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMsprintconnectionpolicyApi->udm_settings_msprintconnectionpolicy_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsMsprintconnectionpolicy**](SettingsMsprintconnectionpolicy.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Settings: MS Print Connection Policy. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_msprintconnectionpolicy_object_update** +> udm_settings_msprintconnectionpolicy_object_update(dn, settings_msprintconnectionpolicy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Settings: MS Print Connection Policy object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMsprintconnectionpolicyApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_msprintconnectionpolicy = openapi_client_udm.SettingsMsprintconnectionpolicy() # SettingsMsprintconnectionpolicy | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Settings: MS Print Connection Policy object (moving is currently not possible) + api_instance.udm_settings_msprintconnectionpolicy_object_update(dn, settings_msprintconnectionpolicy, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsMsprintconnectionpolicyApi->udm_settings_msprintconnectionpolicy_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_msprintconnectionpolicy** | [**SettingsMsprintconnectionpolicy**](SettingsMsprintconnectionpolicy.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsMsprintconnectionpolicyList.md b/docs/SettingsMsprintconnectionpolicyList.md new file mode 100644 index 0000000..6ab8c58 --- /dev/null +++ b/docs/SettingsMsprintconnectionpolicyList.md @@ -0,0 +1,11 @@ +# SettingsMsprintconnectionpolicyList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsMsprintconnectionpolicyListEmbedded**](SettingsMsprintconnectionpolicyListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMsprintconnectionpolicyListEmbedded.md b/docs/SettingsMsprintconnectionpolicyListEmbedded.md new file mode 100644 index 0000000..72edc79 --- /dev/null +++ b/docs/SettingsMsprintconnectionpolicyListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsMsprintconnectionpolicyListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsMsprintconnectionpolicy]**](SettingsMsprintconnectionpolicy.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMsprintconnectionpolicyPolicies.md b/docs/SettingsMsprintconnectionpolicyPolicies.md new file mode 100644 index 0000000..42b7c29 --- /dev/null +++ b/docs/SettingsMsprintconnectionpolicyPolicies.md @@ -0,0 +1,35 @@ +# SettingsMsprintconnectionpolicyPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMsprintconnectionpolicyRequest.md b/docs/SettingsMsprintconnectionpolicyRequest.md new file mode 100644 index 0000000..98cfe4b --- /dev/null +++ b/docs/SettingsMsprintconnectionpolicyRequest.md @@ -0,0 +1,15 @@ +# SettingsMsprintconnectionpolicyRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsMsprintconnectionpolicyPolicies**](SettingsMsprintconnectionpolicyPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMsprintconnectionpolicyRequestPatch.md b/docs/SettingsMsprintconnectionpolicyRequestPatch.md new file mode 100644 index 0000000..ac14e02 --- /dev/null +++ b/docs/SettingsMsprintconnectionpolicyRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsMsprintconnectionpolicyRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsMsprintconnectionpolicyPolicies**](SettingsMsprintconnectionpolicyPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMsprintconnectionpolicyResponseMixin.md b/docs/SettingsMsprintconnectionpolicyResponseMixin.md new file mode 100644 index 0000000..f2152d9 --- /dev/null +++ b/docs/SettingsMsprintconnectionpolicyResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsMsprintconnectionpolicyResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMswmifilter.md b/docs/SettingsMswmifilter.md new file mode 100644 index 0000000..8b187ba --- /dev/null +++ b/docs/SettingsMswmifilter.md @@ -0,0 +1,20 @@ +# SettingsMswmifilter + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsMswmifilterPolicies**](SettingsMswmifilterPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMswmifilterApi.md b/docs/SettingsMswmifilterApi.md new file mode 100644 index 0000000..af5b4a6 --- /dev/null +++ b/docs/SettingsMswmifilterApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsMswmifilterApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_mswmifilter_object**](SettingsMswmifilterApi.md#udm_settings_mswmifilter_object) | **GET** /settings/mswmifilter/{dn} | Get a representation of the Settings: MS WMI Filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_mswmifilter_object_create**](SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_create) | **POST** /settings/mswmifilter/ | Create a new Settings: MS WMI Filter object +[**udm_settings_mswmifilter_object_modify**](SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_modify) | **PUT** /settings/mswmifilter/{dn} | Modify or move an Settings: MS WMI Filter object +[**udm_settings_mswmifilter_object_remove**](SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_remove) | **DELETE** /settings/mswmifilter/{dn} | Remove a Settings: MS WMI Filter object +[**udm_settings_mswmifilter_object_search**](SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_search) | **GET** /settings/mswmifilter/ | Search for Settings: MS WMI Filter objects +[**udm_settings_mswmifilter_object_template**](SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_template) | **GET** /settings/mswmifilter/add | Get a template for creating an Settings: MS WMI Filter object (contains all properties and their default values) +[**udm_settings_mswmifilter_object_update**](SettingsMswmifilterApi.md#udm_settings_mswmifilter_object_update) | **PATCH** /settings/mswmifilter/{dn} | Modify an Settings: MS WMI Filter object (moving is currently not possible) + + +# **udm_settings_mswmifilter_object** +> SettingsMswmifilter udm_settings_mswmifilter_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Settings: MS WMI Filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMswmifilterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Settings: MS WMI Filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_mswmifilter_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMswmifilterApi->udm_settings_mswmifilter_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsMswmifilter**](SettingsMswmifilter.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_mswmifilter_object_create** +> InlineResponse201 udm_settings_mswmifilter_object_create(settings_mswmifilter, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Settings: MS WMI Filter object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMswmifilterApi(api_client) + settings_mswmifilter = openapi_client_udm.SettingsMswmifilter() # SettingsMswmifilter | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Settings: MS WMI Filter object + api_response = api_instance.udm_settings_mswmifilter_object_create(settings_mswmifilter, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMswmifilterApi->udm_settings_mswmifilter_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_mswmifilter** | [**SettingsMswmifilter**](SettingsMswmifilter.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_mswmifilter_object_modify** +> InlineResponse201 udm_settings_mswmifilter_object_modify(dn, settings_mswmifilter, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Settings: MS WMI Filter object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMswmifilterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_mswmifilter = openapi_client_udm.SettingsMswmifilter() # SettingsMswmifilter | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Settings: MS WMI Filter object + api_response = api_instance.udm_settings_mswmifilter_object_modify(dn, settings_mswmifilter, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMswmifilterApi->udm_settings_mswmifilter_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_mswmifilter** | [**SettingsMswmifilter**](SettingsMswmifilter.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_mswmifilter_object_remove** +> udm_settings_mswmifilter_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Settings: MS WMI Filter object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMswmifilterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Settings: MS WMI Filter object + api_instance.udm_settings_mswmifilter_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsMswmifilterApi->udm_settings_mswmifilter_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_mswmifilter_object_search** +> SettingsMswmifilterList udm_settings_mswmifilter_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Settings: MS WMI Filter objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMswmifilterApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Settings: MS WMI Filter objects + api_response = api_instance.udm_settings_mswmifilter_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMswmifilterApi->udm_settings_mswmifilter_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsMswmifilterList**](SettingsMswmifilterList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_mswmifilter_object_template** +> SettingsMswmifilter udm_settings_mswmifilter_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Settings: MS WMI Filter object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMswmifilterApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Settings: MS WMI Filter object (contains all properties and their default values) + api_response = api_instance.udm_settings_mswmifilter_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsMswmifilterApi->udm_settings_mswmifilter_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsMswmifilter**](SettingsMswmifilter.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Settings: MS WMI Filter. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_mswmifilter_object_update** +> udm_settings_mswmifilter_object_update(dn, settings_mswmifilter, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Settings: MS WMI Filter object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsMswmifilterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_mswmifilter = openapi_client_udm.SettingsMswmifilter() # SettingsMswmifilter | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Settings: MS WMI Filter object (moving is currently not possible) + api_instance.udm_settings_mswmifilter_object_update(dn, settings_mswmifilter, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsMswmifilterApi->udm_settings_mswmifilter_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_mswmifilter** | [**SettingsMswmifilter**](SettingsMswmifilter.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsMswmifilterList.md b/docs/SettingsMswmifilterList.md new file mode 100644 index 0000000..ca301ff --- /dev/null +++ b/docs/SettingsMswmifilterList.md @@ -0,0 +1,11 @@ +# SettingsMswmifilterList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsMswmifilterListEmbedded**](SettingsMswmifilterListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMswmifilterListEmbedded.md b/docs/SettingsMswmifilterListEmbedded.md new file mode 100644 index 0000000..a8c6552 --- /dev/null +++ b/docs/SettingsMswmifilterListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsMswmifilterListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsMswmifilter]**](SettingsMswmifilter.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMswmifilterPolicies.md b/docs/SettingsMswmifilterPolicies.md new file mode 100644 index 0000000..6941936 --- /dev/null +++ b/docs/SettingsMswmifilterPolicies.md @@ -0,0 +1,35 @@ +# SettingsMswmifilterPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_slavepackages** | **list[str]** | Policy: Packages for Replica Nodes | [optional] +**policies_dhcp_dns** | **list[str]** | Policy: DHCP DNS | [optional] +**policies_printserver** | **list[str]** | Policy: Print server | [optional] +**policies_dhcp_scope** | **list[str]** | Policy: DHCP Allow/Deny | [optional] +**policies_dhcp_dnsupdate** | **list[str]** | Policy: DHCP Dynamic DNS | [optional] +**policies_dhcp_boot** | **list[str]** | Policy: DHCP Boot | [optional] +**policies_repositorysync** | **list[str]** | Policy: Repository synchronisation | [optional] +**policies_dhcp_statements** | **list[str]** | Policy: DHCP statements | [optional] +**policies_nfsmounts** | **list[str]** | Policy: NFS mounts | [optional] +**policies_memberpackages** | **list[str]** | Policy: Packages for Managed Nodes | [optional] +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_maintenance** | **list[str]** | Policy: Maintenance | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_dhcp_netbios** | **list[str]** | Policy: DHCP NetBIOS | [optional] +**policies_admin_container** | **list[str]** | Policy: Univention Directory Manager container settings | [optional] +**policies_dhcp_routing** | **list[str]** | Policy: DHCP routing | [optional] +**policies_release** | **list[str]** | Policy: Automatic updates | [optional] +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] +**policies_dhcp_leasetime** | **list[str]** | Policy: DHCP lease time | [optional] +**policies_registry** | **list[str]** | Policy: Univention Configuration Registry | [optional] +**policies_masterpackages** | **list[str]** | Policy: Packages for Primary/Backup Nodes | [optional] +**policies_ldapserver** | **list[str]** | Policy: LDAP server | [optional] +**policies_repositoryserver** | **list[str]** | Policy: Repository server | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMswmifilterRequest.md b/docs/SettingsMswmifilterRequest.md new file mode 100644 index 0000000..891b529 --- /dev/null +++ b/docs/SettingsMswmifilterRequest.md @@ -0,0 +1,15 @@ +# SettingsMswmifilterRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsMswmifilterPolicies**](SettingsMswmifilterPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMswmifilterRequestPatch.md b/docs/SettingsMswmifilterRequestPatch.md new file mode 100644 index 0000000..a1a7ab1 --- /dev/null +++ b/docs/SettingsMswmifilterRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsMswmifilterRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | [**SettingsMswmifilterPolicies**](SettingsMswmifilterPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsMswmifilterResponseMixin.md b/docs/SettingsMswmifilterResponseMixin.md new file mode 100644 index 0000000..e5ea0c8 --- /dev/null +++ b/docs/SettingsMswmifilterResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsMswmifilterResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPackages.md b/docs/SettingsPackages.md new file mode 100644 index 0000000..72060c0 --- /dev/null +++ b/docs/SettingsPackages.md @@ -0,0 +1,20 @@ +# SettingsPackages + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPackagesApi.md b/docs/SettingsPackagesApi.md new file mode 100644 index 0000000..a7b965f --- /dev/null +++ b/docs/SettingsPackagesApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsPackagesApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_packages_object**](SettingsPackagesApi.md#udm_settings_packages_object) | **GET** /settings/packages/{dn} | Get a representation of the Package List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_packages_object_create**](SettingsPackagesApi.md#udm_settings_packages_object_create) | **POST** /settings/packages/ | Create a new Package List object +[**udm_settings_packages_object_modify**](SettingsPackagesApi.md#udm_settings_packages_object_modify) | **PUT** /settings/packages/{dn} | Modify or move an Package List object +[**udm_settings_packages_object_remove**](SettingsPackagesApi.md#udm_settings_packages_object_remove) | **DELETE** /settings/packages/{dn} | Remove a Package Lists object +[**udm_settings_packages_object_search**](SettingsPackagesApi.md#udm_settings_packages_object_search) | **GET** /settings/packages/ | Search for Package Lists objects +[**udm_settings_packages_object_template**](SettingsPackagesApi.md#udm_settings_packages_object_template) | **GET** /settings/packages/add | Get a template for creating an Package List object (contains all properties and their default values) +[**udm_settings_packages_object_update**](SettingsPackagesApi.md#udm_settings_packages_object_update) | **PATCH** /settings/packages/{dn} | Modify an Package List object (moving is currently not possible) + + +# **udm_settings_packages_object** +> SettingsPackages udm_settings_packages_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Package List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Package List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_packages_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPackagesApi->udm_settings_packages_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPackages**](SettingsPackages.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_packages_object_create** +> InlineResponse201 udm_settings_packages_object_create(settings_packages, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Package List object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPackagesApi(api_client) + settings_packages = openapi_client_udm.SettingsPackages() # SettingsPackages | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Package List object + api_response = api_instance.udm_settings_packages_object_create(settings_packages, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPackagesApi->udm_settings_packages_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_packages** | [**SettingsPackages**](SettingsPackages.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_packages_object_modify** +> InlineResponse201 udm_settings_packages_object_modify(dn, settings_packages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Package List object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_packages = openapi_client_udm.SettingsPackages() # SettingsPackages | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Package List object + api_response = api_instance.udm_settings_packages_object_modify(dn, settings_packages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPackagesApi->udm_settings_packages_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_packages** | [**SettingsPackages**](SettingsPackages.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_packages_object_remove** +> udm_settings_packages_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Package Lists object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Package Lists object + api_instance.udm_settings_packages_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPackagesApi->udm_settings_packages_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_packages_object_search** +> SettingsPackagesList udm_settings_packages_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Package Lists objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPackagesApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Package Lists objects + api_response = api_instance.udm_settings_packages_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPackagesApi->udm_settings_packages_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPackagesList**](SettingsPackagesList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_packages_object_template** +> SettingsPackages udm_settings_packages_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Package List object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPackagesApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Package List object (contains all properties and their default values) + api_response = api_instance.udm_settings_packages_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPackagesApi->udm_settings_packages_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPackages**](SettingsPackages.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Package List. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_packages_object_update** +> udm_settings_packages_object_update(dn, settings_packages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Package List object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPackagesApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_packages = openapi_client_udm.SettingsPackages() # SettingsPackages | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Package List object (moving is currently not possible) + api_instance.udm_settings_packages_object_update(dn, settings_packages, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPackagesApi->udm_settings_packages_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_packages** | [**SettingsPackages**](SettingsPackages.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsPackagesList.md b/docs/SettingsPackagesList.md new file mode 100644 index 0000000..08001df --- /dev/null +++ b/docs/SettingsPackagesList.md @@ -0,0 +1,11 @@ +# SettingsPackagesList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsPackagesListEmbedded**](SettingsPackagesListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPackagesListEmbedded.md b/docs/SettingsPackagesListEmbedded.md new file mode 100644 index 0000000..3daf7bc --- /dev/null +++ b/docs/SettingsPackagesListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsPackagesListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsPackages]**](SettingsPackages.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPackagesRequest.md b/docs/SettingsPackagesRequest.md new file mode 100644 index 0000000..25f9182 --- /dev/null +++ b/docs/SettingsPackagesRequest.md @@ -0,0 +1,15 @@ +# SettingsPackagesRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPackagesRequestPatch.md b/docs/SettingsPackagesRequestPatch.md new file mode 100644 index 0000000..1741a61 --- /dev/null +++ b/docs/SettingsPackagesRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsPackagesRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPackagesResponseMixin.md b/docs/SettingsPackagesResponseMixin.md new file mode 100644 index 0000000..9242b62 --- /dev/null +++ b/docs/SettingsPackagesResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsPackagesResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortal.md b/docs/SettingsPortal.md new file mode 100644 index 0000000..20db740 --- /dev/null +++ b/docs/SettingsPortal.md @@ -0,0 +1,20 @@ +# SettingsPortal + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalAll.md b/docs/SettingsPortalAll.md new file mode 100644 index 0000000..9bf69db --- /dev/null +++ b/docs/SettingsPortalAll.md @@ -0,0 +1,20 @@ +# SettingsPortalAll + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalAllApi.md b/docs/SettingsPortalAllApi.md new file mode 100644 index 0000000..14aeda3 --- /dev/null +++ b/docs/SettingsPortalAllApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.SettingsPortalAllApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_portal_all_object**](SettingsPortalAllApi.md#udm_settings_portal_all_object) | **GET** /settings/portal_all/{dn} | Get a representation of the Deprecated Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_portal_all_object_search**](SettingsPortalAllApi.md#udm_settings_portal_all_object_search) | **GET** /settings/portal_all/ | Search for Deprecated Portal: Settings objects + + +# **udm_settings_portal_all_object** +> SettingsPortalAll udm_settings_portal_all_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Deprecated Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalAllApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Deprecated Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_portal_all_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalAllApi->udm_settings_portal_all_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalAll**](SettingsPortalAll.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_all_object_search** +> SettingsPortalAllList udm_settings_portal_all_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Deprecated Portal: Settings objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalAllApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Deprecated Portal: Settings objects + api_response = api_instance.udm_settings_portal_all_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalAllApi->udm_settings_portal_all_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalAllList**](SettingsPortalAllList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsPortalAllList.md b/docs/SettingsPortalAllList.md new file mode 100644 index 0000000..a497493 --- /dev/null +++ b/docs/SettingsPortalAllList.md @@ -0,0 +1,11 @@ +# SettingsPortalAllList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsPortalAllListEmbedded**](SettingsPortalAllListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalAllListEmbedded.md b/docs/SettingsPortalAllListEmbedded.md new file mode 100644 index 0000000..12f7d42 --- /dev/null +++ b/docs/SettingsPortalAllListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsPortalAllListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsPortalAll]**](SettingsPortalAll.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalAllRequest.md b/docs/SettingsPortalAllRequest.md new file mode 100644 index 0000000..ec67a04 --- /dev/null +++ b/docs/SettingsPortalAllRequest.md @@ -0,0 +1,15 @@ +# SettingsPortalAllRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalAllRequestPatch.md b/docs/SettingsPortalAllRequestPatch.md new file mode 100644 index 0000000..4774809 --- /dev/null +++ b/docs/SettingsPortalAllRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsPortalAllRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalAllResponseMixin.md b/docs/SettingsPortalAllResponseMixin.md new file mode 100644 index 0000000..0f22e80 --- /dev/null +++ b/docs/SettingsPortalAllResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsPortalAllResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalApi.md b/docs/SettingsPortalApi.md new file mode 100644 index 0000000..b0dbf5c --- /dev/null +++ b/docs/SettingsPortalApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsPortalApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_portal_object**](SettingsPortalApi.md#udm_settings_portal_object) | **GET** /settings/portal/{dn} | Get a representation of the Deprecated Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_portal_object_create**](SettingsPortalApi.md#udm_settings_portal_object_create) | **POST** /settings/portal/ | Create a new Deprecated Portal object +[**udm_settings_portal_object_modify**](SettingsPortalApi.md#udm_settings_portal_object_modify) | **PUT** /settings/portal/{dn} | Modify or move an Deprecated Portal object +[**udm_settings_portal_object_remove**](SettingsPortalApi.md#udm_settings_portal_object_remove) | **DELETE** /settings/portal/{dn} | Remove a Deprecated Portals object +[**udm_settings_portal_object_search**](SettingsPortalApi.md#udm_settings_portal_object_search) | **GET** /settings/portal/ | Search for Deprecated Portals objects +[**udm_settings_portal_object_template**](SettingsPortalApi.md#udm_settings_portal_object_template) | **GET** /settings/portal/add | Get a template for creating an Deprecated Portal object (contains all properties and their default values) +[**udm_settings_portal_object_update**](SettingsPortalApi.md#udm_settings_portal_object_update) | **PATCH** /settings/portal/{dn} | Modify an Deprecated Portal object (moving is currently not possible) + + +# **udm_settings_portal_object** +> SettingsPortal udm_settings_portal_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Deprecated Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Deprecated Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_portal_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalApi->udm_settings_portal_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortal**](SettingsPortal.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_object_create** +> InlineResponse201 udm_settings_portal_object_create(settings_portal, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Deprecated Portal object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalApi(api_client) + settings_portal = openapi_client_udm.SettingsPortal() # SettingsPortal | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Deprecated Portal object + api_response = api_instance.udm_settings_portal_object_create(settings_portal, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalApi->udm_settings_portal_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_portal** | [**SettingsPortal**](SettingsPortal.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_portal_object_modify** +> InlineResponse201 udm_settings_portal_object_modify(dn, settings_portal, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Deprecated Portal object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_portal = openapi_client_udm.SettingsPortal() # SettingsPortal | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Deprecated Portal object + api_response = api_instance.udm_settings_portal_object_modify(dn, settings_portal, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalApi->udm_settings_portal_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_portal** | [**SettingsPortal**](SettingsPortal.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_object_remove** +> udm_settings_portal_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Deprecated Portals object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Deprecated Portals object + api_instance.udm_settings_portal_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPortalApi->udm_settings_portal_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_object_search** +> SettingsPortalList udm_settings_portal_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Deprecated Portals objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Deprecated Portals objects + api_response = api_instance.udm_settings_portal_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalApi->udm_settings_portal_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalList**](SettingsPortalList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_object_template** +> SettingsPortal udm_settings_portal_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Deprecated Portal object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Deprecated Portal object (contains all properties and their default values) + api_response = api_instance.udm_settings_portal_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalApi->udm_settings_portal_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortal**](SettingsPortal.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Deprecated Portal. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_object_update** +> udm_settings_portal_object_update(dn, settings_portal, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Deprecated Portal object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_portal = openapi_client_udm.SettingsPortal() # SettingsPortal | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Deprecated Portal object (moving is currently not possible) + api_instance.udm_settings_portal_object_update(dn, settings_portal, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPortalApi->udm_settings_portal_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_portal** | [**SettingsPortal**](SettingsPortal.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsPortalCategory.md b/docs/SettingsPortalCategory.md new file mode 100644 index 0000000..1d68975 --- /dev/null +++ b/docs/SettingsPortalCategory.md @@ -0,0 +1,20 @@ +# SettingsPortalCategory + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalCategoryApi.md b/docs/SettingsPortalCategoryApi.md new file mode 100644 index 0000000..bf59c9c --- /dev/null +++ b/docs/SettingsPortalCategoryApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsPortalCategoryApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_portal_category_object**](SettingsPortalCategoryApi.md#udm_settings_portal_category_object) | **GET** /settings/portal_category/{dn} | Get a representation of the Deprecated Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_portal_category_object_create**](SettingsPortalCategoryApi.md#udm_settings_portal_category_object_create) | **POST** /settings/portal_category/ | Create a new Deprecated Portal category object +[**udm_settings_portal_category_object_modify**](SettingsPortalCategoryApi.md#udm_settings_portal_category_object_modify) | **PUT** /settings/portal_category/{dn} | Modify or move an Deprecated Portal category object +[**udm_settings_portal_category_object_remove**](SettingsPortalCategoryApi.md#udm_settings_portal_category_object_remove) | **DELETE** /settings/portal_category/{dn} | Remove a Deprecated Portal categories object +[**udm_settings_portal_category_object_search**](SettingsPortalCategoryApi.md#udm_settings_portal_category_object_search) | **GET** /settings/portal_category/ | Search for Deprecated Portal categories objects +[**udm_settings_portal_category_object_template**](SettingsPortalCategoryApi.md#udm_settings_portal_category_object_template) | **GET** /settings/portal_category/add | Get a template for creating an Deprecated Portal category object (contains all properties and their default values) +[**udm_settings_portal_category_object_update**](SettingsPortalCategoryApi.md#udm_settings_portal_category_object_update) | **PATCH** /settings/portal_category/{dn} | Modify an Deprecated Portal category object (moving is currently not possible) + + +# **udm_settings_portal_category_object** +> SettingsPortalCategory udm_settings_portal_category_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Deprecated Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalCategoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Deprecated Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_portal_category_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalCategoryApi->udm_settings_portal_category_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalCategory**](SettingsPortalCategory.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_category_object_create** +> InlineResponse201 udm_settings_portal_category_object_create(settings_portal_category, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Deprecated Portal category object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalCategoryApi(api_client) + settings_portal_category = openapi_client_udm.SettingsPortalCategory() # SettingsPortalCategory | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Deprecated Portal category object + api_response = api_instance.udm_settings_portal_category_object_create(settings_portal_category, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalCategoryApi->udm_settings_portal_category_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_portal_category** | [**SettingsPortalCategory**](SettingsPortalCategory.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_portal_category_object_modify** +> InlineResponse201 udm_settings_portal_category_object_modify(dn, settings_portal_category, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Deprecated Portal category object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalCategoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_portal_category = openapi_client_udm.SettingsPortalCategory() # SettingsPortalCategory | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Deprecated Portal category object + api_response = api_instance.udm_settings_portal_category_object_modify(dn, settings_portal_category, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalCategoryApi->udm_settings_portal_category_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_portal_category** | [**SettingsPortalCategory**](SettingsPortalCategory.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_category_object_remove** +> udm_settings_portal_category_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Deprecated Portal categories object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalCategoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Deprecated Portal categories object + api_instance.udm_settings_portal_category_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPortalCategoryApi->udm_settings_portal_category_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_category_object_search** +> SettingsPortalCategoryList udm_settings_portal_category_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Deprecated Portal categories objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalCategoryApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Deprecated Portal categories objects + api_response = api_instance.udm_settings_portal_category_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalCategoryApi->udm_settings_portal_category_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalCategoryList**](SettingsPortalCategoryList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_category_object_template** +> SettingsPortalCategory udm_settings_portal_category_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Deprecated Portal category object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalCategoryApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Deprecated Portal category object (contains all properties and their default values) + api_response = api_instance.udm_settings_portal_category_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalCategoryApi->udm_settings_portal_category_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalCategory**](SettingsPortalCategory.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Deprecated Portal category. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_category_object_update** +> udm_settings_portal_category_object_update(dn, settings_portal_category, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Deprecated Portal category object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalCategoryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_portal_category = openapi_client_udm.SettingsPortalCategory() # SettingsPortalCategory | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Deprecated Portal category object (moving is currently not possible) + api_instance.udm_settings_portal_category_object_update(dn, settings_portal_category, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPortalCategoryApi->udm_settings_portal_category_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_portal_category** | [**SettingsPortalCategory**](SettingsPortalCategory.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsPortalCategoryList.md b/docs/SettingsPortalCategoryList.md new file mode 100644 index 0000000..7b14459 --- /dev/null +++ b/docs/SettingsPortalCategoryList.md @@ -0,0 +1,11 @@ +# SettingsPortalCategoryList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsPortalCategoryListEmbedded**](SettingsPortalCategoryListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalCategoryListEmbedded.md b/docs/SettingsPortalCategoryListEmbedded.md new file mode 100644 index 0000000..b808245 --- /dev/null +++ b/docs/SettingsPortalCategoryListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsPortalCategoryListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsPortalCategory]**](SettingsPortalCategory.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalCategoryRequest.md b/docs/SettingsPortalCategoryRequest.md new file mode 100644 index 0000000..49570bb --- /dev/null +++ b/docs/SettingsPortalCategoryRequest.md @@ -0,0 +1,15 @@ +# SettingsPortalCategoryRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalCategoryRequestPatch.md b/docs/SettingsPortalCategoryRequestPatch.md new file mode 100644 index 0000000..b0122ee --- /dev/null +++ b/docs/SettingsPortalCategoryRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsPortalCategoryRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalCategoryResponseMixin.md b/docs/SettingsPortalCategoryResponseMixin.md new file mode 100644 index 0000000..b772678 --- /dev/null +++ b/docs/SettingsPortalCategoryResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsPortalCategoryResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalEntry.md b/docs/SettingsPortalEntry.md new file mode 100644 index 0000000..ca7c036 --- /dev/null +++ b/docs/SettingsPortalEntry.md @@ -0,0 +1,20 @@ +# SettingsPortalEntry + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalEntryApi.md b/docs/SettingsPortalEntryApi.md new file mode 100644 index 0000000..c7089a0 --- /dev/null +++ b/docs/SettingsPortalEntryApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsPortalEntryApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_portal_entry_object**](SettingsPortalEntryApi.md#udm_settings_portal_entry_object) | **GET** /settings/portal_entry/{dn} | Get a representation of the Deprecated Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_portal_entry_object_create**](SettingsPortalEntryApi.md#udm_settings_portal_entry_object_create) | **POST** /settings/portal_entry/ | Create a new Deprecated Portal entry object +[**udm_settings_portal_entry_object_modify**](SettingsPortalEntryApi.md#udm_settings_portal_entry_object_modify) | **PUT** /settings/portal_entry/{dn} | Modify or move an Deprecated Portal entry object +[**udm_settings_portal_entry_object_remove**](SettingsPortalEntryApi.md#udm_settings_portal_entry_object_remove) | **DELETE** /settings/portal_entry/{dn} | Remove a Deprecated Portal entries object +[**udm_settings_portal_entry_object_search**](SettingsPortalEntryApi.md#udm_settings_portal_entry_object_search) | **GET** /settings/portal_entry/ | Search for Deprecated Portal entries objects +[**udm_settings_portal_entry_object_template**](SettingsPortalEntryApi.md#udm_settings_portal_entry_object_template) | **GET** /settings/portal_entry/add | Get a template for creating an Deprecated Portal entry object (contains all properties and their default values) +[**udm_settings_portal_entry_object_update**](SettingsPortalEntryApi.md#udm_settings_portal_entry_object_update) | **PATCH** /settings/portal_entry/{dn} | Modify an Deprecated Portal entry object (moving is currently not possible) + + +# **udm_settings_portal_entry_object** +> SettingsPortalEntry udm_settings_portal_entry_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Deprecated Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalEntryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Deprecated Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_portal_entry_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalEntryApi->udm_settings_portal_entry_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalEntry**](SettingsPortalEntry.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_entry_object_create** +> InlineResponse201 udm_settings_portal_entry_object_create(settings_portal_entry, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Deprecated Portal entry object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalEntryApi(api_client) + settings_portal_entry = openapi_client_udm.SettingsPortalEntry() # SettingsPortalEntry | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Deprecated Portal entry object + api_response = api_instance.udm_settings_portal_entry_object_create(settings_portal_entry, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalEntryApi->udm_settings_portal_entry_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_portal_entry** | [**SettingsPortalEntry**](SettingsPortalEntry.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_portal_entry_object_modify** +> InlineResponse201 udm_settings_portal_entry_object_modify(dn, settings_portal_entry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Deprecated Portal entry object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalEntryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_portal_entry = openapi_client_udm.SettingsPortalEntry() # SettingsPortalEntry | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Deprecated Portal entry object + api_response = api_instance.udm_settings_portal_entry_object_modify(dn, settings_portal_entry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalEntryApi->udm_settings_portal_entry_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_portal_entry** | [**SettingsPortalEntry**](SettingsPortalEntry.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_entry_object_remove** +> udm_settings_portal_entry_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Deprecated Portal entries object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalEntryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Deprecated Portal entries object + api_instance.udm_settings_portal_entry_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPortalEntryApi->udm_settings_portal_entry_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_entry_object_search** +> SettingsPortalEntryList udm_settings_portal_entry_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Deprecated Portal entries objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalEntryApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Deprecated Portal entries objects + api_response = api_instance.udm_settings_portal_entry_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalEntryApi->udm_settings_portal_entry_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalEntryList**](SettingsPortalEntryList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_entry_object_template** +> SettingsPortalEntry udm_settings_portal_entry_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Deprecated Portal entry object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalEntryApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Deprecated Portal entry object (contains all properties and their default values) + api_response = api_instance.udm_settings_portal_entry_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPortalEntryApi->udm_settings_portal_entry_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPortalEntry**](SettingsPortalEntry.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Deprecated Portal entry. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_portal_entry_object_update** +> udm_settings_portal_entry_object_update(dn, settings_portal_entry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Deprecated Portal entry object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPortalEntryApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_portal_entry = openapi_client_udm.SettingsPortalEntry() # SettingsPortalEntry | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Deprecated Portal entry object (moving is currently not possible) + api_instance.udm_settings_portal_entry_object_update(dn, settings_portal_entry, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPortalEntryApi->udm_settings_portal_entry_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_portal_entry** | [**SettingsPortalEntry**](SettingsPortalEntry.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsPortalEntryList.md b/docs/SettingsPortalEntryList.md new file mode 100644 index 0000000..8343b49 --- /dev/null +++ b/docs/SettingsPortalEntryList.md @@ -0,0 +1,11 @@ +# SettingsPortalEntryList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsPortalEntryListEmbedded**](SettingsPortalEntryListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalEntryListEmbedded.md b/docs/SettingsPortalEntryListEmbedded.md new file mode 100644 index 0000000..05f3b2c --- /dev/null +++ b/docs/SettingsPortalEntryListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsPortalEntryListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsPortalEntry]**](SettingsPortalEntry.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalEntryRequest.md b/docs/SettingsPortalEntryRequest.md new file mode 100644 index 0000000..b4819e1 --- /dev/null +++ b/docs/SettingsPortalEntryRequest.md @@ -0,0 +1,15 @@ +# SettingsPortalEntryRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalEntryRequestPatch.md b/docs/SettingsPortalEntryRequestPatch.md new file mode 100644 index 0000000..9ed8421 --- /dev/null +++ b/docs/SettingsPortalEntryRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsPortalEntryRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalEntryResponseMixin.md b/docs/SettingsPortalEntryResponseMixin.md new file mode 100644 index 0000000..2a16a5e --- /dev/null +++ b/docs/SettingsPortalEntryResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsPortalEntryResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalList.md b/docs/SettingsPortalList.md new file mode 100644 index 0000000..d2b4ec1 --- /dev/null +++ b/docs/SettingsPortalList.md @@ -0,0 +1,11 @@ +# SettingsPortalList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsPortalListEmbedded**](SettingsPortalListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalListEmbedded.md b/docs/SettingsPortalListEmbedded.md new file mode 100644 index 0000000..100020d --- /dev/null +++ b/docs/SettingsPortalListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsPortalListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsPortal]**](SettingsPortal.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalRequest.md b/docs/SettingsPortalRequest.md new file mode 100644 index 0000000..5b7fbbc --- /dev/null +++ b/docs/SettingsPortalRequest.md @@ -0,0 +1,15 @@ +# SettingsPortalRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalRequestPatch.md b/docs/SettingsPortalRequestPatch.md new file mode 100644 index 0000000..6c44dba --- /dev/null +++ b/docs/SettingsPortalRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsPortalRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPortalResponseMixin.md b/docs/SettingsPortalResponseMixin.md new file mode 100644 index 0000000..dea4fd7 --- /dev/null +++ b/docs/SettingsPortalResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsPortalResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrintermodel.md b/docs/SettingsPrintermodel.md new file mode 100644 index 0000000..4adb7ff --- /dev/null +++ b/docs/SettingsPrintermodel.md @@ -0,0 +1,20 @@ +# SettingsPrintermodel + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrintermodelApi.md b/docs/SettingsPrintermodelApi.md new file mode 100644 index 0000000..a1b1812 --- /dev/null +++ b/docs/SettingsPrintermodelApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsPrintermodelApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_printermodel_object**](SettingsPrintermodelApi.md#udm_settings_printermodel_object) | **GET** /settings/printermodel/{dn} | Get a representation of the Printer Driver List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_printermodel_object_create**](SettingsPrintermodelApi.md#udm_settings_printermodel_object_create) | **POST** /settings/printermodel/ | Create a new Printer Driver List object +[**udm_settings_printermodel_object_modify**](SettingsPrintermodelApi.md#udm_settings_printermodel_object_modify) | **PUT** /settings/printermodel/{dn} | Modify or move an Printer Driver List object +[**udm_settings_printermodel_object_remove**](SettingsPrintermodelApi.md#udm_settings_printermodel_object_remove) | **DELETE** /settings/printermodel/{dn} | Remove a Printer Driver Lists object +[**udm_settings_printermodel_object_search**](SettingsPrintermodelApi.md#udm_settings_printermodel_object_search) | **GET** /settings/printermodel/ | Search for Printer Driver Lists objects +[**udm_settings_printermodel_object_template**](SettingsPrintermodelApi.md#udm_settings_printermodel_object_template) | **GET** /settings/printermodel/add | Get a template for creating an Printer Driver List object (contains all properties and their default values) +[**udm_settings_printermodel_object_update**](SettingsPrintermodelApi.md#udm_settings_printermodel_object_update) | **PATCH** /settings/printermodel/{dn} | Modify an Printer Driver List object (moving is currently not possible) + + +# **udm_settings_printermodel_object** +> SettingsPrintermodel udm_settings_printermodel_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Printer Driver List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrintermodelApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Printer Driver List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_printermodel_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrintermodelApi->udm_settings_printermodel_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPrintermodel**](SettingsPrintermodel.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printermodel_object_create** +> InlineResponse201 udm_settings_printermodel_object_create(settings_printermodel, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Printer Driver List object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrintermodelApi(api_client) + settings_printermodel = openapi_client_udm.SettingsPrintermodel() # SettingsPrintermodel | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Printer Driver List object + api_response = api_instance.udm_settings_printermodel_object_create(settings_printermodel, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrintermodelApi->udm_settings_printermodel_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_printermodel** | [**SettingsPrintermodel**](SettingsPrintermodel.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_printermodel_object_modify** +> InlineResponse201 udm_settings_printermodel_object_modify(dn, settings_printermodel, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Printer Driver List object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrintermodelApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_printermodel = openapi_client_udm.SettingsPrintermodel() # SettingsPrintermodel | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Printer Driver List object + api_response = api_instance.udm_settings_printermodel_object_modify(dn, settings_printermodel, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrintermodelApi->udm_settings_printermodel_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_printermodel** | [**SettingsPrintermodel**](SettingsPrintermodel.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printermodel_object_remove** +> udm_settings_printermodel_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Printer Driver Lists object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrintermodelApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Printer Driver Lists object + api_instance.udm_settings_printermodel_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPrintermodelApi->udm_settings_printermodel_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printermodel_object_search** +> SettingsPrintermodelList udm_settings_printermodel_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Printer Driver Lists objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrintermodelApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Printer Driver Lists objects + api_response = api_instance.udm_settings_printermodel_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrintermodelApi->udm_settings_printermodel_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPrintermodelList**](SettingsPrintermodelList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printermodel_object_template** +> SettingsPrintermodel udm_settings_printermodel_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Printer Driver List object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrintermodelApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Printer Driver List object (contains all properties and their default values) + api_response = api_instance.udm_settings_printermodel_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrintermodelApi->udm_settings_printermodel_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPrintermodel**](SettingsPrintermodel.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Printer Driver List. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printermodel_object_update** +> udm_settings_printermodel_object_update(dn, settings_printermodel, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Printer Driver List object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrintermodelApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_printermodel = openapi_client_udm.SettingsPrintermodel() # SettingsPrintermodel | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Printer Driver List object (moving is currently not possible) + api_instance.udm_settings_printermodel_object_update(dn, settings_printermodel, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPrintermodelApi->udm_settings_printermodel_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_printermodel** | [**SettingsPrintermodel**](SettingsPrintermodel.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsPrintermodelList.md b/docs/SettingsPrintermodelList.md new file mode 100644 index 0000000..8ecc8be --- /dev/null +++ b/docs/SettingsPrintermodelList.md @@ -0,0 +1,11 @@ +# SettingsPrintermodelList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsPrintermodelListEmbedded**](SettingsPrintermodelListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrintermodelListEmbedded.md b/docs/SettingsPrintermodelListEmbedded.md new file mode 100644 index 0000000..2a638c3 --- /dev/null +++ b/docs/SettingsPrintermodelListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsPrintermodelListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsPrintermodel]**](SettingsPrintermodel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrintermodelRequest.md b/docs/SettingsPrintermodelRequest.md new file mode 100644 index 0000000..5760852 --- /dev/null +++ b/docs/SettingsPrintermodelRequest.md @@ -0,0 +1,15 @@ +# SettingsPrintermodelRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrintermodelRequestPatch.md b/docs/SettingsPrintermodelRequestPatch.md new file mode 100644 index 0000000..75a3bcf --- /dev/null +++ b/docs/SettingsPrintermodelRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsPrintermodelRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrintermodelResponseMixin.md b/docs/SettingsPrintermodelResponseMixin.md new file mode 100644 index 0000000..160f26c --- /dev/null +++ b/docs/SettingsPrintermodelResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsPrintermodelResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrinteruri.md b/docs/SettingsPrinteruri.md new file mode 100644 index 0000000..8a1a972 --- /dev/null +++ b/docs/SettingsPrinteruri.md @@ -0,0 +1,20 @@ +# SettingsPrinteruri + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrinteruriApi.md b/docs/SettingsPrinteruriApi.md new file mode 100644 index 0000000..645959d --- /dev/null +++ b/docs/SettingsPrinteruriApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsPrinteruriApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_printeruri_object**](SettingsPrinteruriApi.md#udm_settings_printeruri_object) | **GET** /settings/printeruri/{dn} | Get a representation of the Printer URI List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_printeruri_object_create**](SettingsPrinteruriApi.md#udm_settings_printeruri_object_create) | **POST** /settings/printeruri/ | Create a new Printer URI List object +[**udm_settings_printeruri_object_modify**](SettingsPrinteruriApi.md#udm_settings_printeruri_object_modify) | **PUT** /settings/printeruri/{dn} | Modify or move an Printer URI List object +[**udm_settings_printeruri_object_remove**](SettingsPrinteruriApi.md#udm_settings_printeruri_object_remove) | **DELETE** /settings/printeruri/{dn} | Remove a Printer URI Lists object +[**udm_settings_printeruri_object_search**](SettingsPrinteruriApi.md#udm_settings_printeruri_object_search) | **GET** /settings/printeruri/ | Search for Printer URI Lists objects +[**udm_settings_printeruri_object_template**](SettingsPrinteruriApi.md#udm_settings_printeruri_object_template) | **GET** /settings/printeruri/add | Get a template for creating an Printer URI List object (contains all properties and their default values) +[**udm_settings_printeruri_object_update**](SettingsPrinteruriApi.md#udm_settings_printeruri_object_update) | **PATCH** /settings/printeruri/{dn} | Modify an Printer URI List object (moving is currently not possible) + + +# **udm_settings_printeruri_object** +> SettingsPrinteruri udm_settings_printeruri_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Printer URI List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrinteruriApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Printer URI List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_printeruri_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrinteruriApi->udm_settings_printeruri_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPrinteruri**](SettingsPrinteruri.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printeruri_object_create** +> InlineResponse201 udm_settings_printeruri_object_create(settings_printeruri, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Printer URI List object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrinteruriApi(api_client) + settings_printeruri = openapi_client_udm.SettingsPrinteruri() # SettingsPrinteruri | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Printer URI List object + api_response = api_instance.udm_settings_printeruri_object_create(settings_printeruri, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrinteruriApi->udm_settings_printeruri_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_printeruri** | [**SettingsPrinteruri**](SettingsPrinteruri.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_printeruri_object_modify** +> InlineResponse201 udm_settings_printeruri_object_modify(dn, settings_printeruri, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Printer URI List object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrinteruriApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_printeruri = openapi_client_udm.SettingsPrinteruri() # SettingsPrinteruri | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Printer URI List object + api_response = api_instance.udm_settings_printeruri_object_modify(dn, settings_printeruri, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrinteruriApi->udm_settings_printeruri_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_printeruri** | [**SettingsPrinteruri**](SettingsPrinteruri.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printeruri_object_remove** +> udm_settings_printeruri_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Printer URI Lists object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrinteruriApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Printer URI Lists object + api_instance.udm_settings_printeruri_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPrinteruriApi->udm_settings_printeruri_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printeruri_object_search** +> SettingsPrinteruriList udm_settings_printeruri_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Printer URI Lists objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrinteruriApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Printer URI Lists objects + api_response = api_instance.udm_settings_printeruri_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrinteruriApi->udm_settings_printeruri_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPrinteruriList**](SettingsPrinteruriList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printeruri_object_template** +> SettingsPrinteruri udm_settings_printeruri_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Printer URI List object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrinteruriApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Printer URI List object (contains all properties and their default values) + api_response = api_instance.udm_settings_printeruri_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsPrinteruriApi->udm_settings_printeruri_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsPrinteruri**](SettingsPrinteruri.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Printer URI List. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_printeruri_object_update** +> udm_settings_printeruri_object_update(dn, settings_printeruri, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Printer URI List object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsPrinteruriApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_printeruri = openapi_client_udm.SettingsPrinteruri() # SettingsPrinteruri | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Printer URI List object (moving is currently not possible) + api_instance.udm_settings_printeruri_object_update(dn, settings_printeruri, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsPrinteruriApi->udm_settings_printeruri_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_printeruri** | [**SettingsPrinteruri**](SettingsPrinteruri.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsPrinteruriList.md b/docs/SettingsPrinteruriList.md new file mode 100644 index 0000000..b90902a --- /dev/null +++ b/docs/SettingsPrinteruriList.md @@ -0,0 +1,11 @@ +# SettingsPrinteruriList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsPrinteruriListEmbedded**](SettingsPrinteruriListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrinteruriListEmbedded.md b/docs/SettingsPrinteruriListEmbedded.md new file mode 100644 index 0000000..1672707 --- /dev/null +++ b/docs/SettingsPrinteruriListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsPrinteruriListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsPrinteruri]**](SettingsPrinteruri.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrinteruriRequest.md b/docs/SettingsPrinteruriRequest.md new file mode 100644 index 0000000..7189420 --- /dev/null +++ b/docs/SettingsPrinteruriRequest.md @@ -0,0 +1,15 @@ +# SettingsPrinteruriRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrinteruriRequestPatch.md b/docs/SettingsPrinteruriRequestPatch.md new file mode 100644 index 0000000..6545f32 --- /dev/null +++ b/docs/SettingsPrinteruriRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsPrinteruriRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsPrinteruriResponseMixin.md b/docs/SettingsPrinteruriResponseMixin.md new file mode 100644 index 0000000..d0c8953 --- /dev/null +++ b/docs/SettingsPrinteruriResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsPrinteruriResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsProhibitedUsername.md b/docs/SettingsProhibitedUsername.md new file mode 100644 index 0000000..6486c4b --- /dev/null +++ b/docs/SettingsProhibitedUsername.md @@ -0,0 +1,20 @@ +# SettingsProhibitedUsername + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsProhibitedUsernameApi.md b/docs/SettingsProhibitedUsernameApi.md new file mode 100644 index 0000000..ebb84fb --- /dev/null +++ b/docs/SettingsProhibitedUsernameApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsProhibitedUsernameApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_prohibited_username_object**](SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object) | **GET** /settings/prohibited_username/{dn} | Get a representation of the Prohibited user name object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_prohibited_username_object_create**](SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_create) | **POST** /settings/prohibited_username/ | Create a new Prohibited user name object +[**udm_settings_prohibited_username_object_modify**](SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_modify) | **PUT** /settings/prohibited_username/{dn} | Modify or move an Prohibited user name object +[**udm_settings_prohibited_username_object_remove**](SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_remove) | **DELETE** /settings/prohibited_username/{dn} | Remove a Prohibited user names object +[**udm_settings_prohibited_username_object_search**](SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_search) | **GET** /settings/prohibited_username/ | Search for Prohibited user names objects +[**udm_settings_prohibited_username_object_template**](SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_template) | **GET** /settings/prohibited_username/add | Get a template for creating an Prohibited user name object (contains all properties and their default values) +[**udm_settings_prohibited_username_object_update**](SettingsProhibitedUsernameApi.md#udm_settings_prohibited_username_object_update) | **PATCH** /settings/prohibited_username/{dn} | Modify an Prohibited user name object (moving is currently not possible) + + +# **udm_settings_prohibited_username_object** +> SettingsProhibitedUsername udm_settings_prohibited_username_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Prohibited user name object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsProhibitedUsernameApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Prohibited user name object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_prohibited_username_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsProhibitedUsernameApi->udm_settings_prohibited_username_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsProhibitedUsername**](SettingsProhibitedUsername.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_prohibited_username_object_create** +> InlineResponse201 udm_settings_prohibited_username_object_create(settings_prohibited_username, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Prohibited user name object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsProhibitedUsernameApi(api_client) + settings_prohibited_username = openapi_client_udm.SettingsProhibitedUsername() # SettingsProhibitedUsername | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Prohibited user name object + api_response = api_instance.udm_settings_prohibited_username_object_create(settings_prohibited_username, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsProhibitedUsernameApi->udm_settings_prohibited_username_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_prohibited_username** | [**SettingsProhibitedUsername**](SettingsProhibitedUsername.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_prohibited_username_object_modify** +> InlineResponse201 udm_settings_prohibited_username_object_modify(dn, settings_prohibited_username, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Prohibited user name object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsProhibitedUsernameApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_prohibited_username = openapi_client_udm.SettingsProhibitedUsername() # SettingsProhibitedUsername | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Prohibited user name object + api_response = api_instance.udm_settings_prohibited_username_object_modify(dn, settings_prohibited_username, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsProhibitedUsernameApi->udm_settings_prohibited_username_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_prohibited_username** | [**SettingsProhibitedUsername**](SettingsProhibitedUsername.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_prohibited_username_object_remove** +> udm_settings_prohibited_username_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Prohibited user names object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsProhibitedUsernameApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Prohibited user names object + api_instance.udm_settings_prohibited_username_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsProhibitedUsernameApi->udm_settings_prohibited_username_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_prohibited_username_object_search** +> SettingsProhibitedUsernameList udm_settings_prohibited_username_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Prohibited user names objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsProhibitedUsernameApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Prohibited user names objects + api_response = api_instance.udm_settings_prohibited_username_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsProhibitedUsernameApi->udm_settings_prohibited_username_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsProhibitedUsernameList**](SettingsProhibitedUsernameList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_prohibited_username_object_template** +> SettingsProhibitedUsername udm_settings_prohibited_username_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Prohibited user name object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsProhibitedUsernameApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Prohibited user name object (contains all properties and their default values) + api_response = api_instance.udm_settings_prohibited_username_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsProhibitedUsernameApi->udm_settings_prohibited_username_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsProhibitedUsername**](SettingsProhibitedUsername.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Prohibited user name. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_prohibited_username_object_update** +> udm_settings_prohibited_username_object_update(dn, settings_prohibited_username, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Prohibited user name object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsProhibitedUsernameApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_prohibited_username = openapi_client_udm.SettingsProhibitedUsername() # SettingsProhibitedUsername | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Prohibited user name object (moving is currently not possible) + api_instance.udm_settings_prohibited_username_object_update(dn, settings_prohibited_username, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsProhibitedUsernameApi->udm_settings_prohibited_username_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_prohibited_username** | [**SettingsProhibitedUsername**](SettingsProhibitedUsername.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsProhibitedUsernameList.md b/docs/SettingsProhibitedUsernameList.md new file mode 100644 index 0000000..b2bc64b --- /dev/null +++ b/docs/SettingsProhibitedUsernameList.md @@ -0,0 +1,11 @@ +# SettingsProhibitedUsernameList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsProhibitedUsernameListEmbedded**](SettingsProhibitedUsernameListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsProhibitedUsernameListEmbedded.md b/docs/SettingsProhibitedUsernameListEmbedded.md new file mode 100644 index 0000000..90cc17b --- /dev/null +++ b/docs/SettingsProhibitedUsernameListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsProhibitedUsernameListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsProhibitedUsername]**](SettingsProhibitedUsername.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsProhibitedUsernameRequest.md b/docs/SettingsProhibitedUsernameRequest.md new file mode 100644 index 0000000..a2fa81b --- /dev/null +++ b/docs/SettingsProhibitedUsernameRequest.md @@ -0,0 +1,15 @@ +# SettingsProhibitedUsernameRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsProhibitedUsernameRequestPatch.md b/docs/SettingsProhibitedUsernameRequestPatch.md new file mode 100644 index 0000000..04bd93e --- /dev/null +++ b/docs/SettingsProhibitedUsernameRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsProhibitedUsernameRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsProhibitedUsernameResponseMixin.md b/docs/SettingsProhibitedUsernameResponseMixin.md new file mode 100644 index 0000000..f4dfa8c --- /dev/null +++ b/docs/SettingsProhibitedUsernameResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsProhibitedUsernameResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambaconfig.md b/docs/SettingsSambaconfig.md new file mode 100644 index 0000000..902f36a --- /dev/null +++ b/docs/SettingsSambaconfig.md @@ -0,0 +1,20 @@ +# SettingsSambaconfig + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambaconfigApi.md b/docs/SettingsSambaconfigApi.md new file mode 100644 index 0000000..591af37 --- /dev/null +++ b/docs/SettingsSambaconfigApi.md @@ -0,0 +1,502 @@ +# openapi_client_udm.SettingsSambaconfigApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_sambaconfig_object**](SettingsSambaconfigApi.md#udm_settings_sambaconfig_object) | **GET** /settings/sambaconfig/{dn} | Get a representation of the Samba Configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_sambaconfig_object_modify**](SettingsSambaconfigApi.md#udm_settings_sambaconfig_object_modify) | **PUT** /settings/sambaconfig/{dn} | Modify or move an Samba Configuration object +[**udm_settings_sambaconfig_object_remove**](SettingsSambaconfigApi.md#udm_settings_sambaconfig_object_remove) | **DELETE** /settings/sambaconfig/{dn} | Remove a Samba Configuration settings object +[**udm_settings_sambaconfig_object_search**](SettingsSambaconfigApi.md#udm_settings_sambaconfig_object_search) | **GET** /settings/sambaconfig/ | Search for Samba Configuration settings objects +[**udm_settings_sambaconfig_object_update**](SettingsSambaconfigApi.md#udm_settings_sambaconfig_object_update) | **PATCH** /settings/sambaconfig/{dn} | Modify an Samba Configuration object (moving is currently not possible) + + +# **udm_settings_sambaconfig_object** +> SettingsSambaconfig udm_settings_sambaconfig_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Samba Configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambaconfigApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Samba Configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_sambaconfig_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSambaconfigApi->udm_settings_sambaconfig_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSambaconfig**](SettingsSambaconfig.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambaconfig_object_modify** +> InlineResponse201 udm_settings_sambaconfig_object_modify(dn, settings_sambaconfig, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Samba Configuration object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambaconfigApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_sambaconfig = openapi_client_udm.SettingsSambaconfig() # SettingsSambaconfig | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Samba Configuration object + api_response = api_instance.udm_settings_sambaconfig_object_modify(dn, settings_sambaconfig, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSambaconfigApi->udm_settings_sambaconfig_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_sambaconfig** | [**SettingsSambaconfig**](SettingsSambaconfig.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambaconfig_object_remove** +> udm_settings_sambaconfig_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Samba Configuration settings object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambaconfigApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Samba Configuration settings object + api_instance.udm_settings_sambaconfig_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsSambaconfigApi->udm_settings_sambaconfig_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambaconfig_object_search** +> SettingsSambaconfigList udm_settings_sambaconfig_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Samba Configuration settings objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambaconfigApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Samba Configuration settings objects + api_response = api_instance.udm_settings_sambaconfig_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSambaconfigApi->udm_settings_sambaconfig_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSambaconfigList**](SettingsSambaconfigList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambaconfig_object_update** +> udm_settings_sambaconfig_object_update(dn, settings_sambaconfig, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Samba Configuration object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambaconfigApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_sambaconfig = openapi_client_udm.SettingsSambaconfig() # SettingsSambaconfig | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Samba Configuration object (moving is currently not possible) + api_instance.udm_settings_sambaconfig_object_update(dn, settings_sambaconfig, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsSambaconfigApi->udm_settings_sambaconfig_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_sambaconfig** | [**SettingsSambaconfig**](SettingsSambaconfig.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsSambaconfigList.md b/docs/SettingsSambaconfigList.md new file mode 100644 index 0000000..67eea7f --- /dev/null +++ b/docs/SettingsSambaconfigList.md @@ -0,0 +1,11 @@ +# SettingsSambaconfigList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsSambaconfigListEmbedded**](SettingsSambaconfigListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambaconfigListEmbedded.md b/docs/SettingsSambaconfigListEmbedded.md new file mode 100644 index 0000000..87e4ccd --- /dev/null +++ b/docs/SettingsSambaconfigListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsSambaconfigListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsSambaconfig]**](SettingsSambaconfig.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambaconfigRequest.md b/docs/SettingsSambaconfigRequest.md new file mode 100644 index 0000000..fc71591 --- /dev/null +++ b/docs/SettingsSambaconfigRequest.md @@ -0,0 +1,15 @@ +# SettingsSambaconfigRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambaconfigRequestPatch.md b/docs/SettingsSambaconfigRequestPatch.md new file mode 100644 index 0000000..b405c6d --- /dev/null +++ b/docs/SettingsSambaconfigRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsSambaconfigRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambaconfigResponseMixin.md b/docs/SettingsSambaconfigResponseMixin.md new file mode 100644 index 0000000..c02f87e --- /dev/null +++ b/docs/SettingsSambaconfigResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsSambaconfigResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambadomain.md b/docs/SettingsSambadomain.md new file mode 100644 index 0000000..413c18e --- /dev/null +++ b/docs/SettingsSambadomain.md @@ -0,0 +1,20 @@ +# SettingsSambadomain + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambadomainApi.md b/docs/SettingsSambadomainApi.md new file mode 100644 index 0000000..33f64f7 --- /dev/null +++ b/docs/SettingsSambadomainApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsSambadomainApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_sambadomain_object**](SettingsSambadomainApi.md#udm_settings_sambadomain_object) | **GET** /settings/sambadomain/{dn} | Get a representation of the Samba Domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_sambadomain_object_create**](SettingsSambadomainApi.md#udm_settings_sambadomain_object_create) | **POST** /settings/sambadomain/ | Create a new Samba Domain object +[**udm_settings_sambadomain_object_modify**](SettingsSambadomainApi.md#udm_settings_sambadomain_object_modify) | **PUT** /settings/sambadomain/{dn} | Modify or move an Samba Domain object +[**udm_settings_sambadomain_object_remove**](SettingsSambadomainApi.md#udm_settings_sambadomain_object_remove) | **DELETE** /settings/sambadomain/{dn} | Remove a Samba Domains object +[**udm_settings_sambadomain_object_search**](SettingsSambadomainApi.md#udm_settings_sambadomain_object_search) | **GET** /settings/sambadomain/ | Search for Samba Domains objects +[**udm_settings_sambadomain_object_template**](SettingsSambadomainApi.md#udm_settings_sambadomain_object_template) | **GET** /settings/sambadomain/add | Get a template for creating an Samba Domain object (contains all properties and their default values) +[**udm_settings_sambadomain_object_update**](SettingsSambadomainApi.md#udm_settings_sambadomain_object_update) | **PATCH** /settings/sambadomain/{dn} | Modify an Samba Domain object (moving is currently not possible) + + +# **udm_settings_sambadomain_object** +> SettingsSambadomain udm_settings_sambadomain_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Samba Domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambadomainApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Samba Domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_sambadomain_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSambadomainApi->udm_settings_sambadomain_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSambadomain**](SettingsSambadomain.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambadomain_object_create** +> InlineResponse201 udm_settings_sambadomain_object_create(settings_sambadomain, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Samba Domain object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambadomainApi(api_client) + settings_sambadomain = openapi_client_udm.SettingsSambadomain() # SettingsSambadomain | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Samba Domain object + api_response = api_instance.udm_settings_sambadomain_object_create(settings_sambadomain, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSambadomainApi->udm_settings_sambadomain_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_sambadomain** | [**SettingsSambadomain**](SettingsSambadomain.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_sambadomain_object_modify** +> InlineResponse201 udm_settings_sambadomain_object_modify(dn, settings_sambadomain, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Samba Domain object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambadomainApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_sambadomain = openapi_client_udm.SettingsSambadomain() # SettingsSambadomain | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Samba Domain object + api_response = api_instance.udm_settings_sambadomain_object_modify(dn, settings_sambadomain, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSambadomainApi->udm_settings_sambadomain_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_sambadomain** | [**SettingsSambadomain**](SettingsSambadomain.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambadomain_object_remove** +> udm_settings_sambadomain_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Samba Domains object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambadomainApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Samba Domains object + api_instance.udm_settings_sambadomain_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsSambadomainApi->udm_settings_sambadomain_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambadomain_object_search** +> SettingsSambadomainList udm_settings_sambadomain_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Samba Domains objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambadomainApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Samba Domains objects + api_response = api_instance.udm_settings_sambadomain_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSambadomainApi->udm_settings_sambadomain_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSambadomainList**](SettingsSambadomainList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambadomain_object_template** +> SettingsSambadomain udm_settings_sambadomain_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Samba Domain object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambadomainApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Samba Domain object (contains all properties and their default values) + api_response = api_instance.udm_settings_sambadomain_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSambadomainApi->udm_settings_sambadomain_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSambadomain**](SettingsSambadomain.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Samba Domain. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_sambadomain_object_update** +> udm_settings_sambadomain_object_update(dn, settings_sambadomain, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Samba Domain object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSambadomainApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_sambadomain = openapi_client_udm.SettingsSambadomain() # SettingsSambadomain | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Samba Domain object (moving is currently not possible) + api_instance.udm_settings_sambadomain_object_update(dn, settings_sambadomain, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsSambadomainApi->udm_settings_sambadomain_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_sambadomain** | [**SettingsSambadomain**](SettingsSambadomain.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsSambadomainList.md b/docs/SettingsSambadomainList.md new file mode 100644 index 0000000..250cc80 --- /dev/null +++ b/docs/SettingsSambadomainList.md @@ -0,0 +1,11 @@ +# SettingsSambadomainList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsSambadomainListEmbedded**](SettingsSambadomainListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambadomainListEmbedded.md b/docs/SettingsSambadomainListEmbedded.md new file mode 100644 index 0000000..3894864 --- /dev/null +++ b/docs/SettingsSambadomainListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsSambadomainListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsSambadomain]**](SettingsSambadomain.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambadomainRequest.md b/docs/SettingsSambadomainRequest.md new file mode 100644 index 0000000..9afaf0a --- /dev/null +++ b/docs/SettingsSambadomainRequest.md @@ -0,0 +1,15 @@ +# SettingsSambadomainRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambadomainRequestPatch.md b/docs/SettingsSambadomainRequestPatch.md new file mode 100644 index 0000000..73051f6 --- /dev/null +++ b/docs/SettingsSambadomainRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsSambadomainRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSambadomainResponseMixin.md b/docs/SettingsSambadomainResponseMixin.md new file mode 100644 index 0000000..5265592 --- /dev/null +++ b/docs/SettingsSambadomainResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsSambadomainResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsService.md b/docs/SettingsService.md new file mode 100644 index 0000000..3855c6b --- /dev/null +++ b/docs/SettingsService.md @@ -0,0 +1,20 @@ +# SettingsService + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsServiceApi.md b/docs/SettingsServiceApi.md new file mode 100644 index 0000000..d292d23 --- /dev/null +++ b/docs/SettingsServiceApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsServiceApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_service_object**](SettingsServiceApi.md#udm_settings_service_object) | **GET** /settings/service/{dn} | Get a representation of the Service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_service_object_create**](SettingsServiceApi.md#udm_settings_service_object_create) | **POST** /settings/service/ | Create a new Service object +[**udm_settings_service_object_modify**](SettingsServiceApi.md#udm_settings_service_object_modify) | **PUT** /settings/service/{dn} | Modify or move an Service object +[**udm_settings_service_object_remove**](SettingsServiceApi.md#udm_settings_service_object_remove) | **DELETE** /settings/service/{dn} | Remove a Services object +[**udm_settings_service_object_search**](SettingsServiceApi.md#udm_settings_service_object_search) | **GET** /settings/service/ | Search for Services objects +[**udm_settings_service_object_template**](SettingsServiceApi.md#udm_settings_service_object_template) | **GET** /settings/service/add | Get a template for creating an Service object (contains all properties and their default values) +[**udm_settings_service_object_update**](SettingsServiceApi.md#udm_settings_service_object_update) | **PATCH** /settings/service/{dn} | Modify an Service object (moving is currently not possible) + + +# **udm_settings_service_object** +> SettingsService udm_settings_service_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_service_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsServiceApi->udm_settings_service_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsService**](SettingsService.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_service_object_create** +> InlineResponse201 udm_settings_service_object_create(settings_service, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Service object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsServiceApi(api_client) + settings_service = openapi_client_udm.SettingsService() # SettingsService | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Service object + api_response = api_instance.udm_settings_service_object_create(settings_service, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsServiceApi->udm_settings_service_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_service** | [**SettingsService**](SettingsService.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_service_object_modify** +> InlineResponse201 udm_settings_service_object_modify(dn, settings_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Service object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_service = openapi_client_udm.SettingsService() # SettingsService | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Service object + api_response = api_instance.udm_settings_service_object_modify(dn, settings_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsServiceApi->udm_settings_service_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_service** | [**SettingsService**](SettingsService.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_service_object_remove** +> udm_settings_service_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Services object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Services object + api_instance.udm_settings_service_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsServiceApi->udm_settings_service_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_service_object_search** +> SettingsServiceList udm_settings_service_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Services objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsServiceApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Services objects + api_response = api_instance.udm_settings_service_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsServiceApi->udm_settings_service_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsServiceList**](SettingsServiceList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_service_object_template** +> SettingsService udm_settings_service_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Service object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsServiceApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Service object (contains all properties and their default values) + api_response = api_instance.udm_settings_service_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsServiceApi->udm_settings_service_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsService**](SettingsService.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Service. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_service_object_update** +> udm_settings_service_object_update(dn, settings_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Service object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsServiceApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_service = openapi_client_udm.SettingsService() # SettingsService | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Service object (moving is currently not possible) + api_instance.udm_settings_service_object_update(dn, settings_service, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsServiceApi->udm_settings_service_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_service** | [**SettingsService**](SettingsService.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsServiceList.md b/docs/SettingsServiceList.md new file mode 100644 index 0000000..53e3e06 --- /dev/null +++ b/docs/SettingsServiceList.md @@ -0,0 +1,11 @@ +# SettingsServiceList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsServiceListEmbedded**](SettingsServiceListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsServiceListEmbedded.md b/docs/SettingsServiceListEmbedded.md new file mode 100644 index 0000000..94e5b3d --- /dev/null +++ b/docs/SettingsServiceListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsServiceListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsService]**](SettingsService.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsServiceRequest.md b/docs/SettingsServiceRequest.md new file mode 100644 index 0000000..12f0d51 --- /dev/null +++ b/docs/SettingsServiceRequest.md @@ -0,0 +1,15 @@ +# SettingsServiceRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsServiceRequestPatch.md b/docs/SettingsServiceRequestPatch.md new file mode 100644 index 0000000..8967aa8 --- /dev/null +++ b/docs/SettingsServiceRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsServiceRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsServiceResponseMixin.md b/docs/SettingsServiceResponseMixin.md new file mode 100644 index 0000000..39c959c --- /dev/null +++ b/docs/SettingsServiceResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsServiceResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSettings.md b/docs/SettingsSettings.md new file mode 100644 index 0000000..3bb6002 --- /dev/null +++ b/docs/SettingsSettings.md @@ -0,0 +1,20 @@ +# SettingsSettings + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSettingsApi.md b/docs/SettingsSettingsApi.md new file mode 100644 index 0000000..3a67831 --- /dev/null +++ b/docs/SettingsSettingsApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.SettingsSettingsApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_settings_object**](SettingsSettingsApi.md#udm_settings_settings_object) | **GET** /settings/settings/{dn} | Get a representation of the Preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_settings_object_search**](SettingsSettingsApi.md#udm_settings_settings_object_search) | **GET** /settings/settings/ | Search for Preferences objects + + +# **udm_settings_settings_object** +> SettingsSettings udm_settings_settings_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSettingsApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_settings_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSettingsApi->udm_settings_settings_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSettings**](SettingsSettings.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_settings_object_search** +> SettingsSettingsList udm_settings_settings_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Preferences objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSettingsApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Preferences objects + api_response = api_instance.udm_settings_settings_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSettingsApi->udm_settings_settings_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSettingsList**](SettingsSettingsList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsSettingsList.md b/docs/SettingsSettingsList.md new file mode 100644 index 0000000..c40ff00 --- /dev/null +++ b/docs/SettingsSettingsList.md @@ -0,0 +1,11 @@ +# SettingsSettingsList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsSettingsListEmbedded**](SettingsSettingsListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSettingsListEmbedded.md b/docs/SettingsSettingsListEmbedded.md new file mode 100644 index 0000000..139e526 --- /dev/null +++ b/docs/SettingsSettingsListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsSettingsListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsSettings]**](SettingsSettings.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSettingsRequest.md b/docs/SettingsSettingsRequest.md new file mode 100644 index 0000000..089466c --- /dev/null +++ b/docs/SettingsSettingsRequest.md @@ -0,0 +1,15 @@ +# SettingsSettingsRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSettingsRequestPatch.md b/docs/SettingsSettingsRequestPatch.md new file mode 100644 index 0000000..3bb7f63 --- /dev/null +++ b/docs/SettingsSettingsRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsSettingsRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSettingsResponseMixin.md b/docs/SettingsSettingsResponseMixin.md new file mode 100644 index 0000000..bb3b704 --- /dev/null +++ b/docs/SettingsSettingsResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsSettingsResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSyntax.md b/docs/SettingsSyntax.md new file mode 100644 index 0000000..9efc644 --- /dev/null +++ b/docs/SettingsSyntax.md @@ -0,0 +1,20 @@ +# SettingsSyntax + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSyntaxApi.md b/docs/SettingsSyntaxApi.md new file mode 100644 index 0000000..5029934 --- /dev/null +++ b/docs/SettingsSyntaxApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsSyntaxApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_syntax_object**](SettingsSyntaxApi.md#udm_settings_syntax_object) | **GET** /settings/syntax/{dn} | Get a representation of the Syntax Definition object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_syntax_object_create**](SettingsSyntaxApi.md#udm_settings_syntax_object_create) | **POST** /settings/syntax/ | Create a new Syntax Definition object +[**udm_settings_syntax_object_modify**](SettingsSyntaxApi.md#udm_settings_syntax_object_modify) | **PUT** /settings/syntax/{dn} | Modify or move an Syntax Definition object +[**udm_settings_syntax_object_remove**](SettingsSyntaxApi.md#udm_settings_syntax_object_remove) | **DELETE** /settings/syntax/{dn} | Remove a Syntax Definitions object +[**udm_settings_syntax_object_search**](SettingsSyntaxApi.md#udm_settings_syntax_object_search) | **GET** /settings/syntax/ | Search for Syntax Definitions objects +[**udm_settings_syntax_object_template**](SettingsSyntaxApi.md#udm_settings_syntax_object_template) | **GET** /settings/syntax/add | Get a template for creating an Syntax Definition object (contains all properties and their default values) +[**udm_settings_syntax_object_update**](SettingsSyntaxApi.md#udm_settings_syntax_object_update) | **PATCH** /settings/syntax/{dn} | Modify an Syntax Definition object (moving is currently not possible) + + +# **udm_settings_syntax_object** +> SettingsSyntax udm_settings_syntax_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Syntax Definition object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSyntaxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Syntax Definition object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_syntax_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSyntaxApi->udm_settings_syntax_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSyntax**](SettingsSyntax.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_syntax_object_create** +> InlineResponse201 udm_settings_syntax_object_create(settings_syntax, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Syntax Definition object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSyntaxApi(api_client) + settings_syntax = openapi_client_udm.SettingsSyntax() # SettingsSyntax | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Syntax Definition object + api_response = api_instance.udm_settings_syntax_object_create(settings_syntax, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSyntaxApi->udm_settings_syntax_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_syntax** | [**SettingsSyntax**](SettingsSyntax.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_syntax_object_modify** +> InlineResponse201 udm_settings_syntax_object_modify(dn, settings_syntax, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Syntax Definition object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSyntaxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_syntax = openapi_client_udm.SettingsSyntax() # SettingsSyntax | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Syntax Definition object + api_response = api_instance.udm_settings_syntax_object_modify(dn, settings_syntax, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSyntaxApi->udm_settings_syntax_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_syntax** | [**SettingsSyntax**](SettingsSyntax.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_syntax_object_remove** +> udm_settings_syntax_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Syntax Definitions object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSyntaxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Syntax Definitions object + api_instance.udm_settings_syntax_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsSyntaxApi->udm_settings_syntax_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_syntax_object_search** +> SettingsSyntaxList udm_settings_syntax_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Syntax Definitions objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSyntaxApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Syntax Definitions objects + api_response = api_instance.udm_settings_syntax_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSyntaxApi->udm_settings_syntax_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSyntaxList**](SettingsSyntaxList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_syntax_object_template** +> SettingsSyntax udm_settings_syntax_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Syntax Definition object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSyntaxApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Syntax Definition object (contains all properties and their default values) + api_response = api_instance.udm_settings_syntax_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsSyntaxApi->udm_settings_syntax_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsSyntax**](SettingsSyntax.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Syntax Definition. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_syntax_object_update** +> udm_settings_syntax_object_update(dn, settings_syntax, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Syntax Definition object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsSyntaxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_syntax = openapi_client_udm.SettingsSyntax() # SettingsSyntax | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Syntax Definition object (moving is currently not possible) + api_instance.udm_settings_syntax_object_update(dn, settings_syntax, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsSyntaxApi->udm_settings_syntax_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_syntax** | [**SettingsSyntax**](SettingsSyntax.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsSyntaxList.md b/docs/SettingsSyntaxList.md new file mode 100644 index 0000000..96cc5bc --- /dev/null +++ b/docs/SettingsSyntaxList.md @@ -0,0 +1,11 @@ +# SettingsSyntaxList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsSyntaxListEmbedded**](SettingsSyntaxListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSyntaxListEmbedded.md b/docs/SettingsSyntaxListEmbedded.md new file mode 100644 index 0000000..772afee --- /dev/null +++ b/docs/SettingsSyntaxListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsSyntaxListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsSyntax]**](SettingsSyntax.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSyntaxRequest.md b/docs/SettingsSyntaxRequest.md new file mode 100644 index 0000000..cb7969d --- /dev/null +++ b/docs/SettingsSyntaxRequest.md @@ -0,0 +1,15 @@ +# SettingsSyntaxRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSyntaxRequestPatch.md b/docs/SettingsSyntaxRequestPatch.md new file mode 100644 index 0000000..6108c22 --- /dev/null +++ b/docs/SettingsSyntaxRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsSyntaxRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsSyntaxResponseMixin.md b/docs/SettingsSyntaxResponseMixin.md new file mode 100644 index 0000000..1382668 --- /dev/null +++ b/docs/SettingsSyntaxResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsSyntaxResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmHook.md b/docs/SettingsUdmHook.md new file mode 100644 index 0000000..73d4dab --- /dev/null +++ b/docs/SettingsUdmHook.md @@ -0,0 +1,20 @@ +# SettingsUdmHook + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmHookApi.md b/docs/SettingsUdmHookApi.md new file mode 100644 index 0000000..3b74ef4 --- /dev/null +++ b/docs/SettingsUdmHookApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsUdmHookApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_udm_hook_object**](SettingsUdmHookApi.md#udm_settings_udm_hook_object) | **GET** /settings/udm_hook/{dn} | Get a representation of the UDM Hook object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_udm_hook_object_create**](SettingsUdmHookApi.md#udm_settings_udm_hook_object_create) | **POST** /settings/udm_hook/ | Create a new UDM Hook object +[**udm_settings_udm_hook_object_modify**](SettingsUdmHookApi.md#udm_settings_udm_hook_object_modify) | **PUT** /settings/udm_hook/{dn} | Modify or move an UDM Hook object +[**udm_settings_udm_hook_object_remove**](SettingsUdmHookApi.md#udm_settings_udm_hook_object_remove) | **DELETE** /settings/udm_hook/{dn} | Remove a UDM Hooks object +[**udm_settings_udm_hook_object_search**](SettingsUdmHookApi.md#udm_settings_udm_hook_object_search) | **GET** /settings/udm_hook/ | Search for UDM Hooks objects +[**udm_settings_udm_hook_object_template**](SettingsUdmHookApi.md#udm_settings_udm_hook_object_template) | **GET** /settings/udm_hook/add | Get a template for creating an UDM Hook object (contains all properties and their default values) +[**udm_settings_udm_hook_object_update**](SettingsUdmHookApi.md#udm_settings_udm_hook_object_update) | **PATCH** /settings/udm_hook/{dn} | Modify an UDM Hook object (moving is currently not possible) + + +# **udm_settings_udm_hook_object** +> SettingsUdmHook udm_settings_udm_hook_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the UDM Hook object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmHookApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the UDM Hook object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_udm_hook_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmHookApi->udm_settings_udm_hook_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmHook**](SettingsUdmHook.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_hook_object_create** +> InlineResponse201 udm_settings_udm_hook_object_create(settings_udm_hook, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new UDM Hook object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmHookApi(api_client) + settings_udm_hook = openapi_client_udm.SettingsUdmHook() # SettingsUdmHook | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new UDM Hook object + api_response = api_instance.udm_settings_udm_hook_object_create(settings_udm_hook, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmHookApi->udm_settings_udm_hook_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_udm_hook** | [**SettingsUdmHook**](SettingsUdmHook.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_udm_hook_object_modify** +> InlineResponse201 udm_settings_udm_hook_object_modify(dn, settings_udm_hook, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an UDM Hook object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmHookApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_udm_hook = openapi_client_udm.SettingsUdmHook() # SettingsUdmHook | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an UDM Hook object + api_response = api_instance.udm_settings_udm_hook_object_modify(dn, settings_udm_hook, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmHookApi->udm_settings_udm_hook_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_udm_hook** | [**SettingsUdmHook**](SettingsUdmHook.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_hook_object_remove** +> udm_settings_udm_hook_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a UDM Hooks object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmHookApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a UDM Hooks object + api_instance.udm_settings_udm_hook_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUdmHookApi->udm_settings_udm_hook_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_hook_object_search** +> SettingsUdmHookList udm_settings_udm_hook_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for UDM Hooks objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmHookApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for UDM Hooks objects + api_response = api_instance.udm_settings_udm_hook_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmHookApi->udm_settings_udm_hook_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmHookList**](SettingsUdmHookList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_hook_object_template** +> SettingsUdmHook udm_settings_udm_hook_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an UDM Hook object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmHookApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an UDM Hook object (contains all properties and their default values) + api_response = api_instance.udm_settings_udm_hook_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmHookApi->udm_settings_udm_hook_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmHook**](SettingsUdmHook.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new UDM Hook. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_hook_object_update** +> udm_settings_udm_hook_object_update(dn, settings_udm_hook, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an UDM Hook object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmHookApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_udm_hook = openapi_client_udm.SettingsUdmHook() # SettingsUdmHook | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an UDM Hook object (moving is currently not possible) + api_instance.udm_settings_udm_hook_object_update(dn, settings_udm_hook, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUdmHookApi->udm_settings_udm_hook_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_udm_hook** | [**SettingsUdmHook**](SettingsUdmHook.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsUdmHookList.md b/docs/SettingsUdmHookList.md new file mode 100644 index 0000000..d0df254 --- /dev/null +++ b/docs/SettingsUdmHookList.md @@ -0,0 +1,11 @@ +# SettingsUdmHookList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsUdmHookListEmbedded**](SettingsUdmHookListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmHookListEmbedded.md b/docs/SettingsUdmHookListEmbedded.md new file mode 100644 index 0000000..abf3918 --- /dev/null +++ b/docs/SettingsUdmHookListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsUdmHookListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsUdmHook]**](SettingsUdmHook.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmHookRequest.md b/docs/SettingsUdmHookRequest.md new file mode 100644 index 0000000..7220303 --- /dev/null +++ b/docs/SettingsUdmHookRequest.md @@ -0,0 +1,15 @@ +# SettingsUdmHookRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmHookRequestPatch.md b/docs/SettingsUdmHookRequestPatch.md new file mode 100644 index 0000000..ec137ea --- /dev/null +++ b/docs/SettingsUdmHookRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsUdmHookRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmHookResponseMixin.md b/docs/SettingsUdmHookResponseMixin.md new file mode 100644 index 0000000..1f05cab --- /dev/null +++ b/docs/SettingsUdmHookResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsUdmHookResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmModule.md b/docs/SettingsUdmModule.md new file mode 100644 index 0000000..6d69325 --- /dev/null +++ b/docs/SettingsUdmModule.md @@ -0,0 +1,20 @@ +# SettingsUdmModule + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmModuleApi.md b/docs/SettingsUdmModuleApi.md new file mode 100644 index 0000000..29aa9d2 --- /dev/null +++ b/docs/SettingsUdmModuleApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsUdmModuleApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_udm_module_object**](SettingsUdmModuleApi.md#udm_settings_udm_module_object) | **GET** /settings/udm_module/{dn} | Get a representation of the UDM Module object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_udm_module_object_create**](SettingsUdmModuleApi.md#udm_settings_udm_module_object_create) | **POST** /settings/udm_module/ | Create a new UDM Module object +[**udm_settings_udm_module_object_modify**](SettingsUdmModuleApi.md#udm_settings_udm_module_object_modify) | **PUT** /settings/udm_module/{dn} | Modify or move an UDM Module object +[**udm_settings_udm_module_object_remove**](SettingsUdmModuleApi.md#udm_settings_udm_module_object_remove) | **DELETE** /settings/udm_module/{dn} | Remove a UDM Modules object +[**udm_settings_udm_module_object_search**](SettingsUdmModuleApi.md#udm_settings_udm_module_object_search) | **GET** /settings/udm_module/ | Search for UDM Modules objects +[**udm_settings_udm_module_object_template**](SettingsUdmModuleApi.md#udm_settings_udm_module_object_template) | **GET** /settings/udm_module/add | Get a template for creating an UDM Module object (contains all properties and their default values) +[**udm_settings_udm_module_object_update**](SettingsUdmModuleApi.md#udm_settings_udm_module_object_update) | **PATCH** /settings/udm_module/{dn} | Modify an UDM Module object (moving is currently not possible) + + +# **udm_settings_udm_module_object** +> SettingsUdmModule udm_settings_udm_module_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the UDM Module object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmModuleApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the UDM Module object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_udm_module_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmModuleApi->udm_settings_udm_module_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmModule**](SettingsUdmModule.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_module_object_create** +> InlineResponse201 udm_settings_udm_module_object_create(settings_udm_module, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new UDM Module object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmModuleApi(api_client) + settings_udm_module = openapi_client_udm.SettingsUdmModule() # SettingsUdmModule | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new UDM Module object + api_response = api_instance.udm_settings_udm_module_object_create(settings_udm_module, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmModuleApi->udm_settings_udm_module_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_udm_module** | [**SettingsUdmModule**](SettingsUdmModule.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_udm_module_object_modify** +> InlineResponse201 udm_settings_udm_module_object_modify(dn, settings_udm_module, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an UDM Module object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmModuleApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_udm_module = openapi_client_udm.SettingsUdmModule() # SettingsUdmModule | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an UDM Module object + api_response = api_instance.udm_settings_udm_module_object_modify(dn, settings_udm_module, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmModuleApi->udm_settings_udm_module_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_udm_module** | [**SettingsUdmModule**](SettingsUdmModule.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_module_object_remove** +> udm_settings_udm_module_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a UDM Modules object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmModuleApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a UDM Modules object + api_instance.udm_settings_udm_module_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUdmModuleApi->udm_settings_udm_module_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_module_object_search** +> SettingsUdmModuleList udm_settings_udm_module_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for UDM Modules objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmModuleApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for UDM Modules objects + api_response = api_instance.udm_settings_udm_module_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmModuleApi->udm_settings_udm_module_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmModuleList**](SettingsUdmModuleList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_module_object_template** +> SettingsUdmModule udm_settings_udm_module_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an UDM Module object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmModuleApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an UDM Module object (contains all properties and their default values) + api_response = api_instance.udm_settings_udm_module_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmModuleApi->udm_settings_udm_module_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmModule**](SettingsUdmModule.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new UDM Module. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_module_object_update** +> udm_settings_udm_module_object_update(dn, settings_udm_module, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an UDM Module object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmModuleApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_udm_module = openapi_client_udm.SettingsUdmModule() # SettingsUdmModule | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an UDM Module object (moving is currently not possible) + api_instance.udm_settings_udm_module_object_update(dn, settings_udm_module, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUdmModuleApi->udm_settings_udm_module_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_udm_module** | [**SettingsUdmModule**](SettingsUdmModule.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsUdmModuleList.md b/docs/SettingsUdmModuleList.md new file mode 100644 index 0000000..7b6a04f --- /dev/null +++ b/docs/SettingsUdmModuleList.md @@ -0,0 +1,11 @@ +# SettingsUdmModuleList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsUdmModuleListEmbedded**](SettingsUdmModuleListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmModuleListEmbedded.md b/docs/SettingsUdmModuleListEmbedded.md new file mode 100644 index 0000000..fb31a6f --- /dev/null +++ b/docs/SettingsUdmModuleListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsUdmModuleListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsUdmModule]**](SettingsUdmModule.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmModuleRequest.md b/docs/SettingsUdmModuleRequest.md new file mode 100644 index 0000000..ebddc00 --- /dev/null +++ b/docs/SettingsUdmModuleRequest.md @@ -0,0 +1,15 @@ +# SettingsUdmModuleRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmModuleRequestPatch.md b/docs/SettingsUdmModuleRequestPatch.md new file mode 100644 index 0000000..1b74a89 --- /dev/null +++ b/docs/SettingsUdmModuleRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsUdmModuleRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmModuleResponseMixin.md b/docs/SettingsUdmModuleResponseMixin.md new file mode 100644 index 0000000..13c1c3c --- /dev/null +++ b/docs/SettingsUdmModuleResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsUdmModuleResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmSyntax.md b/docs/SettingsUdmSyntax.md new file mode 100644 index 0000000..2752897 --- /dev/null +++ b/docs/SettingsUdmSyntax.md @@ -0,0 +1,20 @@ +# SettingsUdmSyntax + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmSyntaxApi.md b/docs/SettingsUdmSyntaxApi.md new file mode 100644 index 0000000..6738740 --- /dev/null +++ b/docs/SettingsUdmSyntaxApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsUdmSyntaxApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_udm_syntax_object**](SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object) | **GET** /settings/udm_syntax/{dn} | Get a representation of the UDM Syntax object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_udm_syntax_object_create**](SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_create) | **POST** /settings/udm_syntax/ | Create a new UDM Syntax object +[**udm_settings_udm_syntax_object_modify**](SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_modify) | **PUT** /settings/udm_syntax/{dn} | Modify or move an UDM Syntax object +[**udm_settings_udm_syntax_object_remove**](SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_remove) | **DELETE** /settings/udm_syntax/{dn} | Remove a UDM Syntaxes object +[**udm_settings_udm_syntax_object_search**](SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_search) | **GET** /settings/udm_syntax/ | Search for UDM Syntaxes objects +[**udm_settings_udm_syntax_object_template**](SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_template) | **GET** /settings/udm_syntax/add | Get a template for creating an UDM Syntax object (contains all properties and their default values) +[**udm_settings_udm_syntax_object_update**](SettingsUdmSyntaxApi.md#udm_settings_udm_syntax_object_update) | **PATCH** /settings/udm_syntax/{dn} | Modify an UDM Syntax object (moving is currently not possible) + + +# **udm_settings_udm_syntax_object** +> SettingsUdmSyntax udm_settings_udm_syntax_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the UDM Syntax object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmSyntaxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the UDM Syntax object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_udm_syntax_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmSyntaxApi->udm_settings_udm_syntax_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmSyntax**](SettingsUdmSyntax.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_syntax_object_create** +> InlineResponse201 udm_settings_udm_syntax_object_create(settings_udm_syntax, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new UDM Syntax object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmSyntaxApi(api_client) + settings_udm_syntax = openapi_client_udm.SettingsUdmSyntax() # SettingsUdmSyntax | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new UDM Syntax object + api_response = api_instance.udm_settings_udm_syntax_object_create(settings_udm_syntax, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmSyntaxApi->udm_settings_udm_syntax_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_udm_syntax** | [**SettingsUdmSyntax**](SettingsUdmSyntax.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_udm_syntax_object_modify** +> InlineResponse201 udm_settings_udm_syntax_object_modify(dn, settings_udm_syntax, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an UDM Syntax object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmSyntaxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_udm_syntax = openapi_client_udm.SettingsUdmSyntax() # SettingsUdmSyntax | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an UDM Syntax object + api_response = api_instance.udm_settings_udm_syntax_object_modify(dn, settings_udm_syntax, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmSyntaxApi->udm_settings_udm_syntax_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_udm_syntax** | [**SettingsUdmSyntax**](SettingsUdmSyntax.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_syntax_object_remove** +> udm_settings_udm_syntax_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a UDM Syntaxes object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmSyntaxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a UDM Syntaxes object + api_instance.udm_settings_udm_syntax_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUdmSyntaxApi->udm_settings_udm_syntax_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_syntax_object_search** +> SettingsUdmSyntaxList udm_settings_udm_syntax_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for UDM Syntaxes objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmSyntaxApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for UDM Syntaxes objects + api_response = api_instance.udm_settings_udm_syntax_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmSyntaxApi->udm_settings_udm_syntax_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmSyntaxList**](SettingsUdmSyntaxList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_syntax_object_template** +> SettingsUdmSyntax udm_settings_udm_syntax_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an UDM Syntax object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmSyntaxApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an UDM Syntax object (contains all properties and their default values) + api_response = api_instance.udm_settings_udm_syntax_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUdmSyntaxApi->udm_settings_udm_syntax_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUdmSyntax**](SettingsUdmSyntax.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new UDM Syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_udm_syntax_object_update** +> udm_settings_udm_syntax_object_update(dn, settings_udm_syntax, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an UDM Syntax object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUdmSyntaxApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_udm_syntax = openapi_client_udm.SettingsUdmSyntax() # SettingsUdmSyntax | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an UDM Syntax object (moving is currently not possible) + api_instance.udm_settings_udm_syntax_object_update(dn, settings_udm_syntax, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUdmSyntaxApi->udm_settings_udm_syntax_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_udm_syntax** | [**SettingsUdmSyntax**](SettingsUdmSyntax.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsUdmSyntaxList.md b/docs/SettingsUdmSyntaxList.md new file mode 100644 index 0000000..6e4c575 --- /dev/null +++ b/docs/SettingsUdmSyntaxList.md @@ -0,0 +1,11 @@ +# SettingsUdmSyntaxList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsUdmSyntaxListEmbedded**](SettingsUdmSyntaxListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmSyntaxListEmbedded.md b/docs/SettingsUdmSyntaxListEmbedded.md new file mode 100644 index 0000000..78477b6 --- /dev/null +++ b/docs/SettingsUdmSyntaxListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsUdmSyntaxListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsUdmSyntax]**](SettingsUdmSyntax.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmSyntaxRequest.md b/docs/SettingsUdmSyntaxRequest.md new file mode 100644 index 0000000..d4883bf --- /dev/null +++ b/docs/SettingsUdmSyntaxRequest.md @@ -0,0 +1,15 @@ +# SettingsUdmSyntaxRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmSyntaxRequestPatch.md b/docs/SettingsUdmSyntaxRequestPatch.md new file mode 100644 index 0000000..ea022a2 --- /dev/null +++ b/docs/SettingsUdmSyntaxRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsUdmSyntaxRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUdmSyntaxResponseMixin.md b/docs/SettingsUdmSyntaxResponseMixin.md new file mode 100644 index 0000000..ffd7e56 --- /dev/null +++ b/docs/SettingsUdmSyntaxResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsUdmSyntaxResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUmcOperationset.md b/docs/SettingsUmcOperationset.md new file mode 100644 index 0000000..3bac35d --- /dev/null +++ b/docs/SettingsUmcOperationset.md @@ -0,0 +1,20 @@ +# SettingsUmcOperationset + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUmcOperationsetApi.md b/docs/SettingsUmcOperationsetApi.md new file mode 100644 index 0000000..7cfa4a1 --- /dev/null +++ b/docs/SettingsUmcOperationsetApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsUmcOperationsetApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_umc_operationset_object**](SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object) | **GET** /settings/umc_operationset/{dn} | Get a representation of the UMC operation set object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_umc_operationset_object_create**](SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_create) | **POST** /settings/umc_operationset/ | Create a new UMC operation set object +[**udm_settings_umc_operationset_object_modify**](SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_modify) | **PUT** /settings/umc_operationset/{dn} | Modify or move an UMC operation set object +[**udm_settings_umc_operationset_object_remove**](SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_remove) | **DELETE** /settings/umc_operationset/{dn} | Remove a UMC operation sets object +[**udm_settings_umc_operationset_object_search**](SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_search) | **GET** /settings/umc_operationset/ | Search for UMC operation sets objects +[**udm_settings_umc_operationset_object_template**](SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_template) | **GET** /settings/umc_operationset/add | Get a template for creating an UMC operation set object (contains all properties and their default values) +[**udm_settings_umc_operationset_object_update**](SettingsUmcOperationsetApi.md#udm_settings_umc_operationset_object_update) | **PATCH** /settings/umc_operationset/{dn} | Modify an UMC operation set object (moving is currently not possible) + + +# **udm_settings_umc_operationset_object** +> SettingsUmcOperationset udm_settings_umc_operationset_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the UMC operation set object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUmcOperationsetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the UMC operation set object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_umc_operationset_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUmcOperationsetApi->udm_settings_umc_operationset_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUmcOperationset**](SettingsUmcOperationset.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_umc_operationset_object_create** +> InlineResponse201 udm_settings_umc_operationset_object_create(settings_umc_operationset, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new UMC operation set object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUmcOperationsetApi(api_client) + settings_umc_operationset = openapi_client_udm.SettingsUmcOperationset() # SettingsUmcOperationset | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new UMC operation set object + api_response = api_instance.udm_settings_umc_operationset_object_create(settings_umc_operationset, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUmcOperationsetApi->udm_settings_umc_operationset_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_umc_operationset** | [**SettingsUmcOperationset**](SettingsUmcOperationset.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_umc_operationset_object_modify** +> InlineResponse201 udm_settings_umc_operationset_object_modify(dn, settings_umc_operationset, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an UMC operation set object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUmcOperationsetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_umc_operationset = openapi_client_udm.SettingsUmcOperationset() # SettingsUmcOperationset | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an UMC operation set object + api_response = api_instance.udm_settings_umc_operationset_object_modify(dn, settings_umc_operationset, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUmcOperationsetApi->udm_settings_umc_operationset_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_umc_operationset** | [**SettingsUmcOperationset**](SettingsUmcOperationset.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_umc_operationset_object_remove** +> udm_settings_umc_operationset_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a UMC operation sets object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUmcOperationsetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a UMC operation sets object + api_instance.udm_settings_umc_operationset_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUmcOperationsetApi->udm_settings_umc_operationset_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_umc_operationset_object_search** +> SettingsUmcOperationsetList udm_settings_umc_operationset_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for UMC operation sets objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUmcOperationsetApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for UMC operation sets objects + api_response = api_instance.udm_settings_umc_operationset_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUmcOperationsetApi->udm_settings_umc_operationset_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUmcOperationsetList**](SettingsUmcOperationsetList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_umc_operationset_object_template** +> SettingsUmcOperationset udm_settings_umc_operationset_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an UMC operation set object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUmcOperationsetApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an UMC operation set object (contains all properties and their default values) + api_response = api_instance.udm_settings_umc_operationset_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUmcOperationsetApi->udm_settings_umc_operationset_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUmcOperationset**](SettingsUmcOperationset.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new UMC operation set. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_umc_operationset_object_update** +> udm_settings_umc_operationset_object_update(dn, settings_umc_operationset, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an UMC operation set object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUmcOperationsetApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_umc_operationset = openapi_client_udm.SettingsUmcOperationset() # SettingsUmcOperationset | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an UMC operation set object (moving is currently not possible) + api_instance.udm_settings_umc_operationset_object_update(dn, settings_umc_operationset, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUmcOperationsetApi->udm_settings_umc_operationset_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_umc_operationset** | [**SettingsUmcOperationset**](SettingsUmcOperationset.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsUmcOperationsetList.md b/docs/SettingsUmcOperationsetList.md new file mode 100644 index 0000000..9ebf6dd --- /dev/null +++ b/docs/SettingsUmcOperationsetList.md @@ -0,0 +1,11 @@ +# SettingsUmcOperationsetList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsUmcOperationsetListEmbedded**](SettingsUmcOperationsetListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUmcOperationsetListEmbedded.md b/docs/SettingsUmcOperationsetListEmbedded.md new file mode 100644 index 0000000..704855a --- /dev/null +++ b/docs/SettingsUmcOperationsetListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsUmcOperationsetListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsUmcOperationset]**](SettingsUmcOperationset.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUmcOperationsetRequest.md b/docs/SettingsUmcOperationsetRequest.md new file mode 100644 index 0000000..274c0a7 --- /dev/null +++ b/docs/SettingsUmcOperationsetRequest.md @@ -0,0 +1,15 @@ +# SettingsUmcOperationsetRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUmcOperationsetRequestPatch.md b/docs/SettingsUmcOperationsetRequestPatch.md new file mode 100644 index 0000000..bdb10bb --- /dev/null +++ b/docs/SettingsUmcOperationsetRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsUmcOperationsetRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUmcOperationsetResponseMixin.md b/docs/SettingsUmcOperationsetResponseMixin.md new file mode 100644 index 0000000..832a190 --- /dev/null +++ b/docs/SettingsUmcOperationsetResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsUmcOperationsetResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUsertemplate.md b/docs/SettingsUsertemplate.md new file mode 100644 index 0000000..9f4d2f3 --- /dev/null +++ b/docs/SettingsUsertemplate.md @@ -0,0 +1,20 @@ +# SettingsUsertemplate + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUsertemplateApi.md b/docs/SettingsUsertemplateApi.md new file mode 100644 index 0000000..83074c5 --- /dev/null +++ b/docs/SettingsUsertemplateApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SettingsUsertemplateApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_settings_usertemplate_object**](SettingsUsertemplateApi.md#udm_settings_usertemplate_object) | **GET** /settings/usertemplate/{dn} | Get a representation of the User Template object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_settings_usertemplate_object_create**](SettingsUsertemplateApi.md#udm_settings_usertemplate_object_create) | **POST** /settings/usertemplate/ | Create a new User Template object +[**udm_settings_usertemplate_object_modify**](SettingsUsertemplateApi.md#udm_settings_usertemplate_object_modify) | **PUT** /settings/usertemplate/{dn} | Modify or move an User Template object +[**udm_settings_usertemplate_object_remove**](SettingsUsertemplateApi.md#udm_settings_usertemplate_object_remove) | **DELETE** /settings/usertemplate/{dn} | Remove a User Templates object +[**udm_settings_usertemplate_object_search**](SettingsUsertemplateApi.md#udm_settings_usertemplate_object_search) | **GET** /settings/usertemplate/ | Search for User Templates objects +[**udm_settings_usertemplate_object_template**](SettingsUsertemplateApi.md#udm_settings_usertemplate_object_template) | **GET** /settings/usertemplate/add | Get a template for creating an User Template object (contains all properties and their default values) +[**udm_settings_usertemplate_object_update**](SettingsUsertemplateApi.md#udm_settings_usertemplate_object_update) | **PATCH** /settings/usertemplate/{dn} | Modify an User Template object (moving is currently not possible) + + +# **udm_settings_usertemplate_object** +> SettingsUsertemplate udm_settings_usertemplate_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the User Template object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUsertemplateApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the User Template object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_settings_usertemplate_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUsertemplateApi->udm_settings_usertemplate_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUsertemplate**](SettingsUsertemplate.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_usertemplate_object_create** +> InlineResponse201 udm_settings_usertemplate_object_create(settings_usertemplate, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new User Template object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUsertemplateApi(api_client) + settings_usertemplate = openapi_client_udm.SettingsUsertemplate() # SettingsUsertemplate | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new User Template object + api_response = api_instance.udm_settings_usertemplate_object_create(settings_usertemplate, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUsertemplateApi->udm_settings_usertemplate_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **settings_usertemplate** | [**SettingsUsertemplate**](SettingsUsertemplate.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_settings_usertemplate_object_modify** +> InlineResponse201 udm_settings_usertemplate_object_modify(dn, settings_usertemplate, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an User Template object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUsertemplateApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_usertemplate = openapi_client_udm.SettingsUsertemplate() # SettingsUsertemplate | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an User Template object + api_response = api_instance.udm_settings_usertemplate_object_modify(dn, settings_usertemplate, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUsertemplateApi->udm_settings_usertemplate_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_usertemplate** | [**SettingsUsertemplate**](SettingsUsertemplate.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_usertemplate_object_remove** +> udm_settings_usertemplate_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a User Templates object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUsertemplateApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a User Templates object + api_instance.udm_settings_usertemplate_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUsertemplateApi->udm_settings_usertemplate_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_usertemplate_object_search** +> SettingsUsertemplateList udm_settings_usertemplate_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for User Templates objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUsertemplateApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for User Templates objects + api_response = api_instance.udm_settings_usertemplate_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUsertemplateApi->udm_settings_usertemplate_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUsertemplateList**](SettingsUsertemplateList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_usertemplate_object_template** +> SettingsUsertemplate udm_settings_usertemplate_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an User Template object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUsertemplateApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an User Template object (contains all properties and their default values) + api_response = api_instance.udm_settings_usertemplate_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsUsertemplateApi->udm_settings_usertemplate_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SettingsUsertemplate**](SettingsUsertemplate.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new User Template. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_settings_usertemplate_object_update** +> udm_settings_usertemplate_object_update(dn, settings_usertemplate, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an User Template object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SettingsUsertemplateApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +settings_usertemplate = openapi_client_udm.SettingsUsertemplate() # SettingsUsertemplate | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an User Template object (moving is currently not possible) + api_instance.udm_settings_usertemplate_object_update(dn, settings_usertemplate, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SettingsUsertemplateApi->udm_settings_usertemplate_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **settings_usertemplate** | [**SettingsUsertemplate**](SettingsUsertemplate.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SettingsUsertemplateList.md b/docs/SettingsUsertemplateList.md new file mode 100644 index 0000000..bc4e6d7 --- /dev/null +++ b/docs/SettingsUsertemplateList.md @@ -0,0 +1,11 @@ +# SettingsUsertemplateList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SettingsUsertemplateListEmbedded**](SettingsUsertemplateListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUsertemplateListEmbedded.md b/docs/SettingsUsertemplateListEmbedded.md new file mode 100644 index 0000000..2f2b557 --- /dev/null +++ b/docs/SettingsUsertemplateListEmbedded.md @@ -0,0 +1,11 @@ +# SettingsUsertemplateListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SettingsUsertemplate]**](SettingsUsertemplate.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUsertemplateRequest.md b/docs/SettingsUsertemplateRequest.md new file mode 100644 index 0000000..4b3d3dd --- /dev/null +++ b/docs/SettingsUsertemplateRequest.md @@ -0,0 +1,15 @@ +# SettingsUsertemplateRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUsertemplateRequestPatch.md b/docs/SettingsUsertemplateRequestPatch.md new file mode 100644 index 0000000..47d9996 --- /dev/null +++ b/docs/SettingsUsertemplateRequestPatch.md @@ -0,0 +1,14 @@ +# SettingsUsertemplateRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingsUsertemplateResponseMixin.md b/docs/SettingsUsertemplateResponseMixin.md new file mode 100644 index 0000000..e1a41ba --- /dev/null +++ b/docs/SettingsUsertemplateResponseMixin.md @@ -0,0 +1,15 @@ +# SettingsUsertemplateResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrint.md b/docs/SharesPrint.md new file mode 100644 index 0000000..c896243 --- /dev/null +++ b/docs/SharesPrint.md @@ -0,0 +1,20 @@ +# SharesPrint + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintApi.md b/docs/SharesPrintApi.md new file mode 100644 index 0000000..994c101 --- /dev/null +++ b/docs/SharesPrintApi.md @@ -0,0 +1,201 @@ +# openapi_client_udm.SharesPrintApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_shares_print_object**](SharesPrintApi.md#udm_shares_print_object) | **GET** /shares/print/{dn} | Get a representation of the Printer share object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_shares_print_object_search**](SharesPrintApi.md#udm_shares_print_object_search) | **GET** /shares/print/ | Search for Printer shares objects + + +# **udm_shares_print_object** +> SharesPrint udm_shares_print_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Printer share object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Printer share object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_shares_print_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrintApi->udm_shares_print_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesPrint**](SharesPrint.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_print_object_search** +> SharesPrintList udm_shares_print_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Printer shares objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Printer shares objects + api_response = api_instance.udm_shares_print_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrintApi->udm_shares_print_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesPrintList**](SharesPrintList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SharesPrintList.md b/docs/SharesPrintList.md new file mode 100644 index 0000000..456ab45 --- /dev/null +++ b/docs/SharesPrintList.md @@ -0,0 +1,11 @@ +# SharesPrintList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SharesPrintListEmbedded**](SharesPrintListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintListEmbedded.md b/docs/SharesPrintListEmbedded.md new file mode 100644 index 0000000..0daa7f1 --- /dev/null +++ b/docs/SharesPrintListEmbedded.md @@ -0,0 +1,11 @@ +# SharesPrintListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SharesPrint]**](SharesPrint.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintRequest.md b/docs/SharesPrintRequest.md new file mode 100644 index 0000000..d78a38a --- /dev/null +++ b/docs/SharesPrintRequest.md @@ -0,0 +1,15 @@ +# SharesPrintRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintRequestPatch.md b/docs/SharesPrintRequestPatch.md new file mode 100644 index 0000000..56b3602 --- /dev/null +++ b/docs/SharesPrintRequestPatch.md @@ -0,0 +1,14 @@ +# SharesPrintRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintResponseMixin.md b/docs/SharesPrintResponseMixin.md new file mode 100644 index 0000000..475173b --- /dev/null +++ b/docs/SharesPrintResponseMixin.md @@ -0,0 +1,15 @@ +# SharesPrintResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrinter.md b/docs/SharesPrinter.md new file mode 100644 index 0000000..0214819 --- /dev/null +++ b/docs/SharesPrinter.md @@ -0,0 +1,20 @@ +# SharesPrinter + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrinterApi.md b/docs/SharesPrinterApi.md new file mode 100644 index 0000000..ccb18e1 --- /dev/null +++ b/docs/SharesPrinterApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SharesPrinterApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_shares_printer_object**](SharesPrinterApi.md#udm_shares_printer_object) | **GET** /shares/printer/{dn} | Get a representation of the Printer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_shares_printer_object_create**](SharesPrinterApi.md#udm_shares_printer_object_create) | **POST** /shares/printer/ | Create a new Printer object +[**udm_shares_printer_object_modify**](SharesPrinterApi.md#udm_shares_printer_object_modify) | **PUT** /shares/printer/{dn} | Modify or move an Printer object +[**udm_shares_printer_object_remove**](SharesPrinterApi.md#udm_shares_printer_object_remove) | **DELETE** /shares/printer/{dn} | Remove a Printers object +[**udm_shares_printer_object_search**](SharesPrinterApi.md#udm_shares_printer_object_search) | **GET** /shares/printer/ | Search for Printers objects +[**udm_shares_printer_object_template**](SharesPrinterApi.md#udm_shares_printer_object_template) | **GET** /shares/printer/add | Get a template for creating an Printer object (contains all properties and their default values) +[**udm_shares_printer_object_update**](SharesPrinterApi.md#udm_shares_printer_object_update) | **PATCH** /shares/printer/{dn} | Modify an Printer object (moving is currently not possible) + + +# **udm_shares_printer_object** +> SharesPrinter udm_shares_printer_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Printer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrinterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Printer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_shares_printer_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrinterApi->udm_shares_printer_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesPrinter**](SharesPrinter.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printer_object_create** +> InlineResponse201 udm_shares_printer_object_create(shares_printer, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Printer object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrinterApi(api_client) + shares_printer = openapi_client_udm.SharesPrinter() # SharesPrinter | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Printer object + api_response = api_instance.udm_shares_printer_object_create(shares_printer, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrinterApi->udm_shares_printer_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **shares_printer** | [**SharesPrinter**](SharesPrinter.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_shares_printer_object_modify** +> InlineResponse201 udm_shares_printer_object_modify(dn, shares_printer, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Printer object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrinterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +shares_printer = openapi_client_udm.SharesPrinter() # SharesPrinter | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Printer object + api_response = api_instance.udm_shares_printer_object_modify(dn, shares_printer, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrinterApi->udm_shares_printer_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **shares_printer** | [**SharesPrinter**](SharesPrinter.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printer_object_remove** +> udm_shares_printer_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Printers object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrinterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Printers object + api_instance.udm_shares_printer_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SharesPrinterApi->udm_shares_printer_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printer_object_search** +> SharesPrinterList udm_shares_printer_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Printers objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrinterApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Printers objects + api_response = api_instance.udm_shares_printer_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrinterApi->udm_shares_printer_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesPrinterList**](SharesPrinterList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printer_object_template** +> SharesPrinter udm_shares_printer_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Printer object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrinterApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Printer object (contains all properties and their default values) + api_response = api_instance.udm_shares_printer_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrinterApi->udm_shares_printer_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesPrinter**](SharesPrinter.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Printer. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printer_object_update** +> udm_shares_printer_object_update(dn, shares_printer, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Printer object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrinterApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +shares_printer = openapi_client_udm.SharesPrinter() # SharesPrinter | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Printer object (moving is currently not possible) + api_instance.udm_shares_printer_object_update(dn, shares_printer, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SharesPrinterApi->udm_shares_printer_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **shares_printer** | [**SharesPrinter**](SharesPrinter.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SharesPrinterList.md b/docs/SharesPrinterList.md new file mode 100644 index 0000000..5d3574d --- /dev/null +++ b/docs/SharesPrinterList.md @@ -0,0 +1,11 @@ +# SharesPrinterList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SharesPrinterListEmbedded**](SharesPrinterListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrinterListEmbedded.md b/docs/SharesPrinterListEmbedded.md new file mode 100644 index 0000000..acb6a82 --- /dev/null +++ b/docs/SharesPrinterListEmbedded.md @@ -0,0 +1,11 @@ +# SharesPrinterListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SharesPrinter]**](SharesPrinter.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrinterRequest.md b/docs/SharesPrinterRequest.md new file mode 100644 index 0000000..6cf1657 --- /dev/null +++ b/docs/SharesPrinterRequest.md @@ -0,0 +1,15 @@ +# SharesPrinterRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrinterRequestPatch.md b/docs/SharesPrinterRequestPatch.md new file mode 100644 index 0000000..3316bf5 --- /dev/null +++ b/docs/SharesPrinterRequestPatch.md @@ -0,0 +1,14 @@ +# SharesPrinterRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrinterResponseMixin.md b/docs/SharesPrinterResponseMixin.md new file mode 100644 index 0000000..425e4b5 --- /dev/null +++ b/docs/SharesPrinterResponseMixin.md @@ -0,0 +1,15 @@ +# SharesPrinterResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintergroup.md b/docs/SharesPrintergroup.md new file mode 100644 index 0000000..2244cf4 --- /dev/null +++ b/docs/SharesPrintergroup.md @@ -0,0 +1,20 @@ +# SharesPrintergroup + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintergroupApi.md b/docs/SharesPrintergroupApi.md new file mode 100644 index 0000000..889fd4e --- /dev/null +++ b/docs/SharesPrintergroupApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SharesPrintergroupApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_shares_printergroup_object**](SharesPrintergroupApi.md#udm_shares_printergroup_object) | **GET** /shares/printergroup/{dn} | Get a representation of the Printer share group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_shares_printergroup_object_create**](SharesPrintergroupApi.md#udm_shares_printergroup_object_create) | **POST** /shares/printergroup/ | Create a new Printer share group object +[**udm_shares_printergroup_object_modify**](SharesPrintergroupApi.md#udm_shares_printergroup_object_modify) | **PUT** /shares/printergroup/{dn} | Modify or move an Printer share group object +[**udm_shares_printergroup_object_remove**](SharesPrintergroupApi.md#udm_shares_printergroup_object_remove) | **DELETE** /shares/printergroup/{dn} | Remove a Printer share groups object +[**udm_shares_printergroup_object_search**](SharesPrintergroupApi.md#udm_shares_printergroup_object_search) | **GET** /shares/printergroup/ | Search for Printer share groups objects +[**udm_shares_printergroup_object_template**](SharesPrintergroupApi.md#udm_shares_printergroup_object_template) | **GET** /shares/printergroup/add | Get a template for creating an Printer share group object (contains all properties and their default values) +[**udm_shares_printergroup_object_update**](SharesPrintergroupApi.md#udm_shares_printergroup_object_update) | **PATCH** /shares/printergroup/{dn} | Modify an Printer share group object (moving is currently not possible) + + +# **udm_shares_printergroup_object** +> SharesPrintergroup udm_shares_printergroup_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Printer share group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintergroupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Printer share group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_shares_printergroup_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrintergroupApi->udm_shares_printergroup_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesPrintergroup**](SharesPrintergroup.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printergroup_object_create** +> InlineResponse201 udm_shares_printergroup_object_create(shares_printergroup, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Printer share group object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintergroupApi(api_client) + shares_printergroup = openapi_client_udm.SharesPrintergroup() # SharesPrintergroup | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Printer share group object + api_response = api_instance.udm_shares_printergroup_object_create(shares_printergroup, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrintergroupApi->udm_shares_printergroup_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **shares_printergroup** | [**SharesPrintergroup**](SharesPrintergroup.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_shares_printergroup_object_modify** +> InlineResponse201 udm_shares_printergroup_object_modify(dn, shares_printergroup, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Printer share group object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintergroupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +shares_printergroup = openapi_client_udm.SharesPrintergroup() # SharesPrintergroup | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Printer share group object + api_response = api_instance.udm_shares_printergroup_object_modify(dn, shares_printergroup, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrintergroupApi->udm_shares_printergroup_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **shares_printergroup** | [**SharesPrintergroup**](SharesPrintergroup.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printergroup_object_remove** +> udm_shares_printergroup_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Printer share groups object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintergroupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Printer share groups object + api_instance.udm_shares_printergroup_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SharesPrintergroupApi->udm_shares_printergroup_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printergroup_object_search** +> SharesPrintergroupList udm_shares_printergroup_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Printer share groups objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintergroupApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Printer share groups objects + api_response = api_instance.udm_shares_printergroup_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrintergroupApi->udm_shares_printergroup_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesPrintergroupList**](SharesPrintergroupList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printergroup_object_template** +> SharesPrintergroup udm_shares_printergroup_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Printer share group object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintergroupApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Printer share group object (contains all properties and their default values) + api_response = api_instance.udm_shares_printergroup_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesPrintergroupApi->udm_shares_printergroup_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesPrintergroup**](SharesPrintergroup.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Printer share group. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_printergroup_object_update** +> udm_shares_printergroup_object_update(dn, shares_printergroup, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Printer share group object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesPrintergroupApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +shares_printergroup = openapi_client_udm.SharesPrintergroup() # SharesPrintergroup | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Printer share group object (moving is currently not possible) + api_instance.udm_shares_printergroup_object_update(dn, shares_printergroup, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SharesPrintergroupApi->udm_shares_printergroup_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **shares_printergroup** | [**SharesPrintergroup**](SharesPrintergroup.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SharesPrintergroupList.md b/docs/SharesPrintergroupList.md new file mode 100644 index 0000000..94c38dc --- /dev/null +++ b/docs/SharesPrintergroupList.md @@ -0,0 +1,11 @@ +# SharesPrintergroupList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SharesPrintergroupListEmbedded**](SharesPrintergroupListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintergroupListEmbedded.md b/docs/SharesPrintergroupListEmbedded.md new file mode 100644 index 0000000..50a1274 --- /dev/null +++ b/docs/SharesPrintergroupListEmbedded.md @@ -0,0 +1,11 @@ +# SharesPrintergroupListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SharesPrintergroup]**](SharesPrintergroup.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintergroupRequest.md b/docs/SharesPrintergroupRequest.md new file mode 100644 index 0000000..ba78088 --- /dev/null +++ b/docs/SharesPrintergroupRequest.md @@ -0,0 +1,15 @@ +# SharesPrintergroupRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintergroupRequestPatch.md b/docs/SharesPrintergroupRequestPatch.md new file mode 100644 index 0000000..3a1d657 --- /dev/null +++ b/docs/SharesPrintergroupRequestPatch.md @@ -0,0 +1,14 @@ +# SharesPrintergroupRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesPrintergroupResponseMixin.md b/docs/SharesPrintergroupResponseMixin.md new file mode 100644 index 0000000..c4c6435 --- /dev/null +++ b/docs/SharesPrintergroupResponseMixin.md @@ -0,0 +1,15 @@ +# SharesPrintergroupResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesShare.md b/docs/SharesShare.md new file mode 100644 index 0000000..2f8ea93 --- /dev/null +++ b/docs/SharesShare.md @@ -0,0 +1,20 @@ +# SharesShare + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**SharesShareOptions**](SharesShareOptions.md) | | [optional] +**policies** | [**SharesSharePolicies**](SharesSharePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesShareApi.md b/docs/SharesShareApi.md new file mode 100644 index 0000000..b5748e0 --- /dev/null +++ b/docs/SharesShareApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.SharesShareApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_shares_share_object**](SharesShareApi.md#udm_shares_share_object) | **GET** /shares/share/{dn} | Get a representation of the Share directory object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_shares_share_object_create**](SharesShareApi.md#udm_shares_share_object_create) | **POST** /shares/share/ | Create a new Share directory object +[**udm_shares_share_object_modify**](SharesShareApi.md#udm_shares_share_object_modify) | **PUT** /shares/share/{dn} | Modify or move an Share directory object +[**udm_shares_share_object_remove**](SharesShareApi.md#udm_shares_share_object_remove) | **DELETE** /shares/share/{dn} | Remove a Share directories object +[**udm_shares_share_object_search**](SharesShareApi.md#udm_shares_share_object_search) | **GET** /shares/share/ | Search for Share directories objects +[**udm_shares_share_object_template**](SharesShareApi.md#udm_shares_share_object_template) | **GET** /shares/share/add | Get a template for creating an Share directory object (contains all properties and their default values) +[**udm_shares_share_object_update**](SharesShareApi.md#udm_shares_share_object_update) | **PATCH** /shares/share/{dn} | Modify an Share directory object (moving is currently not possible) + + +# **udm_shares_share_object** +> SharesShare udm_shares_share_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Share directory object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesShareApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Share directory object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_shares_share_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesShareApi->udm_shares_share_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesShare**](SharesShare.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_share_object_create** +> InlineResponse201 udm_shares_share_object_create(shares_share, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Share directory object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesShareApi(api_client) + shares_share = openapi_client_udm.SharesShare() # SharesShare | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Share directory object + api_response = api_instance.udm_shares_share_object_create(shares_share, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesShareApi->udm_shares_share_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **shares_share** | [**SharesShare**](SharesShare.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_shares_share_object_modify** +> InlineResponse201 udm_shares_share_object_modify(dn, shares_share, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Share directory object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesShareApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +shares_share = openapi_client_udm.SharesShare() # SharesShare | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Share directory object + api_response = api_instance.udm_shares_share_object_modify(dn, shares_share, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesShareApi->udm_shares_share_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **shares_share** | [**SharesShare**](SharesShare.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_share_object_remove** +> udm_shares_share_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Share directories object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesShareApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Share directories object + api_instance.udm_shares_share_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SharesShareApi->udm_shares_share_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_share_object_search** +> SharesShareList udm_shares_share_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Share directories objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesShareApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Share directories objects + api_response = api_instance.udm_shares_share_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesShareApi->udm_shares_share_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesShareList**](SharesShareList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_share_object_template** +> SharesShare udm_shares_share_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Share directory object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesShareApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Share directory object (contains all properties and their default values) + api_response = api_instance.udm_shares_share_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling SharesShareApi->udm_shares_share_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**SharesShare**](SharesShare.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Share directory. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_shares_share_object_update** +> udm_shares_share_object_update(dn, shares_share, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Share directory object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.SharesShareApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +shares_share = openapi_client_udm.SharesShare() # SharesShare | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Share directory object (moving is currently not possible) + api_instance.udm_shares_share_object_update(dn, shares_share, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling SharesShareApi->udm_shares_share_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **shares_share** | [**SharesShare**](SharesShare.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/SharesShareList.md b/docs/SharesShareList.md new file mode 100644 index 0000000..7d02fd6 --- /dev/null +++ b/docs/SharesShareList.md @@ -0,0 +1,11 @@ +# SharesShareList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**SharesShareListEmbedded**](SharesShareListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesShareListEmbedded.md b/docs/SharesShareListEmbedded.md new file mode 100644 index 0000000..2e17f42 --- /dev/null +++ b/docs/SharesShareListEmbedded.md @@ -0,0 +1,11 @@ +# SharesShareListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[SharesShare]**](SharesShare.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesShareOptions.md b/docs/SharesShareOptions.md new file mode 100644 index 0000000..9320041 --- /dev/null +++ b/docs/SharesShareOptions.md @@ -0,0 +1,13 @@ +# SharesShareOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**samba** | **bool** | Export for Samba clients | [optional] [default to True] +**nfs** | **bool** | Export for NFS clients (NFSv3 and NFSv4) | [optional] [default to True] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesSharePolicies.md b/docs/SharesSharePolicies.md new file mode 100644 index 0000000..3fcfbc0 --- /dev/null +++ b/docs/SharesSharePolicies.md @@ -0,0 +1,12 @@ +# SharesSharePolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_share_userquota** | **list[str]** | Policy: User quota | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesShareRequest.md b/docs/SharesShareRequest.md new file mode 100644 index 0000000..719ec75 --- /dev/null +++ b/docs/SharesShareRequest.md @@ -0,0 +1,15 @@ +# SharesShareRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**SharesShareOptions**](SharesShareOptions.md) | | [optional] +**policies** | [**SharesSharePolicies**](SharesSharePolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesShareRequestPatch.md b/docs/SharesShareRequestPatch.md new file mode 100644 index 0000000..238fda9 --- /dev/null +++ b/docs/SharesShareRequestPatch.md @@ -0,0 +1,14 @@ +# SharesShareRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**SharesShareOptions**](SharesShareOptions.md) | | [optional] +**policies** | [**SharesSharePolicies**](SharesSharePolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SharesShareResponseMixin.md b/docs/SharesShareResponseMixin.md new file mode 100644 index 0000000..e2c58aa --- /dev/null +++ b/docs/SharesShareResponseMixin.md @@ -0,0 +1,15 @@ +# SharesShareResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersContact.md b/docs/UsersContact.md new file mode 100644 index 0000000..b6d5d6e --- /dev/null +++ b/docs/UsersContact.md @@ -0,0 +1,20 @@ +# UsersContact + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersContactApi.md b/docs/UsersContactApi.md new file mode 100644 index 0000000..f6e16b5 --- /dev/null +++ b/docs/UsersContactApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.UsersContactApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_users_contact_object**](UsersContactApi.md#udm_users_contact_object) | **GET** /users/contact/{dn} | Get a representation of the Contact object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_users_contact_object_create**](UsersContactApi.md#udm_users_contact_object_create) | **POST** /users/contact/ | Create a new Contact object +[**udm_users_contact_object_modify**](UsersContactApi.md#udm_users_contact_object_modify) | **PUT** /users/contact/{dn} | Modify or move an Contact object +[**udm_users_contact_object_remove**](UsersContactApi.md#udm_users_contact_object_remove) | **DELETE** /users/contact/{dn} | Remove a Contact information object +[**udm_users_contact_object_search**](UsersContactApi.md#udm_users_contact_object_search) | **GET** /users/contact/ | Search for Contact information objects +[**udm_users_contact_object_template**](UsersContactApi.md#udm_users_contact_object_template) | **GET** /users/contact/add | Get a template for creating an Contact object (contains all properties and their default values) +[**udm_users_contact_object_update**](UsersContactApi.md#udm_users_contact_object_update) | **PATCH** /users/contact/{dn} | Modify an Contact object (moving is currently not possible) + + +# **udm_users_contact_object** +> UsersContact udm_users_contact_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Contact object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersContactApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Contact object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_users_contact_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersContactApi->udm_users_contact_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersContact**](UsersContact.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_contact_object_create** +> InlineResponse201 udm_users_contact_object_create(users_contact, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Contact object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersContactApi(api_client) + users_contact = openapi_client_udm.UsersContact() # UsersContact | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Contact object + api_response = api_instance.udm_users_contact_object_create(users_contact, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersContactApi->udm_users_contact_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **users_contact** | [**UsersContact**](UsersContact.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_users_contact_object_modify** +> InlineResponse201 udm_users_contact_object_modify(dn, users_contact, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Contact object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersContactApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_contact = openapi_client_udm.UsersContact() # UsersContact | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Contact object + api_response = api_instance.udm_users_contact_object_modify(dn, users_contact, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersContactApi->udm_users_contact_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_contact** | [**UsersContact**](UsersContact.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_contact_object_remove** +> udm_users_contact_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Contact information object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersContactApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Contact information object + api_instance.udm_users_contact_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UsersContactApi->udm_users_contact_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_contact_object_search** +> UsersContactList udm_users_contact_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Contact information objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersContactApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Contact information objects + api_response = api_instance.udm_users_contact_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersContactApi->udm_users_contact_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersContactList**](UsersContactList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_contact_object_template** +> UsersContact udm_users_contact_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Contact object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersContactApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Contact object (contains all properties and their default values) + api_response = api_instance.udm_users_contact_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersContactApi->udm_users_contact_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersContact**](UsersContact.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Contact. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_contact_object_update** +> udm_users_contact_object_update(dn, users_contact, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Contact object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersContactApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_contact = openapi_client_udm.UsersContact() # UsersContact | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Contact object (moving is currently not possible) + api_instance.udm_users_contact_object_update(dn, users_contact, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UsersContactApi->udm_users_contact_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_contact** | [**UsersContact**](UsersContact.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UsersContactList.md b/docs/UsersContactList.md new file mode 100644 index 0000000..fcc0392 --- /dev/null +++ b/docs/UsersContactList.md @@ -0,0 +1,11 @@ +# UsersContactList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UsersContactListEmbedded**](UsersContactListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersContactListEmbedded.md b/docs/UsersContactListEmbedded.md new file mode 100644 index 0000000..9731eb0 --- /dev/null +++ b/docs/UsersContactListEmbedded.md @@ -0,0 +1,11 @@ +# UsersContactListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UsersContact]**](UsersContact.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersContactRequest.md b/docs/UsersContactRequest.md new file mode 100644 index 0000000..8e6414e --- /dev/null +++ b/docs/UsersContactRequest.md @@ -0,0 +1,15 @@ +# UsersContactRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersContactRequestPatch.md b/docs/UsersContactRequestPatch.md new file mode 100644 index 0000000..a7e315a --- /dev/null +++ b/docs/UsersContactRequestPatch.md @@ -0,0 +1,14 @@ +# UsersContactRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersContactResponseMixin.md b/docs/UsersContactResponseMixin.md new file mode 100644 index 0000000..d13ee0d --- /dev/null +++ b/docs/UsersContactResponseMixin.md @@ -0,0 +1,15 @@ +# UsersContactResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersLdap.md b/docs/UsersLdap.md new file mode 100644 index 0000000..aee8695 --- /dev/null +++ b/docs/UsersLdap.md @@ -0,0 +1,20 @@ +# UsersLdap + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersLdapOptions**](UsersLdapOptions.md) | | [optional] +**policies** | [**UsersLdapPolicies**](UsersLdapPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersLdapApi.md b/docs/UsersLdapApi.md new file mode 100644 index 0000000..46a110b --- /dev/null +++ b/docs/UsersLdapApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.UsersLdapApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_users_ldap_object**](UsersLdapApi.md#udm_users_ldap_object) | **GET** /users/ldap/{dn} | Get a representation of the Simple authentication account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_users_ldap_object_create**](UsersLdapApi.md#udm_users_ldap_object_create) | **POST** /users/ldap/ | Create a new Simple authentication account object +[**udm_users_ldap_object_modify**](UsersLdapApi.md#udm_users_ldap_object_modify) | **PUT** /users/ldap/{dn} | Modify or move an Simple authentication account object +[**udm_users_ldap_object_remove**](UsersLdapApi.md#udm_users_ldap_object_remove) | **DELETE** /users/ldap/{dn} | Remove a Simple authentication accounts object +[**udm_users_ldap_object_search**](UsersLdapApi.md#udm_users_ldap_object_search) | **GET** /users/ldap/ | Search for Simple authentication accounts objects +[**udm_users_ldap_object_template**](UsersLdapApi.md#udm_users_ldap_object_template) | **GET** /users/ldap/add | Get a template for creating an Simple authentication account object (contains all properties and their default values) +[**udm_users_ldap_object_update**](UsersLdapApi.md#udm_users_ldap_object_update) | **PATCH** /users/ldap/{dn} | Modify an Simple authentication account object (moving is currently not possible) + + +# **udm_users_ldap_object** +> UsersLdap udm_users_ldap_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Simple authentication account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersLdapApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Simple authentication account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_users_ldap_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersLdapApi->udm_users_ldap_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersLdap**](UsersLdap.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_ldap_object_create** +> InlineResponse201 udm_users_ldap_object_create(users_ldap, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Simple authentication account object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersLdapApi(api_client) + users_ldap = openapi_client_udm.UsersLdap() # UsersLdap | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Simple authentication account object + api_response = api_instance.udm_users_ldap_object_create(users_ldap, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersLdapApi->udm_users_ldap_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **users_ldap** | [**UsersLdap**](UsersLdap.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_users_ldap_object_modify** +> InlineResponse201 udm_users_ldap_object_modify(dn, users_ldap, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Simple authentication account object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersLdapApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_ldap = openapi_client_udm.UsersLdap() # UsersLdap | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Simple authentication account object + api_response = api_instance.udm_users_ldap_object_modify(dn, users_ldap, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersLdapApi->udm_users_ldap_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_ldap** | [**UsersLdap**](UsersLdap.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_ldap_object_remove** +> udm_users_ldap_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Simple authentication accounts object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersLdapApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Simple authentication accounts object + api_instance.udm_users_ldap_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UsersLdapApi->udm_users_ldap_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_ldap_object_search** +> UsersLdapList udm_users_ldap_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Simple authentication accounts objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersLdapApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Simple authentication accounts objects + api_response = api_instance.udm_users_ldap_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersLdapApi->udm_users_ldap_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersLdapList**](UsersLdapList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_ldap_object_template** +> UsersLdap udm_users_ldap_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Simple authentication account object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersLdapApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Simple authentication account object (contains all properties and their default values) + api_response = api_instance.udm_users_ldap_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersLdapApi->udm_users_ldap_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersLdap**](UsersLdap.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Simple authentication account. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_ldap_object_update** +> udm_users_ldap_object_update(dn, users_ldap, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Simple authentication account object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersLdapApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_ldap = openapi_client_udm.UsersLdap() # UsersLdap | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Simple authentication account object (moving is currently not possible) + api_instance.udm_users_ldap_object_update(dn, users_ldap, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UsersLdapApi->udm_users_ldap_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_ldap** | [**UsersLdap**](UsersLdap.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UsersLdapList.md b/docs/UsersLdapList.md new file mode 100644 index 0000000..5bc222e --- /dev/null +++ b/docs/UsersLdapList.md @@ -0,0 +1,11 @@ +# UsersLdapList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UsersLdapListEmbedded**](UsersLdapListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersLdapListEmbedded.md b/docs/UsersLdapListEmbedded.md new file mode 100644 index 0000000..db3281c --- /dev/null +++ b/docs/UsersLdapListEmbedded.md @@ -0,0 +1,11 @@ +# UsersLdapListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UsersLdap]**](UsersLdap.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersLdapOptions.md b/docs/UsersLdapOptions.md new file mode 100644 index 0000000..b5159cb --- /dev/null +++ b/docs/UsersLdapOptions.md @@ -0,0 +1,12 @@ +# UsersLdapOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersLdapPolicies.md b/docs/UsersLdapPolicies.md new file mode 100644 index 0000000..4c9d90c --- /dev/null +++ b/docs/UsersLdapPolicies.md @@ -0,0 +1,13 @@ +# UsersLdapPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersLdapRequest.md b/docs/UsersLdapRequest.md new file mode 100644 index 0000000..6fcf57c --- /dev/null +++ b/docs/UsersLdapRequest.md @@ -0,0 +1,15 @@ +# UsersLdapRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersLdapOptions**](UsersLdapOptions.md) | | [optional] +**policies** | [**UsersLdapPolicies**](UsersLdapPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersLdapRequestPatch.md b/docs/UsersLdapRequestPatch.md new file mode 100644 index 0000000..1bb48ba --- /dev/null +++ b/docs/UsersLdapRequestPatch.md @@ -0,0 +1,14 @@ +# UsersLdapRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersLdapOptions**](UsersLdapOptions.md) | | [optional] +**policies** | [**UsersLdapPolicies**](UsersLdapPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersLdapResponseMixin.md b/docs/UsersLdapResponseMixin.md new file mode 100644 index 0000000..0a77163 --- /dev/null +++ b/docs/UsersLdapResponseMixin.md @@ -0,0 +1,15 @@ +# UsersLdapResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersPasswd.md b/docs/UsersPasswd.md new file mode 100644 index 0000000..2bba2ae --- /dev/null +++ b/docs/UsersPasswd.md @@ -0,0 +1,20 @@ +# UsersPasswd + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersPasswdApi.md b/docs/UsersPasswdApi.md new file mode 100644 index 0000000..636ec20 --- /dev/null +++ b/docs/UsersPasswdApi.md @@ -0,0 +1,294 @@ +# openapi_client_udm.UsersPasswdApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_users_passwd_object**](UsersPasswdApi.md#udm_users_passwd_object) | **GET** /users/passwd/{dn} | Get a representation of the Password object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_users_passwd_object_modify**](UsersPasswdApi.md#udm_users_passwd_object_modify) | **PUT** /users/passwd/{dn} | Modify or move an Password object +[**udm_users_passwd_object_update**](UsersPasswdApi.md#udm_users_passwd_object_update) | **PATCH** /users/passwd/{dn} | Modify an Password object (moving is currently not possible) + + +# **udm_users_passwd_object** +> UsersPasswd udm_users_passwd_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Password object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersPasswdApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Password object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_users_passwd_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersPasswdApi->udm_users_passwd_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersPasswd**](UsersPasswd.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_passwd_object_modify** +> InlineResponse201 udm_users_passwd_object_modify(dn, users_passwd, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Password object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersPasswdApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_passwd = openapi_client_udm.UsersPasswd() # UsersPasswd | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Password object + api_response = api_instance.udm_users_passwd_object_modify(dn, users_passwd, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersPasswdApi->udm_users_passwd_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_passwd** | [**UsersPasswd**](UsersPasswd.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_passwd_object_update** +> udm_users_passwd_object_update(dn, users_passwd, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Password object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersPasswdApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_passwd = openapi_client_udm.UsersPasswd() # UsersPasswd | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Password object (moving is currently not possible) + api_instance.udm_users_passwd_object_update(dn, users_passwd, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UsersPasswdApi->udm_users_passwd_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_passwd** | [**UsersPasswd**](UsersPasswd.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UsersPasswdList.md b/docs/UsersPasswdList.md new file mode 100644 index 0000000..aea3863 --- /dev/null +++ b/docs/UsersPasswdList.md @@ -0,0 +1,11 @@ +# UsersPasswdList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UsersPasswdListEmbedded**](UsersPasswdListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersPasswdListEmbedded.md b/docs/UsersPasswdListEmbedded.md new file mode 100644 index 0000000..735d50e --- /dev/null +++ b/docs/UsersPasswdListEmbedded.md @@ -0,0 +1,11 @@ +# UsersPasswdListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UsersPasswd]**](UsersPasswd.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersPasswdRequest.md b/docs/UsersPasswdRequest.md new file mode 100644 index 0000000..0d5ddeb --- /dev/null +++ b/docs/UsersPasswdRequest.md @@ -0,0 +1,15 @@ +# UsersPasswdRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersPasswdRequestPatch.md b/docs/UsersPasswdRequestPatch.md new file mode 100644 index 0000000..1e7a8b3 --- /dev/null +++ b/docs/UsersPasswdRequestPatch.md @@ -0,0 +1,14 @@ +# UsersPasswdRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersPasswdResponseMixin.md b/docs/UsersPasswdResponseMixin.md new file mode 100644 index 0000000..75045bc --- /dev/null +++ b/docs/UsersPasswdResponseMixin.md @@ -0,0 +1,15 @@ +# UsersPasswdResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersSelf.md b/docs/UsersSelf.md new file mode 100644 index 0000000..278bdac --- /dev/null +++ b/docs/UsersSelf.md @@ -0,0 +1,20 @@ +# UsersSelf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersSelfOptions**](UsersSelfOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersSelfApi.md b/docs/UsersSelfApi.md new file mode 100644 index 0000000..89a0353 --- /dev/null +++ b/docs/UsersSelfApi.md @@ -0,0 +1,396 @@ +# openapi_client_udm.UsersSelfApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_users_self_object**](UsersSelfApi.md#udm_users_self_object) | **GET** /users/self/{dn} | Get a representation of the Self object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_users_self_object_modify**](UsersSelfApi.md#udm_users_self_object_modify) | **PUT** /users/self/{dn} | Modify or move an Self object +[**udm_users_self_object_search**](UsersSelfApi.md#udm_users_self_object_search) | **GET** /users/self/ | Search for Self objects +[**udm_users_self_object_update**](UsersSelfApi.md#udm_users_self_object_update) | **PATCH** /users/self/{dn} | Modify an Self object (moving is currently not possible) + + +# **udm_users_self_object** +> UsersSelf udm_users_self_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Self object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersSelfApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Self object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_users_self_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersSelfApi->udm_users_self_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersSelf**](UsersSelf.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_self_object_modify** +> InlineResponse201 udm_users_self_object_modify(dn, users_self, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Self object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersSelfApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_self = openapi_client_udm.UsersSelf() # UsersSelf | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Self object + api_response = api_instance.udm_users_self_object_modify(dn, users_self, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersSelfApi->udm_users_self_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_self** | [**UsersSelf**](UsersSelf.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_self_object_search** +> UsersSelfList udm_users_self_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Self objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersSelfApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Self objects + api_response = api_instance.udm_users_self_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersSelfApi->udm_users_self_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersSelfList**](UsersSelfList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_self_object_update** +> udm_users_self_object_update(dn, users_self, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Self object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersSelfApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_self = openapi_client_udm.UsersSelf() # UsersSelf | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Self object (moving is currently not possible) + api_instance.udm_users_self_object_update(dn, users_self, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UsersSelfApi->udm_users_self_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_self** | [**UsersSelf**](UsersSelf.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UsersSelfList.md b/docs/UsersSelfList.md new file mode 100644 index 0000000..503994a --- /dev/null +++ b/docs/UsersSelfList.md @@ -0,0 +1,11 @@ +# UsersSelfList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UsersSelfListEmbedded**](UsersSelfListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersSelfListEmbedded.md b/docs/UsersSelfListEmbedded.md new file mode 100644 index 0000000..a0adb07 --- /dev/null +++ b/docs/UsersSelfListEmbedded.md @@ -0,0 +1,11 @@ +# UsersSelfListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UsersSelf]**](UsersSelf.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersSelfOptions.md b/docs/UsersSelfOptions.md new file mode 100644 index 0000000..70805ef --- /dev/null +++ b/docs/UsersSelfOptions.md @@ -0,0 +1,12 @@ +# UsersSelfOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersSelfRequest.md b/docs/UsersSelfRequest.md new file mode 100644 index 0000000..7558a9b --- /dev/null +++ b/docs/UsersSelfRequest.md @@ -0,0 +1,15 @@ +# UsersSelfRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersSelfOptions**](UsersSelfOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersSelfRequestPatch.md b/docs/UsersSelfRequestPatch.md new file mode 100644 index 0000000..7875513 --- /dev/null +++ b/docs/UsersSelfRequestPatch.md @@ -0,0 +1,14 @@ +# UsersSelfRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersSelfOptions**](UsersSelfOptions.md) | | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersSelfResponseMixin.md b/docs/UsersSelfResponseMixin.md new file mode 100644 index 0000000..6be3373 --- /dev/null +++ b/docs/UsersSelfResponseMixin.md @@ -0,0 +1,15 @@ +# UsersSelfResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersUser.md b/docs/UsersUser.md new file mode 100644 index 0000000..f7438c7 --- /dev/null +++ b/docs/UsersUser.md @@ -0,0 +1,20 @@ +# UsersUser + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersUserOptions**](UsersUserOptions.md) | | [optional] +**policies** | [**UsersUserPolicies**](UsersUserPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersUserApi.md b/docs/UsersUserApi.md new file mode 100644 index 0000000..49bde6b --- /dev/null +++ b/docs/UsersUserApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.UsersUserApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_users_user_object**](UsersUserApi.md#udm_users_user_object) | **GET** /users/user/{dn} | Get a representation of the User object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_users_user_object_create**](UsersUserApi.md#udm_users_user_object_create) | **POST** /users/user/ | Create a new User object +[**udm_users_user_object_modify**](UsersUserApi.md#udm_users_user_object_modify) | **PUT** /users/user/{dn} | Modify or move an User object +[**udm_users_user_object_remove**](UsersUserApi.md#udm_users_user_object_remove) | **DELETE** /users/user/{dn} | Remove a Users object +[**udm_users_user_object_search**](UsersUserApi.md#udm_users_user_object_search) | **GET** /users/user/ | Search for Users objects +[**udm_users_user_object_template**](UsersUserApi.md#udm_users_user_object_template) | **GET** /users/user/add | Get a template for creating an User object (contains all properties and their default values) +[**udm_users_user_object_update**](UsersUserApi.md#udm_users_user_object_update) | **PATCH** /users/user/{dn} | Modify an User object (moving is currently not possible) + + +# **udm_users_user_object** +> UsersUser udm_users_user_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the User object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersUserApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the User object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_users_user_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersUserApi->udm_users_user_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersUser**](UsersUser.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_user_object_create** +> InlineResponse201 udm_users_user_object_create(users_user, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new User object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersUserApi(api_client) + users_user = openapi_client_udm.UsersUser() # UsersUser | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new User object + api_response = api_instance.udm_users_user_object_create(users_user, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersUserApi->udm_users_user_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **users_user** | [**UsersUser**](UsersUser.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_users_user_object_modify** +> InlineResponse201 udm_users_user_object_modify(dn, users_user, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an User object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersUserApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_user = openapi_client_udm.UsersUser() # UsersUser | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an User object + api_response = api_instance.udm_users_user_object_modify(dn, users_user, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersUserApi->udm_users_user_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_user** | [**UsersUser**](UsersUser.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_user_object_remove** +> udm_users_user_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Users object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersUserApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Users object + api_instance.udm_users_user_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UsersUserApi->udm_users_user_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_user_object_search** +> UsersUserList udm_users_user_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Users objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersUserApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Users objects + api_response = api_instance.udm_users_user_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersUserApi->udm_users_user_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersUserList**](UsersUserList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_user_object_template** +> UsersUser udm_users_user_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an User object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersUserApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an User object (contains all properties and their default values) + api_response = api_instance.udm_users_user_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UsersUserApi->udm_users_user_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UsersUser**](UsersUser.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new User. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_users_user_object_update** +> udm_users_user_object_update(dn, users_user, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an User object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UsersUserApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +users_user = openapi_client_udm.UsersUser() # UsersUser | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an User object (moving is currently not possible) + api_instance.udm_users_user_object_update(dn, users_user, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UsersUserApi->udm_users_user_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **users_user** | [**UsersUser**](UsersUser.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UsersUserList.md b/docs/UsersUserList.md new file mode 100644 index 0000000..3abe323 --- /dev/null +++ b/docs/UsersUserList.md @@ -0,0 +1,11 @@ +# UsersUserList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UsersUserListEmbedded**](UsersUserListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersUserListEmbedded.md b/docs/UsersUserListEmbedded.md new file mode 100644 index 0000000..d33bbe1 --- /dev/null +++ b/docs/UsersUserListEmbedded.md @@ -0,0 +1,11 @@ +# UsersUserListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UsersUser]**](UsersUser.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersUserOptions.md b/docs/UsersUserOptions.md new file mode 100644 index 0000000..c582fc9 --- /dev/null +++ b/docs/UsersUserOptions.md @@ -0,0 +1,12 @@ +# UsersUserOptions + +Object type specific `UDM` options. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pki** | **bool** | Public key infrastructure account | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersUserPolicies.md b/docs/UsersUserPolicies.md new file mode 100644 index 0000000..e67fc76 --- /dev/null +++ b/docs/UsersUserPolicies.md @@ -0,0 +1,14 @@ +# UsersUserPolicies + +Policies which apply for this object. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policies_umc** | **list[str]** | Policy: UMC | [optional] +**policies_desktop** | **list[str]** | Policy: Desktop | [optional] +**policies_pwhistory** | **list[str]** | Policy: Passwords | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersUserRequest.md b/docs/UsersUserRequest.md new file mode 100644 index 0000000..bf0644d --- /dev/null +++ b/docs/UsersUserRequest.md @@ -0,0 +1,15 @@ +# UsersUserRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersUserOptions**](UsersUserOptions.md) | | [optional] +**policies** | [**UsersUserPolicies**](UsersUserPolicies.md) | | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersUserRequestPatch.md b/docs/UsersUserRequestPatch.md new file mode 100644 index 0000000..0d80189 --- /dev/null +++ b/docs/UsersUserRequestPatch.md @@ -0,0 +1,14 @@ +# UsersUserRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | [**UsersUserOptions**](UsersUserOptions.md) | | [optional] +**policies** | [**UsersUserPolicies**](UsersUserPolicies.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersUserResponseMixin.md b/docs/UsersUserResponseMixin.md new file mode 100644 index 0000000..31e2040 --- /dev/null +++ b/docs/UsersUserResponseMixin.md @@ -0,0 +1,15 @@ +# UsersUserResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudconnection.md b/docs/UvmmCloudconnection.md new file mode 100644 index 0000000..5a443da --- /dev/null +++ b/docs/UvmmCloudconnection.md @@ -0,0 +1,20 @@ +# UvmmCloudconnection + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudconnectionApi.md b/docs/UvmmCloudconnectionApi.md new file mode 100644 index 0000000..3f665bd --- /dev/null +++ b/docs/UvmmCloudconnectionApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.UvmmCloudconnectionApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_uvmm_cloudconnection_object**](UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object) | **GET** /uvmm/cloudconnection/{dn} | Get a representation of the Cloud Connection object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_uvmm_cloudconnection_object_create**](UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_create) | **POST** /uvmm/cloudconnection/ | Create a new Cloud Connection object +[**udm_uvmm_cloudconnection_object_modify**](UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_modify) | **PUT** /uvmm/cloudconnection/{dn} | Modify or move an Cloud Connection object +[**udm_uvmm_cloudconnection_object_remove**](UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_remove) | **DELETE** /uvmm/cloudconnection/{dn} | Remove a Cloud Connections object +[**udm_uvmm_cloudconnection_object_search**](UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_search) | **GET** /uvmm/cloudconnection/ | Search for Cloud Connections objects +[**udm_uvmm_cloudconnection_object_template**](UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_template) | **GET** /uvmm/cloudconnection/add | Get a template for creating an Cloud Connection object (contains all properties and their default values) +[**udm_uvmm_cloudconnection_object_update**](UvmmCloudconnectionApi.md#udm_uvmm_cloudconnection_object_update) | **PATCH** /uvmm/cloudconnection/{dn} | Modify an Cloud Connection object (moving is currently not possible) + + +# **udm_uvmm_cloudconnection_object** +> UvmmCloudconnection udm_uvmm_cloudconnection_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Cloud Connection object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudconnectionApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Cloud Connection object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_uvmm_cloudconnection_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudconnectionApi->udm_uvmm_cloudconnection_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmCloudconnection**](UvmmCloudconnection.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudconnection_object_create** +> InlineResponse201 udm_uvmm_cloudconnection_object_create(uvmm_cloudconnection, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Cloud Connection object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudconnectionApi(api_client) + uvmm_cloudconnection = openapi_client_udm.UvmmCloudconnection() # UvmmCloudconnection | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Cloud Connection object + api_response = api_instance.udm_uvmm_cloudconnection_object_create(uvmm_cloudconnection, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudconnectionApi->udm_uvmm_cloudconnection_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uvmm_cloudconnection** | [**UvmmCloudconnection**](UvmmCloudconnection.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_uvmm_cloudconnection_object_modify** +> InlineResponse201 udm_uvmm_cloudconnection_object_modify(dn, uvmm_cloudconnection, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Cloud Connection object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudconnectionApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +uvmm_cloudconnection = openapi_client_udm.UvmmCloudconnection() # UvmmCloudconnection | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Cloud Connection object + api_response = api_instance.udm_uvmm_cloudconnection_object_modify(dn, uvmm_cloudconnection, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudconnectionApi->udm_uvmm_cloudconnection_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **uvmm_cloudconnection** | [**UvmmCloudconnection**](UvmmCloudconnection.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudconnection_object_remove** +> udm_uvmm_cloudconnection_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Cloud Connections object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudconnectionApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Cloud Connections object + api_instance.udm_uvmm_cloudconnection_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UvmmCloudconnectionApi->udm_uvmm_cloudconnection_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudconnection_object_search** +> UvmmCloudconnectionList udm_uvmm_cloudconnection_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Cloud Connections objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudconnectionApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Cloud Connections objects + api_response = api_instance.udm_uvmm_cloudconnection_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudconnectionApi->udm_uvmm_cloudconnection_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmCloudconnectionList**](UvmmCloudconnectionList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudconnection_object_template** +> UvmmCloudconnection udm_uvmm_cloudconnection_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Cloud Connection object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudconnectionApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Cloud Connection object (contains all properties and their default values) + api_response = api_instance.udm_uvmm_cloudconnection_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudconnectionApi->udm_uvmm_cloudconnection_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmCloudconnection**](UvmmCloudconnection.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Cloud Connection. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudconnection_object_update** +> udm_uvmm_cloudconnection_object_update(dn, uvmm_cloudconnection, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Cloud Connection object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudconnectionApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +uvmm_cloudconnection = openapi_client_udm.UvmmCloudconnection() # UvmmCloudconnection | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Cloud Connection object (moving is currently not possible) + api_instance.udm_uvmm_cloudconnection_object_update(dn, uvmm_cloudconnection, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UvmmCloudconnectionApi->udm_uvmm_cloudconnection_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **uvmm_cloudconnection** | [**UvmmCloudconnection**](UvmmCloudconnection.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UvmmCloudconnectionList.md b/docs/UvmmCloudconnectionList.md new file mode 100644 index 0000000..aa526f0 --- /dev/null +++ b/docs/UvmmCloudconnectionList.md @@ -0,0 +1,11 @@ +# UvmmCloudconnectionList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UvmmCloudconnectionListEmbedded**](UvmmCloudconnectionListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudconnectionListEmbedded.md b/docs/UvmmCloudconnectionListEmbedded.md new file mode 100644 index 0000000..1466657 --- /dev/null +++ b/docs/UvmmCloudconnectionListEmbedded.md @@ -0,0 +1,11 @@ +# UvmmCloudconnectionListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UvmmCloudconnection]**](UvmmCloudconnection.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudconnectionRequest.md b/docs/UvmmCloudconnectionRequest.md new file mode 100644 index 0000000..93a07ee --- /dev/null +++ b/docs/UvmmCloudconnectionRequest.md @@ -0,0 +1,15 @@ +# UvmmCloudconnectionRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudconnectionRequestPatch.md b/docs/UvmmCloudconnectionRequestPatch.md new file mode 100644 index 0000000..15dba2b --- /dev/null +++ b/docs/UvmmCloudconnectionRequestPatch.md @@ -0,0 +1,14 @@ +# UvmmCloudconnectionRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudconnectionResponseMixin.md b/docs/UvmmCloudconnectionResponseMixin.md new file mode 100644 index 0000000..969c608 --- /dev/null +++ b/docs/UvmmCloudconnectionResponseMixin.md @@ -0,0 +1,15 @@ +# UvmmCloudconnectionResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudtype.md b/docs/UvmmCloudtype.md new file mode 100644 index 0000000..b8e0afe --- /dev/null +++ b/docs/UvmmCloudtype.md @@ -0,0 +1,20 @@ +# UvmmCloudtype + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudtypeApi.md b/docs/UvmmCloudtypeApi.md new file mode 100644 index 0000000..a07a661 --- /dev/null +++ b/docs/UvmmCloudtypeApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.UvmmCloudtypeApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_uvmm_cloudtype_object**](UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object) | **GET** /uvmm/cloudtype/{dn} | Get a representation of the Cloud Type object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_uvmm_cloudtype_object_create**](UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_create) | **POST** /uvmm/cloudtype/ | Create a new Cloud Type object +[**udm_uvmm_cloudtype_object_modify**](UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_modify) | **PUT** /uvmm/cloudtype/{dn} | Modify or move an Cloud Type object +[**udm_uvmm_cloudtype_object_remove**](UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_remove) | **DELETE** /uvmm/cloudtype/{dn} | Remove a Cloud Types object +[**udm_uvmm_cloudtype_object_search**](UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_search) | **GET** /uvmm/cloudtype/ | Search for Cloud Types objects +[**udm_uvmm_cloudtype_object_template**](UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_template) | **GET** /uvmm/cloudtype/add | Get a template for creating an Cloud Type object (contains all properties and their default values) +[**udm_uvmm_cloudtype_object_update**](UvmmCloudtypeApi.md#udm_uvmm_cloudtype_object_update) | **PATCH** /uvmm/cloudtype/{dn} | Modify an Cloud Type object (moving is currently not possible) + + +# **udm_uvmm_cloudtype_object** +> UvmmCloudtype udm_uvmm_cloudtype_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Cloud Type object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudtypeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Cloud Type object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_uvmm_cloudtype_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudtypeApi->udm_uvmm_cloudtype_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmCloudtype**](UvmmCloudtype.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudtype_object_create** +> InlineResponse201 udm_uvmm_cloudtype_object_create(uvmm_cloudtype, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Cloud Type object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudtypeApi(api_client) + uvmm_cloudtype = openapi_client_udm.UvmmCloudtype() # UvmmCloudtype | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Cloud Type object + api_response = api_instance.udm_uvmm_cloudtype_object_create(uvmm_cloudtype, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudtypeApi->udm_uvmm_cloudtype_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uvmm_cloudtype** | [**UvmmCloudtype**](UvmmCloudtype.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_uvmm_cloudtype_object_modify** +> InlineResponse201 udm_uvmm_cloudtype_object_modify(dn, uvmm_cloudtype, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Cloud Type object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudtypeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +uvmm_cloudtype = openapi_client_udm.UvmmCloudtype() # UvmmCloudtype | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Cloud Type object + api_response = api_instance.udm_uvmm_cloudtype_object_modify(dn, uvmm_cloudtype, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudtypeApi->udm_uvmm_cloudtype_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **uvmm_cloudtype** | [**UvmmCloudtype**](UvmmCloudtype.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudtype_object_remove** +> udm_uvmm_cloudtype_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Cloud Types object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudtypeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Cloud Types object + api_instance.udm_uvmm_cloudtype_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UvmmCloudtypeApi->udm_uvmm_cloudtype_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudtype_object_search** +> UvmmCloudtypeList udm_uvmm_cloudtype_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Cloud Types objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudtypeApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Cloud Types objects + api_response = api_instance.udm_uvmm_cloudtype_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudtypeApi->udm_uvmm_cloudtype_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmCloudtypeList**](UvmmCloudtypeList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudtype_object_template** +> UvmmCloudtype udm_uvmm_cloudtype_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Cloud Type object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudtypeApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Cloud Type object (contains all properties and their default values) + api_response = api_instance.udm_uvmm_cloudtype_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmCloudtypeApi->udm_uvmm_cloudtype_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmCloudtype**](UvmmCloudtype.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Cloud Type. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_cloudtype_object_update** +> udm_uvmm_cloudtype_object_update(dn, uvmm_cloudtype, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Cloud Type object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmCloudtypeApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +uvmm_cloudtype = openapi_client_udm.UvmmCloudtype() # UvmmCloudtype | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Cloud Type object (moving is currently not possible) + api_instance.udm_uvmm_cloudtype_object_update(dn, uvmm_cloudtype, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UvmmCloudtypeApi->udm_uvmm_cloudtype_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **uvmm_cloudtype** | [**UvmmCloudtype**](UvmmCloudtype.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UvmmCloudtypeList.md b/docs/UvmmCloudtypeList.md new file mode 100644 index 0000000..65a5d89 --- /dev/null +++ b/docs/UvmmCloudtypeList.md @@ -0,0 +1,11 @@ +# UvmmCloudtypeList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UvmmCloudtypeListEmbedded**](UvmmCloudtypeListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudtypeListEmbedded.md b/docs/UvmmCloudtypeListEmbedded.md new file mode 100644 index 0000000..d2ca32d --- /dev/null +++ b/docs/UvmmCloudtypeListEmbedded.md @@ -0,0 +1,11 @@ +# UvmmCloudtypeListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UvmmCloudtype]**](UvmmCloudtype.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudtypeRequest.md b/docs/UvmmCloudtypeRequest.md new file mode 100644 index 0000000..77a665d --- /dev/null +++ b/docs/UvmmCloudtypeRequest.md @@ -0,0 +1,15 @@ +# UvmmCloudtypeRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudtypeRequestPatch.md b/docs/UvmmCloudtypeRequestPatch.md new file mode 100644 index 0000000..45e1f50 --- /dev/null +++ b/docs/UvmmCloudtypeRequestPatch.md @@ -0,0 +1,14 @@ +# UvmmCloudtypeRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmCloudtypeResponseMixin.md b/docs/UvmmCloudtypeResponseMixin.md new file mode 100644 index 0000000..7847cf8 --- /dev/null +++ b/docs/UvmmCloudtypeResponseMixin.md @@ -0,0 +1,15 @@ +# UvmmCloudtypeResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmInfo.md b/docs/UvmmInfo.md new file mode 100644 index 0000000..2fee530 --- /dev/null +++ b/docs/UvmmInfo.md @@ -0,0 +1,20 @@ +# UvmmInfo + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmInfoApi.md b/docs/UvmmInfoApi.md new file mode 100644 index 0000000..228f391 --- /dev/null +++ b/docs/UvmmInfoApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.UvmmInfoApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_uvmm_info_object**](UvmmInfoApi.md#udm_uvmm_info_object) | **GET** /uvmm/info/{dn} | Get a representation of the Machine information object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_uvmm_info_object_create**](UvmmInfoApi.md#udm_uvmm_info_object_create) | **POST** /uvmm/info/ | Create a new Machine information object +[**udm_uvmm_info_object_modify**](UvmmInfoApi.md#udm_uvmm_info_object_modify) | **PUT** /uvmm/info/{dn} | Modify or move an Machine information object +[**udm_uvmm_info_object_remove**](UvmmInfoApi.md#udm_uvmm_info_object_remove) | **DELETE** /uvmm/info/{dn} | Remove a Machine information object +[**udm_uvmm_info_object_search**](UvmmInfoApi.md#udm_uvmm_info_object_search) | **GET** /uvmm/info/ | Search for Machine information objects +[**udm_uvmm_info_object_template**](UvmmInfoApi.md#udm_uvmm_info_object_template) | **GET** /uvmm/info/add | Get a template for creating an Machine information object (contains all properties and their default values) +[**udm_uvmm_info_object_update**](UvmmInfoApi.md#udm_uvmm_info_object_update) | **PATCH** /uvmm/info/{dn} | Modify an Machine information object (moving is currently not possible) + + +# **udm_uvmm_info_object** +> UvmmInfo udm_uvmm_info_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Machine information object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmInfoApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Machine information object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_uvmm_info_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmInfoApi->udm_uvmm_info_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmInfo**](UvmmInfo.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_info_object_create** +> InlineResponse201 udm_uvmm_info_object_create(uvmm_info, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Machine information object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmInfoApi(api_client) + uvmm_info = openapi_client_udm.UvmmInfo() # UvmmInfo | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Machine information object + api_response = api_instance.udm_uvmm_info_object_create(uvmm_info, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmInfoApi->udm_uvmm_info_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uvmm_info** | [**UvmmInfo**](UvmmInfo.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_uvmm_info_object_modify** +> InlineResponse201 udm_uvmm_info_object_modify(dn, uvmm_info, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Machine information object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmInfoApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +uvmm_info = openapi_client_udm.UvmmInfo() # UvmmInfo | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Machine information object + api_response = api_instance.udm_uvmm_info_object_modify(dn, uvmm_info, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmInfoApi->udm_uvmm_info_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **uvmm_info** | [**UvmmInfo**](UvmmInfo.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_info_object_remove** +> udm_uvmm_info_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Machine information object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmInfoApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Machine information object + api_instance.udm_uvmm_info_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UvmmInfoApi->udm_uvmm_info_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_info_object_search** +> UvmmInfoList udm_uvmm_info_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Machine information objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmInfoApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Machine information objects + api_response = api_instance.udm_uvmm_info_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmInfoApi->udm_uvmm_info_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmInfoList**](UvmmInfoList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_info_object_template** +> UvmmInfo udm_uvmm_info_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Machine information object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmInfoApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Machine information object (contains all properties and their default values) + api_response = api_instance.udm_uvmm_info_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmInfoApi->udm_uvmm_info_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmInfo**](UvmmInfo.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Machine information. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_info_object_update** +> udm_uvmm_info_object_update(dn, uvmm_info, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Machine information object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmInfoApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +uvmm_info = openapi_client_udm.UvmmInfo() # UvmmInfo | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Machine information object (moving is currently not possible) + api_instance.udm_uvmm_info_object_update(dn, uvmm_info, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UvmmInfoApi->udm_uvmm_info_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **uvmm_info** | [**UvmmInfo**](UvmmInfo.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UvmmInfoList.md b/docs/UvmmInfoList.md new file mode 100644 index 0000000..7dd9f58 --- /dev/null +++ b/docs/UvmmInfoList.md @@ -0,0 +1,11 @@ +# UvmmInfoList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UvmmInfoListEmbedded**](UvmmInfoListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmInfoListEmbedded.md b/docs/UvmmInfoListEmbedded.md new file mode 100644 index 0000000..f3d671e --- /dev/null +++ b/docs/UvmmInfoListEmbedded.md @@ -0,0 +1,11 @@ +# UvmmInfoListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UvmmInfo]**](UvmmInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmInfoRequest.md b/docs/UvmmInfoRequest.md new file mode 100644 index 0000000..97409b8 --- /dev/null +++ b/docs/UvmmInfoRequest.md @@ -0,0 +1,15 @@ +# UvmmInfoRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmInfoRequestPatch.md b/docs/UvmmInfoRequestPatch.md new file mode 100644 index 0000000..ffe88cc --- /dev/null +++ b/docs/UvmmInfoRequestPatch.md @@ -0,0 +1,14 @@ +# UvmmInfoRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmInfoResponseMixin.md b/docs/UvmmInfoResponseMixin.md new file mode 100644 index 0000000..e081adf --- /dev/null +++ b/docs/UvmmInfoResponseMixin.md @@ -0,0 +1,15 @@ +# UvmmInfoResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmProfile.md b/docs/UvmmProfile.md new file mode 100644 index 0000000..de180e0 --- /dev/null +++ b/docs/UvmmProfile.md @@ -0,0 +1,20 @@ +# UvmmProfile + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmProfileApi.md b/docs/UvmmProfileApi.md new file mode 100644 index 0000000..b069f85 --- /dev/null +++ b/docs/UvmmProfileApi.md @@ -0,0 +1,686 @@ +# openapi_client_udm.UvmmProfileApi + +All URIs are relative to *https://ucs.sawtooth.claremontmakerspace.org/univention/udm* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**udm_uvmm_profile_object**](UvmmProfileApi.md#udm_uvmm_profile_object) | **GET** /uvmm/profile/{dn} | Get a representation of the Profile object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. +[**udm_uvmm_profile_object_create**](UvmmProfileApi.md#udm_uvmm_profile_object_create) | **POST** /uvmm/profile/ | Create a new Profile object +[**udm_uvmm_profile_object_modify**](UvmmProfileApi.md#udm_uvmm_profile_object_modify) | **PUT** /uvmm/profile/{dn} | Modify or move an Profile object +[**udm_uvmm_profile_object_remove**](UvmmProfileApi.md#udm_uvmm_profile_object_remove) | **DELETE** /uvmm/profile/{dn} | Remove a Profiles object +[**udm_uvmm_profile_object_search**](UvmmProfileApi.md#udm_uvmm_profile_object_search) | **GET** /uvmm/profile/ | Search for Profiles objects +[**udm_uvmm_profile_object_template**](UvmmProfileApi.md#udm_uvmm_profile_object_template) | **GET** /uvmm/profile/add | Get a template for creating an Profile object (contains all properties and their default values) +[**udm_uvmm_profile_object_update**](UvmmProfileApi.md#udm_uvmm_profile_object_update) | **PATCH** /uvmm/profile/{dn} | Modify an Profile object (moving is currently not possible) + + +# **udm_uvmm_profile_object** +> UvmmProfile udm_uvmm_profile_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + + Get a representation of the Profile object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmProfileApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a representation of the Profile object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. + api_response = api_instance.udm_uvmm_profile_object(dn, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmProfileApi->udm_uvmm_profile_object: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmProfile**](UvmmProfile.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Success | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_profile_object_create** +> InlineResponse201 udm_uvmm_profile_object_create(uvmm_profile, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Create a new Profile object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmProfileApi(api_client) + uvmm_profile = openapi_client_udm.UvmmProfile() # UvmmProfile | +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Create a new Profile object + api_response = api_instance.udm_uvmm_profile_object_create(uvmm_profile, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmProfileApi->udm_uvmm_profile_object_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uvmm_profile** | [**UvmmProfile**](UvmmProfile.md)| | + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Object created | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| + +[[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) + +# **udm_uvmm_profile_object_modify** +> InlineResponse201 udm_uvmm_profile_object_modify(dn, uvmm_profile, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify or move an Profile object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmProfileApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +uvmm_profile = openapi_client_udm.UvmmProfile() # UvmmProfile | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify or move an Profile object + api_response = api_instance.udm_uvmm_profile_object_modify(dn, uvmm_profile, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmProfileApi->udm_uvmm_profile_object_modify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **uvmm_profile** | [**UvmmProfile**](UvmmProfile.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**201** | Created: The object did not exist and has been created. Deprecated: a move operation started, expect 202 in the future! | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Etag -
* Last-Modified -
| +**202** | Accepted: asynchronous move or rename operation started. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_profile_object_remove** +> udm_uvmm_profile_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Remove a Profiles object + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmProfileApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +cleanup = True # bool | Whether to perform a cleanup (e.g. of temporary objects, locks, etc). (optional) (default to True) +recursive = True # bool | Whether to remove referring objects (e.g. DNS or DHCP references). (optional) (default to True) +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Remove a Profiles object + api_instance.udm_uvmm_profile_object_remove(dn, cleanup=cleanup, recursive=recursive, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UvmmProfileApi->udm_uvmm_profile_object_remove: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **cleanup** | **bool**| Whether to perform a cleanup (e.g. of temporary objects, locks, etc). | [optional] [default to True] + **recursive** | **bool**| Whether to remove referring objects (e.g. DNS or DHCP references). | [optional] [default to True] + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Object deleted | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_profile_object_search** +> UvmmProfileList udm_uvmm_profile_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Search for Profiles objects + +Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmProfileApi(api_client) + filter = '' # str | A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. (optional) (default to '') +position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +scope = 'sub' # str | The LDAP search scope (sub, base, one). (optional) (default to 'sub') +query = None # dict(str, object) | The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. (optional) +hidden = True # bool | Include hidden/system objects in the response. (optional) (default to True) +properties = ["*"] # list[str] | The properties which should be returned, if not given all properties are returned. (optional) (default to ["*"]) +limit = # int | **Broken/Experimental**: How many results should be shown per page. (optional) +page = 1 # int | **Broken/Experimental**: The search page, starting at one. (optional) (default to 1) +dir = 'ASC' # str | **Broken/Experimental**: The Sort direction (ASC or DESC). (optional) (default to 'ASC') +by = 'by_example' # str | **Broken/Experimental**: Sort the search result by the specified property. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Search for Profiles objects + api_response = api_instance.udm_uvmm_profile_object_search(filter=filter, position=position, scope=scope, query=query, hidden=hidden, properties=properties, limit=limit, page=page, dir=dir, by=by, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmProfileApi->udm_uvmm_profile_object_search: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. | [optional] [default to ''] + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **scope** | **str**| The LDAP search scope (sub, base, one). | [optional] [default to 'sub'] + **query** | [**dict(str, object)**](object.md)| The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. | [optional] + **hidden** | **bool**| Include hidden/system objects in the response. | [optional] [default to True] + **properties** | [**list[str]**](str.md)| The properties which should be returned, if not given all properties are returned. | [optional] [default to ["*"]] + **limit** | **int**| **Broken/Experimental**: How many results should be shown per page. | [optional] + **page** | **int**| **Broken/Experimental**: The search page, starting at one. | [optional] [default to 1] + **dir** | **str**| **Broken/Experimental**: The Sort direction (ASC or DESC). | [optional] [default to 'ASC'] + **by** | **str**| **Broken/Experimental**: Sort the search result by the specified property. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmProfileList**](UvmmProfileList.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfull search (if query parameters were given) or a object type overview. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_profile_object_template** +> UvmmProfile udm_uvmm_profile_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Get a template for creating an Profile object (contains all properties and their default values) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmProfileApi(api_client) + position = 'null' # str | Position which is used as search base. (optional) (default to 'null') +superordinate = 'null' # str | The superordinate DN of the object to create. `position` is sufficient. (optional) (default to 'null') +template = 'null' # str | **Experimental**: A |UDM| template object. (optional) (default to 'null') +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Get a template for creating an Profile object (contains all properties and their default values) + api_response = api_instance.udm_uvmm_profile_object_template(position=position, superordinate=superordinate, template=template, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling UvmmProfileApi->udm_uvmm_profile_object_template: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **position** | **str**| Position which is used as search base. | [optional] [default to 'null'] + **superordinate** | **str**| The superordinate DN of the object to create. `position` is sufficient. | [optional] [default to 'null'] + **template** | **str**| **Experimental**: A |UDM| template object. | [optional] [default to 'null'] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +[**UvmmProfile**](UvmmProfile.md) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**200** | Successfully received a template suitable for creation of a new Profile. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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) + +# **udm_uvmm_profile_object_update** +> udm_uvmm_profile_object_update(dn, uvmm_profile, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + +Modify an Profile object (moving is currently not possible) + +### Example + +* Basic Authentication (basic): +```python +from __future__ import print_function +import time +import openapi_client_udm +from openapi_client_udm.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://ucs.sawtooth.claremontmakerspace.org/univention/udm +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client_udm.Configuration( + host = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" +) + +# 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 HTTP basic authorization: basic +configuration = openapi_client_udm.Configuration( + username = 'YOUR_USERNAME', + password = 'YOUR_PASSWORD' +) + +# Enter a context with an instance of the API client +with openapi_client_udm.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client_udm.UvmmProfileApi(api_client) + dn = 'dn_example' # str | The (urlencoded) LDAP Distinguished Name (DN). +uvmm_profile = openapi_client_udm.UvmmProfile() # UvmmProfile | +if_match = '' # str | Provide entity tag to make a conditional request to not overwrite any values in a race condition. (optional) +if_unmodified_since = 'if_unmodified_since_example' # str | Provide last modified time to make a conditional request to not overwrite any values in a race condition. (optional) +user_agent = '' # str | The user agent. (optional) +accept_language = '' # str | The accepted response languages. (optional) +if_none_match = '' # str | Use request from cache by using the Etag entity tag if it matches. (optional) +if_modified_since = '' # str | Use request from cache by using the Last-Modified date if it matches. (optional) +x_request_id = '' # str | A request-ID used for logging and tracing. (optional) + + try: + # Modify an Profile object (moving is currently not possible) + api_instance.udm_uvmm_profile_object_update(dn, uvmm_profile, if_match=if_match, if_unmodified_since=if_unmodified_since, user_agent=user_agent, accept_language=accept_language, if_none_match=if_none_match, if_modified_since=if_modified_since, x_request_id=x_request_id) + except ApiException as e: + print("Exception when calling UvmmProfileApi->udm_uvmm_profile_object_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dn** | **str**| The (urlencoded) LDAP Distinguished Name (DN). | + **uvmm_profile** | [**UvmmProfile**](UvmmProfile.md)| | + **if_match** | **str**| Provide entity tag to make a conditional request to not overwrite any values in a race condition. | [optional] + **if_unmodified_since** | **str**| Provide last modified time to make a conditional request to not overwrite any values in a race condition. | [optional] + **user_agent** | **str**| The user agent. | [optional] + **accept_language** | **str**| The accepted response languages. | [optional] + **if_none_match** | **str**| Use request from cache by using the Etag entity tag if it matches. | [optional] + **if_modified_since** | **str**| Use request from cache by using the Last-Modified date if it matches. | [optional] + **x_request_id** | **str**| A request-ID used for logging and tracing. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/hal+json, text/html + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**400** | Bad request syntax. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**401** | Unauthorized. No Authorization provided or wrong credentials. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**403** | Forbidden (e.g. unsupported operation) | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**422** | Validation of input parameters failed. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**500** | Internal server errror. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| +**503** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**502** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**504** | (LDAP) Server not available. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Retry-After -
| +**204** | Success. No response data. A link to the modified resource in the `Location` header. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
* Location -
* Etag -
* Last-Modified -
| +**404** | Object not found. | * Cache-Control -
* Expires -
* Vary -
* Content-Language -
* Link -
* X-Request-Id -
| + +[[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/docs/UvmmProfileList.md b/docs/UvmmProfileList.md new file mode 100644 index 0000000..9a75f44 --- /dev/null +++ b/docs/UvmmProfileList.md @@ -0,0 +1,11 @@ +# UvmmProfileList + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**embedded** | [**UvmmProfileListEmbedded**](UvmmProfileListEmbedded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmProfileListEmbedded.md b/docs/UvmmProfileListEmbedded.md new file mode 100644 index 0000000..e282ea1 --- /dev/null +++ b/docs/UvmmProfileListEmbedded.md @@ -0,0 +1,11 @@ +# UvmmProfileListEmbedded + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**udmobject** | [**list[UvmmProfile]**](UvmmProfile.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmProfileRequest.md b/docs/UvmmProfileRequest.md new file mode 100644 index 0000000..f7f8ec6 --- /dev/null +++ b/docs/UvmmProfileRequest.md @@ -0,0 +1,15 @@ +# UvmmProfileRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] +**position** | **str** | DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmProfileRequestPatch.md b/docs/UvmmProfileRequestPatch.md new file mode 100644 index 0000000..462f4d6 --- /dev/null +++ b/docs/UvmmProfileRequestPatch.md @@ -0,0 +1,14 @@ +# UvmmProfileRequestPatch + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dn** | **str** | The LDAP Distinguished Name (DN). | [optional] [readonly] +**properties** | **dict(str, object)** | Object type specific `UDM` properties. | [optional] +**options** | **dict(str, object)** | Object type specific `UDM` options. | [optional] +**policies** | **dict(str, object)** | Policies which apply for this object. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UvmmProfileResponseMixin.md b/docs/UvmmProfileResponseMixin.md new file mode 100644 index 0000000..071c448 --- /dev/null +++ b/docs/UvmmProfileResponseMixin.md @@ -0,0 +1,15 @@ +# UvmmProfileResponseMixin + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | [**Links**](Links.md) | | [optional] +**embedded** | **dict(str, object)** | Hypertext Application Language (HAL) embedded resources. | [optional] [readonly] +**uuid** | **str** | The LDAP Entry-UUID. | [optional] [readonly] +**object_type** | **str** | The UDM Object-Type. | [optional] [readonly] +**uri** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/openapi_client_udm/__init__.py b/openapi_client_udm/__init__.py new file mode 100644 index 0000000..0063e72 --- /dev/null +++ b/openapi_client_udm/__init__.py @@ -0,0 +1,1026 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +__version__ = "1.0.2" + +# import apis into sdk package +from openapi_client_udm.api.appcenter_app_api import AppcenterAppApi +from openapi_client_udm.api.computers_computer_api import ComputersComputerApi +from openapi_client_udm.api.computers_domaincontroller_backup_api import ComputersDomaincontrollerBackupApi +from openapi_client_udm.api.computers_domaincontroller_master_api import ComputersDomaincontrollerMasterApi +from openapi_client_udm.api.computers_domaincontroller_slave_api import ComputersDomaincontrollerSlaveApi +from openapi_client_udm.api.computers_ipmanagedclient_api import ComputersIpmanagedclientApi +from openapi_client_udm.api.computers_linux_api import ComputersLinuxApi +from openapi_client_udm.api.computers_macos_api import ComputersMacosApi +from openapi_client_udm.api.computers_memberserver_api import ComputersMemberserverApi +from openapi_client_udm.api.computers_trustaccount_api import ComputersTrustaccountApi +from openapi_client_udm.api.computers_ubuntu_api import ComputersUbuntuApi +from openapi_client_udm.api.computers_windows_api import ComputersWindowsApi +from openapi_client_udm.api.computers_windows_domaincontroller_api import ComputersWindowsDomaincontrollerApi +from openapi_client_udm.api.container_cn_api import ContainerCnApi +from openapi_client_udm.api.container_dc_api import ContainerDcApi +from openapi_client_udm.api.container_msgpo_api import ContainerMsgpoApi +from openapi_client_udm.api.container_ou_api import ContainerOuApi +from openapi_client_udm.api.dhcp_dhcp_api import DhcpDhcpApi +from openapi_client_udm.api.dhcp_host_api import DhcpHostApi +from openapi_client_udm.api.dhcp_pool_api import DhcpPoolApi +from openapi_client_udm.api.dhcp_server_api import DhcpServerApi +from openapi_client_udm.api.dhcp_service_api import DhcpServiceApi +from openapi_client_udm.api.dhcp_shared_api import DhcpSharedApi +from openapi_client_udm.api.dhcp_sharedsubnet_api import DhcpSharedsubnetApi +from openapi_client_udm.api.dhcp_subnet_api import DhcpSubnetApi +from openapi_client_udm.api.dns_alias_api import DnsAliasApi +from openapi_client_udm.api.dns_dns_api import DnsDnsApi +from openapi_client_udm.api.dns_forward_zone_api import DnsForwardZoneApi +from openapi_client_udm.api.dns_host_record_api import DnsHostRecordApi +from openapi_client_udm.api.dns_ns_record_api import DnsNsRecordApi +from openapi_client_udm.api.dns_ptr_record_api import DnsPtrRecordApi +from openapi_client_udm.api.dns_reverse_zone_api import DnsReverseZoneApi +from openapi_client_udm.api.dns_srv_record_api import DnsSrvRecordApi +from openapi_client_udm.api.dns_txt_record_api import DnsTxtRecordApi +from openapi_client_udm.api.groups_group_api import GroupsGroupApi +from openapi_client_udm.api.kerberos_kdcentry_api import KerberosKdcentryApi +from openapi_client_udm.api.mail_domain_api import MailDomainApi +from openapi_client_udm.api.mail_folder_api import MailFolderApi +from openapi_client_udm.api.mail_lists_api import MailListsApi +from openapi_client_udm.api.mail_mail_api import MailMailApi +from openapi_client_udm.api.monitoring_alert_api import MonitoringAlertApi +from openapi_client_udm.api.ms_domainpolicy_api import MsDomainpolicyApi +from openapi_client_udm.api.ms_gpipsec_filter_api import MsGpipsecFilterApi +from openapi_client_udm.api.ms_gpipsec_isakmp_policy_api import MsGpipsecIsakmpPolicyApi +from openapi_client_udm.api.ms_gpipsec_negotiation_policy_api import MsGpipsecNegotiationPolicyApi +from openapi_client_udm.api.ms_gpipsec_nfa_api import MsGpipsecNfaApi +from openapi_client_udm.api.ms_gpipsec_policy_api import MsGpipsecPolicyApi +from openapi_client_udm.api.ms_gpsi_category_registration_api import MsGpsiCategoryRegistrationApi +from openapi_client_udm.api.ms_gpsi_class_store_api import MsGpsiClassStoreApi +from openapi_client_udm.api.ms_gpsi_package_registration_api import MsGpsiPackageRegistrationApi +from openapi_client_udm.api.ms_gpwl_wired_api import MsGpwlWiredApi +from openapi_client_udm.api.ms_gpwl_wireless_api import MsGpwlWirelessApi +from openapi_client_udm.api.ms_gpwl_wireless_blob_api import MsGpwlWirelessBlobApi +from openapi_client_udm.api.nagios_nagios_api import NagiosNagiosApi +from openapi_client_udm.api.nagios_service_api import NagiosServiceApi +from openapi_client_udm.api.nagios_timeperiod_api import NagiosTimeperiodApi +from openapi_client_udm.api.networks_network_api import NetworksNetworkApi +from openapi_client_udm.api.policies_admin_container_api import PoliciesAdminContainerApi +from openapi_client_udm.api.policies_desktop_api import PoliciesDesktopApi +from openapi_client_udm.api.policies_dhcp_boot_api import PoliciesDhcpBootApi +from openapi_client_udm.api.policies_dhcp_dns_api import PoliciesDhcpDnsApi +from openapi_client_udm.api.policies_dhcp_dnsupdate_api import PoliciesDhcpDnsupdateApi +from openapi_client_udm.api.policies_dhcp_leasetime_api import PoliciesDhcpLeasetimeApi +from openapi_client_udm.api.policies_dhcp_netbios_api import PoliciesDhcpNetbiosApi +from openapi_client_udm.api.policies_dhcp_routing_api import PoliciesDhcpRoutingApi +from openapi_client_udm.api.policies_dhcp_scope_api import PoliciesDhcpScopeApi +from openapi_client_udm.api.policies_dhcp_statements_api import PoliciesDhcpStatementsApi +from openapi_client_udm.api.policies_ldapserver_api import PoliciesLdapserverApi +from openapi_client_udm.api.policies_maintenance_api import PoliciesMaintenanceApi +from openapi_client_udm.api.policies_masterpackages_api import PoliciesMasterpackagesApi +from openapi_client_udm.api.policies_memberpackages_api import PoliciesMemberpackagesApi +from openapi_client_udm.api.policies_nfsmounts_api import PoliciesNfsmountsApi +from openapi_client_udm.api.policies_policy_api import PoliciesPolicyApi +from openapi_client_udm.api.policies_printserver_api import PoliciesPrintserverApi +from openapi_client_udm.api.policies_pwhistory_api import PoliciesPwhistoryApi +from openapi_client_udm.api.policies_registry_api import PoliciesRegistryApi +from openapi_client_udm.api.policies_release_api import PoliciesReleaseApi +from openapi_client_udm.api.policies_repositoryserver_api import PoliciesRepositoryserverApi +from openapi_client_udm.api.policies_repositorysync_api import PoliciesRepositorysyncApi +from openapi_client_udm.api.policies_share_userquota_api import PoliciesShareUserquotaApi +from openapi_client_udm.api.policies_slavepackages_api import PoliciesSlavepackagesApi +from openapi_client_udm.api.policies_umc_api import PoliciesUmcApi +from openapi_client_udm.api.portals_all_api import PortalsAllApi +from openapi_client_udm.api.portals_announcement_api import PortalsAnnouncementApi +from openapi_client_udm.api.portals_category_api import PortalsCategoryApi +from openapi_client_udm.api.portals_entry_api import PortalsEntryApi +from openapi_client_udm.api.portals_folder_api import PortalsFolderApi +from openapi_client_udm.api.portals_portal_api import PortalsPortalApi +from openapi_client_udm.api.saml_idpconfig_api import SamlIdpconfigApi +from openapi_client_udm.api.saml_serviceprovider_api import SamlServiceproviderApi +from openapi_client_udm.api.settings_cn_api import SettingsCnApi +from openapi_client_udm.api.settings_data_api import SettingsDataApi +from openapi_client_udm.api.settings_default_api import SettingsDefaultApi +from openapi_client_udm.api.settings_directory_api import SettingsDirectoryApi +from openapi_client_udm.api.settings_extended_attribute_api import SettingsExtendedAttributeApi +from openapi_client_udm.api.settings_extended_options_api import SettingsExtendedOptionsApi +from openapi_client_udm.api.settings_ldapacl_api import SettingsLdapaclApi +from openapi_client_udm.api.settings_ldapschema_api import SettingsLdapschemaApi +from openapi_client_udm.api.settings_license_api import SettingsLicenseApi +from openapi_client_udm.api.settings_lock_api import SettingsLockApi +from openapi_client_udm.api.settings_msprintconnectionpolicy_api import SettingsMsprintconnectionpolicyApi +from openapi_client_udm.api.settings_mswmifilter_api import SettingsMswmifilterApi +from openapi_client_udm.api.settings_packages_api import SettingsPackagesApi +from openapi_client_udm.api.settings_portal_api import SettingsPortalApi +from openapi_client_udm.api.settings_portal_all_api import SettingsPortalAllApi +from openapi_client_udm.api.settings_portal_category_api import SettingsPortalCategoryApi +from openapi_client_udm.api.settings_portal_entry_api import SettingsPortalEntryApi +from openapi_client_udm.api.settings_printermodel_api import SettingsPrintermodelApi +from openapi_client_udm.api.settings_printeruri_api import SettingsPrinteruriApi +from openapi_client_udm.api.settings_prohibited_username_api import SettingsProhibitedUsernameApi +from openapi_client_udm.api.settings_sambaconfig_api import SettingsSambaconfigApi +from openapi_client_udm.api.settings_sambadomain_api import SettingsSambadomainApi +from openapi_client_udm.api.settings_service_api import SettingsServiceApi +from openapi_client_udm.api.settings_settings_api import SettingsSettingsApi +from openapi_client_udm.api.settings_syntax_api import SettingsSyntaxApi +from openapi_client_udm.api.settings_udm_hook_api import SettingsUdmHookApi +from openapi_client_udm.api.settings_udm_module_api import SettingsUdmModuleApi +from openapi_client_udm.api.settings_udm_syntax_api import SettingsUdmSyntaxApi +from openapi_client_udm.api.settings_umc_operationset_api import SettingsUmcOperationsetApi +from openapi_client_udm.api.settings_usertemplate_api import SettingsUsertemplateApi +from openapi_client_udm.api.shares_print_api import SharesPrintApi +from openapi_client_udm.api.shares_printer_api import SharesPrinterApi +from openapi_client_udm.api.shares_printergroup_api import SharesPrintergroupApi +from openapi_client_udm.api.shares_share_api import SharesShareApi +from openapi_client_udm.api.users_contact_api import UsersContactApi +from openapi_client_udm.api.users_ldap_api import UsersLdapApi +from openapi_client_udm.api.users_passwd_api import UsersPasswdApi +from openapi_client_udm.api.users_self_api import UsersSelfApi +from openapi_client_udm.api.users_user_api import UsersUserApi +from openapi_client_udm.api.uvmm_cloudconnection_api import UvmmCloudconnectionApi +from openapi_client_udm.api.uvmm_cloudtype_api import UvmmCloudtypeApi +from openapi_client_udm.api.uvmm_info_api import UvmmInfoApi +from openapi_client_udm.api.uvmm_profile_api import UvmmProfileApi + +# import ApiClient +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.configuration import Configuration +from openapi_client_udm.exceptions import OpenApiException +from openapi_client_udm.exceptions import ApiTypeError +from openapi_client_udm.exceptions import ApiValueError +from openapi_client_udm.exceptions import ApiKeyError +from openapi_client_udm.exceptions import ApiAttributeError +from openapi_client_udm.exceptions import ApiException +# import models into sdk package +from openapi_client_udm.models.appcenter_app import AppcenterApp +from openapi_client_udm.models.appcenter_app_list import AppcenterAppList +from openapi_client_udm.models.appcenter_app_list_embedded import AppcenterAppListEmbedded +from openapi_client_udm.models.appcenter_app_policies import AppcenterAppPolicies +from openapi_client_udm.models.appcenter_app_request import AppcenterAppRequest +from openapi_client_udm.models.appcenter_app_request_all_of import AppcenterAppRequestAllOf +from openapi_client_udm.models.appcenter_app_request_patch import AppcenterAppRequestPatch +from openapi_client_udm.models.appcenter_app_response_mixin import AppcenterAppResponseMixin +from openapi_client_udm.models.computers_computer import ComputersComputer +from openapi_client_udm.models.computers_computer_list import ComputersComputerList +from openapi_client_udm.models.computers_computer_list_embedded import ComputersComputerListEmbedded +from openapi_client_udm.models.computers_computer_request import ComputersComputerRequest +from openapi_client_udm.models.computers_computer_request_patch import ComputersComputerRequestPatch +from openapi_client_udm.models.computers_computer_response_mixin import ComputersComputerResponseMixin +from openapi_client_udm.models.computers_domaincontroller_backup import ComputersDomaincontrollerBackup +from openapi_client_udm.models.computers_domaincontroller_backup_list import ComputersDomaincontrollerBackupList +from openapi_client_udm.models.computers_domaincontroller_backup_list_embedded import ComputersDomaincontrollerBackupListEmbedded +from openapi_client_udm.models.computers_domaincontroller_backup_options import ComputersDomaincontrollerBackupOptions +from openapi_client_udm.models.computers_domaincontroller_backup_policies import ComputersDomaincontrollerBackupPolicies +from openapi_client_udm.models.computers_domaincontroller_backup_request import ComputersDomaincontrollerBackupRequest +from openapi_client_udm.models.computers_domaincontroller_backup_request_patch import ComputersDomaincontrollerBackupRequestPatch +from openapi_client_udm.models.computers_domaincontroller_backup_response_mixin import ComputersDomaincontrollerBackupResponseMixin +from openapi_client_udm.models.computers_domaincontroller_master import ComputersDomaincontrollerMaster +from openapi_client_udm.models.computers_domaincontroller_master_list import ComputersDomaincontrollerMasterList +from openapi_client_udm.models.computers_domaincontroller_master_list_embedded import ComputersDomaincontrollerMasterListEmbedded +from openapi_client_udm.models.computers_domaincontroller_master_options import ComputersDomaincontrollerMasterOptions +from openapi_client_udm.models.computers_domaincontroller_master_policies import ComputersDomaincontrollerMasterPolicies +from openapi_client_udm.models.computers_domaincontroller_master_request import ComputersDomaincontrollerMasterRequest +from openapi_client_udm.models.computers_domaincontroller_master_request_patch import ComputersDomaincontrollerMasterRequestPatch +from openapi_client_udm.models.computers_domaincontroller_master_response_mixin import ComputersDomaincontrollerMasterResponseMixin +from openapi_client_udm.models.computers_domaincontroller_slave import ComputersDomaincontrollerSlave +from openapi_client_udm.models.computers_domaincontroller_slave_list import ComputersDomaincontrollerSlaveList +from openapi_client_udm.models.computers_domaincontroller_slave_list_embedded import ComputersDomaincontrollerSlaveListEmbedded +from openapi_client_udm.models.computers_domaincontroller_slave_options import ComputersDomaincontrollerSlaveOptions +from openapi_client_udm.models.computers_domaincontroller_slave_policies import ComputersDomaincontrollerSlavePolicies +from openapi_client_udm.models.computers_domaincontroller_slave_request import ComputersDomaincontrollerSlaveRequest +from openapi_client_udm.models.computers_domaincontroller_slave_request_patch import ComputersDomaincontrollerSlaveRequestPatch +from openapi_client_udm.models.computers_domaincontroller_slave_response_mixin import ComputersDomaincontrollerSlaveResponseMixin +from openapi_client_udm.models.computers_ipmanagedclient import ComputersIpmanagedclient +from openapi_client_udm.models.computers_ipmanagedclient_list import ComputersIpmanagedclientList +from openapi_client_udm.models.computers_ipmanagedclient_list_embedded import ComputersIpmanagedclientListEmbedded +from openapi_client_udm.models.computers_ipmanagedclient_options import ComputersIpmanagedclientOptions +from openapi_client_udm.models.computers_ipmanagedclient_request import ComputersIpmanagedclientRequest +from openapi_client_udm.models.computers_ipmanagedclient_request_patch import ComputersIpmanagedclientRequestPatch +from openapi_client_udm.models.computers_ipmanagedclient_response_mixin import ComputersIpmanagedclientResponseMixin +from openapi_client_udm.models.computers_linux import ComputersLinux +from openapi_client_udm.models.computers_linux_list import ComputersLinuxList +from openapi_client_udm.models.computers_linux_list_embedded import ComputersLinuxListEmbedded +from openapi_client_udm.models.computers_linux_options import ComputersLinuxOptions +from openapi_client_udm.models.computers_linux_request import ComputersLinuxRequest +from openapi_client_udm.models.computers_linux_request_patch import ComputersLinuxRequestPatch +from openapi_client_udm.models.computers_linux_response_mixin import ComputersLinuxResponseMixin +from openapi_client_udm.models.computers_macos import ComputersMacos +from openapi_client_udm.models.computers_macos_list import ComputersMacosList +from openapi_client_udm.models.computers_macos_list_embedded import ComputersMacosListEmbedded +from openapi_client_udm.models.computers_macos_options import ComputersMacosOptions +from openapi_client_udm.models.computers_macos_request import ComputersMacosRequest +from openapi_client_udm.models.computers_macos_request_patch import ComputersMacosRequestPatch +from openapi_client_udm.models.computers_macos_response_mixin import ComputersMacosResponseMixin +from openapi_client_udm.models.computers_memberserver import ComputersMemberserver +from openapi_client_udm.models.computers_memberserver_list import ComputersMemberserverList +from openapi_client_udm.models.computers_memberserver_list_embedded import ComputersMemberserverListEmbedded +from openapi_client_udm.models.computers_memberserver_options import ComputersMemberserverOptions +from openapi_client_udm.models.computers_memberserver_policies import ComputersMemberserverPolicies +from openapi_client_udm.models.computers_memberserver_request import ComputersMemberserverRequest +from openapi_client_udm.models.computers_memberserver_request_patch import ComputersMemberserverRequestPatch +from openapi_client_udm.models.computers_memberserver_response_mixin import ComputersMemberserverResponseMixin +from openapi_client_udm.models.computers_trustaccount import ComputersTrustaccount +from openapi_client_udm.models.computers_trustaccount_list import ComputersTrustaccountList +from openapi_client_udm.models.computers_trustaccount_list_embedded import ComputersTrustaccountListEmbedded +from openapi_client_udm.models.computers_trustaccount_options import ComputersTrustaccountOptions +from openapi_client_udm.models.computers_trustaccount_request import ComputersTrustaccountRequest +from openapi_client_udm.models.computers_trustaccount_request_patch import ComputersTrustaccountRequestPatch +from openapi_client_udm.models.computers_trustaccount_response_mixin import ComputersTrustaccountResponseMixin +from openapi_client_udm.models.computers_ubuntu import ComputersUbuntu +from openapi_client_udm.models.computers_ubuntu_list import ComputersUbuntuList +from openapi_client_udm.models.computers_ubuntu_list_embedded import ComputersUbuntuListEmbedded +from openapi_client_udm.models.computers_ubuntu_options import ComputersUbuntuOptions +from openapi_client_udm.models.computers_ubuntu_request import ComputersUbuntuRequest +from openapi_client_udm.models.computers_ubuntu_request_patch import ComputersUbuntuRequestPatch +from openapi_client_udm.models.computers_ubuntu_response_mixin import ComputersUbuntuResponseMixin +from openapi_client_udm.models.computers_windows import ComputersWindows +from openapi_client_udm.models.computers_windows_domaincontroller import ComputersWindowsDomaincontroller +from openapi_client_udm.models.computers_windows_domaincontroller_list import ComputersWindowsDomaincontrollerList +from openapi_client_udm.models.computers_windows_domaincontroller_list_embedded import ComputersWindowsDomaincontrollerListEmbedded +from openapi_client_udm.models.computers_windows_domaincontroller_options import ComputersWindowsDomaincontrollerOptions +from openapi_client_udm.models.computers_windows_domaincontroller_request import ComputersWindowsDomaincontrollerRequest +from openapi_client_udm.models.computers_windows_domaincontroller_request_patch import ComputersWindowsDomaincontrollerRequestPatch +from openapi_client_udm.models.computers_windows_domaincontroller_response_mixin import ComputersWindowsDomaincontrollerResponseMixin +from openapi_client_udm.models.computers_windows_list import ComputersWindowsList +from openapi_client_udm.models.computers_windows_list_embedded import ComputersWindowsListEmbedded +from openapi_client_udm.models.computers_windows_options import ComputersWindowsOptions +from openapi_client_udm.models.computers_windows_request import ComputersWindowsRequest +from openapi_client_udm.models.computers_windows_request_patch import ComputersWindowsRequestPatch +from openapi_client_udm.models.computers_windows_response_mixin import ComputersWindowsResponseMixin +from openapi_client_udm.models.container_cn import ContainerCn +from openapi_client_udm.models.container_cn_list import ContainerCnList +from openapi_client_udm.models.container_cn_list_embedded import ContainerCnListEmbedded +from openapi_client_udm.models.container_cn_policies import ContainerCnPolicies +from openapi_client_udm.models.container_cn_request import ContainerCnRequest +from openapi_client_udm.models.container_cn_request_patch import ContainerCnRequestPatch +from openapi_client_udm.models.container_cn_response_mixin import ContainerCnResponseMixin +from openapi_client_udm.models.container_dc import ContainerDc +from openapi_client_udm.models.container_dc_list import ContainerDcList +from openapi_client_udm.models.container_dc_list_embedded import ContainerDcListEmbedded +from openapi_client_udm.models.container_dc_options import ContainerDcOptions +from openapi_client_udm.models.container_dc_policies import ContainerDcPolicies +from openapi_client_udm.models.container_dc_request import ContainerDcRequest +from openapi_client_udm.models.container_dc_request_patch import ContainerDcRequestPatch +from openapi_client_udm.models.container_dc_response_mixin import ContainerDcResponseMixin +from openapi_client_udm.models.container_msgpo import ContainerMsgpo +from openapi_client_udm.models.container_msgpo_list import ContainerMsgpoList +from openapi_client_udm.models.container_msgpo_list_embedded import ContainerMsgpoListEmbedded +from openapi_client_udm.models.container_msgpo_policies import ContainerMsgpoPolicies +from openapi_client_udm.models.container_msgpo_request import ContainerMsgpoRequest +from openapi_client_udm.models.container_msgpo_request_patch import ContainerMsgpoRequestPatch +from openapi_client_udm.models.container_msgpo_response_mixin import ContainerMsgpoResponseMixin +from openapi_client_udm.models.container_ou import ContainerOu +from openapi_client_udm.models.container_ou_list import ContainerOuList +from openapi_client_udm.models.container_ou_list_embedded import ContainerOuListEmbedded +from openapi_client_udm.models.container_ou_policies import ContainerOuPolicies +from openapi_client_udm.models.container_ou_request import ContainerOuRequest +from openapi_client_udm.models.container_ou_request_patch import ContainerOuRequestPatch +from openapi_client_udm.models.container_ou_response_mixin import ContainerOuResponseMixin +from openapi_client_udm.models.dhcp_dhcp import DhcpDhcp +from openapi_client_udm.models.dhcp_dhcp_list import DhcpDhcpList +from openapi_client_udm.models.dhcp_dhcp_list_embedded import DhcpDhcpListEmbedded +from openapi_client_udm.models.dhcp_dhcp_request import DhcpDhcpRequest +from openapi_client_udm.models.dhcp_dhcp_request_patch import DhcpDhcpRequestPatch +from openapi_client_udm.models.dhcp_dhcp_response_mixin import DhcpDhcpResponseMixin +from openapi_client_udm.models.dhcp_host import DhcpHost +from openapi_client_udm.models.dhcp_host_list import DhcpHostList +from openapi_client_udm.models.dhcp_host_list_embedded import DhcpHostListEmbedded +from openapi_client_udm.models.dhcp_host_options import DhcpHostOptions +from openapi_client_udm.models.dhcp_host_policies import DhcpHostPolicies +from openapi_client_udm.models.dhcp_host_request import DhcpHostRequest +from openapi_client_udm.models.dhcp_host_request_patch import DhcpHostRequestPatch +from openapi_client_udm.models.dhcp_host_response_mixin import DhcpHostResponseMixin +from openapi_client_udm.models.dhcp_pool import DhcpPool +from openapi_client_udm.models.dhcp_pool_list import DhcpPoolList +from openapi_client_udm.models.dhcp_pool_list_embedded import DhcpPoolListEmbedded +from openapi_client_udm.models.dhcp_pool_options import DhcpPoolOptions +from openapi_client_udm.models.dhcp_pool_policies import DhcpPoolPolicies +from openapi_client_udm.models.dhcp_pool_request import DhcpPoolRequest +from openapi_client_udm.models.dhcp_pool_request_patch import DhcpPoolRequestPatch +from openapi_client_udm.models.dhcp_pool_response_mixin import DhcpPoolResponseMixin +from openapi_client_udm.models.dhcp_server import DhcpServer +from openapi_client_udm.models.dhcp_server_list import DhcpServerList +from openapi_client_udm.models.dhcp_server_list_embedded import DhcpServerListEmbedded +from openapi_client_udm.models.dhcp_server_request import DhcpServerRequest +from openapi_client_udm.models.dhcp_server_request_patch import DhcpServerRequestPatch +from openapi_client_udm.models.dhcp_server_response_mixin import DhcpServerResponseMixin +from openapi_client_udm.models.dhcp_service import DhcpService +from openapi_client_udm.models.dhcp_service_list import DhcpServiceList +from openapi_client_udm.models.dhcp_service_list_embedded import DhcpServiceListEmbedded +from openapi_client_udm.models.dhcp_service_options import DhcpServiceOptions +from openapi_client_udm.models.dhcp_service_policies import DhcpServicePolicies +from openapi_client_udm.models.dhcp_service_request import DhcpServiceRequest +from openapi_client_udm.models.dhcp_service_request_patch import DhcpServiceRequestPatch +from openapi_client_udm.models.dhcp_service_response_mixin import DhcpServiceResponseMixin +from openapi_client_udm.models.dhcp_shared import DhcpShared +from openapi_client_udm.models.dhcp_shared_list import DhcpSharedList +from openapi_client_udm.models.dhcp_shared_list_embedded import DhcpSharedListEmbedded +from openapi_client_udm.models.dhcp_shared_options import DhcpSharedOptions +from openapi_client_udm.models.dhcp_shared_policies import DhcpSharedPolicies +from openapi_client_udm.models.dhcp_shared_request import DhcpSharedRequest +from openapi_client_udm.models.dhcp_shared_request_patch import DhcpSharedRequestPatch +from openapi_client_udm.models.dhcp_shared_response_mixin import DhcpSharedResponseMixin +from openapi_client_udm.models.dhcp_sharedsubnet import DhcpSharedsubnet +from openapi_client_udm.models.dhcp_sharedsubnet_list import DhcpSharedsubnetList +from openapi_client_udm.models.dhcp_sharedsubnet_list_embedded import DhcpSharedsubnetListEmbedded +from openapi_client_udm.models.dhcp_sharedsubnet_options import DhcpSharedsubnetOptions +from openapi_client_udm.models.dhcp_sharedsubnet_policies import DhcpSharedsubnetPolicies +from openapi_client_udm.models.dhcp_sharedsubnet_request import DhcpSharedsubnetRequest +from openapi_client_udm.models.dhcp_sharedsubnet_request_patch import DhcpSharedsubnetRequestPatch +from openapi_client_udm.models.dhcp_sharedsubnet_response_mixin import DhcpSharedsubnetResponseMixin +from openapi_client_udm.models.dhcp_subnet import DhcpSubnet +from openapi_client_udm.models.dhcp_subnet_list import DhcpSubnetList +from openapi_client_udm.models.dhcp_subnet_list_embedded import DhcpSubnetListEmbedded +from openapi_client_udm.models.dhcp_subnet_options import DhcpSubnetOptions +from openapi_client_udm.models.dhcp_subnet_policies import DhcpSubnetPolicies +from openapi_client_udm.models.dhcp_subnet_request import DhcpSubnetRequest +from openapi_client_udm.models.dhcp_subnet_request_patch import DhcpSubnetRequestPatch +from openapi_client_udm.models.dhcp_subnet_response_mixin import DhcpSubnetResponseMixin +from openapi_client_udm.models.dns_alias import DnsAlias +from openapi_client_udm.models.dns_alias_list import DnsAliasList +from openapi_client_udm.models.dns_alias_list_embedded import DnsAliasListEmbedded +from openapi_client_udm.models.dns_alias_request import DnsAliasRequest +from openapi_client_udm.models.dns_alias_request_patch import DnsAliasRequestPatch +from openapi_client_udm.models.dns_alias_response_mixin import DnsAliasResponseMixin +from openapi_client_udm.models.dns_dns import DnsDns +from openapi_client_udm.models.dns_dns_list import DnsDnsList +from openapi_client_udm.models.dns_dns_list_embedded import DnsDnsListEmbedded +from openapi_client_udm.models.dns_dns_request import DnsDnsRequest +from openapi_client_udm.models.dns_dns_request_patch import DnsDnsRequestPatch +from openapi_client_udm.models.dns_dns_response_mixin import DnsDnsResponseMixin +from openapi_client_udm.models.dns_forward_zone import DnsForwardZone +from openapi_client_udm.models.dns_forward_zone_list import DnsForwardZoneList +from openapi_client_udm.models.dns_forward_zone_list_embedded import DnsForwardZoneListEmbedded +from openapi_client_udm.models.dns_forward_zone_policies import DnsForwardZonePolicies +from openapi_client_udm.models.dns_forward_zone_request import DnsForwardZoneRequest +from openapi_client_udm.models.dns_forward_zone_request_patch import DnsForwardZoneRequestPatch +from openapi_client_udm.models.dns_forward_zone_response_mixin import DnsForwardZoneResponseMixin +from openapi_client_udm.models.dns_host_record import DnsHostRecord +from openapi_client_udm.models.dns_host_record_list import DnsHostRecordList +from openapi_client_udm.models.dns_host_record_list_embedded import DnsHostRecordListEmbedded +from openapi_client_udm.models.dns_host_record_request import DnsHostRecordRequest +from openapi_client_udm.models.dns_host_record_request_patch import DnsHostRecordRequestPatch +from openapi_client_udm.models.dns_host_record_response_mixin import DnsHostRecordResponseMixin +from openapi_client_udm.models.dns_ns_record import DnsNsRecord +from openapi_client_udm.models.dns_ns_record_list import DnsNsRecordList +from openapi_client_udm.models.dns_ns_record_list_embedded import DnsNsRecordListEmbedded +from openapi_client_udm.models.dns_ns_record_request import DnsNsRecordRequest +from openapi_client_udm.models.dns_ns_record_request_patch import DnsNsRecordRequestPatch +from openapi_client_udm.models.dns_ns_record_response_mixin import DnsNsRecordResponseMixin +from openapi_client_udm.models.dns_ptr_record import DnsPtrRecord +from openapi_client_udm.models.dns_ptr_record_list import DnsPtrRecordList +from openapi_client_udm.models.dns_ptr_record_list_embedded import DnsPtrRecordListEmbedded +from openapi_client_udm.models.dns_ptr_record_request import DnsPtrRecordRequest +from openapi_client_udm.models.dns_ptr_record_request_patch import DnsPtrRecordRequestPatch +from openapi_client_udm.models.dns_ptr_record_response_mixin import DnsPtrRecordResponseMixin +from openapi_client_udm.models.dns_reverse_zone import DnsReverseZone +from openapi_client_udm.models.dns_reverse_zone_list import DnsReverseZoneList +from openapi_client_udm.models.dns_reverse_zone_list_embedded import DnsReverseZoneListEmbedded +from openapi_client_udm.models.dns_reverse_zone_policies import DnsReverseZonePolicies +from openapi_client_udm.models.dns_reverse_zone_request import DnsReverseZoneRequest +from openapi_client_udm.models.dns_reverse_zone_request_patch import DnsReverseZoneRequestPatch +from openapi_client_udm.models.dns_reverse_zone_response_mixin import DnsReverseZoneResponseMixin +from openapi_client_udm.models.dns_srv_record import DnsSrvRecord +from openapi_client_udm.models.dns_srv_record_list import DnsSrvRecordList +from openapi_client_udm.models.dns_srv_record_list_embedded import DnsSrvRecordListEmbedded +from openapi_client_udm.models.dns_srv_record_request import DnsSrvRecordRequest +from openapi_client_udm.models.dns_srv_record_request_patch import DnsSrvRecordRequestPatch +from openapi_client_udm.models.dns_srv_record_response_mixin import DnsSrvRecordResponseMixin +from openapi_client_udm.models.dns_txt_record import DnsTxtRecord +from openapi_client_udm.models.dns_txt_record_list import DnsTxtRecordList +from openapi_client_udm.models.dns_txt_record_list_embedded import DnsTxtRecordListEmbedded +from openapi_client_udm.models.dns_txt_record_request import DnsTxtRecordRequest +from openapi_client_udm.models.dns_txt_record_request_patch import DnsTxtRecordRequestPatch +from openapi_client_udm.models.dns_txt_record_response_mixin import DnsTxtRecordResponseMixin +from openapi_client_udm.models.embedded_error import EmbeddedError +from openapi_client_udm.models.groups_group import GroupsGroup +from openapi_client_udm.models.groups_group_list import GroupsGroupList +from openapi_client_udm.models.groups_group_list_embedded import GroupsGroupListEmbedded +from openapi_client_udm.models.groups_group_options import GroupsGroupOptions +from openapi_client_udm.models.groups_group_policies import GroupsGroupPolicies +from openapi_client_udm.models.groups_group_request import GroupsGroupRequest +from openapi_client_udm.models.groups_group_request_patch import GroupsGroupRequestPatch +from openapi_client_udm.models.groups_group_response_mixin import GroupsGroupResponseMixin +from openapi_client_udm.models.inline_response201 import InlineResponse201 +from openapi_client_udm.models.kerberos_kdcentry import KerberosKdcentry +from openapi_client_udm.models.kerberos_kdcentry_list import KerberosKdcentryList +from openapi_client_udm.models.kerberos_kdcentry_list_embedded import KerberosKdcentryListEmbedded +from openapi_client_udm.models.kerberos_kdcentry_request import KerberosKdcentryRequest +from openapi_client_udm.models.kerberos_kdcentry_request_patch import KerberosKdcentryRequestPatch +from openapi_client_udm.models.kerberos_kdcentry_response_mixin import KerberosKdcentryResponseMixin +from openapi_client_udm.models.links import Links +from openapi_client_udm.models.mail_domain import MailDomain +from openapi_client_udm.models.mail_domain_list import MailDomainList +from openapi_client_udm.models.mail_domain_list_embedded import MailDomainListEmbedded +from openapi_client_udm.models.mail_domain_request import MailDomainRequest +from openapi_client_udm.models.mail_domain_request_patch import MailDomainRequestPatch +from openapi_client_udm.models.mail_domain_response_mixin import MailDomainResponseMixin +from openapi_client_udm.models.mail_folder import MailFolder +from openapi_client_udm.models.mail_folder_list import MailFolderList +from openapi_client_udm.models.mail_folder_list_embedded import MailFolderListEmbedded +from openapi_client_udm.models.mail_folder_request import MailFolderRequest +from openapi_client_udm.models.mail_folder_request_patch import MailFolderRequestPatch +from openapi_client_udm.models.mail_folder_response_mixin import MailFolderResponseMixin +from openapi_client_udm.models.mail_lists import MailLists +from openapi_client_udm.models.mail_lists_list import MailListsList +from openapi_client_udm.models.mail_lists_list_embedded import MailListsListEmbedded +from openapi_client_udm.models.mail_lists_request import MailListsRequest +from openapi_client_udm.models.mail_lists_request_patch import MailListsRequestPatch +from openapi_client_udm.models.mail_lists_response_mixin import MailListsResponseMixin +from openapi_client_udm.models.mail_mail import MailMail +from openapi_client_udm.models.mail_mail_list import MailMailList +from openapi_client_udm.models.mail_mail_list_embedded import MailMailListEmbedded +from openapi_client_udm.models.mail_mail_request import MailMailRequest +from openapi_client_udm.models.mail_mail_request_patch import MailMailRequestPatch +from openapi_client_udm.models.mail_mail_response_mixin import MailMailResponseMixin +from openapi_client_udm.models.monitoring_alert import MonitoringAlert +from openapi_client_udm.models.monitoring_alert_list import MonitoringAlertList +from openapi_client_udm.models.monitoring_alert_list_embedded import MonitoringAlertListEmbedded +from openapi_client_udm.models.monitoring_alert_request import MonitoringAlertRequest +from openapi_client_udm.models.monitoring_alert_request_patch import MonitoringAlertRequestPatch +from openapi_client_udm.models.monitoring_alert_response_mixin import MonitoringAlertResponseMixin +from openapi_client_udm.models.ms_domainpolicy import MsDomainpolicy +from openapi_client_udm.models.ms_domainpolicy_list import MsDomainpolicyList +from openapi_client_udm.models.ms_domainpolicy_list_embedded import MsDomainpolicyListEmbedded +from openapi_client_udm.models.ms_domainpolicy_policies import MsDomainpolicyPolicies +from openapi_client_udm.models.ms_domainpolicy_request import MsDomainpolicyRequest +from openapi_client_udm.models.ms_domainpolicy_request_patch import MsDomainpolicyRequestPatch +from openapi_client_udm.models.ms_domainpolicy_response_mixin import MsDomainpolicyResponseMixin +from openapi_client_udm.models.ms_gpipsec_filter import MsGpipsecFilter +from openapi_client_udm.models.ms_gpipsec_filter_list import MsGpipsecFilterList +from openapi_client_udm.models.ms_gpipsec_filter_list_embedded import MsGpipsecFilterListEmbedded +from openapi_client_udm.models.ms_gpipsec_filter_policies import MsGpipsecFilterPolicies +from openapi_client_udm.models.ms_gpipsec_filter_request import MsGpipsecFilterRequest +from openapi_client_udm.models.ms_gpipsec_filter_request_patch import MsGpipsecFilterRequestPatch +from openapi_client_udm.models.ms_gpipsec_filter_response_mixin import MsGpipsecFilterResponseMixin +from openapi_client_udm.models.ms_gpipsec_isakmp_policy import MsGpipsecIsakmpPolicy +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_list import MsGpipsecIsakmpPolicyList +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_list_embedded import MsGpipsecIsakmpPolicyListEmbedded +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_policies import MsGpipsecIsakmpPolicyPolicies +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_request import MsGpipsecIsakmpPolicyRequest +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_request_patch import MsGpipsecIsakmpPolicyRequestPatch +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_response_mixin import MsGpipsecIsakmpPolicyResponseMixin +from openapi_client_udm.models.ms_gpipsec_negotiation_policy import MsGpipsecNegotiationPolicy +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_list import MsGpipsecNegotiationPolicyList +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_list_embedded import MsGpipsecNegotiationPolicyListEmbedded +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_policies import MsGpipsecNegotiationPolicyPolicies +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_request import MsGpipsecNegotiationPolicyRequest +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_request_patch import MsGpipsecNegotiationPolicyRequestPatch +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_response_mixin import MsGpipsecNegotiationPolicyResponseMixin +from openapi_client_udm.models.ms_gpipsec_nfa import MsGpipsecNfa +from openapi_client_udm.models.ms_gpipsec_nfa_list import MsGpipsecNfaList +from openapi_client_udm.models.ms_gpipsec_nfa_list_embedded import MsGpipsecNfaListEmbedded +from openapi_client_udm.models.ms_gpipsec_nfa_policies import MsGpipsecNfaPolicies +from openapi_client_udm.models.ms_gpipsec_nfa_request import MsGpipsecNfaRequest +from openapi_client_udm.models.ms_gpipsec_nfa_request_patch import MsGpipsecNfaRequestPatch +from openapi_client_udm.models.ms_gpipsec_nfa_response_mixin import MsGpipsecNfaResponseMixin +from openapi_client_udm.models.ms_gpipsec_policy import MsGpipsecPolicy +from openapi_client_udm.models.ms_gpipsec_policy_list import MsGpipsecPolicyList +from openapi_client_udm.models.ms_gpipsec_policy_list_embedded import MsGpipsecPolicyListEmbedded +from openapi_client_udm.models.ms_gpipsec_policy_policies import MsGpipsecPolicyPolicies +from openapi_client_udm.models.ms_gpipsec_policy_request import MsGpipsecPolicyRequest +from openapi_client_udm.models.ms_gpipsec_policy_request_patch import MsGpipsecPolicyRequestPatch +from openapi_client_udm.models.ms_gpipsec_policy_response_mixin import MsGpipsecPolicyResponseMixin +from openapi_client_udm.models.ms_gpsi_category_registration import MsGpsiCategoryRegistration +from openapi_client_udm.models.ms_gpsi_category_registration_list import MsGpsiCategoryRegistrationList +from openapi_client_udm.models.ms_gpsi_category_registration_list_embedded import MsGpsiCategoryRegistrationListEmbedded +from openapi_client_udm.models.ms_gpsi_category_registration_policies import MsGpsiCategoryRegistrationPolicies +from openapi_client_udm.models.ms_gpsi_category_registration_request import MsGpsiCategoryRegistrationRequest +from openapi_client_udm.models.ms_gpsi_category_registration_request_patch import MsGpsiCategoryRegistrationRequestPatch +from openapi_client_udm.models.ms_gpsi_category_registration_response_mixin import MsGpsiCategoryRegistrationResponseMixin +from openapi_client_udm.models.ms_gpsi_class_store import MsGpsiClassStore +from openapi_client_udm.models.ms_gpsi_class_store_list import MsGpsiClassStoreList +from openapi_client_udm.models.ms_gpsi_class_store_list_embedded import MsGpsiClassStoreListEmbedded +from openapi_client_udm.models.ms_gpsi_class_store_policies import MsGpsiClassStorePolicies +from openapi_client_udm.models.ms_gpsi_class_store_request import MsGpsiClassStoreRequest +from openapi_client_udm.models.ms_gpsi_class_store_request_patch import MsGpsiClassStoreRequestPatch +from openapi_client_udm.models.ms_gpsi_class_store_response_mixin import MsGpsiClassStoreResponseMixin +from openapi_client_udm.models.ms_gpsi_package_registration import MsGpsiPackageRegistration +from openapi_client_udm.models.ms_gpsi_package_registration_list import MsGpsiPackageRegistrationList +from openapi_client_udm.models.ms_gpsi_package_registration_list_embedded import MsGpsiPackageRegistrationListEmbedded +from openapi_client_udm.models.ms_gpsi_package_registration_policies import MsGpsiPackageRegistrationPolicies +from openapi_client_udm.models.ms_gpsi_package_registration_request import MsGpsiPackageRegistrationRequest +from openapi_client_udm.models.ms_gpsi_package_registration_request_patch import MsGpsiPackageRegistrationRequestPatch +from openapi_client_udm.models.ms_gpsi_package_registration_response_mixin import MsGpsiPackageRegistrationResponseMixin +from openapi_client_udm.models.ms_gpwl_wired import MsGpwlWired +from openapi_client_udm.models.ms_gpwl_wired_list import MsGpwlWiredList +from openapi_client_udm.models.ms_gpwl_wired_list_embedded import MsGpwlWiredListEmbedded +from openapi_client_udm.models.ms_gpwl_wired_policies import MsGpwlWiredPolicies +from openapi_client_udm.models.ms_gpwl_wired_request import MsGpwlWiredRequest +from openapi_client_udm.models.ms_gpwl_wired_request_patch import MsGpwlWiredRequestPatch +from openapi_client_udm.models.ms_gpwl_wired_response_mixin import MsGpwlWiredResponseMixin +from openapi_client_udm.models.ms_gpwl_wireless import MsGpwlWireless +from openapi_client_udm.models.ms_gpwl_wireless_blob import MsGpwlWirelessBlob +from openapi_client_udm.models.ms_gpwl_wireless_blob_list import MsGpwlWirelessBlobList +from openapi_client_udm.models.ms_gpwl_wireless_blob_list_embedded import MsGpwlWirelessBlobListEmbedded +from openapi_client_udm.models.ms_gpwl_wireless_blob_policies import MsGpwlWirelessBlobPolicies +from openapi_client_udm.models.ms_gpwl_wireless_blob_request import MsGpwlWirelessBlobRequest +from openapi_client_udm.models.ms_gpwl_wireless_blob_request_patch import MsGpwlWirelessBlobRequestPatch +from openapi_client_udm.models.ms_gpwl_wireless_blob_response_mixin import MsGpwlWirelessBlobResponseMixin +from openapi_client_udm.models.ms_gpwl_wireless_list import MsGpwlWirelessList +from openapi_client_udm.models.ms_gpwl_wireless_list_embedded import MsGpwlWirelessListEmbedded +from openapi_client_udm.models.ms_gpwl_wireless_policies import MsGpwlWirelessPolicies +from openapi_client_udm.models.ms_gpwl_wireless_request import MsGpwlWirelessRequest +from openapi_client_udm.models.ms_gpwl_wireless_request_patch import MsGpwlWirelessRequestPatch +from openapi_client_udm.models.ms_gpwl_wireless_response_mixin import MsGpwlWirelessResponseMixin +from openapi_client_udm.models.nagios_nagios import NagiosNagios +from openapi_client_udm.models.nagios_nagios_list import NagiosNagiosList +from openapi_client_udm.models.nagios_nagios_list_embedded import NagiosNagiosListEmbedded +from openapi_client_udm.models.nagios_nagios_request import NagiosNagiosRequest +from openapi_client_udm.models.nagios_nagios_request_patch import NagiosNagiosRequestPatch +from openapi_client_udm.models.nagios_nagios_response_mixin import NagiosNagiosResponseMixin +from openapi_client_udm.models.nagios_service import NagiosService +from openapi_client_udm.models.nagios_service_list import NagiosServiceList +from openapi_client_udm.models.nagios_service_list_embedded import NagiosServiceListEmbedded +from openapi_client_udm.models.nagios_service_request import NagiosServiceRequest +from openapi_client_udm.models.nagios_service_request_patch import NagiosServiceRequestPatch +from openapi_client_udm.models.nagios_service_response_mixin import NagiosServiceResponseMixin +from openapi_client_udm.models.nagios_timeperiod import NagiosTimeperiod +from openapi_client_udm.models.nagios_timeperiod_list import NagiosTimeperiodList +from openapi_client_udm.models.nagios_timeperiod_list_embedded import NagiosTimeperiodListEmbedded +from openapi_client_udm.models.nagios_timeperiod_request import NagiosTimeperiodRequest +from openapi_client_udm.models.nagios_timeperiod_request_patch import NagiosTimeperiodRequestPatch +from openapi_client_udm.models.nagios_timeperiod_response_mixin import NagiosTimeperiodResponseMixin +from openapi_client_udm.models.networks_network import NetworksNetwork +from openapi_client_udm.models.networks_network_list import NetworksNetworkList +from openapi_client_udm.models.networks_network_list_embedded import NetworksNetworkListEmbedded +from openapi_client_udm.models.networks_network_request import NetworksNetworkRequest +from openapi_client_udm.models.networks_network_request_patch import NetworksNetworkRequestPatch +from openapi_client_udm.models.networks_network_response_mixin import NetworksNetworkResponseMixin +from openapi_client_udm.models.policies_admin_container import PoliciesAdminContainer +from openapi_client_udm.models.policies_admin_container_list import PoliciesAdminContainerList +from openapi_client_udm.models.policies_admin_container_list_embedded import PoliciesAdminContainerListEmbedded +from openapi_client_udm.models.policies_admin_container_request import PoliciesAdminContainerRequest +from openapi_client_udm.models.policies_admin_container_request_patch import PoliciesAdminContainerRequestPatch +from openapi_client_udm.models.policies_admin_container_response_mixin import PoliciesAdminContainerResponseMixin +from openapi_client_udm.models.policies_desktop import PoliciesDesktop +from openapi_client_udm.models.policies_desktop_list import PoliciesDesktopList +from openapi_client_udm.models.policies_desktop_list_embedded import PoliciesDesktopListEmbedded +from openapi_client_udm.models.policies_desktop_request import PoliciesDesktopRequest +from openapi_client_udm.models.policies_desktop_request_patch import PoliciesDesktopRequestPatch +from openapi_client_udm.models.policies_desktop_response_mixin import PoliciesDesktopResponseMixin +from openapi_client_udm.models.policies_dhcp_boot import PoliciesDhcpBoot +from openapi_client_udm.models.policies_dhcp_boot_list import PoliciesDhcpBootList +from openapi_client_udm.models.policies_dhcp_boot_list_embedded import PoliciesDhcpBootListEmbedded +from openapi_client_udm.models.policies_dhcp_boot_request import PoliciesDhcpBootRequest +from openapi_client_udm.models.policies_dhcp_boot_request_patch import PoliciesDhcpBootRequestPatch +from openapi_client_udm.models.policies_dhcp_boot_response_mixin import PoliciesDhcpBootResponseMixin +from openapi_client_udm.models.policies_dhcp_dns import PoliciesDhcpDns +from openapi_client_udm.models.policies_dhcp_dns_list import PoliciesDhcpDnsList +from openapi_client_udm.models.policies_dhcp_dns_list_embedded import PoliciesDhcpDnsListEmbedded +from openapi_client_udm.models.policies_dhcp_dns_request import PoliciesDhcpDnsRequest +from openapi_client_udm.models.policies_dhcp_dns_request_patch import PoliciesDhcpDnsRequestPatch +from openapi_client_udm.models.policies_dhcp_dns_response_mixin import PoliciesDhcpDnsResponseMixin +from openapi_client_udm.models.policies_dhcp_dnsupdate import PoliciesDhcpDnsupdate +from openapi_client_udm.models.policies_dhcp_dnsupdate_list import PoliciesDhcpDnsupdateList +from openapi_client_udm.models.policies_dhcp_dnsupdate_list_embedded import PoliciesDhcpDnsupdateListEmbedded +from openapi_client_udm.models.policies_dhcp_dnsupdate_request import PoliciesDhcpDnsupdateRequest +from openapi_client_udm.models.policies_dhcp_dnsupdate_request_patch import PoliciesDhcpDnsupdateRequestPatch +from openapi_client_udm.models.policies_dhcp_dnsupdate_response_mixin import PoliciesDhcpDnsupdateResponseMixin +from openapi_client_udm.models.policies_dhcp_leasetime import PoliciesDhcpLeasetime +from openapi_client_udm.models.policies_dhcp_leasetime_list import PoliciesDhcpLeasetimeList +from openapi_client_udm.models.policies_dhcp_leasetime_list_embedded import PoliciesDhcpLeasetimeListEmbedded +from openapi_client_udm.models.policies_dhcp_leasetime_request import PoliciesDhcpLeasetimeRequest +from openapi_client_udm.models.policies_dhcp_leasetime_request_patch import PoliciesDhcpLeasetimeRequestPatch +from openapi_client_udm.models.policies_dhcp_leasetime_response_mixin import PoliciesDhcpLeasetimeResponseMixin +from openapi_client_udm.models.policies_dhcp_netbios import PoliciesDhcpNetbios +from openapi_client_udm.models.policies_dhcp_netbios_list import PoliciesDhcpNetbiosList +from openapi_client_udm.models.policies_dhcp_netbios_list_embedded import PoliciesDhcpNetbiosListEmbedded +from openapi_client_udm.models.policies_dhcp_netbios_request import PoliciesDhcpNetbiosRequest +from openapi_client_udm.models.policies_dhcp_netbios_request_patch import PoliciesDhcpNetbiosRequestPatch +from openapi_client_udm.models.policies_dhcp_netbios_response_mixin import PoliciesDhcpNetbiosResponseMixin +from openapi_client_udm.models.policies_dhcp_routing import PoliciesDhcpRouting +from openapi_client_udm.models.policies_dhcp_routing_list import PoliciesDhcpRoutingList +from openapi_client_udm.models.policies_dhcp_routing_list_embedded import PoliciesDhcpRoutingListEmbedded +from openapi_client_udm.models.policies_dhcp_routing_request import PoliciesDhcpRoutingRequest +from openapi_client_udm.models.policies_dhcp_routing_request_patch import PoliciesDhcpRoutingRequestPatch +from openapi_client_udm.models.policies_dhcp_routing_response_mixin import PoliciesDhcpRoutingResponseMixin +from openapi_client_udm.models.policies_dhcp_scope import PoliciesDhcpScope +from openapi_client_udm.models.policies_dhcp_scope_list import PoliciesDhcpScopeList +from openapi_client_udm.models.policies_dhcp_scope_list_embedded import PoliciesDhcpScopeListEmbedded +from openapi_client_udm.models.policies_dhcp_scope_request import PoliciesDhcpScopeRequest +from openapi_client_udm.models.policies_dhcp_scope_request_patch import PoliciesDhcpScopeRequestPatch +from openapi_client_udm.models.policies_dhcp_scope_response_mixin import PoliciesDhcpScopeResponseMixin +from openapi_client_udm.models.policies_dhcp_statements import PoliciesDhcpStatements +from openapi_client_udm.models.policies_dhcp_statements_list import PoliciesDhcpStatementsList +from openapi_client_udm.models.policies_dhcp_statements_list_embedded import PoliciesDhcpStatementsListEmbedded +from openapi_client_udm.models.policies_dhcp_statements_request import PoliciesDhcpStatementsRequest +from openapi_client_udm.models.policies_dhcp_statements_request_patch import PoliciesDhcpStatementsRequestPatch +from openapi_client_udm.models.policies_dhcp_statements_response_mixin import PoliciesDhcpStatementsResponseMixin +from openapi_client_udm.models.policies_ldapserver import PoliciesLdapserver +from openapi_client_udm.models.policies_ldapserver_list import PoliciesLdapserverList +from openapi_client_udm.models.policies_ldapserver_list_embedded import PoliciesLdapserverListEmbedded +from openapi_client_udm.models.policies_ldapserver_request import PoliciesLdapserverRequest +from openapi_client_udm.models.policies_ldapserver_request_patch import PoliciesLdapserverRequestPatch +from openapi_client_udm.models.policies_ldapserver_response_mixin import PoliciesLdapserverResponseMixin +from openapi_client_udm.models.policies_maintenance import PoliciesMaintenance +from openapi_client_udm.models.policies_maintenance_list import PoliciesMaintenanceList +from openapi_client_udm.models.policies_maintenance_list_embedded import PoliciesMaintenanceListEmbedded +from openapi_client_udm.models.policies_maintenance_request import PoliciesMaintenanceRequest +from openapi_client_udm.models.policies_maintenance_request_patch import PoliciesMaintenanceRequestPatch +from openapi_client_udm.models.policies_maintenance_response_mixin import PoliciesMaintenanceResponseMixin +from openapi_client_udm.models.policies_masterpackages import PoliciesMasterpackages +from openapi_client_udm.models.policies_masterpackages_list import PoliciesMasterpackagesList +from openapi_client_udm.models.policies_masterpackages_list_embedded import PoliciesMasterpackagesListEmbedded +from openapi_client_udm.models.policies_masterpackages_request import PoliciesMasterpackagesRequest +from openapi_client_udm.models.policies_masterpackages_request_patch import PoliciesMasterpackagesRequestPatch +from openapi_client_udm.models.policies_masterpackages_response_mixin import PoliciesMasterpackagesResponseMixin +from openapi_client_udm.models.policies_memberpackages import PoliciesMemberpackages +from openapi_client_udm.models.policies_memberpackages_list import PoliciesMemberpackagesList +from openapi_client_udm.models.policies_memberpackages_list_embedded import PoliciesMemberpackagesListEmbedded +from openapi_client_udm.models.policies_memberpackages_request import PoliciesMemberpackagesRequest +from openapi_client_udm.models.policies_memberpackages_request_patch import PoliciesMemberpackagesRequestPatch +from openapi_client_udm.models.policies_memberpackages_response_mixin import PoliciesMemberpackagesResponseMixin +from openapi_client_udm.models.policies_nfsmounts import PoliciesNfsmounts +from openapi_client_udm.models.policies_nfsmounts_list import PoliciesNfsmountsList +from openapi_client_udm.models.policies_nfsmounts_list_embedded import PoliciesNfsmountsListEmbedded +from openapi_client_udm.models.policies_nfsmounts_request import PoliciesNfsmountsRequest +from openapi_client_udm.models.policies_nfsmounts_request_patch import PoliciesNfsmountsRequestPatch +from openapi_client_udm.models.policies_nfsmounts_response_mixin import PoliciesNfsmountsResponseMixin +from openapi_client_udm.models.policies_policy import PoliciesPolicy +from openapi_client_udm.models.policies_policy_list import PoliciesPolicyList +from openapi_client_udm.models.policies_policy_list_embedded import PoliciesPolicyListEmbedded +from openapi_client_udm.models.policies_policy_request import PoliciesPolicyRequest +from openapi_client_udm.models.policies_policy_request_patch import PoliciesPolicyRequestPatch +from openapi_client_udm.models.policies_policy_response_mixin import PoliciesPolicyResponseMixin +from openapi_client_udm.models.policies_printserver import PoliciesPrintserver +from openapi_client_udm.models.policies_printserver_list import PoliciesPrintserverList +from openapi_client_udm.models.policies_printserver_list_embedded import PoliciesPrintserverListEmbedded +from openapi_client_udm.models.policies_printserver_request import PoliciesPrintserverRequest +from openapi_client_udm.models.policies_printserver_request_patch import PoliciesPrintserverRequestPatch +from openapi_client_udm.models.policies_printserver_response_mixin import PoliciesPrintserverResponseMixin +from openapi_client_udm.models.policies_pwhistory import PoliciesPwhistory +from openapi_client_udm.models.policies_pwhistory_list import PoliciesPwhistoryList +from openapi_client_udm.models.policies_pwhistory_list_embedded import PoliciesPwhistoryListEmbedded +from openapi_client_udm.models.policies_pwhistory_request import PoliciesPwhistoryRequest +from openapi_client_udm.models.policies_pwhistory_request_patch import PoliciesPwhistoryRequestPatch +from openapi_client_udm.models.policies_pwhistory_response_mixin import PoliciesPwhistoryResponseMixin +from openapi_client_udm.models.policies_registry import PoliciesRegistry +from openapi_client_udm.models.policies_registry_list import PoliciesRegistryList +from openapi_client_udm.models.policies_registry_list_embedded import PoliciesRegistryListEmbedded +from openapi_client_udm.models.policies_registry_request import PoliciesRegistryRequest +from openapi_client_udm.models.policies_registry_request_patch import PoliciesRegistryRequestPatch +from openapi_client_udm.models.policies_registry_response_mixin import PoliciesRegistryResponseMixin +from openapi_client_udm.models.policies_release import PoliciesRelease +from openapi_client_udm.models.policies_release_list import PoliciesReleaseList +from openapi_client_udm.models.policies_release_list_embedded import PoliciesReleaseListEmbedded +from openapi_client_udm.models.policies_release_request import PoliciesReleaseRequest +from openapi_client_udm.models.policies_release_request_patch import PoliciesReleaseRequestPatch +from openapi_client_udm.models.policies_release_response_mixin import PoliciesReleaseResponseMixin +from openapi_client_udm.models.policies_repositoryserver import PoliciesRepositoryserver +from openapi_client_udm.models.policies_repositoryserver_list import PoliciesRepositoryserverList +from openapi_client_udm.models.policies_repositoryserver_list_embedded import PoliciesRepositoryserverListEmbedded +from openapi_client_udm.models.policies_repositoryserver_request import PoliciesRepositoryserverRequest +from openapi_client_udm.models.policies_repositoryserver_request_patch import PoliciesRepositoryserverRequestPatch +from openapi_client_udm.models.policies_repositoryserver_response_mixin import PoliciesRepositoryserverResponseMixin +from openapi_client_udm.models.policies_repositorysync import PoliciesRepositorysync +from openapi_client_udm.models.policies_repositorysync_list import PoliciesRepositorysyncList +from openapi_client_udm.models.policies_repositorysync_list_embedded import PoliciesRepositorysyncListEmbedded +from openapi_client_udm.models.policies_repositorysync_request import PoliciesRepositorysyncRequest +from openapi_client_udm.models.policies_repositorysync_request_patch import PoliciesRepositorysyncRequestPatch +from openapi_client_udm.models.policies_repositorysync_response_mixin import PoliciesRepositorysyncResponseMixin +from openapi_client_udm.models.policies_share_userquota import PoliciesShareUserquota +from openapi_client_udm.models.policies_share_userquota_list import PoliciesShareUserquotaList +from openapi_client_udm.models.policies_share_userquota_list_embedded import PoliciesShareUserquotaListEmbedded +from openapi_client_udm.models.policies_share_userquota_request import PoliciesShareUserquotaRequest +from openapi_client_udm.models.policies_share_userquota_request_patch import PoliciesShareUserquotaRequestPatch +from openapi_client_udm.models.policies_share_userquota_response_mixin import PoliciesShareUserquotaResponseMixin +from openapi_client_udm.models.policies_slavepackages import PoliciesSlavepackages +from openapi_client_udm.models.policies_slavepackages_list import PoliciesSlavepackagesList +from openapi_client_udm.models.policies_slavepackages_list_embedded import PoliciesSlavepackagesListEmbedded +from openapi_client_udm.models.policies_slavepackages_request import PoliciesSlavepackagesRequest +from openapi_client_udm.models.policies_slavepackages_request_patch import PoliciesSlavepackagesRequestPatch +from openapi_client_udm.models.policies_slavepackages_response_mixin import PoliciesSlavepackagesResponseMixin +from openapi_client_udm.models.policies_umc import PoliciesUmc +from openapi_client_udm.models.policies_umc_list import PoliciesUmcList +from openapi_client_udm.models.policies_umc_list_embedded import PoliciesUmcListEmbedded +from openapi_client_udm.models.policies_umc_request import PoliciesUmcRequest +from openapi_client_udm.models.policies_umc_request_patch import PoliciesUmcRequestPatch +from openapi_client_udm.models.policies_umc_response_mixin import PoliciesUmcResponseMixin +from openapi_client_udm.models.portals_all import PortalsAll +from openapi_client_udm.models.portals_all_list import PortalsAllList +from openapi_client_udm.models.portals_all_list_embedded import PortalsAllListEmbedded +from openapi_client_udm.models.portals_all_request import PortalsAllRequest +from openapi_client_udm.models.portals_all_request_patch import PortalsAllRequestPatch +from openapi_client_udm.models.portals_all_response_mixin import PortalsAllResponseMixin +from openapi_client_udm.models.portals_announcement import PortalsAnnouncement +from openapi_client_udm.models.portals_announcement_list import PortalsAnnouncementList +from openapi_client_udm.models.portals_announcement_list_embedded import PortalsAnnouncementListEmbedded +from openapi_client_udm.models.portals_announcement_request import PortalsAnnouncementRequest +from openapi_client_udm.models.portals_announcement_request_patch import PortalsAnnouncementRequestPatch +from openapi_client_udm.models.portals_announcement_response_mixin import PortalsAnnouncementResponseMixin +from openapi_client_udm.models.portals_category import PortalsCategory +from openapi_client_udm.models.portals_category_list import PortalsCategoryList +from openapi_client_udm.models.portals_category_list_embedded import PortalsCategoryListEmbedded +from openapi_client_udm.models.portals_category_request import PortalsCategoryRequest +from openapi_client_udm.models.portals_category_request_patch import PortalsCategoryRequestPatch +from openapi_client_udm.models.portals_category_response_mixin import PortalsCategoryResponseMixin +from openapi_client_udm.models.portals_entry import PortalsEntry +from openapi_client_udm.models.portals_entry_list import PortalsEntryList +from openapi_client_udm.models.portals_entry_list_embedded import PortalsEntryListEmbedded +from openapi_client_udm.models.portals_entry_request import PortalsEntryRequest +from openapi_client_udm.models.portals_entry_request_patch import PortalsEntryRequestPatch +from openapi_client_udm.models.portals_entry_response_mixin import PortalsEntryResponseMixin +from openapi_client_udm.models.portals_folder import PortalsFolder +from openapi_client_udm.models.portals_folder_list import PortalsFolderList +from openapi_client_udm.models.portals_folder_list_embedded import PortalsFolderListEmbedded +from openapi_client_udm.models.portals_folder_request import PortalsFolderRequest +from openapi_client_udm.models.portals_folder_request_patch import PortalsFolderRequestPatch +from openapi_client_udm.models.portals_folder_response_mixin import PortalsFolderResponseMixin +from openapi_client_udm.models.portals_portal import PortalsPortal +from openapi_client_udm.models.portals_portal_list import PortalsPortalList +from openapi_client_udm.models.portals_portal_list_embedded import PortalsPortalListEmbedded +from openapi_client_udm.models.portals_portal_request import PortalsPortalRequest +from openapi_client_udm.models.portals_portal_request_patch import PortalsPortalRequestPatch +from openapi_client_udm.models.portals_portal_response_mixin import PortalsPortalResponseMixin +from openapi_client_udm.models.saml_idpconfig import SamlIdpconfig +from openapi_client_udm.models.saml_idpconfig_list import SamlIdpconfigList +from openapi_client_udm.models.saml_idpconfig_list_embedded import SamlIdpconfigListEmbedded +from openapi_client_udm.models.saml_idpconfig_request import SamlIdpconfigRequest +from openapi_client_udm.models.saml_idpconfig_request_patch import SamlIdpconfigRequestPatch +from openapi_client_udm.models.saml_idpconfig_response_mixin import SamlIdpconfigResponseMixin +from openapi_client_udm.models.saml_serviceprovider import SamlServiceprovider +from openapi_client_udm.models.saml_serviceprovider_list import SamlServiceproviderList +from openapi_client_udm.models.saml_serviceprovider_list_embedded import SamlServiceproviderListEmbedded +from openapi_client_udm.models.saml_serviceprovider_request import SamlServiceproviderRequest +from openapi_client_udm.models.saml_serviceprovider_request_patch import SamlServiceproviderRequestPatch +from openapi_client_udm.models.saml_serviceprovider_response_mixin import SamlServiceproviderResponseMixin +from openapi_client_udm.models.settings_cn import SettingsCn +from openapi_client_udm.models.settings_cn_list import SettingsCnList +from openapi_client_udm.models.settings_cn_list_embedded import SettingsCnListEmbedded +from openapi_client_udm.models.settings_cn_policies import SettingsCnPolicies +from openapi_client_udm.models.settings_cn_request import SettingsCnRequest +from openapi_client_udm.models.settings_cn_request_patch import SettingsCnRequestPatch +from openapi_client_udm.models.settings_cn_response_mixin import SettingsCnResponseMixin +from openapi_client_udm.models.settings_data import SettingsData +from openapi_client_udm.models.settings_data_list import SettingsDataList +from openapi_client_udm.models.settings_data_list_embedded import SettingsDataListEmbedded +from openapi_client_udm.models.settings_data_request import SettingsDataRequest +from openapi_client_udm.models.settings_data_request_patch import SettingsDataRequestPatch +from openapi_client_udm.models.settings_data_response_mixin import SettingsDataResponseMixin +from openapi_client_udm.models.settings_default import SettingsDefault +from openapi_client_udm.models.settings_default_list import SettingsDefaultList +from openapi_client_udm.models.settings_default_list_embedded import SettingsDefaultListEmbedded +from openapi_client_udm.models.settings_default_request import SettingsDefaultRequest +from openapi_client_udm.models.settings_default_request_patch import SettingsDefaultRequestPatch +from openapi_client_udm.models.settings_default_response_mixin import SettingsDefaultResponseMixin +from openapi_client_udm.models.settings_directory import SettingsDirectory +from openapi_client_udm.models.settings_directory_list import SettingsDirectoryList +from openapi_client_udm.models.settings_directory_list_embedded import SettingsDirectoryListEmbedded +from openapi_client_udm.models.settings_directory_request import SettingsDirectoryRequest +from openapi_client_udm.models.settings_directory_request_patch import SettingsDirectoryRequestPatch +from openapi_client_udm.models.settings_directory_response_mixin import SettingsDirectoryResponseMixin +from openapi_client_udm.models.settings_extended_attribute import SettingsExtendedAttribute +from openapi_client_udm.models.settings_extended_attribute_list import SettingsExtendedAttributeList +from openapi_client_udm.models.settings_extended_attribute_list_embedded import SettingsExtendedAttributeListEmbedded +from openapi_client_udm.models.settings_extended_attribute_request import SettingsExtendedAttributeRequest +from openapi_client_udm.models.settings_extended_attribute_request_patch import SettingsExtendedAttributeRequestPatch +from openapi_client_udm.models.settings_extended_attribute_response_mixin import SettingsExtendedAttributeResponseMixin +from openapi_client_udm.models.settings_extended_options import SettingsExtendedOptions +from openapi_client_udm.models.settings_extended_options_list import SettingsExtendedOptionsList +from openapi_client_udm.models.settings_extended_options_list_embedded import SettingsExtendedOptionsListEmbedded +from openapi_client_udm.models.settings_extended_options_request import SettingsExtendedOptionsRequest +from openapi_client_udm.models.settings_extended_options_request_patch import SettingsExtendedOptionsRequestPatch +from openapi_client_udm.models.settings_extended_options_response_mixin import SettingsExtendedOptionsResponseMixin +from openapi_client_udm.models.settings_ldapacl import SettingsLdapacl +from openapi_client_udm.models.settings_ldapacl_list import SettingsLdapaclList +from openapi_client_udm.models.settings_ldapacl_list_embedded import SettingsLdapaclListEmbedded +from openapi_client_udm.models.settings_ldapacl_request import SettingsLdapaclRequest +from openapi_client_udm.models.settings_ldapacl_request_patch import SettingsLdapaclRequestPatch +from openapi_client_udm.models.settings_ldapacl_response_mixin import SettingsLdapaclResponseMixin +from openapi_client_udm.models.settings_ldapschema import SettingsLdapschema +from openapi_client_udm.models.settings_ldapschema_list import SettingsLdapschemaList +from openapi_client_udm.models.settings_ldapschema_list_embedded import SettingsLdapschemaListEmbedded +from openapi_client_udm.models.settings_ldapschema_request import SettingsLdapschemaRequest +from openapi_client_udm.models.settings_ldapschema_request_patch import SettingsLdapschemaRequestPatch +from openapi_client_udm.models.settings_ldapschema_response_mixin import SettingsLdapschemaResponseMixin +from openapi_client_udm.models.settings_license import SettingsLicense +from openapi_client_udm.models.settings_license_list import SettingsLicenseList +from openapi_client_udm.models.settings_license_list_embedded import SettingsLicenseListEmbedded +from openapi_client_udm.models.settings_license_options import SettingsLicenseOptions +from openapi_client_udm.models.settings_license_request import SettingsLicenseRequest +from openapi_client_udm.models.settings_license_request_patch import SettingsLicenseRequestPatch +from openapi_client_udm.models.settings_license_response_mixin import SettingsLicenseResponseMixin +from openapi_client_udm.models.settings_lock import SettingsLock +from openapi_client_udm.models.settings_lock_list import SettingsLockList +from openapi_client_udm.models.settings_lock_list_embedded import SettingsLockListEmbedded +from openapi_client_udm.models.settings_lock_request import SettingsLockRequest +from openapi_client_udm.models.settings_lock_request_patch import SettingsLockRequestPatch +from openapi_client_udm.models.settings_lock_response_mixin import SettingsLockResponseMixin +from openapi_client_udm.models.settings_msprintconnectionpolicy import SettingsMsprintconnectionpolicy +from openapi_client_udm.models.settings_msprintconnectionpolicy_list import SettingsMsprintconnectionpolicyList +from openapi_client_udm.models.settings_msprintconnectionpolicy_list_embedded import SettingsMsprintconnectionpolicyListEmbedded +from openapi_client_udm.models.settings_msprintconnectionpolicy_policies import SettingsMsprintconnectionpolicyPolicies +from openapi_client_udm.models.settings_msprintconnectionpolicy_request import SettingsMsprintconnectionpolicyRequest +from openapi_client_udm.models.settings_msprintconnectionpolicy_request_patch import SettingsMsprintconnectionpolicyRequestPatch +from openapi_client_udm.models.settings_msprintconnectionpolicy_response_mixin import SettingsMsprintconnectionpolicyResponseMixin +from openapi_client_udm.models.settings_mswmifilter import SettingsMswmifilter +from openapi_client_udm.models.settings_mswmifilter_list import SettingsMswmifilterList +from openapi_client_udm.models.settings_mswmifilter_list_embedded import SettingsMswmifilterListEmbedded +from openapi_client_udm.models.settings_mswmifilter_policies import SettingsMswmifilterPolicies +from openapi_client_udm.models.settings_mswmifilter_request import SettingsMswmifilterRequest +from openapi_client_udm.models.settings_mswmifilter_request_patch import SettingsMswmifilterRequestPatch +from openapi_client_udm.models.settings_mswmifilter_response_mixin import SettingsMswmifilterResponseMixin +from openapi_client_udm.models.settings_packages import SettingsPackages +from openapi_client_udm.models.settings_packages_list import SettingsPackagesList +from openapi_client_udm.models.settings_packages_list_embedded import SettingsPackagesListEmbedded +from openapi_client_udm.models.settings_packages_request import SettingsPackagesRequest +from openapi_client_udm.models.settings_packages_request_patch import SettingsPackagesRequestPatch +from openapi_client_udm.models.settings_packages_response_mixin import SettingsPackagesResponseMixin +from openapi_client_udm.models.settings_portal import SettingsPortal +from openapi_client_udm.models.settings_portal_all import SettingsPortalAll +from openapi_client_udm.models.settings_portal_all_list import SettingsPortalAllList +from openapi_client_udm.models.settings_portal_all_list_embedded import SettingsPortalAllListEmbedded +from openapi_client_udm.models.settings_portal_all_request import SettingsPortalAllRequest +from openapi_client_udm.models.settings_portal_all_request_patch import SettingsPortalAllRequestPatch +from openapi_client_udm.models.settings_portal_all_response_mixin import SettingsPortalAllResponseMixin +from openapi_client_udm.models.settings_portal_category import SettingsPortalCategory +from openapi_client_udm.models.settings_portal_category_list import SettingsPortalCategoryList +from openapi_client_udm.models.settings_portal_category_list_embedded import SettingsPortalCategoryListEmbedded +from openapi_client_udm.models.settings_portal_category_request import SettingsPortalCategoryRequest +from openapi_client_udm.models.settings_portal_category_request_patch import SettingsPortalCategoryRequestPatch +from openapi_client_udm.models.settings_portal_category_response_mixin import SettingsPortalCategoryResponseMixin +from openapi_client_udm.models.settings_portal_entry import SettingsPortalEntry +from openapi_client_udm.models.settings_portal_entry_list import SettingsPortalEntryList +from openapi_client_udm.models.settings_portal_entry_list_embedded import SettingsPortalEntryListEmbedded +from openapi_client_udm.models.settings_portal_entry_request import SettingsPortalEntryRequest +from openapi_client_udm.models.settings_portal_entry_request_patch import SettingsPortalEntryRequestPatch +from openapi_client_udm.models.settings_portal_entry_response_mixin import SettingsPortalEntryResponseMixin +from openapi_client_udm.models.settings_portal_list import SettingsPortalList +from openapi_client_udm.models.settings_portal_list_embedded import SettingsPortalListEmbedded +from openapi_client_udm.models.settings_portal_request import SettingsPortalRequest +from openapi_client_udm.models.settings_portal_request_patch import SettingsPortalRequestPatch +from openapi_client_udm.models.settings_portal_response_mixin import SettingsPortalResponseMixin +from openapi_client_udm.models.settings_printermodel import SettingsPrintermodel +from openapi_client_udm.models.settings_printermodel_list import SettingsPrintermodelList +from openapi_client_udm.models.settings_printermodel_list_embedded import SettingsPrintermodelListEmbedded +from openapi_client_udm.models.settings_printermodel_request import SettingsPrintermodelRequest +from openapi_client_udm.models.settings_printermodel_request_patch import SettingsPrintermodelRequestPatch +from openapi_client_udm.models.settings_printermodel_response_mixin import SettingsPrintermodelResponseMixin +from openapi_client_udm.models.settings_printeruri import SettingsPrinteruri +from openapi_client_udm.models.settings_printeruri_list import SettingsPrinteruriList +from openapi_client_udm.models.settings_printeruri_list_embedded import SettingsPrinteruriListEmbedded +from openapi_client_udm.models.settings_printeruri_request import SettingsPrinteruriRequest +from openapi_client_udm.models.settings_printeruri_request_patch import SettingsPrinteruriRequestPatch +from openapi_client_udm.models.settings_printeruri_response_mixin import SettingsPrinteruriResponseMixin +from openapi_client_udm.models.settings_prohibited_username import SettingsProhibitedUsername +from openapi_client_udm.models.settings_prohibited_username_list import SettingsProhibitedUsernameList +from openapi_client_udm.models.settings_prohibited_username_list_embedded import SettingsProhibitedUsernameListEmbedded +from openapi_client_udm.models.settings_prohibited_username_request import SettingsProhibitedUsernameRequest +from openapi_client_udm.models.settings_prohibited_username_request_patch import SettingsProhibitedUsernameRequestPatch +from openapi_client_udm.models.settings_prohibited_username_response_mixin import SettingsProhibitedUsernameResponseMixin +from openapi_client_udm.models.settings_sambaconfig import SettingsSambaconfig +from openapi_client_udm.models.settings_sambaconfig_list import SettingsSambaconfigList +from openapi_client_udm.models.settings_sambaconfig_list_embedded import SettingsSambaconfigListEmbedded +from openapi_client_udm.models.settings_sambaconfig_request import SettingsSambaconfigRequest +from openapi_client_udm.models.settings_sambaconfig_request_patch import SettingsSambaconfigRequestPatch +from openapi_client_udm.models.settings_sambaconfig_response_mixin import SettingsSambaconfigResponseMixin +from openapi_client_udm.models.settings_sambadomain import SettingsSambadomain +from openapi_client_udm.models.settings_sambadomain_list import SettingsSambadomainList +from openapi_client_udm.models.settings_sambadomain_list_embedded import SettingsSambadomainListEmbedded +from openapi_client_udm.models.settings_sambadomain_request import SettingsSambadomainRequest +from openapi_client_udm.models.settings_sambadomain_request_patch import SettingsSambadomainRequestPatch +from openapi_client_udm.models.settings_sambadomain_response_mixin import SettingsSambadomainResponseMixin +from openapi_client_udm.models.settings_service import SettingsService +from openapi_client_udm.models.settings_service_list import SettingsServiceList +from openapi_client_udm.models.settings_service_list_embedded import SettingsServiceListEmbedded +from openapi_client_udm.models.settings_service_request import SettingsServiceRequest +from openapi_client_udm.models.settings_service_request_patch import SettingsServiceRequestPatch +from openapi_client_udm.models.settings_service_response_mixin import SettingsServiceResponseMixin +from openapi_client_udm.models.settings_settings import SettingsSettings +from openapi_client_udm.models.settings_settings_list import SettingsSettingsList +from openapi_client_udm.models.settings_settings_list_embedded import SettingsSettingsListEmbedded +from openapi_client_udm.models.settings_settings_request import SettingsSettingsRequest +from openapi_client_udm.models.settings_settings_request_patch import SettingsSettingsRequestPatch +from openapi_client_udm.models.settings_settings_response_mixin import SettingsSettingsResponseMixin +from openapi_client_udm.models.settings_syntax import SettingsSyntax +from openapi_client_udm.models.settings_syntax_list import SettingsSyntaxList +from openapi_client_udm.models.settings_syntax_list_embedded import SettingsSyntaxListEmbedded +from openapi_client_udm.models.settings_syntax_request import SettingsSyntaxRequest +from openapi_client_udm.models.settings_syntax_request_patch import SettingsSyntaxRequestPatch +from openapi_client_udm.models.settings_syntax_response_mixin import SettingsSyntaxResponseMixin +from openapi_client_udm.models.settings_udm_hook import SettingsUdmHook +from openapi_client_udm.models.settings_udm_hook_list import SettingsUdmHookList +from openapi_client_udm.models.settings_udm_hook_list_embedded import SettingsUdmHookListEmbedded +from openapi_client_udm.models.settings_udm_hook_request import SettingsUdmHookRequest +from openapi_client_udm.models.settings_udm_hook_request_patch import SettingsUdmHookRequestPatch +from openapi_client_udm.models.settings_udm_hook_response_mixin import SettingsUdmHookResponseMixin +from openapi_client_udm.models.settings_udm_module import SettingsUdmModule +from openapi_client_udm.models.settings_udm_module_list import SettingsUdmModuleList +from openapi_client_udm.models.settings_udm_module_list_embedded import SettingsUdmModuleListEmbedded +from openapi_client_udm.models.settings_udm_module_request import SettingsUdmModuleRequest +from openapi_client_udm.models.settings_udm_module_request_patch import SettingsUdmModuleRequestPatch +from openapi_client_udm.models.settings_udm_module_response_mixin import SettingsUdmModuleResponseMixin +from openapi_client_udm.models.settings_udm_syntax import SettingsUdmSyntax +from openapi_client_udm.models.settings_udm_syntax_list import SettingsUdmSyntaxList +from openapi_client_udm.models.settings_udm_syntax_list_embedded import SettingsUdmSyntaxListEmbedded +from openapi_client_udm.models.settings_udm_syntax_request import SettingsUdmSyntaxRequest +from openapi_client_udm.models.settings_udm_syntax_request_patch import SettingsUdmSyntaxRequestPatch +from openapi_client_udm.models.settings_udm_syntax_response_mixin import SettingsUdmSyntaxResponseMixin +from openapi_client_udm.models.settings_umc_operationset import SettingsUmcOperationset +from openapi_client_udm.models.settings_umc_operationset_list import SettingsUmcOperationsetList +from openapi_client_udm.models.settings_umc_operationset_list_embedded import SettingsUmcOperationsetListEmbedded +from openapi_client_udm.models.settings_umc_operationset_request import SettingsUmcOperationsetRequest +from openapi_client_udm.models.settings_umc_operationset_request_patch import SettingsUmcOperationsetRequestPatch +from openapi_client_udm.models.settings_umc_operationset_response_mixin import SettingsUmcOperationsetResponseMixin +from openapi_client_udm.models.settings_usertemplate import SettingsUsertemplate +from openapi_client_udm.models.settings_usertemplate_list import SettingsUsertemplateList +from openapi_client_udm.models.settings_usertemplate_list_embedded import SettingsUsertemplateListEmbedded +from openapi_client_udm.models.settings_usertemplate_request import SettingsUsertemplateRequest +from openapi_client_udm.models.settings_usertemplate_request_patch import SettingsUsertemplateRequestPatch +from openapi_client_udm.models.settings_usertemplate_response_mixin import SettingsUsertemplateResponseMixin +from openapi_client_udm.models.shares_print import SharesPrint +from openapi_client_udm.models.shares_print_list import SharesPrintList +from openapi_client_udm.models.shares_print_list_embedded import SharesPrintListEmbedded +from openapi_client_udm.models.shares_print_request import SharesPrintRequest +from openapi_client_udm.models.shares_print_request_patch import SharesPrintRequestPatch +from openapi_client_udm.models.shares_print_response_mixin import SharesPrintResponseMixin +from openapi_client_udm.models.shares_printer import SharesPrinter +from openapi_client_udm.models.shares_printer_list import SharesPrinterList +from openapi_client_udm.models.shares_printer_list_embedded import SharesPrinterListEmbedded +from openapi_client_udm.models.shares_printer_request import SharesPrinterRequest +from openapi_client_udm.models.shares_printer_request_patch import SharesPrinterRequestPatch +from openapi_client_udm.models.shares_printer_response_mixin import SharesPrinterResponseMixin +from openapi_client_udm.models.shares_printergroup import SharesPrintergroup +from openapi_client_udm.models.shares_printergroup_list import SharesPrintergroupList +from openapi_client_udm.models.shares_printergroup_list_embedded import SharesPrintergroupListEmbedded +from openapi_client_udm.models.shares_printergroup_request import SharesPrintergroupRequest +from openapi_client_udm.models.shares_printergroup_request_patch import SharesPrintergroupRequestPatch +from openapi_client_udm.models.shares_printergroup_response_mixin import SharesPrintergroupResponseMixin +from openapi_client_udm.models.shares_share import SharesShare +from openapi_client_udm.models.shares_share_list import SharesShareList +from openapi_client_udm.models.shares_share_list_embedded import SharesShareListEmbedded +from openapi_client_udm.models.shares_share_options import SharesShareOptions +from openapi_client_udm.models.shares_share_policies import SharesSharePolicies +from openapi_client_udm.models.shares_share_request import SharesShareRequest +from openapi_client_udm.models.shares_share_request_patch import SharesShareRequestPatch +from openapi_client_udm.models.shares_share_response_mixin import SharesShareResponseMixin +from openapi_client_udm.models.users_contact import UsersContact +from openapi_client_udm.models.users_contact_list import UsersContactList +from openapi_client_udm.models.users_contact_list_embedded import UsersContactListEmbedded +from openapi_client_udm.models.users_contact_request import UsersContactRequest +from openapi_client_udm.models.users_contact_request_patch import UsersContactRequestPatch +from openapi_client_udm.models.users_contact_response_mixin import UsersContactResponseMixin +from openapi_client_udm.models.users_ldap import UsersLdap +from openapi_client_udm.models.users_ldap_list import UsersLdapList +from openapi_client_udm.models.users_ldap_list_embedded import UsersLdapListEmbedded +from openapi_client_udm.models.users_ldap_options import UsersLdapOptions +from openapi_client_udm.models.users_ldap_policies import UsersLdapPolicies +from openapi_client_udm.models.users_ldap_request import UsersLdapRequest +from openapi_client_udm.models.users_ldap_request_patch import UsersLdapRequestPatch +from openapi_client_udm.models.users_ldap_response_mixin import UsersLdapResponseMixin +from openapi_client_udm.models.users_passwd import UsersPasswd +from openapi_client_udm.models.users_passwd_list import UsersPasswdList +from openapi_client_udm.models.users_passwd_list_embedded import UsersPasswdListEmbedded +from openapi_client_udm.models.users_passwd_request import UsersPasswdRequest +from openapi_client_udm.models.users_passwd_request_patch import UsersPasswdRequestPatch +from openapi_client_udm.models.users_passwd_response_mixin import UsersPasswdResponseMixin +from openapi_client_udm.models.users_self import UsersSelf +from openapi_client_udm.models.users_self_list import UsersSelfList +from openapi_client_udm.models.users_self_list_embedded import UsersSelfListEmbedded +from openapi_client_udm.models.users_self_options import UsersSelfOptions +from openapi_client_udm.models.users_self_request import UsersSelfRequest +from openapi_client_udm.models.users_self_request_patch import UsersSelfRequestPatch +from openapi_client_udm.models.users_self_response_mixin import UsersSelfResponseMixin +from openapi_client_udm.models.users_user import UsersUser +from openapi_client_udm.models.users_user_list import UsersUserList +from openapi_client_udm.models.users_user_list_embedded import UsersUserListEmbedded +from openapi_client_udm.models.users_user_options import UsersUserOptions +from openapi_client_udm.models.users_user_policies import UsersUserPolicies +from openapi_client_udm.models.users_user_request import UsersUserRequest +from openapi_client_udm.models.users_user_request_patch import UsersUserRequestPatch +from openapi_client_udm.models.users_user_response_mixin import UsersUserResponseMixin +from openapi_client_udm.models.uvmm_cloudconnection import UvmmCloudconnection +from openapi_client_udm.models.uvmm_cloudconnection_list import UvmmCloudconnectionList +from openapi_client_udm.models.uvmm_cloudconnection_list_embedded import UvmmCloudconnectionListEmbedded +from openapi_client_udm.models.uvmm_cloudconnection_request import UvmmCloudconnectionRequest +from openapi_client_udm.models.uvmm_cloudconnection_request_patch import UvmmCloudconnectionRequestPatch +from openapi_client_udm.models.uvmm_cloudconnection_response_mixin import UvmmCloudconnectionResponseMixin +from openapi_client_udm.models.uvmm_cloudtype import UvmmCloudtype +from openapi_client_udm.models.uvmm_cloudtype_list import UvmmCloudtypeList +from openapi_client_udm.models.uvmm_cloudtype_list_embedded import UvmmCloudtypeListEmbedded +from openapi_client_udm.models.uvmm_cloudtype_request import UvmmCloudtypeRequest +from openapi_client_udm.models.uvmm_cloudtype_request_patch import UvmmCloudtypeRequestPatch +from openapi_client_udm.models.uvmm_cloudtype_response_mixin import UvmmCloudtypeResponseMixin +from openapi_client_udm.models.uvmm_info import UvmmInfo +from openapi_client_udm.models.uvmm_info_list import UvmmInfoList +from openapi_client_udm.models.uvmm_info_list_embedded import UvmmInfoListEmbedded +from openapi_client_udm.models.uvmm_info_request import UvmmInfoRequest +from openapi_client_udm.models.uvmm_info_request_patch import UvmmInfoRequestPatch +from openapi_client_udm.models.uvmm_info_response_mixin import UvmmInfoResponseMixin +from openapi_client_udm.models.uvmm_profile import UvmmProfile +from openapi_client_udm.models.uvmm_profile_list import UvmmProfileList +from openapi_client_udm.models.uvmm_profile_list_embedded import UvmmProfileListEmbedded +from openapi_client_udm.models.uvmm_profile_request import UvmmProfileRequest +from openapi_client_udm.models.uvmm_profile_request_patch import UvmmProfileRequestPatch +from openapi_client_udm.models.uvmm_profile_response_mixin import UvmmProfileResponseMixin + diff --git a/openapi_client_udm/api/__init__.py b/openapi_client_udm/api/__init__.py new file mode 100644 index 0000000..ca75d90 --- /dev/null +++ b/openapi_client_udm/api/__init__.py @@ -0,0 +1,138 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from openapi_client_udm.api.appcenter_app_api import AppcenterAppApi +from openapi_client_udm.api.computers_computer_api import ComputersComputerApi +from openapi_client_udm.api.computers_domaincontroller_backup_api import ComputersDomaincontrollerBackupApi +from openapi_client_udm.api.computers_domaincontroller_master_api import ComputersDomaincontrollerMasterApi +from openapi_client_udm.api.computers_domaincontroller_slave_api import ComputersDomaincontrollerSlaveApi +from openapi_client_udm.api.computers_ipmanagedclient_api import ComputersIpmanagedclientApi +from openapi_client_udm.api.computers_linux_api import ComputersLinuxApi +from openapi_client_udm.api.computers_macos_api import ComputersMacosApi +from openapi_client_udm.api.computers_memberserver_api import ComputersMemberserverApi +from openapi_client_udm.api.computers_trustaccount_api import ComputersTrustaccountApi +from openapi_client_udm.api.computers_ubuntu_api import ComputersUbuntuApi +from openapi_client_udm.api.computers_windows_api import ComputersWindowsApi +from openapi_client_udm.api.computers_windows_domaincontroller_api import ComputersWindowsDomaincontrollerApi +from openapi_client_udm.api.container_cn_api import ContainerCnApi +from openapi_client_udm.api.container_dc_api import ContainerDcApi +from openapi_client_udm.api.container_msgpo_api import ContainerMsgpoApi +from openapi_client_udm.api.container_ou_api import ContainerOuApi +from openapi_client_udm.api.dhcp_dhcp_api import DhcpDhcpApi +from openapi_client_udm.api.dhcp_host_api import DhcpHostApi +from openapi_client_udm.api.dhcp_pool_api import DhcpPoolApi +from openapi_client_udm.api.dhcp_server_api import DhcpServerApi +from openapi_client_udm.api.dhcp_service_api import DhcpServiceApi +from openapi_client_udm.api.dhcp_shared_api import DhcpSharedApi +from openapi_client_udm.api.dhcp_sharedsubnet_api import DhcpSharedsubnetApi +from openapi_client_udm.api.dhcp_subnet_api import DhcpSubnetApi +from openapi_client_udm.api.dns_alias_api import DnsAliasApi +from openapi_client_udm.api.dns_dns_api import DnsDnsApi +from openapi_client_udm.api.dns_forward_zone_api import DnsForwardZoneApi +from openapi_client_udm.api.dns_host_record_api import DnsHostRecordApi +from openapi_client_udm.api.dns_ns_record_api import DnsNsRecordApi +from openapi_client_udm.api.dns_ptr_record_api import DnsPtrRecordApi +from openapi_client_udm.api.dns_reverse_zone_api import DnsReverseZoneApi +from openapi_client_udm.api.dns_srv_record_api import DnsSrvRecordApi +from openapi_client_udm.api.dns_txt_record_api import DnsTxtRecordApi +from openapi_client_udm.api.groups_group_api import GroupsGroupApi +from openapi_client_udm.api.kerberos_kdcentry_api import KerberosKdcentryApi +from openapi_client_udm.api.mail_domain_api import MailDomainApi +from openapi_client_udm.api.mail_folder_api import MailFolderApi +from openapi_client_udm.api.mail_lists_api import MailListsApi +from openapi_client_udm.api.mail_mail_api import MailMailApi +from openapi_client_udm.api.monitoring_alert_api import MonitoringAlertApi +from openapi_client_udm.api.ms_domainpolicy_api import MsDomainpolicyApi +from openapi_client_udm.api.ms_gpipsec_filter_api import MsGpipsecFilterApi +from openapi_client_udm.api.ms_gpipsec_isakmp_policy_api import MsGpipsecIsakmpPolicyApi +from openapi_client_udm.api.ms_gpipsec_negotiation_policy_api import MsGpipsecNegotiationPolicyApi +from openapi_client_udm.api.ms_gpipsec_nfa_api import MsGpipsecNfaApi +from openapi_client_udm.api.ms_gpipsec_policy_api import MsGpipsecPolicyApi +from openapi_client_udm.api.ms_gpsi_category_registration_api import MsGpsiCategoryRegistrationApi +from openapi_client_udm.api.ms_gpsi_class_store_api import MsGpsiClassStoreApi +from openapi_client_udm.api.ms_gpsi_package_registration_api import MsGpsiPackageRegistrationApi +from openapi_client_udm.api.ms_gpwl_wired_api import MsGpwlWiredApi +from openapi_client_udm.api.ms_gpwl_wireless_api import MsGpwlWirelessApi +from openapi_client_udm.api.ms_gpwl_wireless_blob_api import MsGpwlWirelessBlobApi +from openapi_client_udm.api.nagios_nagios_api import NagiosNagiosApi +from openapi_client_udm.api.nagios_service_api import NagiosServiceApi +from openapi_client_udm.api.nagios_timeperiod_api import NagiosTimeperiodApi +from openapi_client_udm.api.networks_network_api import NetworksNetworkApi +from openapi_client_udm.api.policies_admin_container_api import PoliciesAdminContainerApi +from openapi_client_udm.api.policies_desktop_api import PoliciesDesktopApi +from openapi_client_udm.api.policies_dhcp_boot_api import PoliciesDhcpBootApi +from openapi_client_udm.api.policies_dhcp_dns_api import PoliciesDhcpDnsApi +from openapi_client_udm.api.policies_dhcp_dnsupdate_api import PoliciesDhcpDnsupdateApi +from openapi_client_udm.api.policies_dhcp_leasetime_api import PoliciesDhcpLeasetimeApi +from openapi_client_udm.api.policies_dhcp_netbios_api import PoliciesDhcpNetbiosApi +from openapi_client_udm.api.policies_dhcp_routing_api import PoliciesDhcpRoutingApi +from openapi_client_udm.api.policies_dhcp_scope_api import PoliciesDhcpScopeApi +from openapi_client_udm.api.policies_dhcp_statements_api import PoliciesDhcpStatementsApi +from openapi_client_udm.api.policies_ldapserver_api import PoliciesLdapserverApi +from openapi_client_udm.api.policies_maintenance_api import PoliciesMaintenanceApi +from openapi_client_udm.api.policies_masterpackages_api import PoliciesMasterpackagesApi +from openapi_client_udm.api.policies_memberpackages_api import PoliciesMemberpackagesApi +from openapi_client_udm.api.policies_nfsmounts_api import PoliciesNfsmountsApi +from openapi_client_udm.api.policies_policy_api import PoliciesPolicyApi +from openapi_client_udm.api.policies_printserver_api import PoliciesPrintserverApi +from openapi_client_udm.api.policies_pwhistory_api import PoliciesPwhistoryApi +from openapi_client_udm.api.policies_registry_api import PoliciesRegistryApi +from openapi_client_udm.api.policies_release_api import PoliciesReleaseApi +from openapi_client_udm.api.policies_repositoryserver_api import PoliciesRepositoryserverApi +from openapi_client_udm.api.policies_repositorysync_api import PoliciesRepositorysyncApi +from openapi_client_udm.api.policies_share_userquota_api import PoliciesShareUserquotaApi +from openapi_client_udm.api.policies_slavepackages_api import PoliciesSlavepackagesApi +from openapi_client_udm.api.policies_umc_api import PoliciesUmcApi +from openapi_client_udm.api.portals_all_api import PortalsAllApi +from openapi_client_udm.api.portals_announcement_api import PortalsAnnouncementApi +from openapi_client_udm.api.portals_category_api import PortalsCategoryApi +from openapi_client_udm.api.portals_entry_api import PortalsEntryApi +from openapi_client_udm.api.portals_folder_api import PortalsFolderApi +from openapi_client_udm.api.portals_portal_api import PortalsPortalApi +from openapi_client_udm.api.saml_idpconfig_api import SamlIdpconfigApi +from openapi_client_udm.api.saml_serviceprovider_api import SamlServiceproviderApi +from openapi_client_udm.api.settings_cn_api import SettingsCnApi +from openapi_client_udm.api.settings_data_api import SettingsDataApi +from openapi_client_udm.api.settings_default_api import SettingsDefaultApi +from openapi_client_udm.api.settings_directory_api import SettingsDirectoryApi +from openapi_client_udm.api.settings_extended_attribute_api import SettingsExtendedAttributeApi +from openapi_client_udm.api.settings_extended_options_api import SettingsExtendedOptionsApi +from openapi_client_udm.api.settings_ldapacl_api import SettingsLdapaclApi +from openapi_client_udm.api.settings_ldapschema_api import SettingsLdapschemaApi +from openapi_client_udm.api.settings_license_api import SettingsLicenseApi +from openapi_client_udm.api.settings_lock_api import SettingsLockApi +from openapi_client_udm.api.settings_msprintconnectionpolicy_api import SettingsMsprintconnectionpolicyApi +from openapi_client_udm.api.settings_mswmifilter_api import SettingsMswmifilterApi +from openapi_client_udm.api.settings_packages_api import SettingsPackagesApi +from openapi_client_udm.api.settings_portal_api import SettingsPortalApi +from openapi_client_udm.api.settings_portal_all_api import SettingsPortalAllApi +from openapi_client_udm.api.settings_portal_category_api import SettingsPortalCategoryApi +from openapi_client_udm.api.settings_portal_entry_api import SettingsPortalEntryApi +from openapi_client_udm.api.settings_printermodel_api import SettingsPrintermodelApi +from openapi_client_udm.api.settings_printeruri_api import SettingsPrinteruriApi +from openapi_client_udm.api.settings_prohibited_username_api import SettingsProhibitedUsernameApi +from openapi_client_udm.api.settings_sambaconfig_api import SettingsSambaconfigApi +from openapi_client_udm.api.settings_sambadomain_api import SettingsSambadomainApi +from openapi_client_udm.api.settings_service_api import SettingsServiceApi +from openapi_client_udm.api.settings_settings_api import SettingsSettingsApi +from openapi_client_udm.api.settings_syntax_api import SettingsSyntaxApi +from openapi_client_udm.api.settings_udm_hook_api import SettingsUdmHookApi +from openapi_client_udm.api.settings_udm_module_api import SettingsUdmModuleApi +from openapi_client_udm.api.settings_udm_syntax_api import SettingsUdmSyntaxApi +from openapi_client_udm.api.settings_umc_operationset_api import SettingsUmcOperationsetApi +from openapi_client_udm.api.settings_usertemplate_api import SettingsUsertemplateApi +from openapi_client_udm.api.shares_print_api import SharesPrintApi +from openapi_client_udm.api.shares_printer_api import SharesPrinterApi +from openapi_client_udm.api.shares_printergroup_api import SharesPrintergroupApi +from openapi_client_udm.api.shares_share_api import SharesShareApi +from openapi_client_udm.api.users_contact_api import UsersContactApi +from openapi_client_udm.api.users_ldap_api import UsersLdapApi +from openapi_client_udm.api.users_passwd_api import UsersPasswdApi +from openapi_client_udm.api.users_self_api import UsersSelfApi +from openapi_client_udm.api.users_user_api import UsersUserApi +from openapi_client_udm.api.uvmm_cloudconnection_api import UvmmCloudconnectionApi +from openapi_client_udm.api.uvmm_cloudtype_api import UvmmCloudtypeApi +from openapi_client_udm.api.uvmm_info_api import UvmmInfoApi +from openapi_client_udm.api.uvmm_profile_api import UvmmProfileApi diff --git a/openapi_client_udm/api/appcenter_app_api.py b/openapi_client_udm/api/appcenter_app_api.py new file mode 100644 index 0000000..3c0c577 --- /dev/null +++ b/openapi_client_udm/api/appcenter_app_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class AppcenterAppApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_appcenter_app_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the App Metadata object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: AppcenterApp + """ + kwargs['_return_http_data_only'] = True + return self.udm_appcenter_app_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_appcenter_app_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the App Metadata object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(AppcenterApp, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_appcenter_app_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_appcenter_app_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_appcenter_app_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_appcenter_app_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "AppcenterApp", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/appcenter/app/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_appcenter_app_object_create(self, appcenter_app, **kwargs): # noqa: E501 + """Create a new App Metadata object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_create(appcenter_app, async_req=True) + >>> result = thread.get() + + :param appcenter_app: (required) + :type appcenter_app: AppcenterApp + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_appcenter_app_object_create_with_http_info(appcenter_app, **kwargs) # noqa: E501 + + def udm_appcenter_app_object_create_with_http_info(self, appcenter_app, **kwargs): # noqa: E501 + """Create a new App Metadata object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_create_with_http_info(appcenter_app, async_req=True) + >>> result = thread.get() + + :param appcenter_app: (required) + :type appcenter_app: AppcenterApp + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'appcenter_app', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_appcenter_app_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'appcenter_app' is set + if self.api_client.client_side_validation and ('appcenter_app' not in local_var_params or # noqa: E501 + local_var_params['appcenter_app'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `appcenter_app` when calling `udm_appcenter_app_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'appcenter_app' in local_var_params: + body_params = local_var_params['appcenter_app'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/appcenter/app/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_appcenter_app_object_modify(self, dn, appcenter_app, **kwargs): # noqa: E501 + """Modify or move an App Metadata object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_modify(dn, appcenter_app, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param appcenter_app: (required) + :type appcenter_app: AppcenterApp + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_appcenter_app_object_modify_with_http_info(dn, appcenter_app, **kwargs) # noqa: E501 + + def udm_appcenter_app_object_modify_with_http_info(self, dn, appcenter_app, **kwargs): # noqa: E501 + """Modify or move an App Metadata object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_modify_with_http_info(dn, appcenter_app, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param appcenter_app: (required) + :type appcenter_app: AppcenterApp + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'appcenter_app', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_appcenter_app_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_appcenter_app_object_modify`") # noqa: E501 + # verify the required parameter 'appcenter_app' is set + if self.api_client.client_side_validation and ('appcenter_app' not in local_var_params or # noqa: E501 + local_var_params['appcenter_app'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `appcenter_app` when calling `udm_appcenter_app_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_appcenter_app_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_appcenter_app_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'appcenter_app' in local_var_params: + body_params = local_var_params['appcenter_app'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/appcenter/app/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_appcenter_app_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a App Metadata object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_appcenter_app_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_appcenter_app_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a App Metadata object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_appcenter_app_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_appcenter_app_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_appcenter_app_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_appcenter_app_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/appcenter/app/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_appcenter_app_object_search(self, **kwargs): # noqa: E501 + """Search for App Metadata objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: AppcenterAppList + """ + kwargs['_return_http_data_only'] = True + return self.udm_appcenter_app_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_appcenter_app_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for App Metadata objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(AppcenterAppList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_appcenter_app_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_appcenter_app_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_appcenter_app_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_appcenter_app_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_appcenter_app_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_appcenter_app_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "AppcenterAppList", + } + + return self.api_client.call_api( + '/appcenter/app/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_appcenter_app_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an App Metadata object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: AppcenterApp + """ + kwargs['_return_http_data_only'] = True + return self.udm_appcenter_app_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_appcenter_app_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an App Metadata object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(AppcenterApp, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_appcenter_app_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "AppcenterApp", + } + + return self.api_client.call_api( + '/appcenter/app/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_appcenter_app_object_update(self, dn, appcenter_app, **kwargs): # noqa: E501 + """Modify an App Metadata object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_update(dn, appcenter_app, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param appcenter_app: (required) + :type appcenter_app: AppcenterApp + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_appcenter_app_object_update_with_http_info(dn, appcenter_app, **kwargs) # noqa: E501 + + def udm_appcenter_app_object_update_with_http_info(self, dn, appcenter_app, **kwargs): # noqa: E501 + """Modify an App Metadata object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_appcenter_app_object_update_with_http_info(dn, appcenter_app, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param appcenter_app: (required) + :type appcenter_app: AppcenterApp + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'appcenter_app', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_appcenter_app_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_appcenter_app_object_update`") # noqa: E501 + # verify the required parameter 'appcenter_app' is set + if self.api_client.client_side_validation and ('appcenter_app' not in local_var_params or # noqa: E501 + local_var_params['appcenter_app'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `appcenter_app` when calling `udm_appcenter_app_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_appcenter_app_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_appcenter_app_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'appcenter_app' in local_var_params: + body_params = local_var_params['appcenter_app'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/appcenter/app/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_computer_api.py b/openapi_client_udm/api/computers_computer_api.py new file mode 100644 index 0000000..73197e6 --- /dev/null +++ b/openapi_client_udm/api/computers_computer_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersComputerApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_computer_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_computer_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersComputer + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_computer_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_computer_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_computer_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersComputer, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_computer_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_computer_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_computer_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_computer_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersComputer", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/computer/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_computer_object_search(self, **kwargs): # noqa: E501 + """Search for Computers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_computer_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersComputerList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_computer_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_computer_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Computers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_computer_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersComputerList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_computer_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_computer_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_computer_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersComputerList", + } + + return self.api_client.call_api( + '/computers/computer/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_domaincontroller_backup_api.py b/openapi_client_udm/api/computers_domaincontroller_backup_api.py new file mode 100644 index 0000000..1525429 --- /dev/null +++ b/openapi_client_udm/api/computers_domaincontroller_backup_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersDomaincontrollerBackupApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_domaincontroller_backup_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Backup Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerBackup + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_backup_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_backup_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Backup Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerBackup, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_backup_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_backup_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_backup_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_backup_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerBackup", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/domaincontroller_backup/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_backup_object_create(self, computers_domaincontroller_backup, **kwargs): # noqa: E501 + """Create a new Backup Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_create(computers_domaincontroller_backup, async_req=True) + >>> result = thread.get() + + :param computers_domaincontroller_backup: (required) + :type computers_domaincontroller_backup: ComputersDomaincontrollerBackup + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_backup_object_create_with_http_info(computers_domaincontroller_backup, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_backup_object_create_with_http_info(self, computers_domaincontroller_backup, **kwargs): # noqa: E501 + """Create a new Backup Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_create_with_http_info(computers_domaincontroller_backup, async_req=True) + >>> result = thread.get() + + :param computers_domaincontroller_backup: (required) + :type computers_domaincontroller_backup: ComputersDomaincontrollerBackup + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_domaincontroller_backup', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_backup_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_domaincontroller_backup' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_backup' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_backup'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_backup` when calling `udm_computers_domaincontroller_backup_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_backup' in local_var_params: + body_params = local_var_params['computers_domaincontroller_backup'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/domaincontroller_backup/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_backup_object_modify(self, dn, computers_domaincontroller_backup, **kwargs): # noqa: E501 + """Modify or move an Backup Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_modify(dn, computers_domaincontroller_backup, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_backup: (required) + :type computers_domaincontroller_backup: ComputersDomaincontrollerBackup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_backup_object_modify_with_http_info(dn, computers_domaincontroller_backup, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_backup_object_modify_with_http_info(self, dn, computers_domaincontroller_backup, **kwargs): # noqa: E501 + """Modify or move an Backup Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_modify_with_http_info(dn, computers_domaincontroller_backup, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_backup: (required) + :type computers_domaincontroller_backup: ComputersDomaincontrollerBackup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_domaincontroller_backup', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_backup_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_backup_object_modify`") # noqa: E501 + # verify the required parameter 'computers_domaincontroller_backup' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_backup' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_backup'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_backup` when calling `udm_computers_domaincontroller_backup_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_backup_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_backup_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_backup' in local_var_params: + body_params = local_var_params['computers_domaincontroller_backup'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/domaincontroller_backup/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_backup_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Backup Directory Nodes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_backup_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_backup_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Backup Directory Nodes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_backup_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_backup_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_backup_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_backup_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/domaincontroller_backup/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_backup_object_search(self, **kwargs): # noqa: E501 + """Search for Backup Directory Nodes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerBackupList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_backup_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_domaincontroller_backup_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Backup Directory Nodes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerBackupList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_backup_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_domaincontroller_backup_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_domaincontroller_backup_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_domaincontroller_backup_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_domaincontroller_backup_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_domaincontroller_backup_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerBackupList", + } + + return self.api_client.call_api( + '/computers/domaincontroller_backup/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_backup_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Backup Directory Node object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerBackup + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_backup_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_domaincontroller_backup_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Backup Directory Node object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerBackup, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_backup_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerBackup", + } + + return self.api_client.call_api( + '/computers/domaincontroller_backup/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_backup_object_update(self, dn, computers_domaincontroller_backup, **kwargs): # noqa: E501 + """Modify an Backup Directory Node object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_update(dn, computers_domaincontroller_backup, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_backup: (required) + :type computers_domaincontroller_backup: ComputersDomaincontrollerBackup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_backup_object_update_with_http_info(dn, computers_domaincontroller_backup, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_backup_object_update_with_http_info(self, dn, computers_domaincontroller_backup, **kwargs): # noqa: E501 + """Modify an Backup Directory Node object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_backup_object_update_with_http_info(dn, computers_domaincontroller_backup, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_backup: (required) + :type computers_domaincontroller_backup: ComputersDomaincontrollerBackup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_domaincontroller_backup', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_backup_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_backup_object_update`") # noqa: E501 + # verify the required parameter 'computers_domaincontroller_backup' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_backup' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_backup'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_backup` when calling `udm_computers_domaincontroller_backup_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_backup_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_backup_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_backup' in local_var_params: + body_params = local_var_params['computers_domaincontroller_backup'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/domaincontroller_backup/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_domaincontroller_master_api.py b/openapi_client_udm/api/computers_domaincontroller_master_api.py new file mode 100644 index 0000000..02f3236 --- /dev/null +++ b/openapi_client_udm/api/computers_domaincontroller_master_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersDomaincontrollerMasterApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_domaincontroller_master_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Primary Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerMaster + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_master_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_master_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Primary Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerMaster, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_master_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_master_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_master_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_master_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerMaster", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/domaincontroller_master/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_master_object_create(self, computers_domaincontroller_master, **kwargs): # noqa: E501 + """Create a new Primary Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_create(computers_domaincontroller_master, async_req=True) + >>> result = thread.get() + + :param computers_domaincontroller_master: (required) + :type computers_domaincontroller_master: ComputersDomaincontrollerMaster + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_master_object_create_with_http_info(computers_domaincontroller_master, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_master_object_create_with_http_info(self, computers_domaincontroller_master, **kwargs): # noqa: E501 + """Create a new Primary Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_create_with_http_info(computers_domaincontroller_master, async_req=True) + >>> result = thread.get() + + :param computers_domaincontroller_master: (required) + :type computers_domaincontroller_master: ComputersDomaincontrollerMaster + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_domaincontroller_master', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_master_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_domaincontroller_master' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_master' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_master'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_master` when calling `udm_computers_domaincontroller_master_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_master' in local_var_params: + body_params = local_var_params['computers_domaincontroller_master'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/domaincontroller_master/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_master_object_modify(self, dn, computers_domaincontroller_master, **kwargs): # noqa: E501 + """Modify or move an Primary Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_modify(dn, computers_domaincontroller_master, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_master: (required) + :type computers_domaincontroller_master: ComputersDomaincontrollerMaster + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_master_object_modify_with_http_info(dn, computers_domaincontroller_master, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_master_object_modify_with_http_info(self, dn, computers_domaincontroller_master, **kwargs): # noqa: E501 + """Modify or move an Primary Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_modify_with_http_info(dn, computers_domaincontroller_master, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_master: (required) + :type computers_domaincontroller_master: ComputersDomaincontrollerMaster + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_domaincontroller_master', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_master_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_master_object_modify`") # noqa: E501 + # verify the required parameter 'computers_domaincontroller_master' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_master' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_master'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_master` when calling `udm_computers_domaincontroller_master_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_master_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_master_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_master' in local_var_params: + body_params = local_var_params['computers_domaincontroller_master'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/domaincontroller_master/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_master_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Primary Directory Nodes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_master_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_master_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Primary Directory Nodes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_master_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_master_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_master_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_master_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/domaincontroller_master/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_master_object_search(self, **kwargs): # noqa: E501 + """Search for Primary Directory Nodes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerMasterList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_master_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_domaincontroller_master_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Primary Directory Nodes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerMasterList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_master_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_domaincontroller_master_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_domaincontroller_master_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_domaincontroller_master_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_domaincontroller_master_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_domaincontroller_master_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerMasterList", + } + + return self.api_client.call_api( + '/computers/domaincontroller_master/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_master_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Primary Directory Node object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerMaster + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_master_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_domaincontroller_master_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Primary Directory Node object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerMaster, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_master_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerMaster", + } + + return self.api_client.call_api( + '/computers/domaincontroller_master/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_master_object_update(self, dn, computers_domaincontroller_master, **kwargs): # noqa: E501 + """Modify an Primary Directory Node object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_update(dn, computers_domaincontroller_master, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_master: (required) + :type computers_domaincontroller_master: ComputersDomaincontrollerMaster + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_master_object_update_with_http_info(dn, computers_domaincontroller_master, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_master_object_update_with_http_info(self, dn, computers_domaincontroller_master, **kwargs): # noqa: E501 + """Modify an Primary Directory Node object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_master_object_update_with_http_info(dn, computers_domaincontroller_master, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_master: (required) + :type computers_domaincontroller_master: ComputersDomaincontrollerMaster + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_domaincontroller_master', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_master_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_master_object_update`") # noqa: E501 + # verify the required parameter 'computers_domaincontroller_master' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_master' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_master'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_master` when calling `udm_computers_domaincontroller_master_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_master_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_master_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_master' in local_var_params: + body_params = local_var_params['computers_domaincontroller_master'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/domaincontroller_master/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_domaincontroller_slave_api.py b/openapi_client_udm/api/computers_domaincontroller_slave_api.py new file mode 100644 index 0000000..36ecd67 --- /dev/null +++ b/openapi_client_udm/api/computers_domaincontroller_slave_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersDomaincontrollerSlaveApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_domaincontroller_slave_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Replica Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerSlave + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_slave_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_slave_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Replica Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerSlave, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_slave_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_slave_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_slave_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_slave_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerSlave", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/domaincontroller_slave/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_slave_object_create(self, computers_domaincontroller_slave, **kwargs): # noqa: E501 + """Create a new Replica Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_create(computers_domaincontroller_slave, async_req=True) + >>> result = thread.get() + + :param computers_domaincontroller_slave: (required) + :type computers_domaincontroller_slave: ComputersDomaincontrollerSlave + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_slave_object_create_with_http_info(computers_domaincontroller_slave, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_slave_object_create_with_http_info(self, computers_domaincontroller_slave, **kwargs): # noqa: E501 + """Create a new Replica Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_create_with_http_info(computers_domaincontroller_slave, async_req=True) + >>> result = thread.get() + + :param computers_domaincontroller_slave: (required) + :type computers_domaincontroller_slave: ComputersDomaincontrollerSlave + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_domaincontroller_slave', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_slave_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_domaincontroller_slave' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_slave' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_slave'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_slave` when calling `udm_computers_domaincontroller_slave_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_slave' in local_var_params: + body_params = local_var_params['computers_domaincontroller_slave'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/domaincontroller_slave/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_slave_object_modify(self, dn, computers_domaincontroller_slave, **kwargs): # noqa: E501 + """Modify or move an Replica Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_modify(dn, computers_domaincontroller_slave, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_slave: (required) + :type computers_domaincontroller_slave: ComputersDomaincontrollerSlave + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_slave_object_modify_with_http_info(dn, computers_domaincontroller_slave, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_slave_object_modify_with_http_info(self, dn, computers_domaincontroller_slave, **kwargs): # noqa: E501 + """Modify or move an Replica Directory Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_modify_with_http_info(dn, computers_domaincontroller_slave, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_slave: (required) + :type computers_domaincontroller_slave: ComputersDomaincontrollerSlave + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_domaincontroller_slave', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_slave_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_slave_object_modify`") # noqa: E501 + # verify the required parameter 'computers_domaincontroller_slave' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_slave' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_slave'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_slave` when calling `udm_computers_domaincontroller_slave_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_slave_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_slave_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_slave' in local_var_params: + body_params = local_var_params['computers_domaincontroller_slave'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/domaincontroller_slave/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_slave_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Replica Directory Nodes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_slave_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_slave_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Replica Directory Nodes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_slave_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_slave_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_slave_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_slave_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/domaincontroller_slave/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_slave_object_search(self, **kwargs): # noqa: E501 + """Search for Replica Directory Nodes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerSlaveList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_slave_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_domaincontroller_slave_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Replica Directory Nodes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerSlaveList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_slave_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_domaincontroller_slave_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_domaincontroller_slave_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_domaincontroller_slave_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_domaincontroller_slave_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_domaincontroller_slave_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerSlaveList", + } + + return self.api_client.call_api( + '/computers/domaincontroller_slave/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_slave_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Replica Directory Node object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersDomaincontrollerSlave + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_slave_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_domaincontroller_slave_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Replica Directory Node object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersDomaincontrollerSlave, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_slave_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersDomaincontrollerSlave", + } + + return self.api_client.call_api( + '/computers/domaincontroller_slave/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_domaincontroller_slave_object_update(self, dn, computers_domaincontroller_slave, **kwargs): # noqa: E501 + """Modify an Replica Directory Node object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_update(dn, computers_domaincontroller_slave, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_slave: (required) + :type computers_domaincontroller_slave: ComputersDomaincontrollerSlave + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_domaincontroller_slave_object_update_with_http_info(dn, computers_domaincontroller_slave, **kwargs) # noqa: E501 + + def udm_computers_domaincontroller_slave_object_update_with_http_info(self, dn, computers_domaincontroller_slave, **kwargs): # noqa: E501 + """Modify an Replica Directory Node object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_domaincontroller_slave_object_update_with_http_info(dn, computers_domaincontroller_slave, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_domaincontroller_slave: (required) + :type computers_domaincontroller_slave: ComputersDomaincontrollerSlave + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_domaincontroller_slave', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_domaincontroller_slave_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_domaincontroller_slave_object_update`") # noqa: E501 + # verify the required parameter 'computers_domaincontroller_slave' is set + if self.api_client.client_side_validation and ('computers_domaincontroller_slave' not in local_var_params or # noqa: E501 + local_var_params['computers_domaincontroller_slave'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_domaincontroller_slave` when calling `udm_computers_domaincontroller_slave_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_slave_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_domaincontroller_slave_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_domaincontroller_slave' in local_var_params: + body_params = local_var_params['computers_domaincontroller_slave'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/domaincontroller_slave/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_ipmanagedclient_api.py b/openapi_client_udm/api/computers_ipmanagedclient_api.py new file mode 100644 index 0000000..e0b8f9a --- /dev/null +++ b/openapi_client_udm/api/computers_ipmanagedclient_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersIpmanagedclientApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_ipmanagedclient_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the IP client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersIpmanagedclient + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ipmanagedclient_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_ipmanagedclient_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the IP client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersIpmanagedclient, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ipmanagedclient_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_ipmanagedclient_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ipmanagedclient_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ipmanagedclient_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersIpmanagedclient", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/ipmanagedclient/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ipmanagedclient_object_create(self, computers_ipmanagedclient, **kwargs): # noqa: E501 + """Create a new IP client object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_create(computers_ipmanagedclient, async_req=True) + >>> result = thread.get() + + :param computers_ipmanagedclient: (required) + :type computers_ipmanagedclient: ComputersIpmanagedclient + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ipmanagedclient_object_create_with_http_info(computers_ipmanagedclient, **kwargs) # noqa: E501 + + def udm_computers_ipmanagedclient_object_create_with_http_info(self, computers_ipmanagedclient, **kwargs): # noqa: E501 + """Create a new IP client object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_create_with_http_info(computers_ipmanagedclient, async_req=True) + >>> result = thread.get() + + :param computers_ipmanagedclient: (required) + :type computers_ipmanagedclient: ComputersIpmanagedclient + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_ipmanagedclient', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ipmanagedclient_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_ipmanagedclient' is set + if self.api_client.client_side_validation and ('computers_ipmanagedclient' not in local_var_params or # noqa: E501 + local_var_params['computers_ipmanagedclient'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_ipmanagedclient` when calling `udm_computers_ipmanagedclient_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_ipmanagedclient' in local_var_params: + body_params = local_var_params['computers_ipmanagedclient'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/ipmanagedclient/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ipmanagedclient_object_modify(self, dn, computers_ipmanagedclient, **kwargs): # noqa: E501 + """Modify or move an IP client object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_modify(dn, computers_ipmanagedclient, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_ipmanagedclient: (required) + :type computers_ipmanagedclient: ComputersIpmanagedclient + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ipmanagedclient_object_modify_with_http_info(dn, computers_ipmanagedclient, **kwargs) # noqa: E501 + + def udm_computers_ipmanagedclient_object_modify_with_http_info(self, dn, computers_ipmanagedclient, **kwargs): # noqa: E501 + """Modify or move an IP client object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_modify_with_http_info(dn, computers_ipmanagedclient, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_ipmanagedclient: (required) + :type computers_ipmanagedclient: ComputersIpmanagedclient + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_ipmanagedclient', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ipmanagedclient_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_ipmanagedclient_object_modify`") # noqa: E501 + # verify the required parameter 'computers_ipmanagedclient' is set + if self.api_client.client_side_validation and ('computers_ipmanagedclient' not in local_var_params or # noqa: E501 + local_var_params['computers_ipmanagedclient'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_ipmanagedclient` when calling `udm_computers_ipmanagedclient_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ipmanagedclient_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ipmanagedclient_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_ipmanagedclient' in local_var_params: + body_params = local_var_params['computers_ipmanagedclient'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/ipmanagedclient/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ipmanagedclient_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a IP clients object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ipmanagedclient_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_ipmanagedclient_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a IP clients object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ipmanagedclient_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_ipmanagedclient_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ipmanagedclient_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ipmanagedclient_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/ipmanagedclient/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ipmanagedclient_object_search(self, **kwargs): # noqa: E501 + """Search for IP clients objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersIpmanagedclientList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ipmanagedclient_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_ipmanagedclient_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for IP clients objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersIpmanagedclientList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ipmanagedclient_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_ipmanagedclient_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_ipmanagedclient_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_ipmanagedclient_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_ipmanagedclient_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_ipmanagedclient_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersIpmanagedclientList", + } + + return self.api_client.call_api( + '/computers/ipmanagedclient/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ipmanagedclient_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an IP client object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersIpmanagedclient + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ipmanagedclient_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_ipmanagedclient_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an IP client object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersIpmanagedclient, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ipmanagedclient_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersIpmanagedclient", + } + + return self.api_client.call_api( + '/computers/ipmanagedclient/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ipmanagedclient_object_update(self, dn, computers_ipmanagedclient, **kwargs): # noqa: E501 + """Modify an IP client object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_update(dn, computers_ipmanagedclient, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_ipmanagedclient: (required) + :type computers_ipmanagedclient: ComputersIpmanagedclient + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ipmanagedclient_object_update_with_http_info(dn, computers_ipmanagedclient, **kwargs) # noqa: E501 + + def udm_computers_ipmanagedclient_object_update_with_http_info(self, dn, computers_ipmanagedclient, **kwargs): # noqa: E501 + """Modify an IP client object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ipmanagedclient_object_update_with_http_info(dn, computers_ipmanagedclient, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_ipmanagedclient: (required) + :type computers_ipmanagedclient: ComputersIpmanagedclient + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_ipmanagedclient', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ipmanagedclient_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_ipmanagedclient_object_update`") # noqa: E501 + # verify the required parameter 'computers_ipmanagedclient' is set + if self.api_client.client_side_validation and ('computers_ipmanagedclient' not in local_var_params or # noqa: E501 + local_var_params['computers_ipmanagedclient'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_ipmanagedclient` when calling `udm_computers_ipmanagedclient_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ipmanagedclient_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ipmanagedclient_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_ipmanagedclient' in local_var_params: + body_params = local_var_params['computers_ipmanagedclient'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/ipmanagedclient/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_linux_api.py b/openapi_client_udm/api/computers_linux_api.py new file mode 100644 index 0000000..7f27126 --- /dev/null +++ b/openapi_client_udm/api/computers_linux_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersLinuxApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_linux_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Linux Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersLinux + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_linux_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_linux_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Linux Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersLinux, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_linux_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_linux_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_linux_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_linux_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersLinux", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/linux/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_linux_object_create(self, computers_linux, **kwargs): # noqa: E501 + """Create a new Linux Computer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_create(computers_linux, async_req=True) + >>> result = thread.get() + + :param computers_linux: (required) + :type computers_linux: ComputersLinux + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_linux_object_create_with_http_info(computers_linux, **kwargs) # noqa: E501 + + def udm_computers_linux_object_create_with_http_info(self, computers_linux, **kwargs): # noqa: E501 + """Create a new Linux Computer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_create_with_http_info(computers_linux, async_req=True) + >>> result = thread.get() + + :param computers_linux: (required) + :type computers_linux: ComputersLinux + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_linux', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_linux_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_linux' is set + if self.api_client.client_side_validation and ('computers_linux' not in local_var_params or # noqa: E501 + local_var_params['computers_linux'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_linux` when calling `udm_computers_linux_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_linux' in local_var_params: + body_params = local_var_params['computers_linux'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/linux/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_linux_object_modify(self, dn, computers_linux, **kwargs): # noqa: E501 + """Modify or move an Linux Computer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_modify(dn, computers_linux, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_linux: (required) + :type computers_linux: ComputersLinux + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_linux_object_modify_with_http_info(dn, computers_linux, **kwargs) # noqa: E501 + + def udm_computers_linux_object_modify_with_http_info(self, dn, computers_linux, **kwargs): # noqa: E501 + """Modify or move an Linux Computer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_modify_with_http_info(dn, computers_linux, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_linux: (required) + :type computers_linux: ComputersLinux + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_linux', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_linux_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_linux_object_modify`") # noqa: E501 + # verify the required parameter 'computers_linux' is set + if self.api_client.client_side_validation and ('computers_linux' not in local_var_params or # noqa: E501 + local_var_params['computers_linux'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_linux` when calling `udm_computers_linux_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_linux_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_linux_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_linux' in local_var_params: + body_params = local_var_params['computers_linux'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/linux/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_linux_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Linux Computers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_linux_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_linux_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Linux Computers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_linux_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_linux_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_linux_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_linux_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/linux/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_linux_object_search(self, **kwargs): # noqa: E501 + """Search for Linux Computers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersLinuxList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_linux_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_linux_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Linux Computers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersLinuxList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_linux_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_linux_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_linux_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_linux_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_linux_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_linux_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersLinuxList", + } + + return self.api_client.call_api( + '/computers/linux/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_linux_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Linux Computer object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersLinux + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_linux_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_linux_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Linux Computer object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersLinux, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_linux_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersLinux", + } + + return self.api_client.call_api( + '/computers/linux/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_linux_object_update(self, dn, computers_linux, **kwargs): # noqa: E501 + """Modify an Linux Computer object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_update(dn, computers_linux, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_linux: (required) + :type computers_linux: ComputersLinux + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_linux_object_update_with_http_info(dn, computers_linux, **kwargs) # noqa: E501 + + def udm_computers_linux_object_update_with_http_info(self, dn, computers_linux, **kwargs): # noqa: E501 + """Modify an Linux Computer object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_linux_object_update_with_http_info(dn, computers_linux, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_linux: (required) + :type computers_linux: ComputersLinux + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_linux', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_linux_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_linux_object_update`") # noqa: E501 + # verify the required parameter 'computers_linux' is set + if self.api_client.client_side_validation and ('computers_linux' not in local_var_params or # noqa: E501 + local_var_params['computers_linux'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_linux` when calling `udm_computers_linux_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_linux_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_linux_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_linux' in local_var_params: + body_params = local_var_params['computers_linux'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/linux/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_macos_api.py b/openapi_client_udm/api/computers_macos_api.py new file mode 100644 index 0000000..8840a86 --- /dev/null +++ b/openapi_client_udm/api/computers_macos_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersMacosApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_macos_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the macOS Client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersMacos + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_macos_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_macos_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the macOS Client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersMacos, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_macos_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_macos_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_macos_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_macos_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersMacos", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/macos/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_macos_object_create(self, computers_macos, **kwargs): # noqa: E501 + """Create a new macOS Client object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_create(computers_macos, async_req=True) + >>> result = thread.get() + + :param computers_macos: (required) + :type computers_macos: ComputersMacos + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_macos_object_create_with_http_info(computers_macos, **kwargs) # noqa: E501 + + def udm_computers_macos_object_create_with_http_info(self, computers_macos, **kwargs): # noqa: E501 + """Create a new macOS Client object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_create_with_http_info(computers_macos, async_req=True) + >>> result = thread.get() + + :param computers_macos: (required) + :type computers_macos: ComputersMacos + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_macos', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_macos_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_macos' is set + if self.api_client.client_side_validation and ('computers_macos' not in local_var_params or # noqa: E501 + local_var_params['computers_macos'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_macos` when calling `udm_computers_macos_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_macos' in local_var_params: + body_params = local_var_params['computers_macos'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/macos/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_macos_object_modify(self, dn, computers_macos, **kwargs): # noqa: E501 + """Modify or move an macOS Client object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_modify(dn, computers_macos, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_macos: (required) + :type computers_macos: ComputersMacos + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_macos_object_modify_with_http_info(dn, computers_macos, **kwargs) # noqa: E501 + + def udm_computers_macos_object_modify_with_http_info(self, dn, computers_macos, **kwargs): # noqa: E501 + """Modify or move an macOS Client object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_modify_with_http_info(dn, computers_macos, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_macos: (required) + :type computers_macos: ComputersMacos + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_macos', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_macos_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_macos_object_modify`") # noqa: E501 + # verify the required parameter 'computers_macos' is set + if self.api_client.client_side_validation and ('computers_macos' not in local_var_params or # noqa: E501 + local_var_params['computers_macos'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_macos` when calling `udm_computers_macos_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_macos_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_macos_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_macos' in local_var_params: + body_params = local_var_params['computers_macos'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/macos/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_macos_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a macOS Clients object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_macos_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_macos_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a macOS Clients object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_macos_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_macos_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_macos_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_macos_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/macos/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_macos_object_search(self, **kwargs): # noqa: E501 + """Search for macOS Clients objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersMacosList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_macos_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_macos_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for macOS Clients objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersMacosList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_macos_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_macos_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_macos_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_macos_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_macos_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_macos_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersMacosList", + } + + return self.api_client.call_api( + '/computers/macos/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_macos_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an macOS Client object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersMacos + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_macos_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_macos_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an macOS Client object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersMacos, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_macos_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersMacos", + } + + return self.api_client.call_api( + '/computers/macos/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_macos_object_update(self, dn, computers_macos, **kwargs): # noqa: E501 + """Modify an macOS Client object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_update(dn, computers_macos, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_macos: (required) + :type computers_macos: ComputersMacos + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_macos_object_update_with_http_info(dn, computers_macos, **kwargs) # noqa: E501 + + def udm_computers_macos_object_update_with_http_info(self, dn, computers_macos, **kwargs): # noqa: E501 + """Modify an macOS Client object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_macos_object_update_with_http_info(dn, computers_macos, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_macos: (required) + :type computers_macos: ComputersMacos + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_macos', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_macos_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_macos_object_update`") # noqa: E501 + # verify the required parameter 'computers_macos' is set + if self.api_client.client_side_validation and ('computers_macos' not in local_var_params or # noqa: E501 + local_var_params['computers_macos'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_macos` when calling `udm_computers_macos_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_macos_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_macos_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_macos' in local_var_params: + body_params = local_var_params['computers_macos'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/macos/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_memberserver_api.py b/openapi_client_udm/api/computers_memberserver_api.py new file mode 100644 index 0000000..215cb49 --- /dev/null +++ b/openapi_client_udm/api/computers_memberserver_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersMemberserverApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_memberserver_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Managed Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersMemberserver + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_memberserver_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_memberserver_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Managed Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersMemberserver, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_memberserver_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_memberserver_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_memberserver_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_memberserver_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersMemberserver", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/memberserver/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_memberserver_object_create(self, computers_memberserver, **kwargs): # noqa: E501 + """Create a new Managed Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_create(computers_memberserver, async_req=True) + >>> result = thread.get() + + :param computers_memberserver: (required) + :type computers_memberserver: ComputersMemberserver + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_memberserver_object_create_with_http_info(computers_memberserver, **kwargs) # noqa: E501 + + def udm_computers_memberserver_object_create_with_http_info(self, computers_memberserver, **kwargs): # noqa: E501 + """Create a new Managed Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_create_with_http_info(computers_memberserver, async_req=True) + >>> result = thread.get() + + :param computers_memberserver: (required) + :type computers_memberserver: ComputersMemberserver + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_memberserver', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_memberserver_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_memberserver' is set + if self.api_client.client_side_validation and ('computers_memberserver' not in local_var_params or # noqa: E501 + local_var_params['computers_memberserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_memberserver` when calling `udm_computers_memberserver_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_memberserver' in local_var_params: + body_params = local_var_params['computers_memberserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/memberserver/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_memberserver_object_modify(self, dn, computers_memberserver, **kwargs): # noqa: E501 + """Modify or move an Managed Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_modify(dn, computers_memberserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_memberserver: (required) + :type computers_memberserver: ComputersMemberserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_memberserver_object_modify_with_http_info(dn, computers_memberserver, **kwargs) # noqa: E501 + + def udm_computers_memberserver_object_modify_with_http_info(self, dn, computers_memberserver, **kwargs): # noqa: E501 + """Modify or move an Managed Node object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_modify_with_http_info(dn, computers_memberserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_memberserver: (required) + :type computers_memberserver: ComputersMemberserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_memberserver', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_memberserver_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_memberserver_object_modify`") # noqa: E501 + # verify the required parameter 'computers_memberserver' is set + if self.api_client.client_side_validation and ('computers_memberserver' not in local_var_params or # noqa: E501 + local_var_params['computers_memberserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_memberserver` when calling `udm_computers_memberserver_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_memberserver_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_memberserver_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_memberserver' in local_var_params: + body_params = local_var_params['computers_memberserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/memberserver/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_memberserver_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Managed Nodes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_memberserver_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_memberserver_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Managed Nodes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_memberserver_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_memberserver_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_memberserver_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_memberserver_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/memberserver/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_memberserver_object_search(self, **kwargs): # noqa: E501 + """Search for Managed Nodes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersMemberserverList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_memberserver_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_memberserver_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Managed Nodes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersMemberserverList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_memberserver_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_memberserver_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_memberserver_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_memberserver_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_memberserver_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_memberserver_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersMemberserverList", + } + + return self.api_client.call_api( + '/computers/memberserver/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_memberserver_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Managed Node object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersMemberserver + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_memberserver_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_memberserver_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Managed Node object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersMemberserver, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_memberserver_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersMemberserver", + } + + return self.api_client.call_api( + '/computers/memberserver/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_memberserver_object_update(self, dn, computers_memberserver, **kwargs): # noqa: E501 + """Modify an Managed Node object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_update(dn, computers_memberserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_memberserver: (required) + :type computers_memberserver: ComputersMemberserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_memberserver_object_update_with_http_info(dn, computers_memberserver, **kwargs) # noqa: E501 + + def udm_computers_memberserver_object_update_with_http_info(self, dn, computers_memberserver, **kwargs): # noqa: E501 + """Modify an Managed Node object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_memberserver_object_update_with_http_info(dn, computers_memberserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_memberserver: (required) + :type computers_memberserver: ComputersMemberserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_memberserver', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_memberserver_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_memberserver_object_update`") # noqa: E501 + # verify the required parameter 'computers_memberserver' is set + if self.api_client.client_side_validation and ('computers_memberserver' not in local_var_params or # noqa: E501 + local_var_params['computers_memberserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_memberserver` when calling `udm_computers_memberserver_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_memberserver_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_memberserver_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_memberserver' in local_var_params: + body_params = local_var_params['computers_memberserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/memberserver/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_trustaccount_api.py b/openapi_client_udm/api/computers_trustaccount_api.py new file mode 100644 index 0000000..913aea7 --- /dev/null +++ b/openapi_client_udm/api/computers_trustaccount_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersTrustaccountApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_trustaccount_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Domain trust account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersTrustaccount + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_trustaccount_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_trustaccount_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Domain trust account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersTrustaccount, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_trustaccount_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_trustaccount_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_trustaccount_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_trustaccount_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersTrustaccount", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/trustaccount/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_trustaccount_object_create(self, computers_trustaccount, **kwargs): # noqa: E501 + """Create a new Domain trust account object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_create(computers_trustaccount, async_req=True) + >>> result = thread.get() + + :param computers_trustaccount: (required) + :type computers_trustaccount: ComputersTrustaccount + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_trustaccount_object_create_with_http_info(computers_trustaccount, **kwargs) # noqa: E501 + + def udm_computers_trustaccount_object_create_with_http_info(self, computers_trustaccount, **kwargs): # noqa: E501 + """Create a new Domain trust account object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_create_with_http_info(computers_trustaccount, async_req=True) + >>> result = thread.get() + + :param computers_trustaccount: (required) + :type computers_trustaccount: ComputersTrustaccount + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_trustaccount', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_trustaccount_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_trustaccount' is set + if self.api_client.client_side_validation and ('computers_trustaccount' not in local_var_params or # noqa: E501 + local_var_params['computers_trustaccount'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_trustaccount` when calling `udm_computers_trustaccount_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_trustaccount' in local_var_params: + body_params = local_var_params['computers_trustaccount'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/trustaccount/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_trustaccount_object_modify(self, dn, computers_trustaccount, **kwargs): # noqa: E501 + """Modify or move an Domain trust account object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_modify(dn, computers_trustaccount, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_trustaccount: (required) + :type computers_trustaccount: ComputersTrustaccount + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_trustaccount_object_modify_with_http_info(dn, computers_trustaccount, **kwargs) # noqa: E501 + + def udm_computers_trustaccount_object_modify_with_http_info(self, dn, computers_trustaccount, **kwargs): # noqa: E501 + """Modify or move an Domain trust account object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_modify_with_http_info(dn, computers_trustaccount, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_trustaccount: (required) + :type computers_trustaccount: ComputersTrustaccount + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_trustaccount', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_trustaccount_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_trustaccount_object_modify`") # noqa: E501 + # verify the required parameter 'computers_trustaccount' is set + if self.api_client.client_side_validation and ('computers_trustaccount' not in local_var_params or # noqa: E501 + local_var_params['computers_trustaccount'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_trustaccount` when calling `udm_computers_trustaccount_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_trustaccount_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_trustaccount_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_trustaccount' in local_var_params: + body_params = local_var_params['computers_trustaccount'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/trustaccount/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_trustaccount_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Domain trust accounts object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_trustaccount_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_trustaccount_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Domain trust accounts object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_trustaccount_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_trustaccount_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_trustaccount_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_trustaccount_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/trustaccount/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_trustaccount_object_search(self, **kwargs): # noqa: E501 + """Search for Domain trust accounts objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersTrustaccountList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_trustaccount_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_trustaccount_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Domain trust accounts objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersTrustaccountList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_trustaccount_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_trustaccount_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_trustaccount_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_trustaccount_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_trustaccount_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_trustaccount_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersTrustaccountList", + } + + return self.api_client.call_api( + '/computers/trustaccount/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_trustaccount_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Domain trust account object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersTrustaccount + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_trustaccount_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_trustaccount_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Domain trust account object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersTrustaccount, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_trustaccount_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersTrustaccount", + } + + return self.api_client.call_api( + '/computers/trustaccount/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_trustaccount_object_update(self, dn, computers_trustaccount, **kwargs): # noqa: E501 + """Modify an Domain trust account object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_update(dn, computers_trustaccount, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_trustaccount: (required) + :type computers_trustaccount: ComputersTrustaccount + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_trustaccount_object_update_with_http_info(dn, computers_trustaccount, **kwargs) # noqa: E501 + + def udm_computers_trustaccount_object_update_with_http_info(self, dn, computers_trustaccount, **kwargs): # noqa: E501 + """Modify an Domain trust account object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_trustaccount_object_update_with_http_info(dn, computers_trustaccount, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_trustaccount: (required) + :type computers_trustaccount: ComputersTrustaccount + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_trustaccount', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_trustaccount_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_trustaccount_object_update`") # noqa: E501 + # verify the required parameter 'computers_trustaccount' is set + if self.api_client.client_side_validation and ('computers_trustaccount' not in local_var_params or # noqa: E501 + local_var_params['computers_trustaccount'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_trustaccount` when calling `udm_computers_trustaccount_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_trustaccount_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_trustaccount_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_trustaccount' in local_var_params: + body_params = local_var_params['computers_trustaccount'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/trustaccount/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_ubuntu_api.py b/openapi_client_udm/api/computers_ubuntu_api.py new file mode 100644 index 0000000..8b0165f --- /dev/null +++ b/openapi_client_udm/api/computers_ubuntu_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersUbuntuApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_ubuntu_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Ubuntu Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersUbuntu + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ubuntu_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_ubuntu_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Ubuntu Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersUbuntu, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ubuntu_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_ubuntu_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ubuntu_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ubuntu_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersUbuntu", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/ubuntu/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ubuntu_object_create(self, computers_ubuntu, **kwargs): # noqa: E501 + """Create a new Ubuntu Computer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_create(computers_ubuntu, async_req=True) + >>> result = thread.get() + + :param computers_ubuntu: (required) + :type computers_ubuntu: ComputersUbuntu + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ubuntu_object_create_with_http_info(computers_ubuntu, **kwargs) # noqa: E501 + + def udm_computers_ubuntu_object_create_with_http_info(self, computers_ubuntu, **kwargs): # noqa: E501 + """Create a new Ubuntu Computer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_create_with_http_info(computers_ubuntu, async_req=True) + >>> result = thread.get() + + :param computers_ubuntu: (required) + :type computers_ubuntu: ComputersUbuntu + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_ubuntu', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ubuntu_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_ubuntu' is set + if self.api_client.client_side_validation and ('computers_ubuntu' not in local_var_params or # noqa: E501 + local_var_params['computers_ubuntu'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_ubuntu` when calling `udm_computers_ubuntu_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_ubuntu' in local_var_params: + body_params = local_var_params['computers_ubuntu'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/ubuntu/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ubuntu_object_modify(self, dn, computers_ubuntu, **kwargs): # noqa: E501 + """Modify or move an Ubuntu Computer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_modify(dn, computers_ubuntu, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_ubuntu: (required) + :type computers_ubuntu: ComputersUbuntu + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ubuntu_object_modify_with_http_info(dn, computers_ubuntu, **kwargs) # noqa: E501 + + def udm_computers_ubuntu_object_modify_with_http_info(self, dn, computers_ubuntu, **kwargs): # noqa: E501 + """Modify or move an Ubuntu Computer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_modify_with_http_info(dn, computers_ubuntu, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_ubuntu: (required) + :type computers_ubuntu: ComputersUbuntu + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_ubuntu', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ubuntu_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_ubuntu_object_modify`") # noqa: E501 + # verify the required parameter 'computers_ubuntu' is set + if self.api_client.client_side_validation and ('computers_ubuntu' not in local_var_params or # noqa: E501 + local_var_params['computers_ubuntu'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_ubuntu` when calling `udm_computers_ubuntu_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ubuntu_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ubuntu_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_ubuntu' in local_var_params: + body_params = local_var_params['computers_ubuntu'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/ubuntu/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ubuntu_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Ubuntu Computers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ubuntu_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_ubuntu_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Ubuntu Computers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ubuntu_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_ubuntu_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ubuntu_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ubuntu_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/ubuntu/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ubuntu_object_search(self, **kwargs): # noqa: E501 + """Search for Ubuntu Computers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersUbuntuList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ubuntu_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_ubuntu_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Ubuntu Computers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersUbuntuList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ubuntu_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_ubuntu_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_ubuntu_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_ubuntu_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_ubuntu_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_ubuntu_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersUbuntuList", + } + + return self.api_client.call_api( + '/computers/ubuntu/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ubuntu_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Ubuntu Computer object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersUbuntu + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ubuntu_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_ubuntu_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Ubuntu Computer object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersUbuntu, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ubuntu_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersUbuntu", + } + + return self.api_client.call_api( + '/computers/ubuntu/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_ubuntu_object_update(self, dn, computers_ubuntu, **kwargs): # noqa: E501 + """Modify an Ubuntu Computer object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_update(dn, computers_ubuntu, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_ubuntu: (required) + :type computers_ubuntu: ComputersUbuntu + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_ubuntu_object_update_with_http_info(dn, computers_ubuntu, **kwargs) # noqa: E501 + + def udm_computers_ubuntu_object_update_with_http_info(self, dn, computers_ubuntu, **kwargs): # noqa: E501 + """Modify an Ubuntu Computer object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_ubuntu_object_update_with_http_info(dn, computers_ubuntu, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_ubuntu: (required) + :type computers_ubuntu: ComputersUbuntu + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_ubuntu', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_ubuntu_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_ubuntu_object_update`") # noqa: E501 + # verify the required parameter 'computers_ubuntu' is set + if self.api_client.client_side_validation and ('computers_ubuntu' not in local_var_params or # noqa: E501 + local_var_params['computers_ubuntu'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_ubuntu` when calling `udm_computers_ubuntu_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ubuntu_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_ubuntu_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_ubuntu' in local_var_params: + body_params = local_var_params['computers_ubuntu'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/ubuntu/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_windows_api.py b/openapi_client_udm/api/computers_windows_api.py new file mode 100644 index 0000000..ed6f6db --- /dev/null +++ b/openapi_client_udm/api/computers_windows_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersWindowsApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_windows_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Windows Workstation/Server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersWindows + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_windows_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Windows Workstation/Server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersWindows, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_windows_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersWindows", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/windows/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_object_create(self, computers_windows, **kwargs): # noqa: E501 + """Create a new Windows Workstation/Server object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_create(computers_windows, async_req=True) + >>> result = thread.get() + + :param computers_windows: (required) + :type computers_windows: ComputersWindows + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_object_create_with_http_info(computers_windows, **kwargs) # noqa: E501 + + def udm_computers_windows_object_create_with_http_info(self, computers_windows, **kwargs): # noqa: E501 + """Create a new Windows Workstation/Server object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_create_with_http_info(computers_windows, async_req=True) + >>> result = thread.get() + + :param computers_windows: (required) + :type computers_windows: ComputersWindows + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_windows', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_windows' is set + if self.api_client.client_side_validation and ('computers_windows' not in local_var_params or # noqa: E501 + local_var_params['computers_windows'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_windows` when calling `udm_computers_windows_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_windows' in local_var_params: + body_params = local_var_params['computers_windows'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/windows/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_object_modify(self, dn, computers_windows, **kwargs): # noqa: E501 + """Modify or move an Windows Workstation/Server object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_modify(dn, computers_windows, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_windows: (required) + :type computers_windows: ComputersWindows + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_object_modify_with_http_info(dn, computers_windows, **kwargs) # noqa: E501 + + def udm_computers_windows_object_modify_with_http_info(self, dn, computers_windows, **kwargs): # noqa: E501 + """Modify or move an Windows Workstation/Server object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_modify_with_http_info(dn, computers_windows, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_windows: (required) + :type computers_windows: ComputersWindows + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_windows', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_windows_object_modify`") # noqa: E501 + # verify the required parameter 'computers_windows' is set + if self.api_client.client_side_validation and ('computers_windows' not in local_var_params or # noqa: E501 + local_var_params['computers_windows'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_windows` when calling `udm_computers_windows_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_windows' in local_var_params: + body_params = local_var_params['computers_windows'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/windows/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Windows Workstations/Servers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_windows_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Windows Workstations/Servers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_windows_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/windows/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_object_search(self, **kwargs): # noqa: E501 + """Search for Windows Workstations/Servers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersWindowsList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_windows_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Windows Workstations/Servers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersWindowsList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_windows_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_windows_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_windows_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_windows_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_windows_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersWindowsList", + } + + return self.api_client.call_api( + '/computers/windows/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Windows Workstation/Server object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersWindows + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_windows_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Windows Workstation/Server object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersWindows, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersWindows", + } + + return self.api_client.call_api( + '/computers/windows/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_object_update(self, dn, computers_windows, **kwargs): # noqa: E501 + """Modify an Windows Workstation/Server object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_update(dn, computers_windows, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_windows: (required) + :type computers_windows: ComputersWindows + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_object_update_with_http_info(dn, computers_windows, **kwargs) # noqa: E501 + + def udm_computers_windows_object_update_with_http_info(self, dn, computers_windows, **kwargs): # noqa: E501 + """Modify an Windows Workstation/Server object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_object_update_with_http_info(dn, computers_windows, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_windows: (required) + :type computers_windows: ComputersWindows + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_windows', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_windows_object_update`") # noqa: E501 + # verify the required parameter 'computers_windows' is set + if self.api_client.client_side_validation and ('computers_windows' not in local_var_params or # noqa: E501 + local_var_params['computers_windows'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_windows` when calling `udm_computers_windows_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_windows' in local_var_params: + body_params = local_var_params['computers_windows'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/windows/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/computers_windows_domaincontroller_api.py b/openapi_client_udm/api/computers_windows_domaincontroller_api.py new file mode 100644 index 0000000..328328b --- /dev/null +++ b/openapi_client_udm/api/computers_windows_domaincontroller_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ComputersWindowsDomaincontrollerApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_computers_windows_domaincontroller_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Windows Domaincontroller object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersWindowsDomaincontroller + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_domaincontroller_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_windows_domaincontroller_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Windows Domaincontroller object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersWindowsDomaincontroller, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_domaincontroller_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_windows_domaincontroller_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_domaincontroller_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_domaincontroller_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersWindowsDomaincontroller", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/windows_domaincontroller/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_domaincontroller_object_create(self, computers_windows_domaincontroller, **kwargs): # noqa: E501 + """Create a new Windows Domaincontroller object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_create(computers_windows_domaincontroller, async_req=True) + >>> result = thread.get() + + :param computers_windows_domaincontroller: (required) + :type computers_windows_domaincontroller: ComputersWindowsDomaincontroller + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_domaincontroller_object_create_with_http_info(computers_windows_domaincontroller, **kwargs) # noqa: E501 + + def udm_computers_windows_domaincontroller_object_create_with_http_info(self, computers_windows_domaincontroller, **kwargs): # noqa: E501 + """Create a new Windows Domaincontroller object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_create_with_http_info(computers_windows_domaincontroller, async_req=True) + >>> result = thread.get() + + :param computers_windows_domaincontroller: (required) + :type computers_windows_domaincontroller: ComputersWindowsDomaincontroller + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'computers_windows_domaincontroller', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_domaincontroller_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'computers_windows_domaincontroller' is set + if self.api_client.client_side_validation and ('computers_windows_domaincontroller' not in local_var_params or # noqa: E501 + local_var_params['computers_windows_domaincontroller'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_windows_domaincontroller` when calling `udm_computers_windows_domaincontroller_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_windows_domaincontroller' in local_var_params: + body_params = local_var_params['computers_windows_domaincontroller'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/computers/windows_domaincontroller/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_domaincontroller_object_modify(self, dn, computers_windows_domaincontroller, **kwargs): # noqa: E501 + """Modify or move an Windows Domaincontroller object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_modify(dn, computers_windows_domaincontroller, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_windows_domaincontroller: (required) + :type computers_windows_domaincontroller: ComputersWindowsDomaincontroller + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_domaincontroller_object_modify_with_http_info(dn, computers_windows_domaincontroller, **kwargs) # noqa: E501 + + def udm_computers_windows_domaincontroller_object_modify_with_http_info(self, dn, computers_windows_domaincontroller, **kwargs): # noqa: E501 + """Modify or move an Windows Domaincontroller object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_modify_with_http_info(dn, computers_windows_domaincontroller, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_windows_domaincontroller: (required) + :type computers_windows_domaincontroller: ComputersWindowsDomaincontroller + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_windows_domaincontroller', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_domaincontroller_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_windows_domaincontroller_object_modify`") # noqa: E501 + # verify the required parameter 'computers_windows_domaincontroller' is set + if self.api_client.client_side_validation and ('computers_windows_domaincontroller' not in local_var_params or # noqa: E501 + local_var_params['computers_windows_domaincontroller'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_windows_domaincontroller` when calling `udm_computers_windows_domaincontroller_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_domaincontroller_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_domaincontroller_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_windows_domaincontroller' in local_var_params: + body_params = local_var_params['computers_windows_domaincontroller'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/computers/windows_domaincontroller/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_domaincontroller_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Windows Domaincontrollers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_domaincontroller_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_computers_windows_domaincontroller_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Windows Domaincontrollers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_domaincontroller_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_windows_domaincontroller_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_domaincontroller_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_domaincontroller_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/windows_domaincontroller/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_domaincontroller_object_search(self, **kwargs): # noqa: E501 + """Search for Windows Domaincontrollers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersWindowsDomaincontrollerList + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_domaincontroller_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_windows_domaincontroller_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Windows Domaincontrollers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersWindowsDomaincontrollerList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_domaincontroller_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_computers_windows_domaincontroller_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_computers_windows_domaincontroller_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_computers_windows_domaincontroller_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_computers_windows_domaincontroller_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_computers_windows_domaincontroller_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersWindowsDomaincontrollerList", + } + + return self.api_client.call_api( + '/computers/windows_domaincontroller/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_domaincontroller_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Windows Domaincontroller object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ComputersWindowsDomaincontroller + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_domaincontroller_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_computers_windows_domaincontroller_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Windows Domaincontroller object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ComputersWindowsDomaincontroller, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_domaincontroller_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ComputersWindowsDomaincontroller", + } + + return self.api_client.call_api( + '/computers/windows_domaincontroller/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_computers_windows_domaincontroller_object_update(self, dn, computers_windows_domaincontroller, **kwargs): # noqa: E501 + """Modify an Windows Domaincontroller object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_update(dn, computers_windows_domaincontroller, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_windows_domaincontroller: (required) + :type computers_windows_domaincontroller: ComputersWindowsDomaincontroller + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_computers_windows_domaincontroller_object_update_with_http_info(dn, computers_windows_domaincontroller, **kwargs) # noqa: E501 + + def udm_computers_windows_domaincontroller_object_update_with_http_info(self, dn, computers_windows_domaincontroller, **kwargs): # noqa: E501 + """Modify an Windows Domaincontroller object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_computers_windows_domaincontroller_object_update_with_http_info(dn, computers_windows_domaincontroller, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param computers_windows_domaincontroller: (required) + :type computers_windows_domaincontroller: ComputersWindowsDomaincontroller + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'computers_windows_domaincontroller', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_computers_windows_domaincontroller_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_computers_windows_domaincontroller_object_update`") # noqa: E501 + # verify the required parameter 'computers_windows_domaincontroller' is set + if self.api_client.client_side_validation and ('computers_windows_domaincontroller' not in local_var_params or # noqa: E501 + local_var_params['computers_windows_domaincontroller'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `computers_windows_domaincontroller` when calling `udm_computers_windows_domaincontroller_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_domaincontroller_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_computers_windows_domaincontroller_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'computers_windows_domaincontroller' in local_var_params: + body_params = local_var_params['computers_windows_domaincontroller'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/computers/windows_domaincontroller/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/container_cn_api.py b/openapi_client_udm/api/container_cn_api.py new file mode 100644 index 0000000..a80c754 --- /dev/null +++ b/openapi_client_udm/api/container_cn_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ContainerCnApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_container_cn_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerCn + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_cn_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_container_cn_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerCn, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_cn_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_cn_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_cn_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_cn_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerCn", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/container/cn/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_cn_object_create(self, container_cn, **kwargs): # noqa: E501 + """Create a new Container object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_create(container_cn, async_req=True) + >>> result = thread.get() + + :param container_cn: (required) + :type container_cn: ContainerCn + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_cn_object_create_with_http_info(container_cn, **kwargs) # noqa: E501 + + def udm_container_cn_object_create_with_http_info(self, container_cn, **kwargs): # noqa: E501 + """Create a new Container object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_create_with_http_info(container_cn, async_req=True) + >>> result = thread.get() + + :param container_cn: (required) + :type container_cn: ContainerCn + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'container_cn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_cn_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'container_cn' is set + if self.api_client.client_side_validation and ('container_cn' not in local_var_params or # noqa: E501 + local_var_params['container_cn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_cn` when calling `udm_container_cn_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_cn' in local_var_params: + body_params = local_var_params['container_cn'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/container/cn/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_cn_object_modify(self, dn, container_cn, **kwargs): # noqa: E501 + """Modify or move an Container object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_modify(dn, container_cn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_cn: (required) + :type container_cn: ContainerCn + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_cn_object_modify_with_http_info(dn, container_cn, **kwargs) # noqa: E501 + + def udm_container_cn_object_modify_with_http_info(self, dn, container_cn, **kwargs): # noqa: E501 + """Modify or move an Container object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_modify_with_http_info(dn, container_cn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_cn: (required) + :type container_cn: ContainerCn + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'container_cn', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_cn_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_cn_object_modify`") # noqa: E501 + # verify the required parameter 'container_cn' is set + if self.api_client.client_side_validation and ('container_cn' not in local_var_params or # noqa: E501 + local_var_params['container_cn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_cn` when calling `udm_container_cn_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_cn_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_cn_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_cn' in local_var_params: + body_params = local_var_params['container_cn'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/container/cn/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_cn_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Containers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_cn_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_container_cn_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Containers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_cn_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_cn_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_cn_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_cn_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/container/cn/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_cn_object_search(self, **kwargs): # noqa: E501 + """Search for Containers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerCnList + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_cn_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_container_cn_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Containers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerCnList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_cn_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_container_cn_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_container_cn_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_container_cn_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_container_cn_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_container_cn_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerCnList", + } + + return self.api_client.call_api( + '/container/cn/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_cn_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Container object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerCn + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_cn_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_container_cn_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Container object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerCn, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_cn_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerCn", + } + + return self.api_client.call_api( + '/container/cn/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_cn_object_update(self, dn, container_cn, **kwargs): # noqa: E501 + """Modify an Container object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_update(dn, container_cn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_cn: (required) + :type container_cn: ContainerCn + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_cn_object_update_with_http_info(dn, container_cn, **kwargs) # noqa: E501 + + def udm_container_cn_object_update_with_http_info(self, dn, container_cn, **kwargs): # noqa: E501 + """Modify an Container object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_cn_object_update_with_http_info(dn, container_cn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_cn: (required) + :type container_cn: ContainerCn + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'container_cn', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_cn_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_cn_object_update`") # noqa: E501 + # verify the required parameter 'container_cn' is set + if self.api_client.client_side_validation and ('container_cn' not in local_var_params or # noqa: E501 + local_var_params['container_cn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_cn` when calling `udm_container_cn_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_cn_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_cn_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_cn' in local_var_params: + body_params = local_var_params['container_cn'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/container/cn/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/container_dc_api.py b/openapi_client_udm/api/container_dc_api.py new file mode 100644 index 0000000..c9c2bab --- /dev/null +++ b/openapi_client_udm/api/container_dc_api.py @@ -0,0 +1,897 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ContainerDcApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_container_dc_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Domain Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_dc_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerDc + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_dc_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_container_dc_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Domain Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_dc_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerDc, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_dc_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_dc_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_dc_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_dc_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerDc", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/container/dc/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_dc_object_modify(self, dn, container_dc, **kwargs): # noqa: E501 + """Modify or move an Domain Container object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_dc_object_modify(dn, container_dc, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_dc: (required) + :type container_dc: ContainerDc + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_dc_object_modify_with_http_info(dn, container_dc, **kwargs) # noqa: E501 + + def udm_container_dc_object_modify_with_http_info(self, dn, container_dc, **kwargs): # noqa: E501 + """Modify or move an Domain Container object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_dc_object_modify_with_http_info(dn, container_dc, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_dc: (required) + :type container_dc: ContainerDc + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'container_dc', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_dc_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_dc_object_modify`") # noqa: E501 + # verify the required parameter 'container_dc' is set + if self.api_client.client_side_validation and ('container_dc' not in local_var_params or # noqa: E501 + local_var_params['container_dc'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_dc` when calling `udm_container_dc_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_dc_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_dc_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_dc' in local_var_params: + body_params = local_var_params['container_dc'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/container/dc/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_dc_object_search(self, **kwargs): # noqa: E501 + """Search for Domain Containers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_dc_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerDcList + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_dc_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_container_dc_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Domain Containers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_dc_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerDcList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_dc_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_container_dc_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_container_dc_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_container_dc_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_container_dc_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_container_dc_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerDcList", + } + + return self.api_client.call_api( + '/container/dc/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_dc_object_update(self, dn, container_dc, **kwargs): # noqa: E501 + """Modify an Domain Container object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_dc_object_update(dn, container_dc, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_dc: (required) + :type container_dc: ContainerDc + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_dc_object_update_with_http_info(dn, container_dc, **kwargs) # noqa: E501 + + def udm_container_dc_object_update_with_http_info(self, dn, container_dc, **kwargs): # noqa: E501 + """Modify an Domain Container object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_dc_object_update_with_http_info(dn, container_dc, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_dc: (required) + :type container_dc: ContainerDc + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'container_dc', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_dc_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_dc_object_update`") # noqa: E501 + # verify the required parameter 'container_dc' is set + if self.api_client.client_side_validation and ('container_dc' not in local_var_params or # noqa: E501 + local_var_params['container_dc'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_dc` when calling `udm_container_dc_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_dc_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_dc_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_dc' in local_var_params: + body_params = local_var_params['container_dc'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/container/dc/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/container_msgpo_api.py b/openapi_client_udm/api/container_msgpo_api.py new file mode 100644 index 0000000..15775d9 --- /dev/null +++ b/openapi_client_udm/api/container_msgpo_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ContainerMsgpoApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_container_msgpo_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Container: MS Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerMsgpo + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_msgpo_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_container_msgpo_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Container: MS Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerMsgpo, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_msgpo_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_msgpo_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_msgpo_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_msgpo_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerMsgpo", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/container/msgpo/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_msgpo_object_create(self, container_msgpo, **kwargs): # noqa: E501 + """Create a new Container: MS Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_create(container_msgpo, async_req=True) + >>> result = thread.get() + + :param container_msgpo: (required) + :type container_msgpo: ContainerMsgpo + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_msgpo_object_create_with_http_info(container_msgpo, **kwargs) # noqa: E501 + + def udm_container_msgpo_object_create_with_http_info(self, container_msgpo, **kwargs): # noqa: E501 + """Create a new Container: MS Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_create_with_http_info(container_msgpo, async_req=True) + >>> result = thread.get() + + :param container_msgpo: (required) + :type container_msgpo: ContainerMsgpo + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'container_msgpo', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_msgpo_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'container_msgpo' is set + if self.api_client.client_side_validation and ('container_msgpo' not in local_var_params or # noqa: E501 + local_var_params['container_msgpo'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_msgpo` when calling `udm_container_msgpo_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_msgpo' in local_var_params: + body_params = local_var_params['container_msgpo'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/container/msgpo/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_msgpo_object_modify(self, dn, container_msgpo, **kwargs): # noqa: E501 + """Modify or move an Container: MS Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_modify(dn, container_msgpo, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_msgpo: (required) + :type container_msgpo: ContainerMsgpo + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_msgpo_object_modify_with_http_info(dn, container_msgpo, **kwargs) # noqa: E501 + + def udm_container_msgpo_object_modify_with_http_info(self, dn, container_msgpo, **kwargs): # noqa: E501 + """Modify or move an Container: MS Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_modify_with_http_info(dn, container_msgpo, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_msgpo: (required) + :type container_msgpo: ContainerMsgpo + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'container_msgpo', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_msgpo_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_msgpo_object_modify`") # noqa: E501 + # verify the required parameter 'container_msgpo' is set + if self.api_client.client_side_validation and ('container_msgpo' not in local_var_params or # noqa: E501 + local_var_params['container_msgpo'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_msgpo` when calling `udm_container_msgpo_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_msgpo_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_msgpo_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_msgpo' in local_var_params: + body_params = local_var_params['container_msgpo'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/container/msgpo/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_msgpo_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Container: MS Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_msgpo_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_container_msgpo_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Container: MS Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_msgpo_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_msgpo_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_msgpo_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_msgpo_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/container/msgpo/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_msgpo_object_search(self, **kwargs): # noqa: E501 + """Search for Container: MS Group Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerMsgpoList + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_msgpo_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_container_msgpo_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Container: MS Group Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerMsgpoList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_msgpo_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_container_msgpo_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_container_msgpo_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_container_msgpo_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_container_msgpo_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_container_msgpo_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerMsgpoList", + } + + return self.api_client.call_api( + '/container/msgpo/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_msgpo_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Container: MS Group Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerMsgpo + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_msgpo_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_container_msgpo_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Container: MS Group Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerMsgpo, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_msgpo_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerMsgpo", + } + + return self.api_client.call_api( + '/container/msgpo/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_msgpo_object_update(self, dn, container_msgpo, **kwargs): # noqa: E501 + """Modify an Container: MS Group Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_update(dn, container_msgpo, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_msgpo: (required) + :type container_msgpo: ContainerMsgpo + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_msgpo_object_update_with_http_info(dn, container_msgpo, **kwargs) # noqa: E501 + + def udm_container_msgpo_object_update_with_http_info(self, dn, container_msgpo, **kwargs): # noqa: E501 + """Modify an Container: MS Group Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_msgpo_object_update_with_http_info(dn, container_msgpo, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_msgpo: (required) + :type container_msgpo: ContainerMsgpo + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'container_msgpo', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_msgpo_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_msgpo_object_update`") # noqa: E501 + # verify the required parameter 'container_msgpo' is set + if self.api_client.client_side_validation and ('container_msgpo' not in local_var_params or # noqa: E501 + local_var_params['container_msgpo'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_msgpo` when calling `udm_container_msgpo_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_msgpo_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_msgpo_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_msgpo' in local_var_params: + body_params = local_var_params['container_msgpo'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/container/msgpo/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/container_ou_api.py b/openapi_client_udm/api/container_ou_api.py new file mode 100644 index 0000000..ca4b65f --- /dev/null +++ b/openapi_client_udm/api/container_ou_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class ContainerOuApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_container_ou_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Organisational Unit object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerOu + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_ou_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_container_ou_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Organisational Unit object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerOu, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_ou_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_ou_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_ou_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_ou_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerOu", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/container/ou/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_ou_object_create(self, container_ou, **kwargs): # noqa: E501 + """Create a new Organisational Unit object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_create(container_ou, async_req=True) + >>> result = thread.get() + + :param container_ou: (required) + :type container_ou: ContainerOu + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_ou_object_create_with_http_info(container_ou, **kwargs) # noqa: E501 + + def udm_container_ou_object_create_with_http_info(self, container_ou, **kwargs): # noqa: E501 + """Create a new Organisational Unit object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_create_with_http_info(container_ou, async_req=True) + >>> result = thread.get() + + :param container_ou: (required) + :type container_ou: ContainerOu + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'container_ou', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_ou_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'container_ou' is set + if self.api_client.client_side_validation and ('container_ou' not in local_var_params or # noqa: E501 + local_var_params['container_ou'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_ou` when calling `udm_container_ou_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_ou' in local_var_params: + body_params = local_var_params['container_ou'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/container/ou/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_ou_object_modify(self, dn, container_ou, **kwargs): # noqa: E501 + """Modify or move an Organisational Unit object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_modify(dn, container_ou, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_ou: (required) + :type container_ou: ContainerOu + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_ou_object_modify_with_http_info(dn, container_ou, **kwargs) # noqa: E501 + + def udm_container_ou_object_modify_with_http_info(self, dn, container_ou, **kwargs): # noqa: E501 + """Modify or move an Organisational Unit object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_modify_with_http_info(dn, container_ou, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_ou: (required) + :type container_ou: ContainerOu + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'container_ou', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_ou_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_ou_object_modify`") # noqa: E501 + # verify the required parameter 'container_ou' is set + if self.api_client.client_side_validation and ('container_ou' not in local_var_params or # noqa: E501 + local_var_params['container_ou'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_ou` when calling `udm_container_ou_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_ou_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_ou_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_ou' in local_var_params: + body_params = local_var_params['container_ou'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/container/ou/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_ou_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Organisational Units object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_ou_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_container_ou_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Organisational Units object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_ou_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_ou_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_ou_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_ou_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/container/ou/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_ou_object_search(self, **kwargs): # noqa: E501 + """Search for Organisational Units objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerOuList + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_ou_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_container_ou_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Organisational Units objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerOuList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_ou_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_container_ou_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_container_ou_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_container_ou_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_container_ou_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_container_ou_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerOuList", + } + + return self.api_client.call_api( + '/container/ou/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_ou_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Organisational Unit object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: ContainerOu + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_ou_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_container_ou_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Organisational Unit object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(ContainerOu, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_ou_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "ContainerOu", + } + + return self.api_client.call_api( + '/container/ou/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_container_ou_object_update(self, dn, container_ou, **kwargs): # noqa: E501 + """Modify an Organisational Unit object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_update(dn, container_ou, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_ou: (required) + :type container_ou: ContainerOu + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_container_ou_object_update_with_http_info(dn, container_ou, **kwargs) # noqa: E501 + + def udm_container_ou_object_update_with_http_info(self, dn, container_ou, **kwargs): # noqa: E501 + """Modify an Organisational Unit object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_container_ou_object_update_with_http_info(dn, container_ou, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param container_ou: (required) + :type container_ou: ContainerOu + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'container_ou', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_container_ou_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_container_ou_object_update`") # noqa: E501 + # verify the required parameter 'container_ou' is set + if self.api_client.client_side_validation and ('container_ou' not in local_var_params or # noqa: E501 + local_var_params['container_ou'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `container_ou` when calling `udm_container_ou_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_ou_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_container_ou_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'container_ou' in local_var_params: + body_params = local_var_params['container_ou'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/container/ou/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dhcp_dhcp_api.py b/openapi_client_udm/api/dhcp_dhcp_api.py new file mode 100644 index 0000000..71bd6b4 --- /dev/null +++ b/openapi_client_udm/api/dhcp_dhcp_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DhcpDhcpApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dhcp_dhcp_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_dhcp_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpDhcp + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_dhcp_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_dhcp_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_dhcp_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpDhcp, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_dhcp_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_dhcp_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_dhcp_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_dhcp_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpDhcp", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/dhcp/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_dhcp_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP services objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_dhcp_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpDhcpList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_dhcp_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_dhcp_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP services objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_dhcp_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpDhcpList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_dhcp_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dhcp_dhcp_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dhcp_dhcp_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpDhcpList", + } + + return self.api_client.call_api( + '/dhcp/dhcp/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dhcp_host_api.py b/openapi_client_udm/api/dhcp_host_api.py new file mode 100644 index 0000000..81923ef --- /dev/null +++ b/openapi_client_udm/api/dhcp_host_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DhcpHostApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dhcp_host_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP host object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpHost + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_host_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_host_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP host object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpHost, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_host_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_host_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_host_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_host_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpHost", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/host/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_host_object_create(self, dhcp_host, **kwargs): # noqa: E501 + """Create a new DHCP host object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_create(dhcp_host, async_req=True) + >>> result = thread.get() + + :param dhcp_host: (required) + :type dhcp_host: DhcpHost + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_host_object_create_with_http_info(dhcp_host, **kwargs) # noqa: E501 + + def udm_dhcp_host_object_create_with_http_info(self, dhcp_host, **kwargs): # noqa: E501 + """Create a new DHCP host object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_create_with_http_info(dhcp_host, async_req=True) + >>> result = thread.get() + + :param dhcp_host: (required) + :type dhcp_host: DhcpHost + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dhcp_host', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_host_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dhcp_host' is set + if self.api_client.client_side_validation and ('dhcp_host' not in local_var_params or # noqa: E501 + local_var_params['dhcp_host'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_host` when calling `udm_dhcp_host_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_host' in local_var_params: + body_params = local_var_params['dhcp_host'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dhcp/host/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_host_object_modify(self, dn, dhcp_host, **kwargs): # noqa: E501 + """Modify or move an DHCP host object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_modify(dn, dhcp_host, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_host: (required) + :type dhcp_host: DhcpHost + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_host_object_modify_with_http_info(dn, dhcp_host, **kwargs) # noqa: E501 + + def udm_dhcp_host_object_modify_with_http_info(self, dn, dhcp_host, **kwargs): # noqa: E501 + """Modify or move an DHCP host object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_modify_with_http_info(dn, dhcp_host, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_host: (required) + :type dhcp_host: DhcpHost + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_host', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_host_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_host_object_modify`") # noqa: E501 + # verify the required parameter 'dhcp_host' is set + if self.api_client.client_side_validation and ('dhcp_host' not in local_var_params or # noqa: E501 + local_var_params['dhcp_host'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_host` when calling `udm_dhcp_host_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_host_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_host_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_host' in local_var_params: + body_params = local_var_params['dhcp_host'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/host/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_host_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP hosts object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_host_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_host_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP hosts object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_host_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_host_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_host_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_host_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/host/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_host_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP hosts objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpHostList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_host_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_host_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP hosts objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpHostList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_host_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dhcp_host_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dhcp_host_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dhcp_host_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dhcp_host_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dhcp_host_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpHostList", + } + + return self.api_client.call_api( + '/dhcp/host/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_host_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP host object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpHost + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_host_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_host_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP host object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpHost, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_host_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpHost", + } + + return self.api_client.call_api( + '/dhcp/host/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_host_object_update(self, dn, dhcp_host, **kwargs): # noqa: E501 + """Modify an DHCP host object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_update(dn, dhcp_host, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_host: (required) + :type dhcp_host: DhcpHost + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_host_object_update_with_http_info(dn, dhcp_host, **kwargs) # noqa: E501 + + def udm_dhcp_host_object_update_with_http_info(self, dn, dhcp_host, **kwargs): # noqa: E501 + """Modify an DHCP host object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_host_object_update_with_http_info(dn, dhcp_host, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_host: (required) + :type dhcp_host: DhcpHost + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_host', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_host_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_host_object_update`") # noqa: E501 + # verify the required parameter 'dhcp_host' is set + if self.api_client.client_side_validation and ('dhcp_host' not in local_var_params or # noqa: E501 + local_var_params['dhcp_host'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_host` when calling `udm_dhcp_host_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_host_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_host_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_host' in local_var_params: + body_params = local_var_params['dhcp_host'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/host/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dhcp_pool_api.py b/openapi_client_udm/api/dhcp_pool_api.py new file mode 100644 index 0000000..ed71257 --- /dev/null +++ b/openapi_client_udm/api/dhcp_pool_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DhcpPoolApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dhcp_pool_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP pool object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpPool + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_pool_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_pool_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP pool object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpPool, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_pool_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_pool_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_pool_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_pool_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpPool", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/pool/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_pool_object_create(self, dhcp_pool, **kwargs): # noqa: E501 + """Create a new DHCP pool object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_create(dhcp_pool, async_req=True) + >>> result = thread.get() + + :param dhcp_pool: (required) + :type dhcp_pool: DhcpPool + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_pool_object_create_with_http_info(dhcp_pool, **kwargs) # noqa: E501 + + def udm_dhcp_pool_object_create_with_http_info(self, dhcp_pool, **kwargs): # noqa: E501 + """Create a new DHCP pool object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_create_with_http_info(dhcp_pool, async_req=True) + >>> result = thread.get() + + :param dhcp_pool: (required) + :type dhcp_pool: DhcpPool + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dhcp_pool', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_pool_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dhcp_pool' is set + if self.api_client.client_side_validation and ('dhcp_pool' not in local_var_params or # noqa: E501 + local_var_params['dhcp_pool'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_pool` when calling `udm_dhcp_pool_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_pool' in local_var_params: + body_params = local_var_params['dhcp_pool'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dhcp/pool/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_pool_object_modify(self, dn, dhcp_pool, **kwargs): # noqa: E501 + """Modify or move an DHCP pool object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_modify(dn, dhcp_pool, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_pool: (required) + :type dhcp_pool: DhcpPool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_pool_object_modify_with_http_info(dn, dhcp_pool, **kwargs) # noqa: E501 + + def udm_dhcp_pool_object_modify_with_http_info(self, dn, dhcp_pool, **kwargs): # noqa: E501 + """Modify or move an DHCP pool object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_modify_with_http_info(dn, dhcp_pool, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_pool: (required) + :type dhcp_pool: DhcpPool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_pool', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_pool_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_pool_object_modify`") # noqa: E501 + # verify the required parameter 'dhcp_pool' is set + if self.api_client.client_side_validation and ('dhcp_pool' not in local_var_params or # noqa: E501 + local_var_params['dhcp_pool'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_pool` when calling `udm_dhcp_pool_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_pool_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_pool_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_pool' in local_var_params: + body_params = local_var_params['dhcp_pool'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/pool/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_pool_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP pools object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_pool_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_pool_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP pools object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_pool_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_pool_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_pool_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_pool_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/pool/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_pool_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP pools objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpPoolList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_pool_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_pool_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP pools objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpPoolList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_pool_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dhcp_pool_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dhcp_pool_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dhcp_pool_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dhcp_pool_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dhcp_pool_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpPoolList", + } + + return self.api_client.call_api( + '/dhcp/pool/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_pool_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP pool object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpPool + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_pool_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_pool_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP pool object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpPool, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_pool_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpPool", + } + + return self.api_client.call_api( + '/dhcp/pool/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_pool_object_update(self, dn, dhcp_pool, **kwargs): # noqa: E501 + """Modify an DHCP pool object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_update(dn, dhcp_pool, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_pool: (required) + :type dhcp_pool: DhcpPool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_pool_object_update_with_http_info(dn, dhcp_pool, **kwargs) # noqa: E501 + + def udm_dhcp_pool_object_update_with_http_info(self, dn, dhcp_pool, **kwargs): # noqa: E501 + """Modify an DHCP pool object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_pool_object_update_with_http_info(dn, dhcp_pool, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_pool: (required) + :type dhcp_pool: DhcpPool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_pool', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_pool_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_pool_object_update`") # noqa: E501 + # verify the required parameter 'dhcp_pool' is set + if self.api_client.client_side_validation and ('dhcp_pool' not in local_var_params or # noqa: E501 + local_var_params['dhcp_pool'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_pool` when calling `udm_dhcp_pool_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_pool_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_pool_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_pool' in local_var_params: + body_params = local_var_params['dhcp_pool'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/pool/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dhcp_server_api.py b/openapi_client_udm/api/dhcp_server_api.py new file mode 100644 index 0000000..1ec8f62 --- /dev/null +++ b/openapi_client_udm/api/dhcp_server_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DhcpServerApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dhcp_server_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpServer + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_server_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_server_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpServer, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_server_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_server_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_server_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_server_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpServer", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/server/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_server_object_create(self, dhcp_server, **kwargs): # noqa: E501 + """Create a new DHCP server object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_create(dhcp_server, async_req=True) + >>> result = thread.get() + + :param dhcp_server: (required) + :type dhcp_server: DhcpServer + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_server_object_create_with_http_info(dhcp_server, **kwargs) # noqa: E501 + + def udm_dhcp_server_object_create_with_http_info(self, dhcp_server, **kwargs): # noqa: E501 + """Create a new DHCP server object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_create_with_http_info(dhcp_server, async_req=True) + >>> result = thread.get() + + :param dhcp_server: (required) + :type dhcp_server: DhcpServer + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dhcp_server', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_server_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dhcp_server' is set + if self.api_client.client_side_validation and ('dhcp_server' not in local_var_params or # noqa: E501 + local_var_params['dhcp_server'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_server` when calling `udm_dhcp_server_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_server' in local_var_params: + body_params = local_var_params['dhcp_server'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dhcp/server/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_server_object_modify(self, dn, dhcp_server, **kwargs): # noqa: E501 + """Modify or move an DHCP server object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_modify(dn, dhcp_server, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_server: (required) + :type dhcp_server: DhcpServer + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_server_object_modify_with_http_info(dn, dhcp_server, **kwargs) # noqa: E501 + + def udm_dhcp_server_object_modify_with_http_info(self, dn, dhcp_server, **kwargs): # noqa: E501 + """Modify or move an DHCP server object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_modify_with_http_info(dn, dhcp_server, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_server: (required) + :type dhcp_server: DhcpServer + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_server', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_server_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_server_object_modify`") # noqa: E501 + # verify the required parameter 'dhcp_server' is set + if self.api_client.client_side_validation and ('dhcp_server' not in local_var_params or # noqa: E501 + local_var_params['dhcp_server'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_server` when calling `udm_dhcp_server_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_server_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_server_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_server' in local_var_params: + body_params = local_var_params['dhcp_server'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/server/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_server_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP servers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_server_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_server_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP servers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_server_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_server_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_server_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_server_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/server/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_server_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP servers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpServerList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_server_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_server_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP servers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpServerList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_server_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dhcp_server_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dhcp_server_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dhcp_server_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dhcp_server_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dhcp_server_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpServerList", + } + + return self.api_client.call_api( + '/dhcp/server/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_server_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP server object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpServer + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_server_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_server_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP server object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpServer, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_server_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpServer", + } + + return self.api_client.call_api( + '/dhcp/server/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_server_object_update(self, dn, dhcp_server, **kwargs): # noqa: E501 + """Modify an DHCP server object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_update(dn, dhcp_server, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_server: (required) + :type dhcp_server: DhcpServer + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_server_object_update_with_http_info(dn, dhcp_server, **kwargs) # noqa: E501 + + def udm_dhcp_server_object_update_with_http_info(self, dn, dhcp_server, **kwargs): # noqa: E501 + """Modify an DHCP server object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_server_object_update_with_http_info(dn, dhcp_server, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_server: (required) + :type dhcp_server: DhcpServer + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_server', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_server_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_server_object_update`") # noqa: E501 + # verify the required parameter 'dhcp_server' is set + if self.api_client.client_side_validation and ('dhcp_server' not in local_var_params or # noqa: E501 + local_var_params['dhcp_server'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_server` when calling `udm_dhcp_server_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_server_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_server_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_server' in local_var_params: + body_params = local_var_params['dhcp_server'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/server/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dhcp_service_api.py b/openapi_client_udm/api/dhcp_service_api.py new file mode 100644 index 0000000..a2fa5ad --- /dev/null +++ b/openapi_client_udm/api/dhcp_service_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DhcpServiceApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dhcp_service_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpService + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_service_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_service_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpService, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_service_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_service_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_service_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_service_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpService", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/service/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_service_object_create(self, dhcp_service, **kwargs): # noqa: E501 + """Create a new DHCP service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_create(dhcp_service, async_req=True) + >>> result = thread.get() + + :param dhcp_service: (required) + :type dhcp_service: DhcpService + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_service_object_create_with_http_info(dhcp_service, **kwargs) # noqa: E501 + + def udm_dhcp_service_object_create_with_http_info(self, dhcp_service, **kwargs): # noqa: E501 + """Create a new DHCP service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_create_with_http_info(dhcp_service, async_req=True) + >>> result = thread.get() + + :param dhcp_service: (required) + :type dhcp_service: DhcpService + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dhcp_service', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_service_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dhcp_service' is set + if self.api_client.client_side_validation and ('dhcp_service' not in local_var_params or # noqa: E501 + local_var_params['dhcp_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_service` when calling `udm_dhcp_service_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_service' in local_var_params: + body_params = local_var_params['dhcp_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dhcp/service/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_service_object_modify(self, dn, dhcp_service, **kwargs): # noqa: E501 + """Modify or move an DHCP service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_modify(dn, dhcp_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_service: (required) + :type dhcp_service: DhcpService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_service_object_modify_with_http_info(dn, dhcp_service, **kwargs) # noqa: E501 + + def udm_dhcp_service_object_modify_with_http_info(self, dn, dhcp_service, **kwargs): # noqa: E501 + """Modify or move an DHCP service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_modify_with_http_info(dn, dhcp_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_service: (required) + :type dhcp_service: DhcpService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_service', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_service_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_service_object_modify`") # noqa: E501 + # verify the required parameter 'dhcp_service' is set + if self.api_client.client_side_validation and ('dhcp_service' not in local_var_params or # noqa: E501 + local_var_params['dhcp_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_service` when calling `udm_dhcp_service_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_service_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_service_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_service' in local_var_params: + body_params = local_var_params['dhcp_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/service/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_service_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP services object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_service_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_service_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP services object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_service_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_service_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_service_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_service_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/service/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_service_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP services objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpServiceList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_service_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_service_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP services objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpServiceList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_service_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dhcp_service_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dhcp_service_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dhcp_service_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dhcp_service_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dhcp_service_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpServiceList", + } + + return self.api_client.call_api( + '/dhcp/service/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_service_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP service object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpService + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_service_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_service_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP service object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpService, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_service_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpService", + } + + return self.api_client.call_api( + '/dhcp/service/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_service_object_update(self, dn, dhcp_service, **kwargs): # noqa: E501 + """Modify an DHCP service object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_update(dn, dhcp_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_service: (required) + :type dhcp_service: DhcpService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_service_object_update_with_http_info(dn, dhcp_service, **kwargs) # noqa: E501 + + def udm_dhcp_service_object_update_with_http_info(self, dn, dhcp_service, **kwargs): # noqa: E501 + """Modify an DHCP service object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_service_object_update_with_http_info(dn, dhcp_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_service: (required) + :type dhcp_service: DhcpService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_service', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_service_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_service_object_update`") # noqa: E501 + # verify the required parameter 'dhcp_service' is set + if self.api_client.client_side_validation and ('dhcp_service' not in local_var_params or # noqa: E501 + local_var_params['dhcp_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_service` when calling `udm_dhcp_service_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_service_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_service_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_service' in local_var_params: + body_params = local_var_params['dhcp_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/service/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dhcp_shared_api.py b/openapi_client_udm/api/dhcp_shared_api.py new file mode 100644 index 0000000..b02904c --- /dev/null +++ b/openapi_client_udm/api/dhcp_shared_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DhcpSharedApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dhcp_shared_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Shared network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpShared + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_shared_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_shared_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Shared network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpShared, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_shared_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_shared_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_shared_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_shared_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpShared", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/shared/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_shared_object_create(self, dhcp_shared, **kwargs): # noqa: E501 + """Create a new Shared network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_create(dhcp_shared, async_req=True) + >>> result = thread.get() + + :param dhcp_shared: (required) + :type dhcp_shared: DhcpShared + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_shared_object_create_with_http_info(dhcp_shared, **kwargs) # noqa: E501 + + def udm_dhcp_shared_object_create_with_http_info(self, dhcp_shared, **kwargs): # noqa: E501 + """Create a new Shared network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_create_with_http_info(dhcp_shared, async_req=True) + >>> result = thread.get() + + :param dhcp_shared: (required) + :type dhcp_shared: DhcpShared + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dhcp_shared', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_shared_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dhcp_shared' is set + if self.api_client.client_side_validation and ('dhcp_shared' not in local_var_params or # noqa: E501 + local_var_params['dhcp_shared'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_shared` when calling `udm_dhcp_shared_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_shared' in local_var_params: + body_params = local_var_params['dhcp_shared'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dhcp/shared/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_shared_object_modify(self, dn, dhcp_shared, **kwargs): # noqa: E501 + """Modify or move an Shared network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_modify(dn, dhcp_shared, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_shared: (required) + :type dhcp_shared: DhcpShared + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_shared_object_modify_with_http_info(dn, dhcp_shared, **kwargs) # noqa: E501 + + def udm_dhcp_shared_object_modify_with_http_info(self, dn, dhcp_shared, **kwargs): # noqa: E501 + """Modify or move an Shared network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_modify_with_http_info(dn, dhcp_shared, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_shared: (required) + :type dhcp_shared: DhcpShared + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_shared', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_shared_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_shared_object_modify`") # noqa: E501 + # verify the required parameter 'dhcp_shared' is set + if self.api_client.client_side_validation and ('dhcp_shared' not in local_var_params or # noqa: E501 + local_var_params['dhcp_shared'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_shared` when calling `udm_dhcp_shared_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_shared_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_shared_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_shared' in local_var_params: + body_params = local_var_params['dhcp_shared'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/shared/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_shared_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Shared network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_shared_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_shared_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Shared network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_shared_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_shared_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_shared_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_shared_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/shared/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_shared_object_search(self, **kwargs): # noqa: E501 + """Search for Shared network objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpSharedList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_shared_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_shared_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Shared network objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpSharedList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_shared_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dhcp_shared_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dhcp_shared_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dhcp_shared_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dhcp_shared_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dhcp_shared_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpSharedList", + } + + return self.api_client.call_api( + '/dhcp/shared/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_shared_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Shared network object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpShared + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_shared_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_shared_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Shared network object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpShared, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_shared_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpShared", + } + + return self.api_client.call_api( + '/dhcp/shared/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_shared_object_update(self, dn, dhcp_shared, **kwargs): # noqa: E501 + """Modify an Shared network object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_update(dn, dhcp_shared, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_shared: (required) + :type dhcp_shared: DhcpShared + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_shared_object_update_with_http_info(dn, dhcp_shared, **kwargs) # noqa: E501 + + def udm_dhcp_shared_object_update_with_http_info(self, dn, dhcp_shared, **kwargs): # noqa: E501 + """Modify an Shared network object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_shared_object_update_with_http_info(dn, dhcp_shared, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_shared: (required) + :type dhcp_shared: DhcpShared + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_shared', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_shared_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_shared_object_update`") # noqa: E501 + # verify the required parameter 'dhcp_shared' is set + if self.api_client.client_side_validation and ('dhcp_shared' not in local_var_params or # noqa: E501 + local_var_params['dhcp_shared'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_shared` when calling `udm_dhcp_shared_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_shared_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_shared_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_shared' in local_var_params: + body_params = local_var_params['dhcp_shared'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/shared/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dhcp_sharedsubnet_api.py b/openapi_client_udm/api/dhcp_sharedsubnet_api.py new file mode 100644 index 0000000..128d84c --- /dev/null +++ b/openapi_client_udm/api/dhcp_sharedsubnet_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DhcpSharedsubnetApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dhcp_sharedsubnet_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Shared DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpSharedsubnet + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_sharedsubnet_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_sharedsubnet_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Shared DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpSharedsubnet, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_sharedsubnet_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_sharedsubnet_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_sharedsubnet_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_sharedsubnet_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpSharedsubnet", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/sharedsubnet/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_sharedsubnet_object_create(self, dhcp_sharedsubnet, **kwargs): # noqa: E501 + """Create a new Shared DHCP subnet object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_create(dhcp_sharedsubnet, async_req=True) + >>> result = thread.get() + + :param dhcp_sharedsubnet: (required) + :type dhcp_sharedsubnet: DhcpSharedsubnet + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_sharedsubnet_object_create_with_http_info(dhcp_sharedsubnet, **kwargs) # noqa: E501 + + def udm_dhcp_sharedsubnet_object_create_with_http_info(self, dhcp_sharedsubnet, **kwargs): # noqa: E501 + """Create a new Shared DHCP subnet object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_create_with_http_info(dhcp_sharedsubnet, async_req=True) + >>> result = thread.get() + + :param dhcp_sharedsubnet: (required) + :type dhcp_sharedsubnet: DhcpSharedsubnet + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dhcp_sharedsubnet', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_sharedsubnet_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dhcp_sharedsubnet' is set + if self.api_client.client_side_validation and ('dhcp_sharedsubnet' not in local_var_params or # noqa: E501 + local_var_params['dhcp_sharedsubnet'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_sharedsubnet` when calling `udm_dhcp_sharedsubnet_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_sharedsubnet' in local_var_params: + body_params = local_var_params['dhcp_sharedsubnet'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dhcp/sharedsubnet/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_sharedsubnet_object_modify(self, dn, dhcp_sharedsubnet, **kwargs): # noqa: E501 + """Modify or move an Shared DHCP subnet object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_modify(dn, dhcp_sharedsubnet, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_sharedsubnet: (required) + :type dhcp_sharedsubnet: DhcpSharedsubnet + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_sharedsubnet_object_modify_with_http_info(dn, dhcp_sharedsubnet, **kwargs) # noqa: E501 + + def udm_dhcp_sharedsubnet_object_modify_with_http_info(self, dn, dhcp_sharedsubnet, **kwargs): # noqa: E501 + """Modify or move an Shared DHCP subnet object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_modify_with_http_info(dn, dhcp_sharedsubnet, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_sharedsubnet: (required) + :type dhcp_sharedsubnet: DhcpSharedsubnet + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_sharedsubnet', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_sharedsubnet_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_sharedsubnet_object_modify`") # noqa: E501 + # verify the required parameter 'dhcp_sharedsubnet' is set + if self.api_client.client_side_validation and ('dhcp_sharedsubnet' not in local_var_params or # noqa: E501 + local_var_params['dhcp_sharedsubnet'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_sharedsubnet` when calling `udm_dhcp_sharedsubnet_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_sharedsubnet_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_sharedsubnet_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_sharedsubnet' in local_var_params: + body_params = local_var_params['dhcp_sharedsubnet'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/sharedsubnet/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_sharedsubnet_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Shared DHCP subnets object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_sharedsubnet_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_sharedsubnet_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Shared DHCP subnets object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_sharedsubnet_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_sharedsubnet_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_sharedsubnet_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_sharedsubnet_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/sharedsubnet/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_sharedsubnet_object_search(self, **kwargs): # noqa: E501 + """Search for Shared DHCP subnets objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpSharedsubnetList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_sharedsubnet_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_sharedsubnet_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Shared DHCP subnets objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpSharedsubnetList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_sharedsubnet_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dhcp_sharedsubnet_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dhcp_sharedsubnet_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dhcp_sharedsubnet_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dhcp_sharedsubnet_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dhcp_sharedsubnet_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpSharedsubnetList", + } + + return self.api_client.call_api( + '/dhcp/sharedsubnet/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_sharedsubnet_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Shared DHCP subnet object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpSharedsubnet + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_sharedsubnet_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_sharedsubnet_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Shared DHCP subnet object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpSharedsubnet, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_sharedsubnet_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpSharedsubnet", + } + + return self.api_client.call_api( + '/dhcp/sharedsubnet/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_sharedsubnet_object_update(self, dn, dhcp_sharedsubnet, **kwargs): # noqa: E501 + """Modify an Shared DHCP subnet object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_update(dn, dhcp_sharedsubnet, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_sharedsubnet: (required) + :type dhcp_sharedsubnet: DhcpSharedsubnet + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_sharedsubnet_object_update_with_http_info(dn, dhcp_sharedsubnet, **kwargs) # noqa: E501 + + def udm_dhcp_sharedsubnet_object_update_with_http_info(self, dn, dhcp_sharedsubnet, **kwargs): # noqa: E501 + """Modify an Shared DHCP subnet object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_sharedsubnet_object_update_with_http_info(dn, dhcp_sharedsubnet, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_sharedsubnet: (required) + :type dhcp_sharedsubnet: DhcpSharedsubnet + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_sharedsubnet', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_sharedsubnet_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_sharedsubnet_object_update`") # noqa: E501 + # verify the required parameter 'dhcp_sharedsubnet' is set + if self.api_client.client_side_validation and ('dhcp_sharedsubnet' not in local_var_params or # noqa: E501 + local_var_params['dhcp_sharedsubnet'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_sharedsubnet` when calling `udm_dhcp_sharedsubnet_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_sharedsubnet_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_sharedsubnet_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_sharedsubnet' in local_var_params: + body_params = local_var_params['dhcp_sharedsubnet'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/sharedsubnet/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dhcp_subnet_api.py b/openapi_client_udm/api/dhcp_subnet_api.py new file mode 100644 index 0000000..8cb4fff --- /dev/null +++ b/openapi_client_udm/api/dhcp_subnet_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DhcpSubnetApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dhcp_subnet_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpSubnet + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_subnet_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_subnet_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpSubnet, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_subnet_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_subnet_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_subnet_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_subnet_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpSubnet", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/subnet/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_subnet_object_create(self, dhcp_subnet, **kwargs): # noqa: E501 + """Create a new DHCP subnet object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_create(dhcp_subnet, async_req=True) + >>> result = thread.get() + + :param dhcp_subnet: (required) + :type dhcp_subnet: DhcpSubnet + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_subnet_object_create_with_http_info(dhcp_subnet, **kwargs) # noqa: E501 + + def udm_dhcp_subnet_object_create_with_http_info(self, dhcp_subnet, **kwargs): # noqa: E501 + """Create a new DHCP subnet object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_create_with_http_info(dhcp_subnet, async_req=True) + >>> result = thread.get() + + :param dhcp_subnet: (required) + :type dhcp_subnet: DhcpSubnet + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dhcp_subnet', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_subnet_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dhcp_subnet' is set + if self.api_client.client_side_validation and ('dhcp_subnet' not in local_var_params or # noqa: E501 + local_var_params['dhcp_subnet'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_subnet` when calling `udm_dhcp_subnet_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_subnet' in local_var_params: + body_params = local_var_params['dhcp_subnet'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dhcp/subnet/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_subnet_object_modify(self, dn, dhcp_subnet, **kwargs): # noqa: E501 + """Modify or move an DHCP subnet object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_modify(dn, dhcp_subnet, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_subnet: (required) + :type dhcp_subnet: DhcpSubnet + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_subnet_object_modify_with_http_info(dn, dhcp_subnet, **kwargs) # noqa: E501 + + def udm_dhcp_subnet_object_modify_with_http_info(self, dn, dhcp_subnet, **kwargs): # noqa: E501 + """Modify or move an DHCP subnet object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_modify_with_http_info(dn, dhcp_subnet, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_subnet: (required) + :type dhcp_subnet: DhcpSubnet + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_subnet', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_subnet_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_subnet_object_modify`") # noqa: E501 + # verify the required parameter 'dhcp_subnet' is set + if self.api_client.client_side_validation and ('dhcp_subnet' not in local_var_params or # noqa: E501 + local_var_params['dhcp_subnet'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_subnet` when calling `udm_dhcp_subnet_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_subnet_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_subnet_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_subnet' in local_var_params: + body_params = local_var_params['dhcp_subnet'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dhcp/subnet/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_subnet_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP subnets object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_subnet_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dhcp_subnet_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP subnets object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_subnet_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_subnet_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_subnet_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_subnet_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/subnet/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_subnet_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP subnets objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpSubnetList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_subnet_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_subnet_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP subnets objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpSubnetList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_subnet_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dhcp_subnet_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dhcp_subnet_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dhcp_subnet_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dhcp_subnet_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dhcp_subnet_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpSubnetList", + } + + return self.api_client.call_api( + '/dhcp/subnet/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_subnet_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP subnet object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DhcpSubnet + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_subnet_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dhcp_subnet_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP subnet object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DhcpSubnet, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_subnet_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DhcpSubnet", + } + + return self.api_client.call_api( + '/dhcp/subnet/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dhcp_subnet_object_update(self, dn, dhcp_subnet, **kwargs): # noqa: E501 + """Modify an DHCP subnet object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_update(dn, dhcp_subnet, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_subnet: (required) + :type dhcp_subnet: DhcpSubnet + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dhcp_subnet_object_update_with_http_info(dn, dhcp_subnet, **kwargs) # noqa: E501 + + def udm_dhcp_subnet_object_update_with_http_info(self, dn, dhcp_subnet, **kwargs): # noqa: E501 + """Modify an DHCP subnet object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dhcp_subnet_object_update_with_http_info(dn, dhcp_subnet, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dhcp_subnet: (required) + :type dhcp_subnet: DhcpSubnet + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dhcp_subnet', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dhcp_subnet_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dhcp_subnet_object_update`") # noqa: E501 + # verify the required parameter 'dhcp_subnet' is set + if self.api_client.client_side_validation and ('dhcp_subnet' not in local_var_params or # noqa: E501 + local_var_params['dhcp_subnet'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dhcp_subnet` when calling `udm_dhcp_subnet_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_subnet_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dhcp_subnet_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dhcp_subnet' in local_var_params: + body_params = local_var_params['dhcp_subnet'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dhcp/subnet/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_alias_api.py b/openapi_client_udm/api/dns_alias_api.py new file mode 100644 index 0000000..e935aa6 --- /dev/null +++ b/openapi_client_udm/api/dns_alias_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsAliasApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_alias_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Alias record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsAlias + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_alias_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_alias_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Alias record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsAlias, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_alias_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_alias_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_alias_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_alias_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsAlias", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/alias/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_alias_object_create(self, dns_alias, **kwargs): # noqa: E501 + """Create a new Alias record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_create(dns_alias, async_req=True) + >>> result = thread.get() + + :param dns_alias: (required) + :type dns_alias: DnsAlias + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_alias_object_create_with_http_info(dns_alias, **kwargs) # noqa: E501 + + def udm_dns_alias_object_create_with_http_info(self, dns_alias, **kwargs): # noqa: E501 + """Create a new Alias record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_create_with_http_info(dns_alias, async_req=True) + >>> result = thread.get() + + :param dns_alias: (required) + :type dns_alias: DnsAlias + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dns_alias', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_alias_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_alias' is set + if self.api_client.client_side_validation and ('dns_alias' not in local_var_params or # noqa: E501 + local_var_params['dns_alias'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_alias` when calling `udm_dns_alias_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_alias' in local_var_params: + body_params = local_var_params['dns_alias'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dns/alias/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_alias_object_modify(self, dn, dns_alias, **kwargs): # noqa: E501 + """Modify or move an Alias record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_modify(dn, dns_alias, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_alias: (required) + :type dns_alias: DnsAlias + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_alias_object_modify_with_http_info(dn, dns_alias, **kwargs) # noqa: E501 + + def udm_dns_alias_object_modify_with_http_info(self, dn, dns_alias, **kwargs): # noqa: E501 + """Modify or move an Alias record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_modify_with_http_info(dn, dns_alias, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_alias: (required) + :type dns_alias: DnsAlias + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_alias', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_alias_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_alias_object_modify`") # noqa: E501 + # verify the required parameter 'dns_alias' is set + if self.api_client.client_side_validation and ('dns_alias' not in local_var_params or # noqa: E501 + local_var_params['dns_alias'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_alias` when calling `udm_dns_alias_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_alias_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_alias_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_alias' in local_var_params: + body_params = local_var_params['dns_alias'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/alias/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_alias_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Alias records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_alias_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_alias_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Alias records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_alias_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_alias_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_alias_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_alias_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/alias/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_alias_object_search(self, **kwargs): # noqa: E501 + """Search for Alias records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsAliasList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_alias_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_alias_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Alias records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsAliasList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_alias_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_alias_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_alias_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dns_alias_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dns_alias_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dns_alias_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsAliasList", + } + + return self.api_client.call_api( + '/dns/alias/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_alias_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Alias record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsAlias + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_alias_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_alias_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Alias record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsAlias, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_alias_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsAlias", + } + + return self.api_client.call_api( + '/dns/alias/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_alias_object_update(self, dn, dns_alias, **kwargs): # noqa: E501 + """Modify an Alias record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_update(dn, dns_alias, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_alias: (required) + :type dns_alias: DnsAlias + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_alias_object_update_with_http_info(dn, dns_alias, **kwargs) # noqa: E501 + + def udm_dns_alias_object_update_with_http_info(self, dn, dns_alias, **kwargs): # noqa: E501 + """Modify an Alias record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_alias_object_update_with_http_info(dn, dns_alias, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_alias: (required) + :type dns_alias: DnsAlias + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_alias', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_alias_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_alias_object_update`") # noqa: E501 + # verify the required parameter 'dns_alias' is set + if self.api_client.client_side_validation and ('dns_alias' not in local_var_params or # noqa: E501 + local_var_params['dns_alias'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_alias` when calling `udm_dns_alias_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_alias_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_alias_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_alias' in local_var_params: + body_params = local_var_params['dns_alias'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/alias/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_dns_api.py b/openapi_client_udm/api/dns_dns_api.py new file mode 100644 index 0000000..4835936 --- /dev/null +++ b/openapi_client_udm/api/dns_dns_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsDnsApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_dns_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DNS zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_dns_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsDns + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_dns_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_dns_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DNS zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_dns_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsDns, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_dns_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_dns_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_dns_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_dns_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsDns", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/dns/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_dns_object_search(self, **kwargs): # noqa: E501 + """Search for DNS zones objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_dns_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsDnsList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_dns_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_dns_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DNS zones objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_dns_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsDnsList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_dns_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_dns_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_dns_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsDnsList", + } + + return self.api_client.call_api( + '/dns/dns/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_forward_zone_api.py b/openapi_client_udm/api/dns_forward_zone_api.py new file mode 100644 index 0000000..857f386 --- /dev/null +++ b/openapi_client_udm/api/dns_forward_zone_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsForwardZoneApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_forward_zone_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Forward lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsForwardZone + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_forward_zone_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_forward_zone_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Forward lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsForwardZone, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_forward_zone_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_forward_zone_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_forward_zone_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_forward_zone_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsForwardZone", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/forward_zone/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_forward_zone_object_create(self, dns_forward_zone, **kwargs): # noqa: E501 + """Create a new Forward lookup zone object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_create(dns_forward_zone, async_req=True) + >>> result = thread.get() + + :param dns_forward_zone: (required) + :type dns_forward_zone: DnsForwardZone + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_forward_zone_object_create_with_http_info(dns_forward_zone, **kwargs) # noqa: E501 + + def udm_dns_forward_zone_object_create_with_http_info(self, dns_forward_zone, **kwargs): # noqa: E501 + """Create a new Forward lookup zone object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_create_with_http_info(dns_forward_zone, async_req=True) + >>> result = thread.get() + + :param dns_forward_zone: (required) + :type dns_forward_zone: DnsForwardZone + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dns_forward_zone', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_forward_zone_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_forward_zone' is set + if self.api_client.client_side_validation and ('dns_forward_zone' not in local_var_params or # noqa: E501 + local_var_params['dns_forward_zone'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_forward_zone` when calling `udm_dns_forward_zone_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_forward_zone' in local_var_params: + body_params = local_var_params['dns_forward_zone'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dns/forward_zone/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_forward_zone_object_modify(self, dn, dns_forward_zone, **kwargs): # noqa: E501 + """Modify or move an Forward lookup zone object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_modify(dn, dns_forward_zone, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_forward_zone: (required) + :type dns_forward_zone: DnsForwardZone + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_forward_zone_object_modify_with_http_info(dn, dns_forward_zone, **kwargs) # noqa: E501 + + def udm_dns_forward_zone_object_modify_with_http_info(self, dn, dns_forward_zone, **kwargs): # noqa: E501 + """Modify or move an Forward lookup zone object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_modify_with_http_info(dn, dns_forward_zone, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_forward_zone: (required) + :type dns_forward_zone: DnsForwardZone + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_forward_zone', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_forward_zone_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_forward_zone_object_modify`") # noqa: E501 + # verify the required parameter 'dns_forward_zone' is set + if self.api_client.client_side_validation and ('dns_forward_zone' not in local_var_params or # noqa: E501 + local_var_params['dns_forward_zone'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_forward_zone` when calling `udm_dns_forward_zone_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_forward_zone_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_forward_zone_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_forward_zone' in local_var_params: + body_params = local_var_params['dns_forward_zone'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/forward_zone/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_forward_zone_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Forward lookup zones object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_forward_zone_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_forward_zone_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Forward lookup zones object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_forward_zone_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_forward_zone_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_forward_zone_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_forward_zone_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/forward_zone/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_forward_zone_object_search(self, **kwargs): # noqa: E501 + """Search for Forward lookup zones objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsForwardZoneList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_forward_zone_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_forward_zone_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Forward lookup zones objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsForwardZoneList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_forward_zone_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_forward_zone_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_forward_zone_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dns_forward_zone_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dns_forward_zone_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dns_forward_zone_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsForwardZoneList", + } + + return self.api_client.call_api( + '/dns/forward_zone/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_forward_zone_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Forward lookup zone object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsForwardZone + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_forward_zone_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_forward_zone_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Forward lookup zone object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsForwardZone, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_forward_zone_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsForwardZone", + } + + return self.api_client.call_api( + '/dns/forward_zone/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_forward_zone_object_update(self, dn, dns_forward_zone, **kwargs): # noqa: E501 + """Modify an Forward lookup zone object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_update(dn, dns_forward_zone, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_forward_zone: (required) + :type dns_forward_zone: DnsForwardZone + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_forward_zone_object_update_with_http_info(dn, dns_forward_zone, **kwargs) # noqa: E501 + + def udm_dns_forward_zone_object_update_with_http_info(self, dn, dns_forward_zone, **kwargs): # noqa: E501 + """Modify an Forward lookup zone object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_forward_zone_object_update_with_http_info(dn, dns_forward_zone, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_forward_zone: (required) + :type dns_forward_zone: DnsForwardZone + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_forward_zone', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_forward_zone_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_forward_zone_object_update`") # noqa: E501 + # verify the required parameter 'dns_forward_zone' is set + if self.api_client.client_side_validation and ('dns_forward_zone' not in local_var_params or # noqa: E501 + local_var_params['dns_forward_zone'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_forward_zone` when calling `udm_dns_forward_zone_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_forward_zone_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_forward_zone_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_forward_zone' in local_var_params: + body_params = local_var_params['dns_forward_zone'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/forward_zone/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_host_record_api.py b/openapi_client_udm/api/dns_host_record_api.py new file mode 100644 index 0000000..c0f1238 --- /dev/null +++ b/openapi_client_udm/api/dns_host_record_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsHostRecordApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_host_record_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Host record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsHostRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_host_record_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_host_record_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Host record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsHostRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_host_record_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_host_record_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_host_record_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_host_record_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsHostRecord", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/host_record/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_host_record_object_create(self, dns_host_record, **kwargs): # noqa: E501 + """Create a new Host record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_create(dns_host_record, async_req=True) + >>> result = thread.get() + + :param dns_host_record: (required) + :type dns_host_record: DnsHostRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_host_record_object_create_with_http_info(dns_host_record, **kwargs) # noqa: E501 + + def udm_dns_host_record_object_create_with_http_info(self, dns_host_record, **kwargs): # noqa: E501 + """Create a new Host record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_create_with_http_info(dns_host_record, async_req=True) + >>> result = thread.get() + + :param dns_host_record: (required) + :type dns_host_record: DnsHostRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dns_host_record', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_host_record_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_host_record' is set + if self.api_client.client_side_validation and ('dns_host_record' not in local_var_params or # noqa: E501 + local_var_params['dns_host_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_host_record` when calling `udm_dns_host_record_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_host_record' in local_var_params: + body_params = local_var_params['dns_host_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dns/host_record/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_host_record_object_modify(self, dn, dns_host_record, **kwargs): # noqa: E501 + """Modify or move an Host record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_modify(dn, dns_host_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_host_record: (required) + :type dns_host_record: DnsHostRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_host_record_object_modify_with_http_info(dn, dns_host_record, **kwargs) # noqa: E501 + + def udm_dns_host_record_object_modify_with_http_info(self, dn, dns_host_record, **kwargs): # noqa: E501 + """Modify or move an Host record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_modify_with_http_info(dn, dns_host_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_host_record: (required) + :type dns_host_record: DnsHostRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_host_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_host_record_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_host_record_object_modify`") # noqa: E501 + # verify the required parameter 'dns_host_record' is set + if self.api_client.client_side_validation and ('dns_host_record' not in local_var_params or # noqa: E501 + local_var_params['dns_host_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_host_record` when calling `udm_dns_host_record_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_host_record_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_host_record_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_host_record' in local_var_params: + body_params = local_var_params['dns_host_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/host_record/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_host_record_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Host records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_host_record_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_host_record_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Host records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_host_record_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_host_record_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_host_record_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_host_record_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/host_record/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_host_record_object_search(self, **kwargs): # noqa: E501 + """Search for Host records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsHostRecordList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_host_record_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_host_record_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Host records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsHostRecordList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_host_record_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_host_record_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_host_record_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dns_host_record_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dns_host_record_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dns_host_record_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsHostRecordList", + } + + return self.api_client.call_api( + '/dns/host_record/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_host_record_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Host record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsHostRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_host_record_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_host_record_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Host record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsHostRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_host_record_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsHostRecord", + } + + return self.api_client.call_api( + '/dns/host_record/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_host_record_object_update(self, dn, dns_host_record, **kwargs): # noqa: E501 + """Modify an Host record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_update(dn, dns_host_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_host_record: (required) + :type dns_host_record: DnsHostRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_host_record_object_update_with_http_info(dn, dns_host_record, **kwargs) # noqa: E501 + + def udm_dns_host_record_object_update_with_http_info(self, dn, dns_host_record, **kwargs): # noqa: E501 + """Modify an Host record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_host_record_object_update_with_http_info(dn, dns_host_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_host_record: (required) + :type dns_host_record: DnsHostRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_host_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_host_record_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_host_record_object_update`") # noqa: E501 + # verify the required parameter 'dns_host_record' is set + if self.api_client.client_side_validation and ('dns_host_record' not in local_var_params or # noqa: E501 + local_var_params['dns_host_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_host_record` when calling `udm_dns_host_record_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_host_record_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_host_record_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_host_record' in local_var_params: + body_params = local_var_params['dns_host_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/host_record/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_ns_record_api.py b/openapi_client_udm/api/dns_ns_record_api.py new file mode 100644 index 0000000..106a0eb --- /dev/null +++ b/openapi_client_udm/api/dns_ns_record_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsNsRecordApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_ns_record_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Nameserver record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsNsRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ns_record_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_ns_record_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Nameserver record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsNsRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ns_record_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_ns_record_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ns_record_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ns_record_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsNsRecord", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/ns_record/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ns_record_object_create(self, dns_ns_record, **kwargs): # noqa: E501 + """Create a new Nameserver record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_create(dns_ns_record, async_req=True) + >>> result = thread.get() + + :param dns_ns_record: (required) + :type dns_ns_record: DnsNsRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ns_record_object_create_with_http_info(dns_ns_record, **kwargs) # noqa: E501 + + def udm_dns_ns_record_object_create_with_http_info(self, dns_ns_record, **kwargs): # noqa: E501 + """Create a new Nameserver record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_create_with_http_info(dns_ns_record, async_req=True) + >>> result = thread.get() + + :param dns_ns_record: (required) + :type dns_ns_record: DnsNsRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dns_ns_record', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ns_record_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_ns_record' is set + if self.api_client.client_side_validation and ('dns_ns_record' not in local_var_params or # noqa: E501 + local_var_params['dns_ns_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_ns_record` when calling `udm_dns_ns_record_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_ns_record' in local_var_params: + body_params = local_var_params['dns_ns_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dns/ns_record/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ns_record_object_modify(self, dn, dns_ns_record, **kwargs): # noqa: E501 + """Modify or move an Nameserver record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_modify(dn, dns_ns_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_ns_record: (required) + :type dns_ns_record: DnsNsRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ns_record_object_modify_with_http_info(dn, dns_ns_record, **kwargs) # noqa: E501 + + def udm_dns_ns_record_object_modify_with_http_info(self, dn, dns_ns_record, **kwargs): # noqa: E501 + """Modify or move an Nameserver record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_modify_with_http_info(dn, dns_ns_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_ns_record: (required) + :type dns_ns_record: DnsNsRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_ns_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ns_record_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_ns_record_object_modify`") # noqa: E501 + # verify the required parameter 'dns_ns_record' is set + if self.api_client.client_side_validation and ('dns_ns_record' not in local_var_params or # noqa: E501 + local_var_params['dns_ns_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_ns_record` when calling `udm_dns_ns_record_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ns_record_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ns_record_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_ns_record' in local_var_params: + body_params = local_var_params['dns_ns_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/ns_record/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ns_record_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Nameserver records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ns_record_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_ns_record_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Nameserver records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ns_record_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_ns_record_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ns_record_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ns_record_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/ns_record/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ns_record_object_search(self, **kwargs): # noqa: E501 + """Search for Nameserver records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsNsRecordList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ns_record_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_ns_record_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Nameserver records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsNsRecordList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ns_record_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_ns_record_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_ns_record_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dns_ns_record_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dns_ns_record_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dns_ns_record_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsNsRecordList", + } + + return self.api_client.call_api( + '/dns/ns_record/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ns_record_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Nameserver record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsNsRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ns_record_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_ns_record_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Nameserver record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsNsRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ns_record_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsNsRecord", + } + + return self.api_client.call_api( + '/dns/ns_record/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ns_record_object_update(self, dn, dns_ns_record, **kwargs): # noqa: E501 + """Modify an Nameserver record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_update(dn, dns_ns_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_ns_record: (required) + :type dns_ns_record: DnsNsRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ns_record_object_update_with_http_info(dn, dns_ns_record, **kwargs) # noqa: E501 + + def udm_dns_ns_record_object_update_with_http_info(self, dn, dns_ns_record, **kwargs): # noqa: E501 + """Modify an Nameserver record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ns_record_object_update_with_http_info(dn, dns_ns_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_ns_record: (required) + :type dns_ns_record: DnsNsRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_ns_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ns_record_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_ns_record_object_update`") # noqa: E501 + # verify the required parameter 'dns_ns_record' is set + if self.api_client.client_side_validation and ('dns_ns_record' not in local_var_params or # noqa: E501 + local_var_params['dns_ns_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_ns_record` when calling `udm_dns_ns_record_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ns_record_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ns_record_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_ns_record' in local_var_params: + body_params = local_var_params['dns_ns_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/ns_record/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_ptr_record_api.py b/openapi_client_udm/api/dns_ptr_record_api.py new file mode 100644 index 0000000..d17c1f5 --- /dev/null +++ b/openapi_client_udm/api/dns_ptr_record_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsPtrRecordApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_ptr_record_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Pointer record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsPtrRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ptr_record_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_ptr_record_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Pointer record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsPtrRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ptr_record_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_ptr_record_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ptr_record_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ptr_record_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsPtrRecord", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/ptr_record/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ptr_record_object_create(self, dns_ptr_record, **kwargs): # noqa: E501 + """Create a new Pointer record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_create(dns_ptr_record, async_req=True) + >>> result = thread.get() + + :param dns_ptr_record: (required) + :type dns_ptr_record: DnsPtrRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ptr_record_object_create_with_http_info(dns_ptr_record, **kwargs) # noqa: E501 + + def udm_dns_ptr_record_object_create_with_http_info(self, dns_ptr_record, **kwargs): # noqa: E501 + """Create a new Pointer record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_create_with_http_info(dns_ptr_record, async_req=True) + >>> result = thread.get() + + :param dns_ptr_record: (required) + :type dns_ptr_record: DnsPtrRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dns_ptr_record', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ptr_record_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_ptr_record' is set + if self.api_client.client_side_validation and ('dns_ptr_record' not in local_var_params or # noqa: E501 + local_var_params['dns_ptr_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_ptr_record` when calling `udm_dns_ptr_record_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_ptr_record' in local_var_params: + body_params = local_var_params['dns_ptr_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dns/ptr_record/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ptr_record_object_modify(self, dn, dns_ptr_record, **kwargs): # noqa: E501 + """Modify or move an Pointer record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_modify(dn, dns_ptr_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_ptr_record: (required) + :type dns_ptr_record: DnsPtrRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ptr_record_object_modify_with_http_info(dn, dns_ptr_record, **kwargs) # noqa: E501 + + def udm_dns_ptr_record_object_modify_with_http_info(self, dn, dns_ptr_record, **kwargs): # noqa: E501 + """Modify or move an Pointer record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_modify_with_http_info(dn, dns_ptr_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_ptr_record: (required) + :type dns_ptr_record: DnsPtrRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_ptr_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ptr_record_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_ptr_record_object_modify`") # noqa: E501 + # verify the required parameter 'dns_ptr_record' is set + if self.api_client.client_side_validation and ('dns_ptr_record' not in local_var_params or # noqa: E501 + local_var_params['dns_ptr_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_ptr_record` when calling `udm_dns_ptr_record_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ptr_record_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ptr_record_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_ptr_record' in local_var_params: + body_params = local_var_params['dns_ptr_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/ptr_record/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ptr_record_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Pointer records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ptr_record_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_ptr_record_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Pointer records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ptr_record_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_ptr_record_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ptr_record_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ptr_record_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/ptr_record/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ptr_record_object_search(self, **kwargs): # noqa: E501 + """Search for Pointer records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsPtrRecordList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ptr_record_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_ptr_record_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Pointer records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsPtrRecordList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ptr_record_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_ptr_record_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_ptr_record_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dns_ptr_record_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dns_ptr_record_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dns_ptr_record_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsPtrRecordList", + } + + return self.api_client.call_api( + '/dns/ptr_record/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ptr_record_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Pointer record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsPtrRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ptr_record_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_ptr_record_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Pointer record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsPtrRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ptr_record_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsPtrRecord", + } + + return self.api_client.call_api( + '/dns/ptr_record/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_ptr_record_object_update(self, dn, dns_ptr_record, **kwargs): # noqa: E501 + """Modify an Pointer record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_update(dn, dns_ptr_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_ptr_record: (required) + :type dns_ptr_record: DnsPtrRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_ptr_record_object_update_with_http_info(dn, dns_ptr_record, **kwargs) # noqa: E501 + + def udm_dns_ptr_record_object_update_with_http_info(self, dn, dns_ptr_record, **kwargs): # noqa: E501 + """Modify an Pointer record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_ptr_record_object_update_with_http_info(dn, dns_ptr_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_ptr_record: (required) + :type dns_ptr_record: DnsPtrRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_ptr_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_ptr_record_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_ptr_record_object_update`") # noqa: E501 + # verify the required parameter 'dns_ptr_record' is set + if self.api_client.client_side_validation and ('dns_ptr_record' not in local_var_params or # noqa: E501 + local_var_params['dns_ptr_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_ptr_record` when calling `udm_dns_ptr_record_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ptr_record_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_ptr_record_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_ptr_record' in local_var_params: + body_params = local_var_params['dns_ptr_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/ptr_record/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_reverse_zone_api.py b/openapi_client_udm/api/dns_reverse_zone_api.py new file mode 100644 index 0000000..2165106 --- /dev/null +++ b/openapi_client_udm/api/dns_reverse_zone_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsReverseZoneApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_reverse_zone_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Reverse lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsReverseZone + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_reverse_zone_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_reverse_zone_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Reverse lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsReverseZone, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_reverse_zone_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_reverse_zone_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_reverse_zone_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_reverse_zone_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsReverseZone", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/reverse_zone/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_reverse_zone_object_create(self, dns_reverse_zone, **kwargs): # noqa: E501 + """Create a new Reverse lookup zone object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_create(dns_reverse_zone, async_req=True) + >>> result = thread.get() + + :param dns_reverse_zone: (required) + :type dns_reverse_zone: DnsReverseZone + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_reverse_zone_object_create_with_http_info(dns_reverse_zone, **kwargs) # noqa: E501 + + def udm_dns_reverse_zone_object_create_with_http_info(self, dns_reverse_zone, **kwargs): # noqa: E501 + """Create a new Reverse lookup zone object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_create_with_http_info(dns_reverse_zone, async_req=True) + >>> result = thread.get() + + :param dns_reverse_zone: (required) + :type dns_reverse_zone: DnsReverseZone + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dns_reverse_zone', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_reverse_zone_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_reverse_zone' is set + if self.api_client.client_side_validation and ('dns_reverse_zone' not in local_var_params or # noqa: E501 + local_var_params['dns_reverse_zone'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_reverse_zone` when calling `udm_dns_reverse_zone_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_reverse_zone' in local_var_params: + body_params = local_var_params['dns_reverse_zone'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dns/reverse_zone/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_reverse_zone_object_modify(self, dn, dns_reverse_zone, **kwargs): # noqa: E501 + """Modify or move an Reverse lookup zone object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_modify(dn, dns_reverse_zone, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_reverse_zone: (required) + :type dns_reverse_zone: DnsReverseZone + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_reverse_zone_object_modify_with_http_info(dn, dns_reverse_zone, **kwargs) # noqa: E501 + + def udm_dns_reverse_zone_object_modify_with_http_info(self, dn, dns_reverse_zone, **kwargs): # noqa: E501 + """Modify or move an Reverse lookup zone object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_modify_with_http_info(dn, dns_reverse_zone, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_reverse_zone: (required) + :type dns_reverse_zone: DnsReverseZone + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_reverse_zone', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_reverse_zone_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_reverse_zone_object_modify`") # noqa: E501 + # verify the required parameter 'dns_reverse_zone' is set + if self.api_client.client_side_validation and ('dns_reverse_zone' not in local_var_params or # noqa: E501 + local_var_params['dns_reverse_zone'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_reverse_zone` when calling `udm_dns_reverse_zone_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_reverse_zone_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_reverse_zone_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_reverse_zone' in local_var_params: + body_params = local_var_params['dns_reverse_zone'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/reverse_zone/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_reverse_zone_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Reverse lookup zones object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_reverse_zone_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_reverse_zone_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Reverse lookup zones object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_reverse_zone_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_reverse_zone_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_reverse_zone_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_reverse_zone_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/reverse_zone/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_reverse_zone_object_search(self, **kwargs): # noqa: E501 + """Search for Reverse lookup zones objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsReverseZoneList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_reverse_zone_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_reverse_zone_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Reverse lookup zones objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsReverseZoneList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_reverse_zone_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_reverse_zone_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_reverse_zone_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dns_reverse_zone_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dns_reverse_zone_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dns_reverse_zone_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsReverseZoneList", + } + + return self.api_client.call_api( + '/dns/reverse_zone/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_reverse_zone_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Reverse lookup zone object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsReverseZone + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_reverse_zone_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_reverse_zone_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Reverse lookup zone object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsReverseZone, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_reverse_zone_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsReverseZone", + } + + return self.api_client.call_api( + '/dns/reverse_zone/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_reverse_zone_object_update(self, dn, dns_reverse_zone, **kwargs): # noqa: E501 + """Modify an Reverse lookup zone object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_update(dn, dns_reverse_zone, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_reverse_zone: (required) + :type dns_reverse_zone: DnsReverseZone + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_reverse_zone_object_update_with_http_info(dn, dns_reverse_zone, **kwargs) # noqa: E501 + + def udm_dns_reverse_zone_object_update_with_http_info(self, dn, dns_reverse_zone, **kwargs): # noqa: E501 + """Modify an Reverse lookup zone object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_reverse_zone_object_update_with_http_info(dn, dns_reverse_zone, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_reverse_zone: (required) + :type dns_reverse_zone: DnsReverseZone + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_reverse_zone', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_reverse_zone_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_reverse_zone_object_update`") # noqa: E501 + # verify the required parameter 'dns_reverse_zone' is set + if self.api_client.client_side_validation and ('dns_reverse_zone' not in local_var_params or # noqa: E501 + local_var_params['dns_reverse_zone'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_reverse_zone` when calling `udm_dns_reverse_zone_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_reverse_zone_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_reverse_zone_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_reverse_zone' in local_var_params: + body_params = local_var_params['dns_reverse_zone'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/reverse_zone/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_srv_record_api.py b/openapi_client_udm/api/dns_srv_record_api.py new file mode 100644 index 0000000..385215d --- /dev/null +++ b/openapi_client_udm/api/dns_srv_record_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsSrvRecordApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_srv_record_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Service record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsSrvRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_srv_record_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_srv_record_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Service record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsSrvRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_srv_record_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_srv_record_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_srv_record_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_srv_record_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsSrvRecord", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/srv_record/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_srv_record_object_create(self, dns_srv_record, **kwargs): # noqa: E501 + """Create a new Service record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_create(dns_srv_record, async_req=True) + >>> result = thread.get() + + :param dns_srv_record: (required) + :type dns_srv_record: DnsSrvRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_srv_record_object_create_with_http_info(dns_srv_record, **kwargs) # noqa: E501 + + def udm_dns_srv_record_object_create_with_http_info(self, dns_srv_record, **kwargs): # noqa: E501 + """Create a new Service record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_create_with_http_info(dns_srv_record, async_req=True) + >>> result = thread.get() + + :param dns_srv_record: (required) + :type dns_srv_record: DnsSrvRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dns_srv_record', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_srv_record_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_srv_record' is set + if self.api_client.client_side_validation and ('dns_srv_record' not in local_var_params or # noqa: E501 + local_var_params['dns_srv_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_srv_record` when calling `udm_dns_srv_record_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_srv_record' in local_var_params: + body_params = local_var_params['dns_srv_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dns/srv_record/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_srv_record_object_modify(self, dn, dns_srv_record, **kwargs): # noqa: E501 + """Modify or move an Service record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_modify(dn, dns_srv_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_srv_record: (required) + :type dns_srv_record: DnsSrvRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_srv_record_object_modify_with_http_info(dn, dns_srv_record, **kwargs) # noqa: E501 + + def udm_dns_srv_record_object_modify_with_http_info(self, dn, dns_srv_record, **kwargs): # noqa: E501 + """Modify or move an Service record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_modify_with_http_info(dn, dns_srv_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_srv_record: (required) + :type dns_srv_record: DnsSrvRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_srv_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_srv_record_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_srv_record_object_modify`") # noqa: E501 + # verify the required parameter 'dns_srv_record' is set + if self.api_client.client_side_validation and ('dns_srv_record' not in local_var_params or # noqa: E501 + local_var_params['dns_srv_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_srv_record` when calling `udm_dns_srv_record_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_srv_record_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_srv_record_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_srv_record' in local_var_params: + body_params = local_var_params['dns_srv_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/srv_record/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_srv_record_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Service records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_srv_record_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_srv_record_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Service records object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_srv_record_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_srv_record_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_srv_record_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_srv_record_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/srv_record/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_srv_record_object_search(self, **kwargs): # noqa: E501 + """Search for Service records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsSrvRecordList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_srv_record_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_srv_record_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Service records objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsSrvRecordList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_srv_record_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_srv_record_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_srv_record_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dns_srv_record_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dns_srv_record_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dns_srv_record_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsSrvRecordList", + } + + return self.api_client.call_api( + '/dns/srv_record/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_srv_record_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Service record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsSrvRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_srv_record_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_srv_record_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Service record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsSrvRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_srv_record_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsSrvRecord", + } + + return self.api_client.call_api( + '/dns/srv_record/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_srv_record_object_update(self, dn, dns_srv_record, **kwargs): # noqa: E501 + """Modify an Service record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_update(dn, dns_srv_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_srv_record: (required) + :type dns_srv_record: DnsSrvRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_srv_record_object_update_with_http_info(dn, dns_srv_record, **kwargs) # noqa: E501 + + def udm_dns_srv_record_object_update_with_http_info(self, dn, dns_srv_record, **kwargs): # noqa: E501 + """Modify an Service record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_srv_record_object_update_with_http_info(dn, dns_srv_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_srv_record: (required) + :type dns_srv_record: DnsSrvRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_srv_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_srv_record_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_srv_record_object_update`") # noqa: E501 + # verify the required parameter 'dns_srv_record' is set + if self.api_client.client_side_validation and ('dns_srv_record' not in local_var_params or # noqa: E501 + local_var_params['dns_srv_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_srv_record` when calling `udm_dns_srv_record_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_srv_record_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_srv_record_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_srv_record' in local_var_params: + body_params = local_var_params['dns_srv_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/srv_record/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/dns_txt_record_api.py b/openapi_client_udm/api/dns_txt_record_api.py new file mode 100644 index 0000000..30f5ee7 --- /dev/null +++ b/openapi_client_udm/api/dns_txt_record_api.py @@ -0,0 +1,1480 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class DnsTxtRecordApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_dns_txt_record_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the TXT record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsTxtRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_txt_record_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_txt_record_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the TXT record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsTxtRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_txt_record_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_txt_record_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_txt_record_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_txt_record_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsTxtRecord", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/txt_record/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_txt_record_object_create(self, dns_txt_record, **kwargs): # noqa: E501 + """Create a new TXT record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_create(dns_txt_record, async_req=True) + >>> result = thread.get() + + :param dns_txt_record: (required) + :type dns_txt_record: DnsTxtRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_txt_record_object_create_with_http_info(dns_txt_record, **kwargs) # noqa: E501 + + def udm_dns_txt_record_object_create_with_http_info(self, dns_txt_record, **kwargs): # noqa: E501 + """Create a new TXT record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_create_with_http_info(dns_txt_record, async_req=True) + >>> result = thread.get() + + :param dns_txt_record: (required) + :type dns_txt_record: DnsTxtRecord + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dns_txt_record', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_txt_record_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_txt_record' is set + if self.api_client.client_side_validation and ('dns_txt_record' not in local_var_params or # noqa: E501 + local_var_params['dns_txt_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_txt_record` when calling `udm_dns_txt_record_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_txt_record' in local_var_params: + body_params = local_var_params['dns_txt_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/dns/txt_record/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_txt_record_object_modify(self, dn, dns_txt_record, **kwargs): # noqa: E501 + """Modify or move an TXT record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_modify(dn, dns_txt_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_txt_record: (required) + :type dns_txt_record: DnsTxtRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_txt_record_object_modify_with_http_info(dn, dns_txt_record, **kwargs) # noqa: E501 + + def udm_dns_txt_record_object_modify_with_http_info(self, dn, dns_txt_record, **kwargs): # noqa: E501 + """Modify or move an TXT record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_modify_with_http_info(dn, dns_txt_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_txt_record: (required) + :type dns_txt_record: DnsTxtRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_txt_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_txt_record_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_txt_record_object_modify`") # noqa: E501 + # verify the required parameter 'dns_txt_record' is set + if self.api_client.client_side_validation and ('dns_txt_record' not in local_var_params or # noqa: E501 + local_var_params['dns_txt_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_txt_record` when calling `udm_dns_txt_record_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_txt_record_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_txt_record_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_txt_record' in local_var_params: + body_params = local_var_params['dns_txt_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/dns/txt_record/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_txt_record_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a TXT record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_txt_record_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_dns_txt_record_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a TXT record object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_txt_record_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_txt_record_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_txt_record_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_txt_record_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/txt_record/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_txt_record_object_search(self, **kwargs): # noqa: E501 + """Search for TXT record objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsTxtRecordList + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_txt_record_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_txt_record_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for TXT record objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param superordinate: The superordinate DN of the objects to find. `position` is sufficient. + :type superordinate: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsTxtRecordList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id', + 'superordinate' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_txt_record_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_dns_txt_record_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_dns_txt_record_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_dns_txt_record_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_dns_txt_record_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_dns_txt_record_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsTxtRecordList", + } + + return self.api_client.call_api( + '/dns/txt_record/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_txt_record_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an TXT record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: DnsTxtRecord + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_txt_record_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_dns_txt_record_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an TXT record object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(DnsTxtRecord, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_txt_record_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "DnsTxtRecord", + } + + return self.api_client.call_api( + '/dns/txt_record/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_dns_txt_record_object_update(self, dn, dns_txt_record, **kwargs): # noqa: E501 + """Modify an TXT record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_update(dn, dns_txt_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_txt_record: (required) + :type dns_txt_record: DnsTxtRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_dns_txt_record_object_update_with_http_info(dn, dns_txt_record, **kwargs) # noqa: E501 + + def udm_dns_txt_record_object_update_with_http_info(self, dn, dns_txt_record, **kwargs): # noqa: E501 + """Modify an TXT record object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_dns_txt_record_object_update_with_http_info(dn, dns_txt_record, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param dns_txt_record: (required) + :type dns_txt_record: DnsTxtRecord + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'dns_txt_record', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_dns_txt_record_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_dns_txt_record_object_update`") # noqa: E501 + # verify the required parameter 'dns_txt_record' is set + if self.api_client.client_side_validation and ('dns_txt_record' not in local_var_params or # noqa: E501 + local_var_params['dns_txt_record'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_txt_record` when calling `udm_dns_txt_record_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_txt_record_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_dns_txt_record_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_txt_record' in local_var_params: + body_params = local_var_params['dns_txt_record'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/dns/txt_record/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/groups_group_api.py b/openapi_client_udm/api/groups_group_api.py new file mode 100644 index 0000000..d846f71 --- /dev/null +++ b/openapi_client_udm/api/groups_group_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class GroupsGroupApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_groups_group_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: GroupsGroup + """ + kwargs['_return_http_data_only'] = True + return self.udm_groups_group_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_groups_group_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(GroupsGroup, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_groups_group_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_groups_group_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_groups_group_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_groups_group_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "GroupsGroup", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/groups/group/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_groups_group_object_create(self, groups_group, **kwargs): # noqa: E501 + """Create a new Group object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_create(groups_group, async_req=True) + >>> result = thread.get() + + :param groups_group: (required) + :type groups_group: GroupsGroup + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_groups_group_object_create_with_http_info(groups_group, **kwargs) # noqa: E501 + + def udm_groups_group_object_create_with_http_info(self, groups_group, **kwargs): # noqa: E501 + """Create a new Group object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_create_with_http_info(groups_group, async_req=True) + >>> result = thread.get() + + :param groups_group: (required) + :type groups_group: GroupsGroup + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'groups_group', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_groups_group_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'groups_group' is set + if self.api_client.client_side_validation and ('groups_group' not in local_var_params or # noqa: E501 + local_var_params['groups_group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `groups_group` when calling `udm_groups_group_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'groups_group' in local_var_params: + body_params = local_var_params['groups_group'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/groups/group/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_groups_group_object_modify(self, dn, groups_group, **kwargs): # noqa: E501 + """Modify or move an Group object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_modify(dn, groups_group, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param groups_group: (required) + :type groups_group: GroupsGroup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_groups_group_object_modify_with_http_info(dn, groups_group, **kwargs) # noqa: E501 + + def udm_groups_group_object_modify_with_http_info(self, dn, groups_group, **kwargs): # noqa: E501 + """Modify or move an Group object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_modify_with_http_info(dn, groups_group, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param groups_group: (required) + :type groups_group: GroupsGroup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'groups_group', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_groups_group_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_groups_group_object_modify`") # noqa: E501 + # verify the required parameter 'groups_group' is set + if self.api_client.client_side_validation and ('groups_group' not in local_var_params or # noqa: E501 + local_var_params['groups_group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `groups_group` when calling `udm_groups_group_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_groups_group_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_groups_group_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'groups_group' in local_var_params: + body_params = local_var_params['groups_group'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/groups/group/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_groups_group_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Groups object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_groups_group_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_groups_group_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Groups object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_groups_group_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_groups_group_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_groups_group_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_groups_group_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/groups/group/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_groups_group_object_search(self, **kwargs): # noqa: E501 + """Search for Groups objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: GroupsGroupList + """ + kwargs['_return_http_data_only'] = True + return self.udm_groups_group_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_groups_group_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Groups objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(GroupsGroupList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_groups_group_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_groups_group_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_groups_group_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_groups_group_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_groups_group_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_groups_group_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "GroupsGroupList", + } + + return self.api_client.call_api( + '/groups/group/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_groups_group_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Group object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: GroupsGroup + """ + kwargs['_return_http_data_only'] = True + return self.udm_groups_group_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_groups_group_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Group object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(GroupsGroup, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_groups_group_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "GroupsGroup", + } + + return self.api_client.call_api( + '/groups/group/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_groups_group_object_update(self, dn, groups_group, **kwargs): # noqa: E501 + """Modify an Group object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_update(dn, groups_group, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param groups_group: (required) + :type groups_group: GroupsGroup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_groups_group_object_update_with_http_info(dn, groups_group, **kwargs) # noqa: E501 + + def udm_groups_group_object_update_with_http_info(self, dn, groups_group, **kwargs): # noqa: E501 + """Modify an Group object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_groups_group_object_update_with_http_info(dn, groups_group, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param groups_group: (required) + :type groups_group: GroupsGroup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'groups_group', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_groups_group_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_groups_group_object_update`") # noqa: E501 + # verify the required parameter 'groups_group' is set + if self.api_client.client_side_validation and ('groups_group' not in local_var_params or # noqa: E501 + local_var_params['groups_group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `groups_group` when calling `udm_groups_group_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_groups_group_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_groups_group_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'groups_group' in local_var_params: + body_params = local_var_params['groups_group'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/groups/group/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/kerberos_kdcentry_api.py b/openapi_client_udm/api/kerberos_kdcentry_api.py new file mode 100644 index 0000000..57cc7e0 --- /dev/null +++ b/openapi_client_udm/api/kerberos_kdcentry_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class KerberosKdcentryApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_kerberos_kdcentry_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the KDC Entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: KerberosKdcentry + """ + kwargs['_return_http_data_only'] = True + return self.udm_kerberos_kdcentry_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_kerberos_kdcentry_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the KDC Entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(KerberosKdcentry, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_kerberos_kdcentry_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_kerberos_kdcentry_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_kerberos_kdcentry_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_kerberos_kdcentry_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "KerberosKdcentry", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/kerberos/kdcentry/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_kerberos_kdcentry_object_create(self, kerberos_kdcentry, **kwargs): # noqa: E501 + """Create a new KDC Entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_create(kerberos_kdcentry, async_req=True) + >>> result = thread.get() + + :param kerberos_kdcentry: (required) + :type kerberos_kdcentry: KerberosKdcentry + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_kerberos_kdcentry_object_create_with_http_info(kerberos_kdcentry, **kwargs) # noqa: E501 + + def udm_kerberos_kdcentry_object_create_with_http_info(self, kerberos_kdcentry, **kwargs): # noqa: E501 + """Create a new KDC Entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_create_with_http_info(kerberos_kdcentry, async_req=True) + >>> result = thread.get() + + :param kerberos_kdcentry: (required) + :type kerberos_kdcentry: KerberosKdcentry + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'kerberos_kdcentry', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_kerberos_kdcentry_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'kerberos_kdcentry' is set + if self.api_client.client_side_validation and ('kerberos_kdcentry' not in local_var_params or # noqa: E501 + local_var_params['kerberos_kdcentry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `kerberos_kdcentry` when calling `udm_kerberos_kdcentry_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'kerberos_kdcentry' in local_var_params: + body_params = local_var_params['kerberos_kdcentry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/kerberos/kdcentry/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_kerberos_kdcentry_object_modify(self, dn, kerberos_kdcentry, **kwargs): # noqa: E501 + """Modify or move an KDC Entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_modify(dn, kerberos_kdcentry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param kerberos_kdcentry: (required) + :type kerberos_kdcentry: KerberosKdcentry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_kerberos_kdcentry_object_modify_with_http_info(dn, kerberos_kdcentry, **kwargs) # noqa: E501 + + def udm_kerberos_kdcentry_object_modify_with_http_info(self, dn, kerberos_kdcentry, **kwargs): # noqa: E501 + """Modify or move an KDC Entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_modify_with_http_info(dn, kerberos_kdcentry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param kerberos_kdcentry: (required) + :type kerberos_kdcentry: KerberosKdcentry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'kerberos_kdcentry', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_kerberos_kdcentry_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_kerberos_kdcentry_object_modify`") # noqa: E501 + # verify the required parameter 'kerberos_kdcentry' is set + if self.api_client.client_side_validation and ('kerberos_kdcentry' not in local_var_params or # noqa: E501 + local_var_params['kerberos_kdcentry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `kerberos_kdcentry` when calling `udm_kerberos_kdcentry_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_kerberos_kdcentry_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_kerberos_kdcentry_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'kerberos_kdcentry' in local_var_params: + body_params = local_var_params['kerberos_kdcentry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/kerberos/kdcentry/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_kerberos_kdcentry_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a KDC Entries object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_kerberos_kdcentry_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_kerberos_kdcentry_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a KDC Entries object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_kerberos_kdcentry_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_kerberos_kdcentry_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_kerberos_kdcentry_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_kerberos_kdcentry_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/kerberos/kdcentry/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_kerberos_kdcentry_object_search(self, **kwargs): # noqa: E501 + """Search for KDC Entries objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: KerberosKdcentryList + """ + kwargs['_return_http_data_only'] = True + return self.udm_kerberos_kdcentry_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_kerberos_kdcentry_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for KDC Entries objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(KerberosKdcentryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_kerberos_kdcentry_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_kerberos_kdcentry_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_kerberos_kdcentry_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_kerberos_kdcentry_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_kerberos_kdcentry_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_kerberos_kdcentry_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "KerberosKdcentryList", + } + + return self.api_client.call_api( + '/kerberos/kdcentry/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_kerberos_kdcentry_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an KDC Entry object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: KerberosKdcentry + """ + kwargs['_return_http_data_only'] = True + return self.udm_kerberos_kdcentry_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_kerberos_kdcentry_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an KDC Entry object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(KerberosKdcentry, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_kerberos_kdcentry_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "KerberosKdcentry", + } + + return self.api_client.call_api( + '/kerberos/kdcentry/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_kerberos_kdcentry_object_update(self, dn, kerberos_kdcentry, **kwargs): # noqa: E501 + """Modify an KDC Entry object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_update(dn, kerberos_kdcentry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param kerberos_kdcentry: (required) + :type kerberos_kdcentry: KerberosKdcentry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_kerberos_kdcentry_object_update_with_http_info(dn, kerberos_kdcentry, **kwargs) # noqa: E501 + + def udm_kerberos_kdcentry_object_update_with_http_info(self, dn, kerberos_kdcentry, **kwargs): # noqa: E501 + """Modify an KDC Entry object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_kerberos_kdcentry_object_update_with_http_info(dn, kerberos_kdcentry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param kerberos_kdcentry: (required) + :type kerberos_kdcentry: KerberosKdcentry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'kerberos_kdcentry', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_kerberos_kdcentry_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_kerberos_kdcentry_object_update`") # noqa: E501 + # verify the required parameter 'kerberos_kdcentry' is set + if self.api_client.client_side_validation and ('kerberos_kdcentry' not in local_var_params or # noqa: E501 + local_var_params['kerberos_kdcentry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `kerberos_kdcentry` when calling `udm_kerberos_kdcentry_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_kerberos_kdcentry_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_kerberos_kdcentry_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'kerberos_kdcentry' in local_var_params: + body_params = local_var_params['kerberos_kdcentry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/kerberos/kdcentry/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/mail_domain_api.py b/openapi_client_udm/api/mail_domain_api.py new file mode 100644 index 0000000..452c504 --- /dev/null +++ b/openapi_client_udm/api/mail_domain_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MailDomainApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_mail_domain_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Mail domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailDomain + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_domain_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_mail_domain_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Mail domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailDomain, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_domain_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_domain_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_domain_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_domain_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailDomain", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/mail/domain/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_domain_object_create(self, mail_domain, **kwargs): # noqa: E501 + """Create a new Mail domain object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_create(mail_domain, async_req=True) + >>> result = thread.get() + + :param mail_domain: (required) + :type mail_domain: MailDomain + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_domain_object_create_with_http_info(mail_domain, **kwargs) # noqa: E501 + + def udm_mail_domain_object_create_with_http_info(self, mail_domain, **kwargs): # noqa: E501 + """Create a new Mail domain object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_create_with_http_info(mail_domain, async_req=True) + >>> result = thread.get() + + :param mail_domain: (required) + :type mail_domain: MailDomain + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'mail_domain', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_domain_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'mail_domain' is set + if self.api_client.client_side_validation and ('mail_domain' not in local_var_params or # noqa: E501 + local_var_params['mail_domain'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_domain` when calling `udm_mail_domain_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_domain' in local_var_params: + body_params = local_var_params['mail_domain'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/mail/domain/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_domain_object_modify(self, dn, mail_domain, **kwargs): # noqa: E501 + """Modify or move an Mail domain object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_modify(dn, mail_domain, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_domain: (required) + :type mail_domain: MailDomain + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_domain_object_modify_with_http_info(dn, mail_domain, **kwargs) # noqa: E501 + + def udm_mail_domain_object_modify_with_http_info(self, dn, mail_domain, **kwargs): # noqa: E501 + """Modify or move an Mail domain object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_modify_with_http_info(dn, mail_domain, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_domain: (required) + :type mail_domain: MailDomain + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'mail_domain', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_domain_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_domain_object_modify`") # noqa: E501 + # verify the required parameter 'mail_domain' is set + if self.api_client.client_side_validation and ('mail_domain' not in local_var_params or # noqa: E501 + local_var_params['mail_domain'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_domain` when calling `udm_mail_domain_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_domain_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_domain_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_domain' in local_var_params: + body_params = local_var_params['mail_domain'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/mail/domain/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_domain_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Mail domains object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_domain_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_mail_domain_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Mail domains object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_domain_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_domain_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_domain_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_domain_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/mail/domain/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_domain_object_search(self, **kwargs): # noqa: E501 + """Search for Mail domains objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailDomainList + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_domain_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_mail_domain_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Mail domains objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailDomainList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_domain_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_mail_domain_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_mail_domain_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_mail_domain_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_mail_domain_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_mail_domain_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailDomainList", + } + + return self.api_client.call_api( + '/mail/domain/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_domain_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Mail domain object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailDomain + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_domain_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_mail_domain_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Mail domain object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailDomain, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_domain_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailDomain", + } + + return self.api_client.call_api( + '/mail/domain/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_domain_object_update(self, dn, mail_domain, **kwargs): # noqa: E501 + """Modify an Mail domain object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_update(dn, mail_domain, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_domain: (required) + :type mail_domain: MailDomain + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_domain_object_update_with_http_info(dn, mail_domain, **kwargs) # noqa: E501 + + def udm_mail_domain_object_update_with_http_info(self, dn, mail_domain, **kwargs): # noqa: E501 + """Modify an Mail domain object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_domain_object_update_with_http_info(dn, mail_domain, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_domain: (required) + :type mail_domain: MailDomain + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'mail_domain', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_domain_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_domain_object_update`") # noqa: E501 + # verify the required parameter 'mail_domain' is set + if self.api_client.client_side_validation and ('mail_domain' not in local_var_params or # noqa: E501 + local_var_params['mail_domain'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_domain` when calling `udm_mail_domain_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_domain_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_domain_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_domain' in local_var_params: + body_params = local_var_params['mail_domain'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/mail/domain/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/mail_folder_api.py b/openapi_client_udm/api/mail_folder_api.py new file mode 100644 index 0000000..aad9036 --- /dev/null +++ b/openapi_client_udm/api/mail_folder_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MailFolderApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_mail_folder_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the IMAP mail folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailFolder + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_folder_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_mail_folder_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the IMAP mail folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailFolder, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_folder_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_folder_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_folder_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_folder_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailFolder", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/mail/folder/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_folder_object_create(self, mail_folder, **kwargs): # noqa: E501 + """Create a new IMAP mail folder object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_create(mail_folder, async_req=True) + >>> result = thread.get() + + :param mail_folder: (required) + :type mail_folder: MailFolder + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_folder_object_create_with_http_info(mail_folder, **kwargs) # noqa: E501 + + def udm_mail_folder_object_create_with_http_info(self, mail_folder, **kwargs): # noqa: E501 + """Create a new IMAP mail folder object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_create_with_http_info(mail_folder, async_req=True) + >>> result = thread.get() + + :param mail_folder: (required) + :type mail_folder: MailFolder + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'mail_folder', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_folder_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'mail_folder' is set + if self.api_client.client_side_validation and ('mail_folder' not in local_var_params or # noqa: E501 + local_var_params['mail_folder'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_folder` when calling `udm_mail_folder_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_folder' in local_var_params: + body_params = local_var_params['mail_folder'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/mail/folder/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_folder_object_modify(self, dn, mail_folder, **kwargs): # noqa: E501 + """Modify or move an IMAP mail folder object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_modify(dn, mail_folder, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_folder: (required) + :type mail_folder: MailFolder + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_folder_object_modify_with_http_info(dn, mail_folder, **kwargs) # noqa: E501 + + def udm_mail_folder_object_modify_with_http_info(self, dn, mail_folder, **kwargs): # noqa: E501 + """Modify or move an IMAP mail folder object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_modify_with_http_info(dn, mail_folder, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_folder: (required) + :type mail_folder: MailFolder + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'mail_folder', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_folder_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_folder_object_modify`") # noqa: E501 + # verify the required parameter 'mail_folder' is set + if self.api_client.client_side_validation and ('mail_folder' not in local_var_params or # noqa: E501 + local_var_params['mail_folder'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_folder` when calling `udm_mail_folder_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_folder_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_folder_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_folder' in local_var_params: + body_params = local_var_params['mail_folder'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/mail/folder/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_folder_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a IMAP mail folders object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_folder_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_mail_folder_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a IMAP mail folders object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_folder_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_folder_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_folder_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_folder_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/mail/folder/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_folder_object_search(self, **kwargs): # noqa: E501 + """Search for IMAP mail folders objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailFolderList + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_folder_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_mail_folder_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for IMAP mail folders objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailFolderList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_folder_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_mail_folder_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_mail_folder_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_mail_folder_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_mail_folder_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_mail_folder_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailFolderList", + } + + return self.api_client.call_api( + '/mail/folder/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_folder_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an IMAP mail folder object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailFolder + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_folder_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_mail_folder_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an IMAP mail folder object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailFolder, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_folder_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailFolder", + } + + return self.api_client.call_api( + '/mail/folder/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_folder_object_update(self, dn, mail_folder, **kwargs): # noqa: E501 + """Modify an IMAP mail folder object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_update(dn, mail_folder, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_folder: (required) + :type mail_folder: MailFolder + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_folder_object_update_with_http_info(dn, mail_folder, **kwargs) # noqa: E501 + + def udm_mail_folder_object_update_with_http_info(self, dn, mail_folder, **kwargs): # noqa: E501 + """Modify an IMAP mail folder object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_folder_object_update_with_http_info(dn, mail_folder, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_folder: (required) + :type mail_folder: MailFolder + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'mail_folder', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_folder_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_folder_object_update`") # noqa: E501 + # verify the required parameter 'mail_folder' is set + if self.api_client.client_side_validation and ('mail_folder' not in local_var_params or # noqa: E501 + local_var_params['mail_folder'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_folder` when calling `udm_mail_folder_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_folder_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_folder_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_folder' in local_var_params: + body_params = local_var_params['mail_folder'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/mail/folder/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/mail_lists_api.py b/openapi_client_udm/api/mail_lists_api.py new file mode 100644 index 0000000..1ca3ab8 --- /dev/null +++ b/openapi_client_udm/api/mail_lists_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MailListsApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_mail_lists_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Mailing list object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailLists + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_lists_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_mail_lists_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Mailing list object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailLists, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_lists_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_lists_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_lists_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_lists_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailLists", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/mail/lists/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_lists_object_create(self, mail_lists, **kwargs): # noqa: E501 + """Create a new Mailing list object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_create(mail_lists, async_req=True) + >>> result = thread.get() + + :param mail_lists: (required) + :type mail_lists: MailLists + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_lists_object_create_with_http_info(mail_lists, **kwargs) # noqa: E501 + + def udm_mail_lists_object_create_with_http_info(self, mail_lists, **kwargs): # noqa: E501 + """Create a new Mailing list object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_create_with_http_info(mail_lists, async_req=True) + >>> result = thread.get() + + :param mail_lists: (required) + :type mail_lists: MailLists + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'mail_lists', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_lists_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'mail_lists' is set + if self.api_client.client_side_validation and ('mail_lists' not in local_var_params or # noqa: E501 + local_var_params['mail_lists'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_lists` when calling `udm_mail_lists_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_lists' in local_var_params: + body_params = local_var_params['mail_lists'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/mail/lists/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_lists_object_modify(self, dn, mail_lists, **kwargs): # noqa: E501 + """Modify or move an Mailing list object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_modify(dn, mail_lists, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_lists: (required) + :type mail_lists: MailLists + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_lists_object_modify_with_http_info(dn, mail_lists, **kwargs) # noqa: E501 + + def udm_mail_lists_object_modify_with_http_info(self, dn, mail_lists, **kwargs): # noqa: E501 + """Modify or move an Mailing list object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_modify_with_http_info(dn, mail_lists, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_lists: (required) + :type mail_lists: MailLists + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'mail_lists', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_lists_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_lists_object_modify`") # noqa: E501 + # verify the required parameter 'mail_lists' is set + if self.api_client.client_side_validation and ('mail_lists' not in local_var_params or # noqa: E501 + local_var_params['mail_lists'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_lists` when calling `udm_mail_lists_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_lists_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_lists_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_lists' in local_var_params: + body_params = local_var_params['mail_lists'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/mail/lists/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_lists_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Mailing lists object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_lists_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_mail_lists_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Mailing lists object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_lists_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_lists_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_lists_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_lists_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/mail/lists/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_lists_object_search(self, **kwargs): # noqa: E501 + """Search for Mailing lists objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailListsList + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_lists_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_mail_lists_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Mailing lists objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailListsList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_lists_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_mail_lists_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_mail_lists_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_mail_lists_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_mail_lists_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_mail_lists_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailListsList", + } + + return self.api_client.call_api( + '/mail/lists/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_lists_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Mailing list object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailLists + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_lists_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_mail_lists_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Mailing list object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailLists, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_lists_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailLists", + } + + return self.api_client.call_api( + '/mail/lists/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_lists_object_update(self, dn, mail_lists, **kwargs): # noqa: E501 + """Modify an Mailing list object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_update(dn, mail_lists, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_lists: (required) + :type mail_lists: MailLists + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_lists_object_update_with_http_info(dn, mail_lists, **kwargs) # noqa: E501 + + def udm_mail_lists_object_update_with_http_info(self, dn, mail_lists, **kwargs): # noqa: E501 + """Modify an Mailing list object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_lists_object_update_with_http_info(dn, mail_lists, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param mail_lists: (required) + :type mail_lists: MailLists + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'mail_lists', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_lists_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_lists_object_update`") # noqa: E501 + # verify the required parameter 'mail_lists' is set + if self.api_client.client_side_validation and ('mail_lists' not in local_var_params or # noqa: E501 + local_var_params['mail_lists'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `mail_lists` when calling `udm_mail_lists_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_lists_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_lists_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'mail_lists' in local_var_params: + body_params = local_var_params['mail_lists'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/mail/lists/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/mail_mail_api.py b/openapi_client_udm/api/mail_mail_api.py new file mode 100644 index 0000000..b6a5062 --- /dev/null +++ b/openapi_client_udm/api/mail_mail_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MailMailApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_mail_mail_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Mail object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_mail_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailMail + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_mail_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_mail_mail_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Mail object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_mail_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailMail, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_mail_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_mail_mail_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_mail_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_mail_mail_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailMail", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/mail/mail/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_mail_mail_object_search(self, **kwargs): # noqa: E501 + """Search for Mail objects objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_mail_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MailMailList + """ + kwargs['_return_http_data_only'] = True + return self.udm_mail_mail_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_mail_mail_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Mail objects objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_mail_mail_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MailMailList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_mail_mail_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_mail_mail_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_mail_mail_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MailMailList", + } + + return self.api_client.call_api( + '/mail/mail/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/monitoring_alert_api.py b/openapi_client_udm/api/monitoring_alert_api.py new file mode 100644 index 0000000..fd2ad21 --- /dev/null +++ b/openapi_client_udm/api/monitoring_alert_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MonitoringAlertApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_monitoring_alert_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Alert object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MonitoringAlert + """ + kwargs['_return_http_data_only'] = True + return self.udm_monitoring_alert_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_monitoring_alert_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Alert object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MonitoringAlert, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_monitoring_alert_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_monitoring_alert_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_monitoring_alert_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_monitoring_alert_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MonitoringAlert", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/monitoring/alert/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_monitoring_alert_object_create(self, monitoring_alert, **kwargs): # noqa: E501 + """Create a new Alert object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_create(monitoring_alert, async_req=True) + >>> result = thread.get() + + :param monitoring_alert: (required) + :type monitoring_alert: MonitoringAlert + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_monitoring_alert_object_create_with_http_info(monitoring_alert, **kwargs) # noqa: E501 + + def udm_monitoring_alert_object_create_with_http_info(self, monitoring_alert, **kwargs): # noqa: E501 + """Create a new Alert object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_create_with_http_info(monitoring_alert, async_req=True) + >>> result = thread.get() + + :param monitoring_alert: (required) + :type monitoring_alert: MonitoringAlert + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'monitoring_alert', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_monitoring_alert_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'monitoring_alert' is set + if self.api_client.client_side_validation and ('monitoring_alert' not in local_var_params or # noqa: E501 + local_var_params['monitoring_alert'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `monitoring_alert` when calling `udm_monitoring_alert_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'monitoring_alert' in local_var_params: + body_params = local_var_params['monitoring_alert'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/monitoring/alert/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_monitoring_alert_object_modify(self, dn, monitoring_alert, **kwargs): # noqa: E501 + """Modify or move an Alert object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_modify(dn, monitoring_alert, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param monitoring_alert: (required) + :type monitoring_alert: MonitoringAlert + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_monitoring_alert_object_modify_with_http_info(dn, monitoring_alert, **kwargs) # noqa: E501 + + def udm_monitoring_alert_object_modify_with_http_info(self, dn, monitoring_alert, **kwargs): # noqa: E501 + """Modify or move an Alert object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_modify_with_http_info(dn, monitoring_alert, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param monitoring_alert: (required) + :type monitoring_alert: MonitoringAlert + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'monitoring_alert', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_monitoring_alert_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_monitoring_alert_object_modify`") # noqa: E501 + # verify the required parameter 'monitoring_alert' is set + if self.api_client.client_side_validation and ('monitoring_alert' not in local_var_params or # noqa: E501 + local_var_params['monitoring_alert'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `monitoring_alert` when calling `udm_monitoring_alert_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_monitoring_alert_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_monitoring_alert_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'monitoring_alert' in local_var_params: + body_params = local_var_params['monitoring_alert'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/monitoring/alert/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_monitoring_alert_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Alerts object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_monitoring_alert_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_monitoring_alert_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Alerts object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_monitoring_alert_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_monitoring_alert_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_monitoring_alert_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_monitoring_alert_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/monitoring/alert/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_monitoring_alert_object_search(self, **kwargs): # noqa: E501 + """Search for Alerts objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MonitoringAlertList + """ + kwargs['_return_http_data_only'] = True + return self.udm_monitoring_alert_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_monitoring_alert_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Alerts objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MonitoringAlertList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_monitoring_alert_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_monitoring_alert_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_monitoring_alert_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_monitoring_alert_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_monitoring_alert_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_monitoring_alert_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MonitoringAlertList", + } + + return self.api_client.call_api( + '/monitoring/alert/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_monitoring_alert_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Alert object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MonitoringAlert + """ + kwargs['_return_http_data_only'] = True + return self.udm_monitoring_alert_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_monitoring_alert_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Alert object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MonitoringAlert, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_monitoring_alert_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MonitoringAlert", + } + + return self.api_client.call_api( + '/monitoring/alert/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_monitoring_alert_object_update(self, dn, monitoring_alert, **kwargs): # noqa: E501 + """Modify an Alert object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_update(dn, monitoring_alert, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param monitoring_alert: (required) + :type monitoring_alert: MonitoringAlert + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_monitoring_alert_object_update_with_http_info(dn, monitoring_alert, **kwargs) # noqa: E501 + + def udm_monitoring_alert_object_update_with_http_info(self, dn, monitoring_alert, **kwargs): # noqa: E501 + """Modify an Alert object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_monitoring_alert_object_update_with_http_info(dn, monitoring_alert, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param monitoring_alert: (required) + :type monitoring_alert: MonitoringAlert + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'monitoring_alert', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_monitoring_alert_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_monitoring_alert_object_update`") # noqa: E501 + # verify the required parameter 'monitoring_alert' is set + if self.api_client.client_side_validation and ('monitoring_alert' not in local_var_params or # noqa: E501 + local_var_params['monitoring_alert'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `monitoring_alert` when calling `udm_monitoring_alert_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_monitoring_alert_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_monitoring_alert_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'monitoring_alert' in local_var_params: + body_params = local_var_params['monitoring_alert'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/monitoring/alert/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_domainpolicy_api.py b/openapi_client_udm/api/ms_domainpolicy_api.py new file mode 100644 index 0000000..48938ed --- /dev/null +++ b/openapi_client_udm/api/ms_domainpolicy_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsDomainpolicyApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_domainpolicy_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS Domain Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsDomainpolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_domainpolicy_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_domainpolicy_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS Domain Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsDomainpolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_domainpolicy_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_domainpolicy_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_domainpolicy_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_domainpolicy_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsDomainpolicy", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/domainpolicy/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_domainpolicy_object_create(self, ms_domainpolicy, **kwargs): # noqa: E501 + """Create a new MS Domain Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_create(ms_domainpolicy, async_req=True) + >>> result = thread.get() + + :param ms_domainpolicy: (required) + :type ms_domainpolicy: MsDomainpolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_domainpolicy_object_create_with_http_info(ms_domainpolicy, **kwargs) # noqa: E501 + + def udm_ms_domainpolicy_object_create_with_http_info(self, ms_domainpolicy, **kwargs): # noqa: E501 + """Create a new MS Domain Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_create_with_http_info(ms_domainpolicy, async_req=True) + >>> result = thread.get() + + :param ms_domainpolicy: (required) + :type ms_domainpolicy: MsDomainpolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_domainpolicy', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_domainpolicy_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_domainpolicy' is set + if self.api_client.client_side_validation and ('ms_domainpolicy' not in local_var_params or # noqa: E501 + local_var_params['ms_domainpolicy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_domainpolicy` when calling `udm_ms_domainpolicy_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_domainpolicy' in local_var_params: + body_params = local_var_params['ms_domainpolicy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/domainpolicy/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_domainpolicy_object_modify(self, dn, ms_domainpolicy, **kwargs): # noqa: E501 + """Modify or move an MS Domain Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_modify(dn, ms_domainpolicy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_domainpolicy: (required) + :type ms_domainpolicy: MsDomainpolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_domainpolicy_object_modify_with_http_info(dn, ms_domainpolicy, **kwargs) # noqa: E501 + + def udm_ms_domainpolicy_object_modify_with_http_info(self, dn, ms_domainpolicy, **kwargs): # noqa: E501 + """Modify or move an MS Domain Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_modify_with_http_info(dn, ms_domainpolicy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_domainpolicy: (required) + :type ms_domainpolicy: MsDomainpolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_domainpolicy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_domainpolicy_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_domainpolicy_object_modify`") # noqa: E501 + # verify the required parameter 'ms_domainpolicy' is set + if self.api_client.client_side_validation and ('ms_domainpolicy' not in local_var_params or # noqa: E501 + local_var_params['ms_domainpolicy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_domainpolicy` when calling `udm_ms_domainpolicy_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_domainpolicy_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_domainpolicy_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_domainpolicy' in local_var_params: + body_params = local_var_params['ms_domainpolicy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/domainpolicy/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_domainpolicy_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS Domain Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_domainpolicy_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_domainpolicy_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS Domain Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_domainpolicy_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_domainpolicy_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_domainpolicy_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_domainpolicy_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/domainpolicy/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_domainpolicy_object_search(self, **kwargs): # noqa: E501 + """Search for MS Domain Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsDomainpolicyList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_domainpolicy_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_domainpolicy_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS Domain Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsDomainpolicyList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_domainpolicy_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_domainpolicy_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_domainpolicy_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_domainpolicy_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_domainpolicy_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_domainpolicy_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsDomainpolicyList", + } + + return self.api_client.call_api( + '/ms/domainpolicy/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_domainpolicy_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS Domain Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsDomainpolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_domainpolicy_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_domainpolicy_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS Domain Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsDomainpolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_domainpolicy_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsDomainpolicy", + } + + return self.api_client.call_api( + '/ms/domainpolicy/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_domainpolicy_object_update(self, dn, ms_domainpolicy, **kwargs): # noqa: E501 + """Modify an MS Domain Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_update(dn, ms_domainpolicy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_domainpolicy: (required) + :type ms_domainpolicy: MsDomainpolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_domainpolicy_object_update_with_http_info(dn, ms_domainpolicy, **kwargs) # noqa: E501 + + def udm_ms_domainpolicy_object_update_with_http_info(self, dn, ms_domainpolicy, **kwargs): # noqa: E501 + """Modify an MS Domain Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_domainpolicy_object_update_with_http_info(dn, ms_domainpolicy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_domainpolicy: (required) + :type ms_domainpolicy: MsDomainpolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_domainpolicy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_domainpolicy_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_domainpolicy_object_update`") # noqa: E501 + # verify the required parameter 'ms_domainpolicy' is set + if self.api_client.client_side_validation and ('ms_domainpolicy' not in local_var_params or # noqa: E501 + local_var_params['ms_domainpolicy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_domainpolicy` when calling `udm_ms_domainpolicy_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_domainpolicy_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_domainpolicy_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_domainpolicy' in local_var_params: + body_params = local_var_params['ms_domainpolicy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/domainpolicy/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpipsec_filter_api.py b/openapi_client_udm/api/ms_gpipsec_filter_api.py new file mode 100644 index 0000000..fa25704 --- /dev/null +++ b/openapi_client_udm/api/ms_gpipsec_filter_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpipsecFilterApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpipsec_filter_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy: filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecFilter + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_filter_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_filter_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy: filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecFilter, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_filter_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_filter_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_filter_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_filter_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecFilter", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-filter/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_filter_object_create(self, ms_gpipsec_filter, **kwargs): # noqa: E501 + """Create a new MS IPsec policy: filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_create(ms_gpipsec_filter, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_filter: (required) + :type ms_gpipsec_filter: MsGpipsecFilter + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_filter_object_create_with_http_info(ms_gpipsec_filter, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_filter_object_create_with_http_info(self, ms_gpipsec_filter, **kwargs): # noqa: E501 + """Create a new MS IPsec policy: filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_create_with_http_info(ms_gpipsec_filter, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_filter: (required) + :type ms_gpipsec_filter: MsGpipsecFilter + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpipsec_filter', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_filter_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpipsec_filter' is set + if self.api_client.client_side_validation and ('ms_gpipsec_filter' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_filter'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_filter` when calling `udm_ms_gpipsec_filter_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_filter' in local_var_params: + body_params = local_var_params['ms_gpipsec_filter'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpipsec-filter/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_filter_object_modify(self, dn, ms_gpipsec_filter, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy: filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_modify(dn, ms_gpipsec_filter, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_filter: (required) + :type ms_gpipsec_filter: MsGpipsecFilter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_filter_object_modify_with_http_info(dn, ms_gpipsec_filter, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_filter_object_modify_with_http_info(self, dn, ms_gpipsec_filter, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy: filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_modify_with_http_info(dn, ms_gpipsec_filter, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_filter: (required) + :type ms_gpipsec_filter: MsGpipsecFilter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_filter', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_filter_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_filter_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_filter' is set + if self.api_client.client_side_validation and ('ms_gpipsec_filter' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_filter'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_filter` when calling `udm_ms_gpipsec_filter_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_filter_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_filter_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_filter' in local_var_params: + body_params = local_var_params['ms_gpipsec_filter'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-filter/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_filter_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy: filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_filter_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_filter_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy: filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_filter_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_filter_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_filter_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_filter_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-filter/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_filter_object_search(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy: filter objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecFilterList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_filter_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_filter_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy: filter objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecFilterList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_filter_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpipsec_filter_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpipsec_filter_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpipsec_filter_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpipsec_filter_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpipsec_filter_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecFilterList", + } + + return self.api_client.call_api( + '/ms/gpipsec-filter/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_filter_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy: filter object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecFilter + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_filter_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_filter_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy: filter object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecFilter, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_filter_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecFilter", + } + + return self.api_client.call_api( + '/ms/gpipsec-filter/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_filter_object_update(self, dn, ms_gpipsec_filter, **kwargs): # noqa: E501 + """Modify an MS IPsec policy: filter object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_update(dn, ms_gpipsec_filter, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_filter: (required) + :type ms_gpipsec_filter: MsGpipsecFilter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_filter_object_update_with_http_info(dn, ms_gpipsec_filter, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_filter_object_update_with_http_info(self, dn, ms_gpipsec_filter, **kwargs): # noqa: E501 + """Modify an MS IPsec policy: filter object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_filter_object_update_with_http_info(dn, ms_gpipsec_filter, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_filter: (required) + :type ms_gpipsec_filter: MsGpipsecFilter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_filter', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_filter_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_filter_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_filter' is set + if self.api_client.client_side_validation and ('ms_gpipsec_filter' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_filter'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_filter` when calling `udm_ms_gpipsec_filter_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_filter_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_filter_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_filter' in local_var_params: + body_params = local_var_params['ms_gpipsec_filter'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-filter/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpipsec_isakmp_policy_api.py b/openapi_client_udm/api/ms_gpipsec_isakmp_policy_api.py new file mode 100644 index 0000000..23d7a29 --- /dev/null +++ b/openapi_client_udm/api/ms_gpipsec_isakmp_policy_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpipsecIsakmpPolicyApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpipsec_isakmp_policy_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy: ISAKMP Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecIsakmpPolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_isakmp_policy_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_isakmp_policy_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy: ISAKMP Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecIsakmpPolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_isakmp_policy_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecIsakmpPolicy", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-isakmp-policy/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_isakmp_policy_object_create(self, ms_gpipsec_isakmp_policy, **kwargs): # noqa: E501 + """Create a new MS IPsec policy: ISAKMP Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_create(ms_gpipsec_isakmp_policy, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_isakmp_policy: (required) + :type ms_gpipsec_isakmp_policy: MsGpipsecIsakmpPolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_isakmp_policy_object_create_with_http_info(ms_gpipsec_isakmp_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_isakmp_policy_object_create_with_http_info(self, ms_gpipsec_isakmp_policy, **kwargs): # noqa: E501 + """Create a new MS IPsec policy: ISAKMP Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_create_with_http_info(ms_gpipsec_isakmp_policy, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_isakmp_policy: (required) + :type ms_gpipsec_isakmp_policy: MsGpipsecIsakmpPolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpipsec_isakmp_policy', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_isakmp_policy_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpipsec_isakmp_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_isakmp_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_isakmp_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_isakmp_policy` when calling `udm_ms_gpipsec_isakmp_policy_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_isakmp_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_isakmp_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpipsec-isakmp-policy/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_isakmp_policy_object_modify(self, dn, ms_gpipsec_isakmp_policy, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy: ISAKMP Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_modify(dn, ms_gpipsec_isakmp_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_isakmp_policy: (required) + :type ms_gpipsec_isakmp_policy: MsGpipsecIsakmpPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_isakmp_policy_object_modify_with_http_info(dn, ms_gpipsec_isakmp_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_isakmp_policy_object_modify_with_http_info(self, dn, ms_gpipsec_isakmp_policy, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy: ISAKMP Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_modify_with_http_info(dn, ms_gpipsec_isakmp_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_isakmp_policy: (required) + :type ms_gpipsec_isakmp_policy: MsGpipsecIsakmpPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_isakmp_policy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_isakmp_policy_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_isakmp_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_isakmp_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_isakmp_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_isakmp_policy` when calling `udm_ms_gpipsec_isakmp_policy_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_isakmp_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_isakmp_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-isakmp-policy/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_isakmp_policy_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy: ISAKMP Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_isakmp_policy_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_isakmp_policy_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy: ISAKMP Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_isakmp_policy_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-isakmp-policy/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_isakmp_policy_object_search(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy: ISAKMP Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecIsakmpPolicyList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_isakmp_policy_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_isakmp_policy_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy: ISAKMP Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecIsakmpPolicyList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_isakmp_policy_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpipsec_isakmp_policy_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpipsec_isakmp_policy_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpipsec_isakmp_policy_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpipsec_isakmp_policy_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpipsec_isakmp_policy_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecIsakmpPolicyList", + } + + return self.api_client.call_api( + '/ms/gpipsec-isakmp-policy/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_isakmp_policy_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy: ISAKMP Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecIsakmpPolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_isakmp_policy_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_isakmp_policy_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy: ISAKMP Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecIsakmpPolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_isakmp_policy_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecIsakmpPolicy", + } + + return self.api_client.call_api( + '/ms/gpipsec-isakmp-policy/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_isakmp_policy_object_update(self, dn, ms_gpipsec_isakmp_policy, **kwargs): # noqa: E501 + """Modify an MS IPsec policy: ISAKMP Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_update(dn, ms_gpipsec_isakmp_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_isakmp_policy: (required) + :type ms_gpipsec_isakmp_policy: MsGpipsecIsakmpPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_isakmp_policy_object_update_with_http_info(dn, ms_gpipsec_isakmp_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_isakmp_policy_object_update_with_http_info(self, dn, ms_gpipsec_isakmp_policy, **kwargs): # noqa: E501 + """Modify an MS IPsec policy: ISAKMP Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_isakmp_policy_object_update_with_http_info(dn, ms_gpipsec_isakmp_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_isakmp_policy: (required) + :type ms_gpipsec_isakmp_policy: MsGpipsecIsakmpPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_isakmp_policy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_isakmp_policy_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_isakmp_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_isakmp_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_isakmp_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_isakmp_policy` when calling `udm_ms_gpipsec_isakmp_policy_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_isakmp_policy_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_isakmp_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_isakmp_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-isakmp-policy/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpipsec_negotiation_policy_api.py b/openapi_client_udm/api/ms_gpipsec_negotiation_policy_api.py new file mode 100644 index 0000000..5d5ebc9 --- /dev/null +++ b/openapi_client_udm/api/ms_gpipsec_negotiation_policy_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpipsecNegotiationPolicyApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpipsec_negotiation_policy_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy: Negotiation Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecNegotiationPolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_negotiation_policy_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_negotiation_policy_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy: Negotiation Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecNegotiationPolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_negotiation_policy_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecNegotiationPolicy", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-negotiation-policy/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_negotiation_policy_object_create(self, ms_gpipsec_negotiation_policy, **kwargs): # noqa: E501 + """Create a new MS IPsec policy: Negotiation Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_create(ms_gpipsec_negotiation_policy, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_negotiation_policy: (required) + :type ms_gpipsec_negotiation_policy: MsGpipsecNegotiationPolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_negotiation_policy_object_create_with_http_info(ms_gpipsec_negotiation_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_negotiation_policy_object_create_with_http_info(self, ms_gpipsec_negotiation_policy, **kwargs): # noqa: E501 + """Create a new MS IPsec policy: Negotiation Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_create_with_http_info(ms_gpipsec_negotiation_policy, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_negotiation_policy: (required) + :type ms_gpipsec_negotiation_policy: MsGpipsecNegotiationPolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpipsec_negotiation_policy', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_negotiation_policy_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpipsec_negotiation_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_negotiation_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_negotiation_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_negotiation_policy` when calling `udm_ms_gpipsec_negotiation_policy_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_negotiation_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_negotiation_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpipsec-negotiation-policy/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_negotiation_policy_object_modify(self, dn, ms_gpipsec_negotiation_policy, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy: Negotiation Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_modify(dn, ms_gpipsec_negotiation_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_negotiation_policy: (required) + :type ms_gpipsec_negotiation_policy: MsGpipsecNegotiationPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_negotiation_policy_object_modify_with_http_info(dn, ms_gpipsec_negotiation_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_negotiation_policy_object_modify_with_http_info(self, dn, ms_gpipsec_negotiation_policy, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy: Negotiation Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_modify_with_http_info(dn, ms_gpipsec_negotiation_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_negotiation_policy: (required) + :type ms_gpipsec_negotiation_policy: MsGpipsecNegotiationPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_negotiation_policy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_negotiation_policy_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_negotiation_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_negotiation_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_negotiation_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_negotiation_policy` when calling `udm_ms_gpipsec_negotiation_policy_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_negotiation_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_negotiation_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-negotiation-policy/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_negotiation_policy_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy: Negotiation Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_negotiation_policy_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_negotiation_policy_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy: Negotiation Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_negotiation_policy_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-negotiation-policy/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_negotiation_policy_object_search(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy: Negotiation Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecNegotiationPolicyList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_negotiation_policy_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_negotiation_policy_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy: Negotiation Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecNegotiationPolicyList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_negotiation_policy_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpipsec_negotiation_policy_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpipsec_negotiation_policy_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpipsec_negotiation_policy_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpipsec_negotiation_policy_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpipsec_negotiation_policy_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecNegotiationPolicyList", + } + + return self.api_client.call_api( + '/ms/gpipsec-negotiation-policy/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_negotiation_policy_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy: Negotiation Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecNegotiationPolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_negotiation_policy_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_negotiation_policy_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy: Negotiation Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecNegotiationPolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_negotiation_policy_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecNegotiationPolicy", + } + + return self.api_client.call_api( + '/ms/gpipsec-negotiation-policy/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_negotiation_policy_object_update(self, dn, ms_gpipsec_negotiation_policy, **kwargs): # noqa: E501 + """Modify an MS IPsec policy: Negotiation Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_update(dn, ms_gpipsec_negotiation_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_negotiation_policy: (required) + :type ms_gpipsec_negotiation_policy: MsGpipsecNegotiationPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_negotiation_policy_object_update_with_http_info(dn, ms_gpipsec_negotiation_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_negotiation_policy_object_update_with_http_info(self, dn, ms_gpipsec_negotiation_policy, **kwargs): # noqa: E501 + """Modify an MS IPsec policy: Negotiation Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_negotiation_policy_object_update_with_http_info(dn, ms_gpipsec_negotiation_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_negotiation_policy: (required) + :type ms_gpipsec_negotiation_policy: MsGpipsecNegotiationPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_negotiation_policy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_negotiation_policy_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_negotiation_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_negotiation_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_negotiation_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_negotiation_policy` when calling `udm_ms_gpipsec_negotiation_policy_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_negotiation_policy_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_negotiation_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_negotiation_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-negotiation-policy/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpipsec_nfa_api.py b/openapi_client_udm/api/ms_gpipsec_nfa_api.py new file mode 100644 index 0000000..b8373f5 --- /dev/null +++ b/openapi_client_udm/api/ms_gpipsec_nfa_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpipsecNfaApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpipsec_nfa_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy: NFA object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecNfa + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_nfa_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_nfa_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy: NFA object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecNfa, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_nfa_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_nfa_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_nfa_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_nfa_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecNfa", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-nfa/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_nfa_object_create(self, ms_gpipsec_nfa, **kwargs): # noqa: E501 + """Create a new MS IPsec policy: NFA object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_create(ms_gpipsec_nfa, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_nfa: (required) + :type ms_gpipsec_nfa: MsGpipsecNfa + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_nfa_object_create_with_http_info(ms_gpipsec_nfa, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_nfa_object_create_with_http_info(self, ms_gpipsec_nfa, **kwargs): # noqa: E501 + """Create a new MS IPsec policy: NFA object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_create_with_http_info(ms_gpipsec_nfa, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_nfa: (required) + :type ms_gpipsec_nfa: MsGpipsecNfa + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpipsec_nfa', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_nfa_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpipsec_nfa' is set + if self.api_client.client_side_validation and ('ms_gpipsec_nfa' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_nfa'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_nfa` when calling `udm_ms_gpipsec_nfa_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_nfa' in local_var_params: + body_params = local_var_params['ms_gpipsec_nfa'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpipsec-nfa/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_nfa_object_modify(self, dn, ms_gpipsec_nfa, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy: NFA object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_modify(dn, ms_gpipsec_nfa, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_nfa: (required) + :type ms_gpipsec_nfa: MsGpipsecNfa + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_nfa_object_modify_with_http_info(dn, ms_gpipsec_nfa, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_nfa_object_modify_with_http_info(self, dn, ms_gpipsec_nfa, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy: NFA object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_modify_with_http_info(dn, ms_gpipsec_nfa, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_nfa: (required) + :type ms_gpipsec_nfa: MsGpipsecNfa + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_nfa', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_nfa_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_nfa_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_nfa' is set + if self.api_client.client_side_validation and ('ms_gpipsec_nfa' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_nfa'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_nfa` when calling `udm_ms_gpipsec_nfa_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_nfa_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_nfa_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_nfa' in local_var_params: + body_params = local_var_params['ms_gpipsec_nfa'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-nfa/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_nfa_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy: NFA object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_nfa_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_nfa_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy: NFA object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_nfa_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_nfa_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_nfa_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_nfa_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-nfa/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_nfa_object_search(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy: NFA objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecNfaList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_nfa_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_nfa_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy: NFA objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecNfaList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_nfa_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpipsec_nfa_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpipsec_nfa_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpipsec_nfa_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpipsec_nfa_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpipsec_nfa_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecNfaList", + } + + return self.api_client.call_api( + '/ms/gpipsec-nfa/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_nfa_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy: NFA object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecNfa + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_nfa_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_nfa_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy: NFA object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecNfa, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_nfa_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecNfa", + } + + return self.api_client.call_api( + '/ms/gpipsec-nfa/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_nfa_object_update(self, dn, ms_gpipsec_nfa, **kwargs): # noqa: E501 + """Modify an MS IPsec policy: NFA object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_update(dn, ms_gpipsec_nfa, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_nfa: (required) + :type ms_gpipsec_nfa: MsGpipsecNfa + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_nfa_object_update_with_http_info(dn, ms_gpipsec_nfa, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_nfa_object_update_with_http_info(self, dn, ms_gpipsec_nfa, **kwargs): # noqa: E501 + """Modify an MS IPsec policy: NFA object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_nfa_object_update_with_http_info(dn, ms_gpipsec_nfa, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_nfa: (required) + :type ms_gpipsec_nfa: MsGpipsecNfa + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_nfa', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_nfa_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_nfa_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_nfa' is set + if self.api_client.client_side_validation and ('ms_gpipsec_nfa' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_nfa'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_nfa` when calling `udm_ms_gpipsec_nfa_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_nfa_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_nfa_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_nfa' in local_var_params: + body_params = local_var_params['ms_gpipsec_nfa'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-nfa/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpipsec_policy_api.py b/openapi_client_udm/api/ms_gpipsec_policy_api.py new file mode 100644 index 0000000..51b6c0f --- /dev/null +++ b/openapi_client_udm/api/ms_gpipsec_policy_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpipsecPolicyApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpipsec_policy_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecPolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_policy_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_policy_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS IPsec policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecPolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_policy_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_policy_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_policy_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_policy_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecPolicy", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-policy/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_policy_object_create(self, ms_gpipsec_policy, **kwargs): # noqa: E501 + """Create a new MS IPsec policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_create(ms_gpipsec_policy, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_policy: (required) + :type ms_gpipsec_policy: MsGpipsecPolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_policy_object_create_with_http_info(ms_gpipsec_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_policy_object_create_with_http_info(self, ms_gpipsec_policy, **kwargs): # noqa: E501 + """Create a new MS IPsec policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_create_with_http_info(ms_gpipsec_policy, async_req=True) + >>> result = thread.get() + + :param ms_gpipsec_policy: (required) + :type ms_gpipsec_policy: MsGpipsecPolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpipsec_policy', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_policy_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpipsec_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_policy` when calling `udm_ms_gpipsec_policy_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpipsec-policy/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_policy_object_modify(self, dn, ms_gpipsec_policy, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_modify(dn, ms_gpipsec_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_policy: (required) + :type ms_gpipsec_policy: MsGpipsecPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_policy_object_modify_with_http_info(dn, ms_gpipsec_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_policy_object_modify_with_http_info(self, dn, ms_gpipsec_policy, **kwargs): # noqa: E501 + """Modify or move an MS IPsec policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_modify_with_http_info(dn, ms_gpipsec_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_policy: (required) + :type ms_gpipsec_policy: MsGpipsecPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_policy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_policy_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_policy_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_policy` when calling `udm_ms_gpipsec_policy_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_policy_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_policy_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpipsec-policy/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_policy_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_policy_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_policy_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS IPsec policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_policy_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_policy_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_policy_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_policy_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-policy/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_policy_object_search(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecPolicyList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_policy_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_policy_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS IPsec policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecPolicyList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_policy_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpipsec_policy_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpipsec_policy_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpipsec_policy_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpipsec_policy_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpipsec_policy_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecPolicyList", + } + + return self.api_client.call_api( + '/ms/gpipsec-policy/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_policy_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpipsecPolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_policy_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpipsec_policy_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS IPsec policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpipsecPolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_policy_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpipsecPolicy", + } + + return self.api_client.call_api( + '/ms/gpipsec-policy/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpipsec_policy_object_update(self, dn, ms_gpipsec_policy, **kwargs): # noqa: E501 + """Modify an MS IPsec policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_update(dn, ms_gpipsec_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_policy: (required) + :type ms_gpipsec_policy: MsGpipsecPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpipsec_policy_object_update_with_http_info(dn, ms_gpipsec_policy, **kwargs) # noqa: E501 + + def udm_ms_gpipsec_policy_object_update_with_http_info(self, dn, ms_gpipsec_policy, **kwargs): # noqa: E501 + """Modify an MS IPsec policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpipsec_policy_object_update_with_http_info(dn, ms_gpipsec_policy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpipsec_policy: (required) + :type ms_gpipsec_policy: MsGpipsecPolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpipsec_policy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpipsec_policy_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpipsec_policy_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpipsec_policy' is set + if self.api_client.client_side_validation and ('ms_gpipsec_policy' not in local_var_params or # noqa: E501 + local_var_params['ms_gpipsec_policy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpipsec_policy` when calling `udm_ms_gpipsec_policy_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_policy_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpipsec_policy_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpipsec_policy' in local_var_params: + body_params = local_var_params['ms_gpipsec_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpipsec-policy/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpsi_category_registration_api.py b/openapi_client_udm/api/ms_gpsi_category_registration_api.py new file mode 100644 index 0000000..193d8cb --- /dev/null +++ b/openapi_client_udm/api/ms_gpsi_category_registration_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpsiCategoryRegistrationApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpsi_category_registration_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS Software Installation Group Policy: Category Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiCategoryRegistration + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_category_registration_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpsi_category_registration_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS Software Installation Group Policy: Category Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiCategoryRegistration, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_category_registration_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_category_registration_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_category_registration_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_category_registration_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiCategoryRegistration", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpsi-category-registration/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_category_registration_object_create(self, ms_gpsi_category_registration, **kwargs): # noqa: E501 + """Create a new MS Software Installation Group Policy: Category Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_create(ms_gpsi_category_registration, async_req=True) + >>> result = thread.get() + + :param ms_gpsi_category_registration: (required) + :type ms_gpsi_category_registration: MsGpsiCategoryRegistration + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_category_registration_object_create_with_http_info(ms_gpsi_category_registration, **kwargs) # noqa: E501 + + def udm_ms_gpsi_category_registration_object_create_with_http_info(self, ms_gpsi_category_registration, **kwargs): # noqa: E501 + """Create a new MS Software Installation Group Policy: Category Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_create_with_http_info(ms_gpsi_category_registration, async_req=True) + >>> result = thread.get() + + :param ms_gpsi_category_registration: (required) + :type ms_gpsi_category_registration: MsGpsiCategoryRegistration + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpsi_category_registration', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_category_registration_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpsi_category_registration' is set + if self.api_client.client_side_validation and ('ms_gpsi_category_registration' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_category_registration'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_category_registration` when calling `udm_ms_gpsi_category_registration_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_category_registration' in local_var_params: + body_params = local_var_params['ms_gpsi_category_registration'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpsi-category-registration/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_category_registration_object_modify(self, dn, ms_gpsi_category_registration, **kwargs): # noqa: E501 + """Modify or move an MS Software Installation Group Policy: Category Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_modify(dn, ms_gpsi_category_registration, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_category_registration: (required) + :type ms_gpsi_category_registration: MsGpsiCategoryRegistration + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_category_registration_object_modify_with_http_info(dn, ms_gpsi_category_registration, **kwargs) # noqa: E501 + + def udm_ms_gpsi_category_registration_object_modify_with_http_info(self, dn, ms_gpsi_category_registration, **kwargs): # noqa: E501 + """Modify or move an MS Software Installation Group Policy: Category Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_modify_with_http_info(dn, ms_gpsi_category_registration, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_category_registration: (required) + :type ms_gpsi_category_registration: MsGpsiCategoryRegistration + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpsi_category_registration', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_category_registration_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_category_registration_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpsi_category_registration' is set + if self.api_client.client_side_validation and ('ms_gpsi_category_registration' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_category_registration'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_category_registration` when calling `udm_ms_gpsi_category_registration_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_category_registration_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_category_registration_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_category_registration' in local_var_params: + body_params = local_var_params['ms_gpsi_category_registration'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpsi-category-registration/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_category_registration_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS Software Installation Group Policy: Category Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_category_registration_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpsi_category_registration_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS Software Installation Group Policy: Category Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_category_registration_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_category_registration_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_category_registration_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_category_registration_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpsi-category-registration/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_category_registration_object_search(self, **kwargs): # noqa: E501 + """Search for MS Software Installation Group Policy: Category Registration objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiCategoryRegistrationList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_category_registration_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpsi_category_registration_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS Software Installation Group Policy: Category Registration objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiCategoryRegistrationList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_category_registration_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpsi_category_registration_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpsi_category_registration_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpsi_category_registration_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpsi_category_registration_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpsi_category_registration_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiCategoryRegistrationList", + } + + return self.api_client.call_api( + '/ms/gpsi-category-registration/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_category_registration_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS Software Installation Group Policy: Category Registration object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiCategoryRegistration + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_category_registration_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpsi_category_registration_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS Software Installation Group Policy: Category Registration object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiCategoryRegistration, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_category_registration_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiCategoryRegistration", + } + + return self.api_client.call_api( + '/ms/gpsi-category-registration/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_category_registration_object_update(self, dn, ms_gpsi_category_registration, **kwargs): # noqa: E501 + """Modify an MS Software Installation Group Policy: Category Registration object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_update(dn, ms_gpsi_category_registration, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_category_registration: (required) + :type ms_gpsi_category_registration: MsGpsiCategoryRegistration + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_category_registration_object_update_with_http_info(dn, ms_gpsi_category_registration, **kwargs) # noqa: E501 + + def udm_ms_gpsi_category_registration_object_update_with_http_info(self, dn, ms_gpsi_category_registration, **kwargs): # noqa: E501 + """Modify an MS Software Installation Group Policy: Category Registration object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_category_registration_object_update_with_http_info(dn, ms_gpsi_category_registration, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_category_registration: (required) + :type ms_gpsi_category_registration: MsGpsiCategoryRegistration + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpsi_category_registration', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_category_registration_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_category_registration_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpsi_category_registration' is set + if self.api_client.client_side_validation and ('ms_gpsi_category_registration' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_category_registration'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_category_registration` when calling `udm_ms_gpsi_category_registration_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_category_registration_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_category_registration_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_category_registration' in local_var_params: + body_params = local_var_params['ms_gpsi_category_registration'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpsi-category-registration/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpsi_class_store_api.py b/openapi_client_udm/api/ms_gpsi_class_store_api.py new file mode 100644 index 0000000..5e1f567 --- /dev/null +++ b/openapi_client_udm/api/ms_gpsi_class_store_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpsiClassStoreApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpsi_class_store_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Software Installation Group Policy: Class Store object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiClassStore + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_class_store_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpsi_class_store_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Software Installation Group Policy: Class Store object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiClassStore, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_class_store_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_class_store_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_class_store_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_class_store_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiClassStore", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpsi-class-store/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_class_store_object_create(self, ms_gpsi_class_store, **kwargs): # noqa: E501 + """Create a new Software Installation Group Policy: Class Store object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_create(ms_gpsi_class_store, async_req=True) + >>> result = thread.get() + + :param ms_gpsi_class_store: (required) + :type ms_gpsi_class_store: MsGpsiClassStore + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_class_store_object_create_with_http_info(ms_gpsi_class_store, **kwargs) # noqa: E501 + + def udm_ms_gpsi_class_store_object_create_with_http_info(self, ms_gpsi_class_store, **kwargs): # noqa: E501 + """Create a new Software Installation Group Policy: Class Store object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_create_with_http_info(ms_gpsi_class_store, async_req=True) + >>> result = thread.get() + + :param ms_gpsi_class_store: (required) + :type ms_gpsi_class_store: MsGpsiClassStore + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpsi_class_store', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_class_store_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpsi_class_store' is set + if self.api_client.client_side_validation and ('ms_gpsi_class_store' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_class_store'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_class_store` when calling `udm_ms_gpsi_class_store_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_class_store' in local_var_params: + body_params = local_var_params['ms_gpsi_class_store'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpsi-class-store/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_class_store_object_modify(self, dn, ms_gpsi_class_store, **kwargs): # noqa: E501 + """Modify or move an Software Installation Group Policy: Class Store object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_modify(dn, ms_gpsi_class_store, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_class_store: (required) + :type ms_gpsi_class_store: MsGpsiClassStore + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_class_store_object_modify_with_http_info(dn, ms_gpsi_class_store, **kwargs) # noqa: E501 + + def udm_ms_gpsi_class_store_object_modify_with_http_info(self, dn, ms_gpsi_class_store, **kwargs): # noqa: E501 + """Modify or move an Software Installation Group Policy: Class Store object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_modify_with_http_info(dn, ms_gpsi_class_store, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_class_store: (required) + :type ms_gpsi_class_store: MsGpsiClassStore + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpsi_class_store', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_class_store_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_class_store_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpsi_class_store' is set + if self.api_client.client_side_validation and ('ms_gpsi_class_store' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_class_store'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_class_store` when calling `udm_ms_gpsi_class_store_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_class_store_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_class_store_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_class_store' in local_var_params: + body_params = local_var_params['ms_gpsi_class_store'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpsi-class-store/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_class_store_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Software Installation Group Policy: Class Store object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_class_store_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpsi_class_store_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Software Installation Group Policy: Class Store object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_class_store_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_class_store_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_class_store_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_class_store_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpsi-class-store/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_class_store_object_search(self, **kwargs): # noqa: E501 + """Search for Software Installation Group Policy: Class Store objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiClassStoreList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_class_store_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpsi_class_store_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Software Installation Group Policy: Class Store objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiClassStoreList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_class_store_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpsi_class_store_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpsi_class_store_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpsi_class_store_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpsi_class_store_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpsi_class_store_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiClassStoreList", + } + + return self.api_client.call_api( + '/ms/gpsi-class-store/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_class_store_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Software Installation Group Policy: Class Store object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiClassStore + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_class_store_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpsi_class_store_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Software Installation Group Policy: Class Store object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiClassStore, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_class_store_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiClassStore", + } + + return self.api_client.call_api( + '/ms/gpsi-class-store/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_class_store_object_update(self, dn, ms_gpsi_class_store, **kwargs): # noqa: E501 + """Modify an Software Installation Group Policy: Class Store object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_update(dn, ms_gpsi_class_store, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_class_store: (required) + :type ms_gpsi_class_store: MsGpsiClassStore + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_class_store_object_update_with_http_info(dn, ms_gpsi_class_store, **kwargs) # noqa: E501 + + def udm_ms_gpsi_class_store_object_update_with_http_info(self, dn, ms_gpsi_class_store, **kwargs): # noqa: E501 + """Modify an Software Installation Group Policy: Class Store object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_class_store_object_update_with_http_info(dn, ms_gpsi_class_store, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_class_store: (required) + :type ms_gpsi_class_store: MsGpsiClassStore + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpsi_class_store', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_class_store_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_class_store_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpsi_class_store' is set + if self.api_client.client_side_validation and ('ms_gpsi_class_store' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_class_store'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_class_store` when calling `udm_ms_gpsi_class_store_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_class_store_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_class_store_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_class_store' in local_var_params: + body_params = local_var_params['ms_gpsi_class_store'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpsi-class-store/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpsi_package_registration_api.py b/openapi_client_udm/api/ms_gpsi_package_registration_api.py new file mode 100644 index 0000000..5448556 --- /dev/null +++ b/openapi_client_udm/api/ms_gpsi_package_registration_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpsiPackageRegistrationApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpsi_package_registration_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Software Installation Group Policy: Package Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiPackageRegistration + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_package_registration_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpsi_package_registration_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Software Installation Group Policy: Package Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiPackageRegistration, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_package_registration_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_package_registration_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_package_registration_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_package_registration_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiPackageRegistration", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpsi-package-registration/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_package_registration_object_create(self, ms_gpsi_package_registration, **kwargs): # noqa: E501 + """Create a new Software Installation Group Policy: Package Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_create(ms_gpsi_package_registration, async_req=True) + >>> result = thread.get() + + :param ms_gpsi_package_registration: (required) + :type ms_gpsi_package_registration: MsGpsiPackageRegistration + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_package_registration_object_create_with_http_info(ms_gpsi_package_registration, **kwargs) # noqa: E501 + + def udm_ms_gpsi_package_registration_object_create_with_http_info(self, ms_gpsi_package_registration, **kwargs): # noqa: E501 + """Create a new Software Installation Group Policy: Package Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_create_with_http_info(ms_gpsi_package_registration, async_req=True) + >>> result = thread.get() + + :param ms_gpsi_package_registration: (required) + :type ms_gpsi_package_registration: MsGpsiPackageRegistration + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpsi_package_registration', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_package_registration_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpsi_package_registration' is set + if self.api_client.client_side_validation and ('ms_gpsi_package_registration' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_package_registration'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_package_registration` when calling `udm_ms_gpsi_package_registration_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_package_registration' in local_var_params: + body_params = local_var_params['ms_gpsi_package_registration'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpsi-package-registration/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_package_registration_object_modify(self, dn, ms_gpsi_package_registration, **kwargs): # noqa: E501 + """Modify or move an Software Installation Group Policy: Package Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_modify(dn, ms_gpsi_package_registration, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_package_registration: (required) + :type ms_gpsi_package_registration: MsGpsiPackageRegistration + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_package_registration_object_modify_with_http_info(dn, ms_gpsi_package_registration, **kwargs) # noqa: E501 + + def udm_ms_gpsi_package_registration_object_modify_with_http_info(self, dn, ms_gpsi_package_registration, **kwargs): # noqa: E501 + """Modify or move an Software Installation Group Policy: Package Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_modify_with_http_info(dn, ms_gpsi_package_registration, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_package_registration: (required) + :type ms_gpsi_package_registration: MsGpsiPackageRegistration + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpsi_package_registration', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_package_registration_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_package_registration_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpsi_package_registration' is set + if self.api_client.client_side_validation and ('ms_gpsi_package_registration' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_package_registration'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_package_registration` when calling `udm_ms_gpsi_package_registration_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_package_registration_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_package_registration_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_package_registration' in local_var_params: + body_params = local_var_params['ms_gpsi_package_registration'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpsi-package-registration/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_package_registration_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Software Installation Group Policy: Package Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_package_registration_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpsi_package_registration_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Software Installation Group Policy: Package Registration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_package_registration_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_package_registration_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_package_registration_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_package_registration_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpsi-package-registration/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_package_registration_object_search(self, **kwargs): # noqa: E501 + """Search for Software Installation Group Policy: Package Registration objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiPackageRegistrationList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_package_registration_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpsi_package_registration_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Software Installation Group Policy: Package Registration objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiPackageRegistrationList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_package_registration_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpsi_package_registration_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpsi_package_registration_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpsi_package_registration_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpsi_package_registration_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpsi_package_registration_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiPackageRegistrationList", + } + + return self.api_client.call_api( + '/ms/gpsi-package-registration/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_package_registration_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Software Installation Group Policy: Package Registration object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpsiPackageRegistration + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_package_registration_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpsi_package_registration_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Software Installation Group Policy: Package Registration object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpsiPackageRegistration, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_package_registration_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpsiPackageRegistration", + } + + return self.api_client.call_api( + '/ms/gpsi-package-registration/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpsi_package_registration_object_update(self, dn, ms_gpsi_package_registration, **kwargs): # noqa: E501 + """Modify an Software Installation Group Policy: Package Registration object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_update(dn, ms_gpsi_package_registration, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_package_registration: (required) + :type ms_gpsi_package_registration: MsGpsiPackageRegistration + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpsi_package_registration_object_update_with_http_info(dn, ms_gpsi_package_registration, **kwargs) # noqa: E501 + + def udm_ms_gpsi_package_registration_object_update_with_http_info(self, dn, ms_gpsi_package_registration, **kwargs): # noqa: E501 + """Modify an Software Installation Group Policy: Package Registration object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpsi_package_registration_object_update_with_http_info(dn, ms_gpsi_package_registration, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpsi_package_registration: (required) + :type ms_gpsi_package_registration: MsGpsiPackageRegistration + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpsi_package_registration', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpsi_package_registration_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpsi_package_registration_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpsi_package_registration' is set + if self.api_client.client_side_validation and ('ms_gpsi_package_registration' not in local_var_params or # noqa: E501 + local_var_params['ms_gpsi_package_registration'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpsi_package_registration` when calling `udm_ms_gpsi_package_registration_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_package_registration_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpsi_package_registration_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpsi_package_registration' in local_var_params: + body_params = local_var_params['ms_gpsi_package_registration'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpsi-package-registration/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpwl_wired_api.py b/openapi_client_udm/api/ms_gpwl_wired_api.py new file mode 100644 index 0000000..04e9613 --- /dev/null +++ b/openapi_client_udm/api/ms_gpwl_wired_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpwlWiredApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpwl_wired_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS wired Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWired + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wired_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wired_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS wired Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWired, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wired_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wired_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wired_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wired_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWired", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpwl-wired/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wired_object_create(self, ms_gpwl_wired, **kwargs): # noqa: E501 + """Create a new MS wired Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_create(ms_gpwl_wired, async_req=True) + >>> result = thread.get() + + :param ms_gpwl_wired: (required) + :type ms_gpwl_wired: MsGpwlWired + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wired_object_create_with_http_info(ms_gpwl_wired, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wired_object_create_with_http_info(self, ms_gpwl_wired, **kwargs): # noqa: E501 + """Create a new MS wired Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_create_with_http_info(ms_gpwl_wired, async_req=True) + >>> result = thread.get() + + :param ms_gpwl_wired: (required) + :type ms_gpwl_wired: MsGpwlWired + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpwl_wired', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wired_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpwl_wired' is set + if self.api_client.client_side_validation and ('ms_gpwl_wired' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wired'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wired` when calling `udm_ms_gpwl_wired_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wired' in local_var_params: + body_params = local_var_params['ms_gpwl_wired'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpwl-wired/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wired_object_modify(self, dn, ms_gpwl_wired, **kwargs): # noqa: E501 + """Modify or move an MS wired Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_modify(dn, ms_gpwl_wired, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wired: (required) + :type ms_gpwl_wired: MsGpwlWired + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wired_object_modify_with_http_info(dn, ms_gpwl_wired, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wired_object_modify_with_http_info(self, dn, ms_gpwl_wired, **kwargs): # noqa: E501 + """Modify or move an MS wired Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_modify_with_http_info(dn, ms_gpwl_wired, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wired: (required) + :type ms_gpwl_wired: MsGpwlWired + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpwl_wired', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wired_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wired_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpwl_wired' is set + if self.api_client.client_side_validation and ('ms_gpwl_wired' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wired'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wired` when calling `udm_ms_gpwl_wired_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wired_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wired_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wired' in local_var_params: + body_params = local_var_params['ms_gpwl_wired'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpwl-wired/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wired_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS wired Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wired_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wired_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS wired Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wired_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wired_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wired_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wired_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpwl-wired/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wired_object_search(self, **kwargs): # noqa: E501 + """Search for MS wired Group Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWiredList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wired_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpwl_wired_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS wired Group Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWiredList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wired_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpwl_wired_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpwl_wired_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpwl_wired_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpwl_wired_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpwl_wired_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWiredList", + } + + return self.api_client.call_api( + '/ms/gpwl-wired/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wired_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS wired Group Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWired + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wired_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpwl_wired_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS wired Group Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWired, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wired_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWired", + } + + return self.api_client.call_api( + '/ms/gpwl-wired/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wired_object_update(self, dn, ms_gpwl_wired, **kwargs): # noqa: E501 + """Modify an MS wired Group Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_update(dn, ms_gpwl_wired, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wired: (required) + :type ms_gpwl_wired: MsGpwlWired + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wired_object_update_with_http_info(dn, ms_gpwl_wired, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wired_object_update_with_http_info(self, dn, ms_gpwl_wired, **kwargs): # noqa: E501 + """Modify an MS wired Group Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wired_object_update_with_http_info(dn, ms_gpwl_wired, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wired: (required) + :type ms_gpwl_wired: MsGpwlWired + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpwl_wired', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wired_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wired_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpwl_wired' is set + if self.api_client.client_side_validation and ('ms_gpwl_wired' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wired'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wired` when calling `udm_ms_gpwl_wired_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wired_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wired_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wired' in local_var_params: + body_params = local_var_params['ms_gpwl_wired'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpwl-wired/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpwl_wireless_api.py b/openapi_client_udm/api/ms_gpwl_wireless_api.py new file mode 100644 index 0000000..0fab1e5 --- /dev/null +++ b/openapi_client_udm/api/ms_gpwl_wireless_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpwlWirelessApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpwl_wireless_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS wireless Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWireless + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS wireless Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWireless, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wireless_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWireless", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_object_create(self, ms_gpwl_wireless, **kwargs): # noqa: E501 + """Create a new MS wireless Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_create(ms_gpwl_wireless, async_req=True) + >>> result = thread.get() + + :param ms_gpwl_wireless: (required) + :type ms_gpwl_wireless: MsGpwlWireless + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_object_create_with_http_info(ms_gpwl_wireless, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_object_create_with_http_info(self, ms_gpwl_wireless, **kwargs): # noqa: E501 + """Create a new MS wireless Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_create_with_http_info(ms_gpwl_wireless, async_req=True) + >>> result = thread.get() + + :param ms_gpwl_wireless: (required) + :type ms_gpwl_wireless: MsGpwlWireless + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpwl_wireless', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpwl_wireless' is set + if self.api_client.client_side_validation and ('ms_gpwl_wireless' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wireless'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wireless` when calling `udm_ms_gpwl_wireless_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wireless' in local_var_params: + body_params = local_var_params['ms_gpwl_wireless'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_object_modify(self, dn, ms_gpwl_wireless, **kwargs): # noqa: E501 + """Modify or move an MS wireless Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_modify(dn, ms_gpwl_wireless, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wireless: (required) + :type ms_gpwl_wireless: MsGpwlWireless + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_object_modify_with_http_info(dn, ms_gpwl_wireless, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_object_modify_with_http_info(self, dn, ms_gpwl_wireless, **kwargs): # noqa: E501 + """Modify or move an MS wireless Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_modify_with_http_info(dn, ms_gpwl_wireless, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wireless: (required) + :type ms_gpwl_wireless: MsGpwlWireless + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpwl_wireless', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wireless_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpwl_wireless' is set + if self.api_client.client_side_validation and ('ms_gpwl_wireless' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wireless'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wireless` when calling `udm_ms_gpwl_wireless_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wireless' in local_var_params: + body_params = local_var_params['ms_gpwl_wireless'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS wireless Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS wireless Group Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wireless_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpwl-wireless/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_object_search(self, **kwargs): # noqa: E501 + """Search for MS wireless Group Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWirelessList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS wireless Group Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWirelessList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpwl_wireless_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpwl_wireless_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpwl_wireless_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpwl_wireless_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpwl_wireless_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWirelessList", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS wireless Group Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWireless + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS wireless Group Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWireless, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWireless", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_object_update(self, dn, ms_gpwl_wireless, **kwargs): # noqa: E501 + """Modify an MS wireless Group Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_update(dn, ms_gpwl_wireless, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wireless: (required) + :type ms_gpwl_wireless: MsGpwlWireless + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_object_update_with_http_info(dn, ms_gpwl_wireless, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_object_update_with_http_info(self, dn, ms_gpwl_wireless, **kwargs): # noqa: E501 + """Modify an MS wireless Group Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_object_update_with_http_info(dn, ms_gpwl_wireless, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wireless: (required) + :type ms_gpwl_wireless: MsGpwlWireless + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpwl_wireless', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wireless_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpwl_wireless' is set + if self.api_client.client_side_validation and ('ms_gpwl_wireless' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wireless'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wireless` when calling `udm_ms_gpwl_wireless_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wireless' in local_var_params: + body_params = local_var_params['ms_gpwl_wireless'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpwl-wireless/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/ms_gpwl_wireless_blob_api.py b/openapi_client_udm/api/ms_gpwl_wireless_blob_api.py new file mode 100644 index 0000000..e380706 --- /dev/null +++ b/openapi_client_udm/api/ms_gpwl_wireless_blob_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class MsGpwlWirelessBlobApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_ms_gpwl_wireless_blob_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS wireless Group Policy blob object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWirelessBlob + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_blob_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_blob_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the MS wireless Group Policy blob object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWirelessBlob, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_blob_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWirelessBlob", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless-blob/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_blob_object_create(self, ms_gpwl_wireless_blob, **kwargs): # noqa: E501 + """Create a new MS wireless Group Policy blob object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_create(ms_gpwl_wireless_blob, async_req=True) + >>> result = thread.get() + + :param ms_gpwl_wireless_blob: (required) + :type ms_gpwl_wireless_blob: MsGpwlWirelessBlob + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_blob_object_create_with_http_info(ms_gpwl_wireless_blob, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_blob_object_create_with_http_info(self, ms_gpwl_wireless_blob, **kwargs): # noqa: E501 + """Create a new MS wireless Group Policy blob object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_create_with_http_info(ms_gpwl_wireless_blob, async_req=True) + >>> result = thread.get() + + :param ms_gpwl_wireless_blob: (required) + :type ms_gpwl_wireless_blob: MsGpwlWirelessBlob + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'ms_gpwl_wireless_blob', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_blob_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'ms_gpwl_wireless_blob' is set + if self.api_client.client_side_validation and ('ms_gpwl_wireless_blob' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wireless_blob'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wireless_blob` when calling `udm_ms_gpwl_wireless_blob_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wireless_blob' in local_var_params: + body_params = local_var_params['ms_gpwl_wireless_blob'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless-blob/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_blob_object_modify(self, dn, ms_gpwl_wireless_blob, **kwargs): # noqa: E501 + """Modify or move an MS wireless Group Policy blob object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_modify(dn, ms_gpwl_wireless_blob, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wireless_blob: (required) + :type ms_gpwl_wireless_blob: MsGpwlWirelessBlob + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_blob_object_modify_with_http_info(dn, ms_gpwl_wireless_blob, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_blob_object_modify_with_http_info(self, dn, ms_gpwl_wireless_blob, **kwargs): # noqa: E501 + """Modify or move an MS wireless Group Policy blob object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_modify_with_http_info(dn, ms_gpwl_wireless_blob, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wireless_blob: (required) + :type ms_gpwl_wireless_blob: MsGpwlWirelessBlob + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpwl_wireless_blob', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_blob_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_modify`") # noqa: E501 + # verify the required parameter 'ms_gpwl_wireless_blob' is set + if self.api_client.client_side_validation and ('ms_gpwl_wireless_blob' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wireless_blob'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wireless_blob` when calling `udm_ms_gpwl_wireless_blob_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wireless_blob' in local_var_params: + body_params = local_var_params['ms_gpwl_wireless_blob'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless-blob/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_blob_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a MS wireless Group Policy blob object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_blob_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_blob_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a MS wireless Group Policy blob object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_blob_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpwl-wireless-blob/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_blob_object_search(self, **kwargs): # noqa: E501 + """Search for MS wireless Group Policy blob objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWirelessBlobList + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_blob_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_blob_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for MS wireless Group Policy blob objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWirelessBlobList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_blob_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_ms_gpwl_wireless_blob_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_ms_gpwl_wireless_blob_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_ms_gpwl_wireless_blob_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_ms_gpwl_wireless_blob_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_ms_gpwl_wireless_blob_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWirelessBlobList", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless-blob/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_blob_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an MS wireless Group Policy blob object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: MsGpwlWirelessBlob + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_blob_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_blob_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an MS wireless Group Policy blob object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(MsGpwlWirelessBlob, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_blob_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "MsGpwlWirelessBlob", + } + + return self.api_client.call_api( + '/ms/gpwl-wireless-blob/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_ms_gpwl_wireless_blob_object_update(self, dn, ms_gpwl_wireless_blob, **kwargs): # noqa: E501 + """Modify an MS wireless Group Policy blob object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_update(dn, ms_gpwl_wireless_blob, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wireless_blob: (required) + :type ms_gpwl_wireless_blob: MsGpwlWirelessBlob + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_ms_gpwl_wireless_blob_object_update_with_http_info(dn, ms_gpwl_wireless_blob, **kwargs) # noqa: E501 + + def udm_ms_gpwl_wireless_blob_object_update_with_http_info(self, dn, ms_gpwl_wireless_blob, **kwargs): # noqa: E501 + """Modify an MS wireless Group Policy blob object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_ms_gpwl_wireless_blob_object_update_with_http_info(dn, ms_gpwl_wireless_blob, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param ms_gpwl_wireless_blob: (required) + :type ms_gpwl_wireless_blob: MsGpwlWirelessBlob + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'ms_gpwl_wireless_blob', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_ms_gpwl_wireless_blob_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_update`") # noqa: E501 + # verify the required parameter 'ms_gpwl_wireless_blob' is set + if self.api_client.client_side_validation and ('ms_gpwl_wireless_blob' not in local_var_params or # noqa: E501 + local_var_params['ms_gpwl_wireless_blob'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ms_gpwl_wireless_blob` when calling `udm_ms_gpwl_wireless_blob_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_ms_gpwl_wireless_blob_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'ms_gpwl_wireless_blob' in local_var_params: + body_params = local_var_params['ms_gpwl_wireless_blob'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/ms/gpwl-wireless-blob/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/nagios_nagios_api.py b/openapi_client_udm/api/nagios_nagios_api.py new file mode 100644 index 0000000..4bbfb6d --- /dev/null +++ b/openapi_client_udm/api/nagios_nagios_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class NagiosNagiosApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_nagios_nagios_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Nagios object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_nagios_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NagiosNagios + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_nagios_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_nagios_nagios_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Nagios object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_nagios_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NagiosNagios, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_nagios_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_nagios_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_nagios_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_nagios_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NagiosNagios", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/nagios/nagios/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_nagios_object_search(self, **kwargs): # noqa: E501 + """Search for Nagios objects objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_nagios_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NagiosNagiosList + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_nagios_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_nagios_nagios_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Nagios objects objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_nagios_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NagiosNagiosList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_nagios_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_nagios_nagios_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_nagios_nagios_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NagiosNagiosList", + } + + return self.api_client.call_api( + '/nagios/nagios/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/nagios_service_api.py b/openapi_client_udm/api/nagios_service_api.py new file mode 100644 index 0000000..8df9c2a --- /dev/null +++ b/openapi_client_udm/api/nagios_service_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class NagiosServiceApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_nagios_service_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Nagios service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NagiosService + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_service_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_nagios_service_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Nagios service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NagiosService, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_service_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_service_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_service_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_service_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NagiosService", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/nagios/service/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_service_object_create(self, nagios_service, **kwargs): # noqa: E501 + """Create a new Nagios service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_create(nagios_service, async_req=True) + >>> result = thread.get() + + :param nagios_service: (required) + :type nagios_service: NagiosService + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_service_object_create_with_http_info(nagios_service, **kwargs) # noqa: E501 + + def udm_nagios_service_object_create_with_http_info(self, nagios_service, **kwargs): # noqa: E501 + """Create a new Nagios service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_create_with_http_info(nagios_service, async_req=True) + >>> result = thread.get() + + :param nagios_service: (required) + :type nagios_service: NagiosService + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'nagios_service', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_service_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'nagios_service' is set + if self.api_client.client_side_validation and ('nagios_service' not in local_var_params or # noqa: E501 + local_var_params['nagios_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `nagios_service` when calling `udm_nagios_service_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'nagios_service' in local_var_params: + body_params = local_var_params['nagios_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/nagios/service/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_service_object_modify(self, dn, nagios_service, **kwargs): # noqa: E501 + """Modify or move an Nagios service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_modify(dn, nagios_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param nagios_service: (required) + :type nagios_service: NagiosService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_service_object_modify_with_http_info(dn, nagios_service, **kwargs) # noqa: E501 + + def udm_nagios_service_object_modify_with_http_info(self, dn, nagios_service, **kwargs): # noqa: E501 + """Modify or move an Nagios service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_modify_with_http_info(dn, nagios_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param nagios_service: (required) + :type nagios_service: NagiosService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'nagios_service', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_service_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_service_object_modify`") # noqa: E501 + # verify the required parameter 'nagios_service' is set + if self.api_client.client_side_validation and ('nagios_service' not in local_var_params or # noqa: E501 + local_var_params['nagios_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `nagios_service` when calling `udm_nagios_service_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_service_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_service_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'nagios_service' in local_var_params: + body_params = local_var_params['nagios_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/nagios/service/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_service_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Nagios services object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_service_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_nagios_service_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Nagios services object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_service_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_service_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_service_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_service_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/nagios/service/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_service_object_search(self, **kwargs): # noqa: E501 + """Search for Nagios services objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NagiosServiceList + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_service_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_nagios_service_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Nagios services objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NagiosServiceList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_service_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_nagios_service_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_nagios_service_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_nagios_service_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_nagios_service_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_nagios_service_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NagiosServiceList", + } + + return self.api_client.call_api( + '/nagios/service/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_service_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Nagios service object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NagiosService + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_service_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_nagios_service_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Nagios service object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NagiosService, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_service_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NagiosService", + } + + return self.api_client.call_api( + '/nagios/service/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_service_object_update(self, dn, nagios_service, **kwargs): # noqa: E501 + """Modify an Nagios service object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_update(dn, nagios_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param nagios_service: (required) + :type nagios_service: NagiosService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_service_object_update_with_http_info(dn, nagios_service, **kwargs) # noqa: E501 + + def udm_nagios_service_object_update_with_http_info(self, dn, nagios_service, **kwargs): # noqa: E501 + """Modify an Nagios service object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_service_object_update_with_http_info(dn, nagios_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param nagios_service: (required) + :type nagios_service: NagiosService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'nagios_service', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_service_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_service_object_update`") # noqa: E501 + # verify the required parameter 'nagios_service' is set + if self.api_client.client_side_validation and ('nagios_service' not in local_var_params or # noqa: E501 + local_var_params['nagios_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `nagios_service` when calling `udm_nagios_service_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_service_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_service_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'nagios_service' in local_var_params: + body_params = local_var_params['nagios_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/nagios/service/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/nagios_timeperiod_api.py b/openapi_client_udm/api/nagios_timeperiod_api.py new file mode 100644 index 0000000..5f9d617 --- /dev/null +++ b/openapi_client_udm/api/nagios_timeperiod_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class NagiosTimeperiodApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_nagios_timeperiod_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Nagios time period object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NagiosTimeperiod + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_timeperiod_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_nagios_timeperiod_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Nagios time period object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NagiosTimeperiod, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_timeperiod_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_timeperiod_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_timeperiod_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_timeperiod_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NagiosTimeperiod", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/nagios/timeperiod/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_timeperiod_object_create(self, nagios_timeperiod, **kwargs): # noqa: E501 + """Create a new Nagios time period object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_create(nagios_timeperiod, async_req=True) + >>> result = thread.get() + + :param nagios_timeperiod: (required) + :type nagios_timeperiod: NagiosTimeperiod + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_timeperiod_object_create_with_http_info(nagios_timeperiod, **kwargs) # noqa: E501 + + def udm_nagios_timeperiod_object_create_with_http_info(self, nagios_timeperiod, **kwargs): # noqa: E501 + """Create a new Nagios time period object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_create_with_http_info(nagios_timeperiod, async_req=True) + >>> result = thread.get() + + :param nagios_timeperiod: (required) + :type nagios_timeperiod: NagiosTimeperiod + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'nagios_timeperiod', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_timeperiod_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'nagios_timeperiod' is set + if self.api_client.client_side_validation and ('nagios_timeperiod' not in local_var_params or # noqa: E501 + local_var_params['nagios_timeperiod'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `nagios_timeperiod` when calling `udm_nagios_timeperiod_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'nagios_timeperiod' in local_var_params: + body_params = local_var_params['nagios_timeperiod'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/nagios/timeperiod/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_timeperiod_object_modify(self, dn, nagios_timeperiod, **kwargs): # noqa: E501 + """Modify or move an Nagios time period object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_modify(dn, nagios_timeperiod, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param nagios_timeperiod: (required) + :type nagios_timeperiod: NagiosTimeperiod + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_timeperiod_object_modify_with_http_info(dn, nagios_timeperiod, **kwargs) # noqa: E501 + + def udm_nagios_timeperiod_object_modify_with_http_info(self, dn, nagios_timeperiod, **kwargs): # noqa: E501 + """Modify or move an Nagios time period object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_modify_with_http_info(dn, nagios_timeperiod, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param nagios_timeperiod: (required) + :type nagios_timeperiod: NagiosTimeperiod + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'nagios_timeperiod', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_timeperiod_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_timeperiod_object_modify`") # noqa: E501 + # verify the required parameter 'nagios_timeperiod' is set + if self.api_client.client_side_validation and ('nagios_timeperiod' not in local_var_params or # noqa: E501 + local_var_params['nagios_timeperiod'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `nagios_timeperiod` when calling `udm_nagios_timeperiod_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_timeperiod_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_timeperiod_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'nagios_timeperiod' in local_var_params: + body_params = local_var_params['nagios_timeperiod'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/nagios/timeperiod/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_timeperiod_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Nagios time periods object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_timeperiod_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_nagios_timeperiod_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Nagios time periods object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_timeperiod_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_timeperiod_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_timeperiod_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_timeperiod_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/nagios/timeperiod/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_timeperiod_object_search(self, **kwargs): # noqa: E501 + """Search for Nagios time periods objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NagiosTimeperiodList + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_timeperiod_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_nagios_timeperiod_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Nagios time periods objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NagiosTimeperiodList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_timeperiod_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_nagios_timeperiod_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_nagios_timeperiod_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_nagios_timeperiod_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_nagios_timeperiod_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_nagios_timeperiod_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NagiosTimeperiodList", + } + + return self.api_client.call_api( + '/nagios/timeperiod/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_timeperiod_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Nagios time period object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NagiosTimeperiod + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_timeperiod_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_nagios_timeperiod_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Nagios time period object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NagiosTimeperiod, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_timeperiod_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NagiosTimeperiod", + } + + return self.api_client.call_api( + '/nagios/timeperiod/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_nagios_timeperiod_object_update(self, dn, nagios_timeperiod, **kwargs): # noqa: E501 + """Modify an Nagios time period object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_update(dn, nagios_timeperiod, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param nagios_timeperiod: (required) + :type nagios_timeperiod: NagiosTimeperiod + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_nagios_timeperiod_object_update_with_http_info(dn, nagios_timeperiod, **kwargs) # noqa: E501 + + def udm_nagios_timeperiod_object_update_with_http_info(self, dn, nagios_timeperiod, **kwargs): # noqa: E501 + """Modify an Nagios time period object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_nagios_timeperiod_object_update_with_http_info(dn, nagios_timeperiod, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param nagios_timeperiod: (required) + :type nagios_timeperiod: NagiosTimeperiod + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'nagios_timeperiod', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_nagios_timeperiod_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_nagios_timeperiod_object_update`") # noqa: E501 + # verify the required parameter 'nagios_timeperiod' is set + if self.api_client.client_side_validation and ('nagios_timeperiod' not in local_var_params or # noqa: E501 + local_var_params['nagios_timeperiod'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `nagios_timeperiod` when calling `udm_nagios_timeperiod_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_timeperiod_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_nagios_timeperiod_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'nagios_timeperiod' in local_var_params: + body_params = local_var_params['nagios_timeperiod'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/nagios/timeperiod/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/networks_network_api.py b/openapi_client_udm/api/networks_network_api.py new file mode 100644 index 0000000..35fbd89 --- /dev/null +++ b/openapi_client_udm/api/networks_network_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class NetworksNetworkApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_networks_network_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NetworksNetwork + """ + kwargs['_return_http_data_only'] = True + return self.udm_networks_network_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_networks_network_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NetworksNetwork, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_networks_network_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_networks_network_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_networks_network_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_networks_network_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NetworksNetwork", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/networks/network/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_networks_network_object_create(self, networks_network, **kwargs): # noqa: E501 + """Create a new Network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_create(networks_network, async_req=True) + >>> result = thread.get() + + :param networks_network: (required) + :type networks_network: NetworksNetwork + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_networks_network_object_create_with_http_info(networks_network, **kwargs) # noqa: E501 + + def udm_networks_network_object_create_with_http_info(self, networks_network, **kwargs): # noqa: E501 + """Create a new Network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_create_with_http_info(networks_network, async_req=True) + >>> result = thread.get() + + :param networks_network: (required) + :type networks_network: NetworksNetwork + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'networks_network', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_networks_network_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'networks_network' is set + if self.api_client.client_side_validation and ('networks_network' not in local_var_params or # noqa: E501 + local_var_params['networks_network'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `networks_network` when calling `udm_networks_network_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'networks_network' in local_var_params: + body_params = local_var_params['networks_network'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/networks/network/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_networks_network_object_modify(self, dn, networks_network, **kwargs): # noqa: E501 + """Modify or move an Network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_modify(dn, networks_network, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param networks_network: (required) + :type networks_network: NetworksNetwork + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_networks_network_object_modify_with_http_info(dn, networks_network, **kwargs) # noqa: E501 + + def udm_networks_network_object_modify_with_http_info(self, dn, networks_network, **kwargs): # noqa: E501 + """Modify or move an Network object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_modify_with_http_info(dn, networks_network, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param networks_network: (required) + :type networks_network: NetworksNetwork + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'networks_network', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_networks_network_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_networks_network_object_modify`") # noqa: E501 + # verify the required parameter 'networks_network' is set + if self.api_client.client_side_validation and ('networks_network' not in local_var_params or # noqa: E501 + local_var_params['networks_network'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `networks_network` when calling `udm_networks_network_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_networks_network_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_networks_network_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'networks_network' in local_var_params: + body_params = local_var_params['networks_network'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/networks/network/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_networks_network_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Networks object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_networks_network_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_networks_network_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Networks object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_networks_network_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_networks_network_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_networks_network_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_networks_network_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/networks/network/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_networks_network_object_search(self, **kwargs): # noqa: E501 + """Search for Networks objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NetworksNetworkList + """ + kwargs['_return_http_data_only'] = True + return self.udm_networks_network_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_networks_network_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Networks objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NetworksNetworkList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_networks_network_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_networks_network_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_networks_network_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_networks_network_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_networks_network_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_networks_network_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NetworksNetworkList", + } + + return self.api_client.call_api( + '/networks/network/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_networks_network_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Network object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NetworksNetwork + """ + kwargs['_return_http_data_only'] = True + return self.udm_networks_network_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_networks_network_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Network object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NetworksNetwork, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_networks_network_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "NetworksNetwork", + } + + return self.api_client.call_api( + '/networks/network/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_networks_network_object_update(self, dn, networks_network, **kwargs): # noqa: E501 + """Modify an Network object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_update(dn, networks_network, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param networks_network: (required) + :type networks_network: NetworksNetwork + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_networks_network_object_update_with_http_info(dn, networks_network, **kwargs) # noqa: E501 + + def udm_networks_network_object_update_with_http_info(self, dn, networks_network, **kwargs): # noqa: E501 + """Modify an Network object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_networks_network_object_update_with_http_info(dn, networks_network, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param networks_network: (required) + :type networks_network: NetworksNetwork + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'networks_network', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_networks_network_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_networks_network_object_update`") # noqa: E501 + # verify the required parameter 'networks_network' is set + if self.api_client.client_side_validation and ('networks_network' not in local_var_params or # noqa: E501 + local_var_params['networks_network'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `networks_network` when calling `udm_networks_network_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_networks_network_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_networks_network_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'networks_network' in local_var_params: + body_params = local_var_params['networks_network'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/networks/network/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_admin_container_api.py b/openapi_client_udm/api/policies_admin_container_api.py new file mode 100644 index 0000000..31b4744 --- /dev/null +++ b/openapi_client_udm/api/policies_admin_container_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesAdminContainerApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_admin_container_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Univention Directory Manager container settings policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesAdminContainer + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_admin_container_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_admin_container_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Univention Directory Manager container settings policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesAdminContainer, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_admin_container_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_admin_container_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_admin_container_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_admin_container_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesAdminContainer", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/admin_container/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_admin_container_object_create(self, policies_admin_container, **kwargs): # noqa: E501 + """Create a new Univention Directory Manager container settings policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_create(policies_admin_container, async_req=True) + >>> result = thread.get() + + :param policies_admin_container: (required) + :type policies_admin_container: PoliciesAdminContainer + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_admin_container_object_create_with_http_info(policies_admin_container, **kwargs) # noqa: E501 + + def udm_policies_admin_container_object_create_with_http_info(self, policies_admin_container, **kwargs): # noqa: E501 + """Create a new Univention Directory Manager container settings policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_create_with_http_info(policies_admin_container, async_req=True) + >>> result = thread.get() + + :param policies_admin_container: (required) + :type policies_admin_container: PoliciesAdminContainer + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_admin_container', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_admin_container_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_admin_container' is set + if self.api_client.client_side_validation and ('policies_admin_container' not in local_var_params or # noqa: E501 + local_var_params['policies_admin_container'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_admin_container` when calling `udm_policies_admin_container_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_admin_container' in local_var_params: + body_params = local_var_params['policies_admin_container'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/admin_container/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_admin_container_object_modify(self, dn, policies_admin_container, **kwargs): # noqa: E501 + """Modify or move an Univention Directory Manager container settings policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_modify(dn, policies_admin_container, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_admin_container: (required) + :type policies_admin_container: PoliciesAdminContainer + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_admin_container_object_modify_with_http_info(dn, policies_admin_container, **kwargs) # noqa: E501 + + def udm_policies_admin_container_object_modify_with_http_info(self, dn, policies_admin_container, **kwargs): # noqa: E501 + """Modify or move an Univention Directory Manager container settings policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_modify_with_http_info(dn, policies_admin_container, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_admin_container: (required) + :type policies_admin_container: PoliciesAdminContainer + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_admin_container', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_admin_container_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_admin_container_object_modify`") # noqa: E501 + # verify the required parameter 'policies_admin_container' is set + if self.api_client.client_side_validation and ('policies_admin_container' not in local_var_params or # noqa: E501 + local_var_params['policies_admin_container'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_admin_container` when calling `udm_policies_admin_container_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_admin_container_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_admin_container_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_admin_container' in local_var_params: + body_params = local_var_params['policies_admin_container'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/admin_container/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_admin_container_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Univention Directory Manager container settings policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_admin_container_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_admin_container_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Univention Directory Manager container settings policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_admin_container_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_admin_container_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_admin_container_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_admin_container_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/admin_container/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_admin_container_object_search(self, **kwargs): # noqa: E501 + """Search for Univention Directory Manager container settings policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesAdminContainerList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_admin_container_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_admin_container_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Univention Directory Manager container settings policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesAdminContainerList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_admin_container_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_admin_container_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_admin_container_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_admin_container_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_admin_container_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_admin_container_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesAdminContainerList", + } + + return self.api_client.call_api( + '/policies/admin_container/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_admin_container_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Univention Directory Manager container settings policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesAdminContainer + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_admin_container_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_admin_container_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Univention Directory Manager container settings policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesAdminContainer, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_admin_container_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesAdminContainer", + } + + return self.api_client.call_api( + '/policies/admin_container/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_admin_container_object_update(self, dn, policies_admin_container, **kwargs): # noqa: E501 + """Modify an Univention Directory Manager container settings policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_update(dn, policies_admin_container, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_admin_container: (required) + :type policies_admin_container: PoliciesAdminContainer + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_admin_container_object_update_with_http_info(dn, policies_admin_container, **kwargs) # noqa: E501 + + def udm_policies_admin_container_object_update_with_http_info(self, dn, policies_admin_container, **kwargs): # noqa: E501 + """Modify an Univention Directory Manager container settings policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_admin_container_object_update_with_http_info(dn, policies_admin_container, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_admin_container: (required) + :type policies_admin_container: PoliciesAdminContainer + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_admin_container', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_admin_container_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_admin_container_object_update`") # noqa: E501 + # verify the required parameter 'policies_admin_container' is set + if self.api_client.client_side_validation and ('policies_admin_container' not in local_var_params or # noqa: E501 + local_var_params['policies_admin_container'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_admin_container` when calling `udm_policies_admin_container_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_admin_container_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_admin_container_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_admin_container' in local_var_params: + body_params = local_var_params['policies_admin_container'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/admin_container/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_desktop_api.py b/openapi_client_udm/api/policies_desktop_api.py new file mode 100644 index 0000000..55efd4b --- /dev/null +++ b/openapi_client_udm/api/policies_desktop_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDesktopApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_desktop_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Desktop policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDesktop + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_desktop_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_desktop_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Desktop policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDesktop, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_desktop_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_desktop_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_desktop_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_desktop_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDesktop", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/desktop/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_desktop_object_create(self, policies_desktop, **kwargs): # noqa: E501 + """Create a new Desktop policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_create(policies_desktop, async_req=True) + >>> result = thread.get() + + :param policies_desktop: (required) + :type policies_desktop: PoliciesDesktop + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_desktop_object_create_with_http_info(policies_desktop, **kwargs) # noqa: E501 + + def udm_policies_desktop_object_create_with_http_info(self, policies_desktop, **kwargs): # noqa: E501 + """Create a new Desktop policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_create_with_http_info(policies_desktop, async_req=True) + >>> result = thread.get() + + :param policies_desktop: (required) + :type policies_desktop: PoliciesDesktop + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_desktop', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_desktop_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_desktop' is set + if self.api_client.client_side_validation and ('policies_desktop' not in local_var_params or # noqa: E501 + local_var_params['policies_desktop'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_desktop` when calling `udm_policies_desktop_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_desktop' in local_var_params: + body_params = local_var_params['policies_desktop'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/desktop/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_desktop_object_modify(self, dn, policies_desktop, **kwargs): # noqa: E501 + """Modify or move an Desktop policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_modify(dn, policies_desktop, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_desktop: (required) + :type policies_desktop: PoliciesDesktop + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_desktop_object_modify_with_http_info(dn, policies_desktop, **kwargs) # noqa: E501 + + def udm_policies_desktop_object_modify_with_http_info(self, dn, policies_desktop, **kwargs): # noqa: E501 + """Modify or move an Desktop policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_modify_with_http_info(dn, policies_desktop, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_desktop: (required) + :type policies_desktop: PoliciesDesktop + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_desktop', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_desktop_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_desktop_object_modify`") # noqa: E501 + # verify the required parameter 'policies_desktop' is set + if self.api_client.client_side_validation and ('policies_desktop' not in local_var_params or # noqa: E501 + local_var_params['policies_desktop'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_desktop` when calling `udm_policies_desktop_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_desktop_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_desktop_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_desktop' in local_var_params: + body_params = local_var_params['policies_desktop'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/desktop/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_desktop_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Desktop policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_desktop_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_desktop_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Desktop policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_desktop_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_desktop_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_desktop_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_desktop_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/desktop/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_desktop_object_search(self, **kwargs): # noqa: E501 + """Search for Desktop policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDesktopList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_desktop_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_desktop_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Desktop policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDesktopList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_desktop_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_desktop_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_desktop_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_desktop_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_desktop_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_desktop_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDesktopList", + } + + return self.api_client.call_api( + '/policies/desktop/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_desktop_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Desktop policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDesktop + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_desktop_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_desktop_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Desktop policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDesktop, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_desktop_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDesktop", + } + + return self.api_client.call_api( + '/policies/desktop/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_desktop_object_update(self, dn, policies_desktop, **kwargs): # noqa: E501 + """Modify an Desktop policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_update(dn, policies_desktop, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_desktop: (required) + :type policies_desktop: PoliciesDesktop + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_desktop_object_update_with_http_info(dn, policies_desktop, **kwargs) # noqa: E501 + + def udm_policies_desktop_object_update_with_http_info(self, dn, policies_desktop, **kwargs): # noqa: E501 + """Modify an Desktop policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_desktop_object_update_with_http_info(dn, policies_desktop, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_desktop: (required) + :type policies_desktop: PoliciesDesktop + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_desktop', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_desktop_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_desktop_object_update`") # noqa: E501 + # verify the required parameter 'policies_desktop' is set + if self.api_client.client_side_validation and ('policies_desktop' not in local_var_params or # noqa: E501 + local_var_params['policies_desktop'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_desktop` when calling `udm_policies_desktop_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_desktop_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_desktop_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_desktop' in local_var_params: + body_params = local_var_params['policies_desktop'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/desktop/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_dhcp_boot_api.py b/openapi_client_udm/api/policies_dhcp_boot_api.py new file mode 100644 index 0000000..cb728f9 --- /dev/null +++ b/openapi_client_udm/api/policies_dhcp_boot_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDhcpBootApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_dhcp_boot_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP Boot policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpBoot + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_boot_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_boot_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP Boot policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpBoot, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_boot_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_boot_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_boot_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_boot_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpBoot", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_boot/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_boot_object_create(self, policies_dhcp_boot, **kwargs): # noqa: E501 + """Create a new DHCP Boot policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_create(policies_dhcp_boot, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_boot: (required) + :type policies_dhcp_boot: PoliciesDhcpBoot + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_boot_object_create_with_http_info(policies_dhcp_boot, **kwargs) # noqa: E501 + + def udm_policies_dhcp_boot_object_create_with_http_info(self, policies_dhcp_boot, **kwargs): # noqa: E501 + """Create a new DHCP Boot policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_create_with_http_info(policies_dhcp_boot, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_boot: (required) + :type policies_dhcp_boot: PoliciesDhcpBoot + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_dhcp_boot', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_boot_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_dhcp_boot' is set + if self.api_client.client_side_validation and ('policies_dhcp_boot' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_boot'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_boot` when calling `udm_policies_dhcp_boot_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_boot' in local_var_params: + body_params = local_var_params['policies_dhcp_boot'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/dhcp_boot/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_boot_object_modify(self, dn, policies_dhcp_boot, **kwargs): # noqa: E501 + """Modify or move an DHCP Boot policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_modify(dn, policies_dhcp_boot, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_boot: (required) + :type policies_dhcp_boot: PoliciesDhcpBoot + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_boot_object_modify_with_http_info(dn, policies_dhcp_boot, **kwargs) # noqa: E501 + + def udm_policies_dhcp_boot_object_modify_with_http_info(self, dn, policies_dhcp_boot, **kwargs): # noqa: E501 + """Modify or move an DHCP Boot policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_modify_with_http_info(dn, policies_dhcp_boot, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_boot: (required) + :type policies_dhcp_boot: PoliciesDhcpBoot + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_boot', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_boot_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_boot_object_modify`") # noqa: E501 + # verify the required parameter 'policies_dhcp_boot' is set + if self.api_client.client_side_validation and ('policies_dhcp_boot' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_boot'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_boot` when calling `udm_policies_dhcp_boot_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_boot_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_boot_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_boot' in local_var_params: + body_params = local_var_params['policies_dhcp_boot'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_boot/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_boot_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP Boot policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_boot_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_boot_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP Boot policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_boot_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_boot_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_boot_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_boot_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_boot/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_boot_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP Boot policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpBootList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_boot_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_boot_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP Boot policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpBootList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_boot_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_dhcp_boot_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_dhcp_boot_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_dhcp_boot_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_dhcp_boot_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_dhcp_boot_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpBootList", + } + + return self.api_client.call_api( + '/policies/dhcp_boot/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_boot_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP Boot policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpBoot + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_boot_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_boot_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP Boot policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpBoot, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_boot_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpBoot", + } + + return self.api_client.call_api( + '/policies/dhcp_boot/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_boot_object_update(self, dn, policies_dhcp_boot, **kwargs): # noqa: E501 + """Modify an DHCP Boot policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_update(dn, policies_dhcp_boot, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_boot: (required) + :type policies_dhcp_boot: PoliciesDhcpBoot + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_boot_object_update_with_http_info(dn, policies_dhcp_boot, **kwargs) # noqa: E501 + + def udm_policies_dhcp_boot_object_update_with_http_info(self, dn, policies_dhcp_boot, **kwargs): # noqa: E501 + """Modify an DHCP Boot policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_boot_object_update_with_http_info(dn, policies_dhcp_boot, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_boot: (required) + :type policies_dhcp_boot: PoliciesDhcpBoot + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_boot', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_boot_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_boot_object_update`") # noqa: E501 + # verify the required parameter 'policies_dhcp_boot' is set + if self.api_client.client_side_validation and ('policies_dhcp_boot' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_boot'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_boot` when calling `udm_policies_dhcp_boot_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_boot_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_boot_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_boot' in local_var_params: + body_params = local_var_params['policies_dhcp_boot'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_boot/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_dhcp_dns_api.py b/openapi_client_udm/api/policies_dhcp_dns_api.py new file mode 100644 index 0000000..4babb11 --- /dev/null +++ b/openapi_client_udm/api/policies_dhcp_dns_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDhcpDnsApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_dhcp_dns_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpDns + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dns_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dns_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpDns, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dns_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_dns_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dns_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dns_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpDns", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_dns/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dns_object_create(self, policies_dhcp_dns, **kwargs): # noqa: E501 + """Create a new DHCP DNS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_create(policies_dhcp_dns, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_dns: (required) + :type policies_dhcp_dns: PoliciesDhcpDns + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dns_object_create_with_http_info(policies_dhcp_dns, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dns_object_create_with_http_info(self, policies_dhcp_dns, **kwargs): # noqa: E501 + """Create a new DHCP DNS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_create_with_http_info(policies_dhcp_dns, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_dns: (required) + :type policies_dhcp_dns: PoliciesDhcpDns + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_dhcp_dns', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dns_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_dhcp_dns' is set + if self.api_client.client_side_validation and ('policies_dhcp_dns' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_dns'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_dns` when calling `udm_policies_dhcp_dns_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_dns' in local_var_params: + body_params = local_var_params['policies_dhcp_dns'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/dhcp_dns/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dns_object_modify(self, dn, policies_dhcp_dns, **kwargs): # noqa: E501 + """Modify or move an DHCP DNS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_modify(dn, policies_dhcp_dns, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_dns: (required) + :type policies_dhcp_dns: PoliciesDhcpDns + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dns_object_modify_with_http_info(dn, policies_dhcp_dns, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dns_object_modify_with_http_info(self, dn, policies_dhcp_dns, **kwargs): # noqa: E501 + """Modify or move an DHCP DNS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_modify_with_http_info(dn, policies_dhcp_dns, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_dns: (required) + :type policies_dhcp_dns: PoliciesDhcpDns + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_dns', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dns_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_dns_object_modify`") # noqa: E501 + # verify the required parameter 'policies_dhcp_dns' is set + if self.api_client.client_side_validation and ('policies_dhcp_dns' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_dns'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_dns` when calling `udm_policies_dhcp_dns_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dns_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dns_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_dns' in local_var_params: + body_params = local_var_params['policies_dhcp_dns'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_dns/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dns_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP DNS policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dns_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dns_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP DNS policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dns_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_dns_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dns_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dns_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_dns/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dns_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP DNS policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpDnsList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dns_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_dns_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP DNS policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpDnsList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dns_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_dhcp_dns_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_dhcp_dns_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_dhcp_dns_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_dhcp_dns_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_dhcp_dns_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpDnsList", + } + + return self.api_client.call_api( + '/policies/dhcp_dns/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dns_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP DNS policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpDns + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dns_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_dns_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP DNS policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpDns, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dns_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpDns", + } + + return self.api_client.call_api( + '/policies/dhcp_dns/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dns_object_update(self, dn, policies_dhcp_dns, **kwargs): # noqa: E501 + """Modify an DHCP DNS policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_update(dn, policies_dhcp_dns, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_dns: (required) + :type policies_dhcp_dns: PoliciesDhcpDns + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dns_object_update_with_http_info(dn, policies_dhcp_dns, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dns_object_update_with_http_info(self, dn, policies_dhcp_dns, **kwargs): # noqa: E501 + """Modify an DHCP DNS policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dns_object_update_with_http_info(dn, policies_dhcp_dns, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_dns: (required) + :type policies_dhcp_dns: PoliciesDhcpDns + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_dns', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dns_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_dns_object_update`") # noqa: E501 + # verify the required parameter 'policies_dhcp_dns' is set + if self.api_client.client_side_validation and ('policies_dhcp_dns' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_dns'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_dns` when calling `udm_policies_dhcp_dns_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dns_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dns_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_dns' in local_var_params: + body_params = local_var_params['policies_dhcp_dns'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_dns/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_dhcp_dnsupdate_api.py b/openapi_client_udm/api/policies_dhcp_dnsupdate_api.py new file mode 100644 index 0000000..0a27888 --- /dev/null +++ b/openapi_client_udm/api/policies_dhcp_dnsupdate_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDhcpDnsupdateApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_dhcp_dnsupdate_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP Dynamic DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpDnsupdate + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dnsupdate_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dnsupdate_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP Dynamic DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpDnsupdate, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dnsupdate_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpDnsupdate", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_dnsupdate/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dnsupdate_object_create(self, policies_dhcp_dnsupdate, **kwargs): # noqa: E501 + """Create a new DHCP Dynamic DNS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_create(policies_dhcp_dnsupdate, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_dnsupdate: (required) + :type policies_dhcp_dnsupdate: PoliciesDhcpDnsupdate + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dnsupdate_object_create_with_http_info(policies_dhcp_dnsupdate, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dnsupdate_object_create_with_http_info(self, policies_dhcp_dnsupdate, **kwargs): # noqa: E501 + """Create a new DHCP Dynamic DNS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_create_with_http_info(policies_dhcp_dnsupdate, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_dnsupdate: (required) + :type policies_dhcp_dnsupdate: PoliciesDhcpDnsupdate + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_dhcp_dnsupdate', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dnsupdate_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_dhcp_dnsupdate' is set + if self.api_client.client_side_validation and ('policies_dhcp_dnsupdate' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_dnsupdate'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_dnsupdate` when calling `udm_policies_dhcp_dnsupdate_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_dnsupdate' in local_var_params: + body_params = local_var_params['policies_dhcp_dnsupdate'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/dhcp_dnsupdate/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dnsupdate_object_modify(self, dn, policies_dhcp_dnsupdate, **kwargs): # noqa: E501 + """Modify or move an DHCP Dynamic DNS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_modify(dn, policies_dhcp_dnsupdate, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_dnsupdate: (required) + :type policies_dhcp_dnsupdate: PoliciesDhcpDnsupdate + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dnsupdate_object_modify_with_http_info(dn, policies_dhcp_dnsupdate, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dnsupdate_object_modify_with_http_info(self, dn, policies_dhcp_dnsupdate, **kwargs): # noqa: E501 + """Modify or move an DHCP Dynamic DNS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_modify_with_http_info(dn, policies_dhcp_dnsupdate, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_dnsupdate: (required) + :type policies_dhcp_dnsupdate: PoliciesDhcpDnsupdate + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_dnsupdate', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dnsupdate_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_modify`") # noqa: E501 + # verify the required parameter 'policies_dhcp_dnsupdate' is set + if self.api_client.client_side_validation and ('policies_dhcp_dnsupdate' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_dnsupdate'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_dnsupdate` when calling `udm_policies_dhcp_dnsupdate_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_dnsupdate' in local_var_params: + body_params = local_var_params['policies_dhcp_dnsupdate'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_dnsupdate/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dnsupdate_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP Dynamic DNS policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dnsupdate_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dnsupdate_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP Dynamic DNS policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dnsupdate_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_dnsupdate/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dnsupdate_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP Dynamic DNS policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpDnsupdateList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dnsupdate_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_dnsupdate_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP Dynamic DNS policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpDnsupdateList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dnsupdate_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_dhcp_dnsupdate_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_dhcp_dnsupdate_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_dhcp_dnsupdate_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_dhcp_dnsupdate_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_dhcp_dnsupdate_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpDnsupdateList", + } + + return self.api_client.call_api( + '/policies/dhcp_dnsupdate/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dnsupdate_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP Dynamic DNS policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpDnsupdate + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dnsupdate_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_dnsupdate_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP Dynamic DNS policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpDnsupdate, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dnsupdate_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpDnsupdate", + } + + return self.api_client.call_api( + '/policies/dhcp_dnsupdate/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_dnsupdate_object_update(self, dn, policies_dhcp_dnsupdate, **kwargs): # noqa: E501 + """Modify an DHCP Dynamic DNS policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_update(dn, policies_dhcp_dnsupdate, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_dnsupdate: (required) + :type policies_dhcp_dnsupdate: PoliciesDhcpDnsupdate + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_dnsupdate_object_update_with_http_info(dn, policies_dhcp_dnsupdate, **kwargs) # noqa: E501 + + def udm_policies_dhcp_dnsupdate_object_update_with_http_info(self, dn, policies_dhcp_dnsupdate, **kwargs): # noqa: E501 + """Modify an DHCP Dynamic DNS policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_dnsupdate_object_update_with_http_info(dn, policies_dhcp_dnsupdate, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_dnsupdate: (required) + :type policies_dhcp_dnsupdate: PoliciesDhcpDnsupdate + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_dnsupdate', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_dnsupdate_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_update`") # noqa: E501 + # verify the required parameter 'policies_dhcp_dnsupdate' is set + if self.api_client.client_side_validation and ('policies_dhcp_dnsupdate' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_dnsupdate'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_dnsupdate` when calling `udm_policies_dhcp_dnsupdate_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_dnsupdate_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_dnsupdate' in local_var_params: + body_params = local_var_params['policies_dhcp_dnsupdate'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_dnsupdate/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_dhcp_leasetime_api.py b/openapi_client_udm/api/policies_dhcp_leasetime_api.py new file mode 100644 index 0000000..ca029dd --- /dev/null +++ b/openapi_client_udm/api/policies_dhcp_leasetime_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDhcpLeasetimeApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_dhcp_leasetime_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP lease time policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpLeasetime + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_leasetime_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_leasetime_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP lease time policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpLeasetime, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_leasetime_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_leasetime_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_leasetime_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_leasetime_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpLeasetime", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_leasetime/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_leasetime_object_create(self, policies_dhcp_leasetime, **kwargs): # noqa: E501 + """Create a new DHCP lease time policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_create(policies_dhcp_leasetime, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_leasetime: (required) + :type policies_dhcp_leasetime: PoliciesDhcpLeasetime + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_leasetime_object_create_with_http_info(policies_dhcp_leasetime, **kwargs) # noqa: E501 + + def udm_policies_dhcp_leasetime_object_create_with_http_info(self, policies_dhcp_leasetime, **kwargs): # noqa: E501 + """Create a new DHCP lease time policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_create_with_http_info(policies_dhcp_leasetime, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_leasetime: (required) + :type policies_dhcp_leasetime: PoliciesDhcpLeasetime + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_dhcp_leasetime', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_leasetime_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_dhcp_leasetime' is set + if self.api_client.client_side_validation and ('policies_dhcp_leasetime' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_leasetime'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_leasetime` when calling `udm_policies_dhcp_leasetime_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_leasetime' in local_var_params: + body_params = local_var_params['policies_dhcp_leasetime'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/dhcp_leasetime/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_leasetime_object_modify(self, dn, policies_dhcp_leasetime, **kwargs): # noqa: E501 + """Modify or move an DHCP lease time policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_modify(dn, policies_dhcp_leasetime, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_leasetime: (required) + :type policies_dhcp_leasetime: PoliciesDhcpLeasetime + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_leasetime_object_modify_with_http_info(dn, policies_dhcp_leasetime, **kwargs) # noqa: E501 + + def udm_policies_dhcp_leasetime_object_modify_with_http_info(self, dn, policies_dhcp_leasetime, **kwargs): # noqa: E501 + """Modify or move an DHCP lease time policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_modify_with_http_info(dn, policies_dhcp_leasetime, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_leasetime: (required) + :type policies_dhcp_leasetime: PoliciesDhcpLeasetime + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_leasetime', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_leasetime_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_leasetime_object_modify`") # noqa: E501 + # verify the required parameter 'policies_dhcp_leasetime' is set + if self.api_client.client_side_validation and ('policies_dhcp_leasetime' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_leasetime'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_leasetime` when calling `udm_policies_dhcp_leasetime_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_leasetime_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_leasetime_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_leasetime' in local_var_params: + body_params = local_var_params['policies_dhcp_leasetime'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_leasetime/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_leasetime_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP lease time policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_leasetime_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_leasetime_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP lease time policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_leasetime_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_leasetime_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_leasetime_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_leasetime_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_leasetime/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_leasetime_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP lease time policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpLeasetimeList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_leasetime_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_leasetime_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP lease time policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpLeasetimeList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_leasetime_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_dhcp_leasetime_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_dhcp_leasetime_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_dhcp_leasetime_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_dhcp_leasetime_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_dhcp_leasetime_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpLeasetimeList", + } + + return self.api_client.call_api( + '/policies/dhcp_leasetime/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_leasetime_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP lease time policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpLeasetime + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_leasetime_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_leasetime_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP lease time policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpLeasetime, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_leasetime_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpLeasetime", + } + + return self.api_client.call_api( + '/policies/dhcp_leasetime/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_leasetime_object_update(self, dn, policies_dhcp_leasetime, **kwargs): # noqa: E501 + """Modify an DHCP lease time policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_update(dn, policies_dhcp_leasetime, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_leasetime: (required) + :type policies_dhcp_leasetime: PoliciesDhcpLeasetime + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_leasetime_object_update_with_http_info(dn, policies_dhcp_leasetime, **kwargs) # noqa: E501 + + def udm_policies_dhcp_leasetime_object_update_with_http_info(self, dn, policies_dhcp_leasetime, **kwargs): # noqa: E501 + """Modify an DHCP lease time policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_leasetime_object_update_with_http_info(dn, policies_dhcp_leasetime, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_leasetime: (required) + :type policies_dhcp_leasetime: PoliciesDhcpLeasetime + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_leasetime', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_leasetime_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_leasetime_object_update`") # noqa: E501 + # verify the required parameter 'policies_dhcp_leasetime' is set + if self.api_client.client_side_validation and ('policies_dhcp_leasetime' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_leasetime'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_leasetime` when calling `udm_policies_dhcp_leasetime_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_leasetime_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_leasetime_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_leasetime' in local_var_params: + body_params = local_var_params['policies_dhcp_leasetime'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_leasetime/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_dhcp_netbios_api.py b/openapi_client_udm/api/policies_dhcp_netbios_api.py new file mode 100644 index 0000000..70225c7 --- /dev/null +++ b/openapi_client_udm/api/policies_dhcp_netbios_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDhcpNetbiosApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_dhcp_netbios_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP NetBIOS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpNetbios + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_netbios_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_netbios_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP NetBIOS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpNetbios, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_netbios_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_netbios_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_netbios_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_netbios_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpNetbios", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_netbios/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_netbios_object_create(self, policies_dhcp_netbios, **kwargs): # noqa: E501 + """Create a new DHCP NetBIOS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_create(policies_dhcp_netbios, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_netbios: (required) + :type policies_dhcp_netbios: PoliciesDhcpNetbios + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_netbios_object_create_with_http_info(policies_dhcp_netbios, **kwargs) # noqa: E501 + + def udm_policies_dhcp_netbios_object_create_with_http_info(self, policies_dhcp_netbios, **kwargs): # noqa: E501 + """Create a new DHCP NetBIOS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_create_with_http_info(policies_dhcp_netbios, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_netbios: (required) + :type policies_dhcp_netbios: PoliciesDhcpNetbios + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_dhcp_netbios', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_netbios_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_dhcp_netbios' is set + if self.api_client.client_side_validation and ('policies_dhcp_netbios' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_netbios'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_netbios` when calling `udm_policies_dhcp_netbios_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_netbios' in local_var_params: + body_params = local_var_params['policies_dhcp_netbios'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/dhcp_netbios/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_netbios_object_modify(self, dn, policies_dhcp_netbios, **kwargs): # noqa: E501 + """Modify or move an DHCP NetBIOS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_modify(dn, policies_dhcp_netbios, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_netbios: (required) + :type policies_dhcp_netbios: PoliciesDhcpNetbios + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_netbios_object_modify_with_http_info(dn, policies_dhcp_netbios, **kwargs) # noqa: E501 + + def udm_policies_dhcp_netbios_object_modify_with_http_info(self, dn, policies_dhcp_netbios, **kwargs): # noqa: E501 + """Modify or move an DHCP NetBIOS policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_modify_with_http_info(dn, policies_dhcp_netbios, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_netbios: (required) + :type policies_dhcp_netbios: PoliciesDhcpNetbios + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_netbios', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_netbios_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_netbios_object_modify`") # noqa: E501 + # verify the required parameter 'policies_dhcp_netbios' is set + if self.api_client.client_side_validation and ('policies_dhcp_netbios' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_netbios'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_netbios` when calling `udm_policies_dhcp_netbios_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_netbios_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_netbios_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_netbios' in local_var_params: + body_params = local_var_params['policies_dhcp_netbios'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_netbios/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_netbios_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP NetBIOS policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_netbios_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_netbios_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP NetBIOS policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_netbios_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_netbios_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_netbios_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_netbios_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_netbios/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_netbios_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP NetBIOS policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpNetbiosList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_netbios_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_netbios_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP NetBIOS policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpNetbiosList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_netbios_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_dhcp_netbios_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_dhcp_netbios_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_dhcp_netbios_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_dhcp_netbios_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_dhcp_netbios_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpNetbiosList", + } + + return self.api_client.call_api( + '/policies/dhcp_netbios/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_netbios_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP NetBIOS policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpNetbios + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_netbios_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_netbios_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP NetBIOS policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpNetbios, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_netbios_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpNetbios", + } + + return self.api_client.call_api( + '/policies/dhcp_netbios/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_netbios_object_update(self, dn, policies_dhcp_netbios, **kwargs): # noqa: E501 + """Modify an DHCP NetBIOS policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_update(dn, policies_dhcp_netbios, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_netbios: (required) + :type policies_dhcp_netbios: PoliciesDhcpNetbios + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_netbios_object_update_with_http_info(dn, policies_dhcp_netbios, **kwargs) # noqa: E501 + + def udm_policies_dhcp_netbios_object_update_with_http_info(self, dn, policies_dhcp_netbios, **kwargs): # noqa: E501 + """Modify an DHCP NetBIOS policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_netbios_object_update_with_http_info(dn, policies_dhcp_netbios, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_netbios: (required) + :type policies_dhcp_netbios: PoliciesDhcpNetbios + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_netbios', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_netbios_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_netbios_object_update`") # noqa: E501 + # verify the required parameter 'policies_dhcp_netbios' is set + if self.api_client.client_side_validation and ('policies_dhcp_netbios' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_netbios'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_netbios` when calling `udm_policies_dhcp_netbios_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_netbios_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_netbios_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_netbios' in local_var_params: + body_params = local_var_params['policies_dhcp_netbios'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_netbios/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_dhcp_routing_api.py b/openapi_client_udm/api/policies_dhcp_routing_api.py new file mode 100644 index 0000000..149076f --- /dev/null +++ b/openapi_client_udm/api/policies_dhcp_routing_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDhcpRoutingApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_dhcp_routing_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP routing policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpRouting + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_routing_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_routing_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP routing policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpRouting, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_routing_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_routing_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_routing_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_routing_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpRouting", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_routing/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_routing_object_create(self, policies_dhcp_routing, **kwargs): # noqa: E501 + """Create a new DHCP routing policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_create(policies_dhcp_routing, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_routing: (required) + :type policies_dhcp_routing: PoliciesDhcpRouting + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_routing_object_create_with_http_info(policies_dhcp_routing, **kwargs) # noqa: E501 + + def udm_policies_dhcp_routing_object_create_with_http_info(self, policies_dhcp_routing, **kwargs): # noqa: E501 + """Create a new DHCP routing policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_create_with_http_info(policies_dhcp_routing, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_routing: (required) + :type policies_dhcp_routing: PoliciesDhcpRouting + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_dhcp_routing', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_routing_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_dhcp_routing' is set + if self.api_client.client_side_validation and ('policies_dhcp_routing' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_routing'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_routing` when calling `udm_policies_dhcp_routing_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_routing' in local_var_params: + body_params = local_var_params['policies_dhcp_routing'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/dhcp_routing/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_routing_object_modify(self, dn, policies_dhcp_routing, **kwargs): # noqa: E501 + """Modify or move an DHCP routing policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_modify(dn, policies_dhcp_routing, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_routing: (required) + :type policies_dhcp_routing: PoliciesDhcpRouting + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_routing_object_modify_with_http_info(dn, policies_dhcp_routing, **kwargs) # noqa: E501 + + def udm_policies_dhcp_routing_object_modify_with_http_info(self, dn, policies_dhcp_routing, **kwargs): # noqa: E501 + """Modify or move an DHCP routing policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_modify_with_http_info(dn, policies_dhcp_routing, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_routing: (required) + :type policies_dhcp_routing: PoliciesDhcpRouting + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_routing', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_routing_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_routing_object_modify`") # noqa: E501 + # verify the required parameter 'policies_dhcp_routing' is set + if self.api_client.client_side_validation and ('policies_dhcp_routing' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_routing'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_routing` when calling `udm_policies_dhcp_routing_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_routing_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_routing_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_routing' in local_var_params: + body_params = local_var_params['policies_dhcp_routing'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_routing/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_routing_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP routing policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_routing_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_routing_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP routing policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_routing_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_routing_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_routing_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_routing_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_routing/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_routing_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP routing policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpRoutingList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_routing_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_routing_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP routing policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpRoutingList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_routing_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_dhcp_routing_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_dhcp_routing_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_dhcp_routing_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_dhcp_routing_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_dhcp_routing_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpRoutingList", + } + + return self.api_client.call_api( + '/policies/dhcp_routing/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_routing_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP routing policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpRouting + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_routing_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_routing_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP routing policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpRouting, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_routing_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpRouting", + } + + return self.api_client.call_api( + '/policies/dhcp_routing/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_routing_object_update(self, dn, policies_dhcp_routing, **kwargs): # noqa: E501 + """Modify an DHCP routing policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_update(dn, policies_dhcp_routing, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_routing: (required) + :type policies_dhcp_routing: PoliciesDhcpRouting + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_routing_object_update_with_http_info(dn, policies_dhcp_routing, **kwargs) # noqa: E501 + + def udm_policies_dhcp_routing_object_update_with_http_info(self, dn, policies_dhcp_routing, **kwargs): # noqa: E501 + """Modify an DHCP routing policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_routing_object_update_with_http_info(dn, policies_dhcp_routing, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_routing: (required) + :type policies_dhcp_routing: PoliciesDhcpRouting + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_routing', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_routing_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_routing_object_update`") # noqa: E501 + # verify the required parameter 'policies_dhcp_routing' is set + if self.api_client.client_side_validation and ('policies_dhcp_routing' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_routing'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_routing` when calling `udm_policies_dhcp_routing_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_routing_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_routing_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_routing' in local_var_params: + body_params = local_var_params['policies_dhcp_routing'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_routing/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_dhcp_scope_api.py b/openapi_client_udm/api/policies_dhcp_scope_api.py new file mode 100644 index 0000000..f91fbfa --- /dev/null +++ b/openapi_client_udm/api/policies_dhcp_scope_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDhcpScopeApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_dhcp_scope_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP Allow/Deny policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpScope + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_scope_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_scope_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP Allow/Deny policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpScope, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_scope_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_scope_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_scope_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_scope_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpScope", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_scope/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_scope_object_create(self, policies_dhcp_scope, **kwargs): # noqa: E501 + """Create a new DHCP Allow/Deny policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_create(policies_dhcp_scope, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_scope: (required) + :type policies_dhcp_scope: PoliciesDhcpScope + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_scope_object_create_with_http_info(policies_dhcp_scope, **kwargs) # noqa: E501 + + def udm_policies_dhcp_scope_object_create_with_http_info(self, policies_dhcp_scope, **kwargs): # noqa: E501 + """Create a new DHCP Allow/Deny policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_create_with_http_info(policies_dhcp_scope, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_scope: (required) + :type policies_dhcp_scope: PoliciesDhcpScope + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_dhcp_scope', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_scope_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_dhcp_scope' is set + if self.api_client.client_side_validation and ('policies_dhcp_scope' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_scope'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_scope` when calling `udm_policies_dhcp_scope_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_scope' in local_var_params: + body_params = local_var_params['policies_dhcp_scope'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/dhcp_scope/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_scope_object_modify(self, dn, policies_dhcp_scope, **kwargs): # noqa: E501 + """Modify or move an DHCP Allow/Deny policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_modify(dn, policies_dhcp_scope, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_scope: (required) + :type policies_dhcp_scope: PoliciesDhcpScope + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_scope_object_modify_with_http_info(dn, policies_dhcp_scope, **kwargs) # noqa: E501 + + def udm_policies_dhcp_scope_object_modify_with_http_info(self, dn, policies_dhcp_scope, **kwargs): # noqa: E501 + """Modify or move an DHCP Allow/Deny policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_modify_with_http_info(dn, policies_dhcp_scope, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_scope: (required) + :type policies_dhcp_scope: PoliciesDhcpScope + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_scope', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_scope_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_scope_object_modify`") # noqa: E501 + # verify the required parameter 'policies_dhcp_scope' is set + if self.api_client.client_side_validation and ('policies_dhcp_scope' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_scope'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_scope` when calling `udm_policies_dhcp_scope_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_scope_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_scope_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_scope' in local_var_params: + body_params = local_var_params['policies_dhcp_scope'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_scope/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_scope_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP Allow/Deny policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_scope_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_scope_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP Allow/Deny policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_scope_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_scope_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_scope_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_scope_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_scope/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_scope_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP Allow/Deny policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpScopeList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_scope_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_scope_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP Allow/Deny policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpScopeList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_scope_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_dhcp_scope_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_dhcp_scope_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_dhcp_scope_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_dhcp_scope_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_dhcp_scope_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpScopeList", + } + + return self.api_client.call_api( + '/policies/dhcp_scope/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_scope_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP Allow/Deny policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpScope + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_scope_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_scope_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP Allow/Deny policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpScope, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_scope_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpScope", + } + + return self.api_client.call_api( + '/policies/dhcp_scope/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_scope_object_update(self, dn, policies_dhcp_scope, **kwargs): # noqa: E501 + """Modify an DHCP Allow/Deny policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_update(dn, policies_dhcp_scope, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_scope: (required) + :type policies_dhcp_scope: PoliciesDhcpScope + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_scope_object_update_with_http_info(dn, policies_dhcp_scope, **kwargs) # noqa: E501 + + def udm_policies_dhcp_scope_object_update_with_http_info(self, dn, policies_dhcp_scope, **kwargs): # noqa: E501 + """Modify an DHCP Allow/Deny policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_scope_object_update_with_http_info(dn, policies_dhcp_scope, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_scope: (required) + :type policies_dhcp_scope: PoliciesDhcpScope + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_scope', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_scope_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_scope_object_update`") # noqa: E501 + # verify the required parameter 'policies_dhcp_scope' is set + if self.api_client.client_side_validation and ('policies_dhcp_scope' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_scope'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_scope` when calling `udm_policies_dhcp_scope_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_scope_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_scope_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_scope' in local_var_params: + body_params = local_var_params['policies_dhcp_scope'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_scope/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_dhcp_statements_api.py b/openapi_client_udm/api/policies_dhcp_statements_api.py new file mode 100644 index 0000000..6e05993 --- /dev/null +++ b/openapi_client_udm/api/policies_dhcp_statements_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesDhcpStatementsApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_dhcp_statements_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP statements policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpStatements + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_statements_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_statements_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the DHCP statements policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpStatements, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_statements_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_statements_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_statements_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_statements_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpStatements", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_statements/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_statements_object_create(self, policies_dhcp_statements, **kwargs): # noqa: E501 + """Create a new DHCP statements policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_create(policies_dhcp_statements, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_statements: (required) + :type policies_dhcp_statements: PoliciesDhcpStatements + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_statements_object_create_with_http_info(policies_dhcp_statements, **kwargs) # noqa: E501 + + def udm_policies_dhcp_statements_object_create_with_http_info(self, policies_dhcp_statements, **kwargs): # noqa: E501 + """Create a new DHCP statements policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_create_with_http_info(policies_dhcp_statements, async_req=True) + >>> result = thread.get() + + :param policies_dhcp_statements: (required) + :type policies_dhcp_statements: PoliciesDhcpStatements + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_dhcp_statements', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_statements_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_dhcp_statements' is set + if self.api_client.client_side_validation and ('policies_dhcp_statements' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_statements'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_statements` when calling `udm_policies_dhcp_statements_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_statements' in local_var_params: + body_params = local_var_params['policies_dhcp_statements'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/dhcp_statements/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_statements_object_modify(self, dn, policies_dhcp_statements, **kwargs): # noqa: E501 + """Modify or move an DHCP statements policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_modify(dn, policies_dhcp_statements, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_statements: (required) + :type policies_dhcp_statements: PoliciesDhcpStatements + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_statements_object_modify_with_http_info(dn, policies_dhcp_statements, **kwargs) # noqa: E501 + + def udm_policies_dhcp_statements_object_modify_with_http_info(self, dn, policies_dhcp_statements, **kwargs): # noqa: E501 + """Modify or move an DHCP statements policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_modify_with_http_info(dn, policies_dhcp_statements, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_statements: (required) + :type policies_dhcp_statements: PoliciesDhcpStatements + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_statements', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_statements_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_statements_object_modify`") # noqa: E501 + # verify the required parameter 'policies_dhcp_statements' is set + if self.api_client.client_side_validation and ('policies_dhcp_statements' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_statements'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_statements` when calling `udm_policies_dhcp_statements_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_statements_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_statements_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_statements' in local_var_params: + body_params = local_var_params['policies_dhcp_statements'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/dhcp_statements/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_statements_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP statements policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_statements_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_dhcp_statements_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a DHCP statements policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_statements_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_statements_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_statements_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_statements_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_statements/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_statements_object_search(self, **kwargs): # noqa: E501 + """Search for DHCP statements policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpStatementsList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_statements_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_statements_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for DHCP statements policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpStatementsList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_statements_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_dhcp_statements_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_dhcp_statements_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_dhcp_statements_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_dhcp_statements_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_dhcp_statements_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpStatementsList", + } + + return self.api_client.call_api( + '/policies/dhcp_statements/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_statements_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP statements policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesDhcpStatements + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_statements_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_dhcp_statements_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an DHCP statements policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesDhcpStatements, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_statements_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesDhcpStatements", + } + + return self.api_client.call_api( + '/policies/dhcp_statements/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_dhcp_statements_object_update(self, dn, policies_dhcp_statements, **kwargs): # noqa: E501 + """Modify an DHCP statements policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_update(dn, policies_dhcp_statements, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_statements: (required) + :type policies_dhcp_statements: PoliciesDhcpStatements + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_dhcp_statements_object_update_with_http_info(dn, policies_dhcp_statements, **kwargs) # noqa: E501 + + def udm_policies_dhcp_statements_object_update_with_http_info(self, dn, policies_dhcp_statements, **kwargs): # noqa: E501 + """Modify an DHCP statements policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_dhcp_statements_object_update_with_http_info(dn, policies_dhcp_statements, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_dhcp_statements: (required) + :type policies_dhcp_statements: PoliciesDhcpStatements + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_dhcp_statements', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_dhcp_statements_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_dhcp_statements_object_update`") # noqa: E501 + # verify the required parameter 'policies_dhcp_statements' is set + if self.api_client.client_side_validation and ('policies_dhcp_statements' not in local_var_params or # noqa: E501 + local_var_params['policies_dhcp_statements'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_dhcp_statements` when calling `udm_policies_dhcp_statements_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_statements_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_dhcp_statements_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_dhcp_statements' in local_var_params: + body_params = local_var_params['policies_dhcp_statements'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/dhcp_statements/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_ldapserver_api.py b/openapi_client_udm/api/policies_ldapserver_api.py new file mode 100644 index 0000000..90da500 --- /dev/null +++ b/openapi_client_udm/api/policies_ldapserver_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesLdapserverApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_ldapserver_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the LDAP server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesLdapserver + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_ldapserver_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_ldapserver_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the LDAP server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesLdapserver, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_ldapserver_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_ldapserver_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_ldapserver_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_ldapserver_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesLdapserver", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/ldapserver/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_ldapserver_object_create(self, policies_ldapserver, **kwargs): # noqa: E501 + """Create a new LDAP server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_create(policies_ldapserver, async_req=True) + >>> result = thread.get() + + :param policies_ldapserver: (required) + :type policies_ldapserver: PoliciesLdapserver + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_ldapserver_object_create_with_http_info(policies_ldapserver, **kwargs) # noqa: E501 + + def udm_policies_ldapserver_object_create_with_http_info(self, policies_ldapserver, **kwargs): # noqa: E501 + """Create a new LDAP server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_create_with_http_info(policies_ldapserver, async_req=True) + >>> result = thread.get() + + :param policies_ldapserver: (required) + :type policies_ldapserver: PoliciesLdapserver + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_ldapserver', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_ldapserver_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_ldapserver' is set + if self.api_client.client_side_validation and ('policies_ldapserver' not in local_var_params or # noqa: E501 + local_var_params['policies_ldapserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_ldapserver` when calling `udm_policies_ldapserver_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_ldapserver' in local_var_params: + body_params = local_var_params['policies_ldapserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/ldapserver/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_ldapserver_object_modify(self, dn, policies_ldapserver, **kwargs): # noqa: E501 + """Modify or move an LDAP server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_modify(dn, policies_ldapserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_ldapserver: (required) + :type policies_ldapserver: PoliciesLdapserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_ldapserver_object_modify_with_http_info(dn, policies_ldapserver, **kwargs) # noqa: E501 + + def udm_policies_ldapserver_object_modify_with_http_info(self, dn, policies_ldapserver, **kwargs): # noqa: E501 + """Modify or move an LDAP server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_modify_with_http_info(dn, policies_ldapserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_ldapserver: (required) + :type policies_ldapserver: PoliciesLdapserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_ldapserver', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_ldapserver_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_ldapserver_object_modify`") # noqa: E501 + # verify the required parameter 'policies_ldapserver' is set + if self.api_client.client_side_validation and ('policies_ldapserver' not in local_var_params or # noqa: E501 + local_var_params['policies_ldapserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_ldapserver` when calling `udm_policies_ldapserver_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_ldapserver_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_ldapserver_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_ldapserver' in local_var_params: + body_params = local_var_params['policies_ldapserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/ldapserver/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_ldapserver_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a LDAP server policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_ldapserver_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_ldapserver_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a LDAP server policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_ldapserver_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_ldapserver_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_ldapserver_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_ldapserver_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/ldapserver/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_ldapserver_object_search(self, **kwargs): # noqa: E501 + """Search for LDAP server policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesLdapserverList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_ldapserver_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_ldapserver_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for LDAP server policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesLdapserverList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_ldapserver_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_ldapserver_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_ldapserver_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_ldapserver_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_ldapserver_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_ldapserver_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesLdapserverList", + } + + return self.api_client.call_api( + '/policies/ldapserver/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_ldapserver_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an LDAP server policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesLdapserver + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_ldapserver_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_ldapserver_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an LDAP server policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesLdapserver, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_ldapserver_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesLdapserver", + } + + return self.api_client.call_api( + '/policies/ldapserver/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_ldapserver_object_update(self, dn, policies_ldapserver, **kwargs): # noqa: E501 + """Modify an LDAP server policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_update(dn, policies_ldapserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_ldapserver: (required) + :type policies_ldapserver: PoliciesLdapserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_ldapserver_object_update_with_http_info(dn, policies_ldapserver, **kwargs) # noqa: E501 + + def udm_policies_ldapserver_object_update_with_http_info(self, dn, policies_ldapserver, **kwargs): # noqa: E501 + """Modify an LDAP server policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_ldapserver_object_update_with_http_info(dn, policies_ldapserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_ldapserver: (required) + :type policies_ldapserver: PoliciesLdapserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_ldapserver', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_ldapserver_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_ldapserver_object_update`") # noqa: E501 + # verify the required parameter 'policies_ldapserver' is set + if self.api_client.client_side_validation and ('policies_ldapserver' not in local_var_params or # noqa: E501 + local_var_params['policies_ldapserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_ldapserver` when calling `udm_policies_ldapserver_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_ldapserver_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_ldapserver_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_ldapserver' in local_var_params: + body_params = local_var_params['policies_ldapserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/ldapserver/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_maintenance_api.py b/openapi_client_udm/api/policies_maintenance_api.py new file mode 100644 index 0000000..4177913 --- /dev/null +++ b/openapi_client_udm/api/policies_maintenance_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesMaintenanceApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_maintenance_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Maintenance policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMaintenance + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_maintenance_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_maintenance_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Maintenance policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMaintenance, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_maintenance_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_maintenance_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_maintenance_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_maintenance_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMaintenance", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/maintenance/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_maintenance_object_create(self, policies_maintenance, **kwargs): # noqa: E501 + """Create a new Maintenance policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_create(policies_maintenance, async_req=True) + >>> result = thread.get() + + :param policies_maintenance: (required) + :type policies_maintenance: PoliciesMaintenance + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_maintenance_object_create_with_http_info(policies_maintenance, **kwargs) # noqa: E501 + + def udm_policies_maintenance_object_create_with_http_info(self, policies_maintenance, **kwargs): # noqa: E501 + """Create a new Maintenance policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_create_with_http_info(policies_maintenance, async_req=True) + >>> result = thread.get() + + :param policies_maintenance: (required) + :type policies_maintenance: PoliciesMaintenance + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_maintenance', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_maintenance_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_maintenance' is set + if self.api_client.client_side_validation and ('policies_maintenance' not in local_var_params or # noqa: E501 + local_var_params['policies_maintenance'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_maintenance` when calling `udm_policies_maintenance_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_maintenance' in local_var_params: + body_params = local_var_params['policies_maintenance'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/maintenance/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_maintenance_object_modify(self, dn, policies_maintenance, **kwargs): # noqa: E501 + """Modify or move an Maintenance policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_modify(dn, policies_maintenance, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_maintenance: (required) + :type policies_maintenance: PoliciesMaintenance + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_maintenance_object_modify_with_http_info(dn, policies_maintenance, **kwargs) # noqa: E501 + + def udm_policies_maintenance_object_modify_with_http_info(self, dn, policies_maintenance, **kwargs): # noqa: E501 + """Modify or move an Maintenance policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_modify_with_http_info(dn, policies_maintenance, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_maintenance: (required) + :type policies_maintenance: PoliciesMaintenance + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_maintenance', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_maintenance_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_maintenance_object_modify`") # noqa: E501 + # verify the required parameter 'policies_maintenance' is set + if self.api_client.client_side_validation and ('policies_maintenance' not in local_var_params or # noqa: E501 + local_var_params['policies_maintenance'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_maintenance` when calling `udm_policies_maintenance_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_maintenance_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_maintenance_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_maintenance' in local_var_params: + body_params = local_var_params['policies_maintenance'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/maintenance/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_maintenance_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Maintenance policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_maintenance_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_maintenance_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Maintenance policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_maintenance_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_maintenance_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_maintenance_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_maintenance_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/maintenance/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_maintenance_object_search(self, **kwargs): # noqa: E501 + """Search for Maintenance policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMaintenanceList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_maintenance_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_maintenance_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Maintenance policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMaintenanceList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_maintenance_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_maintenance_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_maintenance_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_maintenance_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_maintenance_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_maintenance_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMaintenanceList", + } + + return self.api_client.call_api( + '/policies/maintenance/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_maintenance_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Maintenance policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMaintenance + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_maintenance_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_maintenance_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Maintenance policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMaintenance, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_maintenance_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMaintenance", + } + + return self.api_client.call_api( + '/policies/maintenance/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_maintenance_object_update(self, dn, policies_maintenance, **kwargs): # noqa: E501 + """Modify an Maintenance policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_update(dn, policies_maintenance, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_maintenance: (required) + :type policies_maintenance: PoliciesMaintenance + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_maintenance_object_update_with_http_info(dn, policies_maintenance, **kwargs) # noqa: E501 + + def udm_policies_maintenance_object_update_with_http_info(self, dn, policies_maintenance, **kwargs): # noqa: E501 + """Modify an Maintenance policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_maintenance_object_update_with_http_info(dn, policies_maintenance, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_maintenance: (required) + :type policies_maintenance: PoliciesMaintenance + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_maintenance', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_maintenance_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_maintenance_object_update`") # noqa: E501 + # verify the required parameter 'policies_maintenance' is set + if self.api_client.client_side_validation and ('policies_maintenance' not in local_var_params or # noqa: E501 + local_var_params['policies_maintenance'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_maintenance` when calling `udm_policies_maintenance_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_maintenance_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_maintenance_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_maintenance' in local_var_params: + body_params = local_var_params['policies_maintenance'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/maintenance/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_masterpackages_api.py b/openapi_client_udm/api/policies_masterpackages_api.py new file mode 100644 index 0000000..a258920 --- /dev/null +++ b/openapi_client_udm/api/policies_masterpackages_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesMasterpackagesApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_masterpackages_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Primary/Backup Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMasterpackages + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_masterpackages_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_masterpackages_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Primary/Backup Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMasterpackages, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_masterpackages_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_masterpackages_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_masterpackages_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_masterpackages_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMasterpackages", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/masterpackages/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_masterpackages_object_create(self, policies_masterpackages, **kwargs): # noqa: E501 + """Create a new Primary/Backup Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_create(policies_masterpackages, async_req=True) + >>> result = thread.get() + + :param policies_masterpackages: (required) + :type policies_masterpackages: PoliciesMasterpackages + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_masterpackages_object_create_with_http_info(policies_masterpackages, **kwargs) # noqa: E501 + + def udm_policies_masterpackages_object_create_with_http_info(self, policies_masterpackages, **kwargs): # noqa: E501 + """Create a new Primary/Backup Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_create_with_http_info(policies_masterpackages, async_req=True) + >>> result = thread.get() + + :param policies_masterpackages: (required) + :type policies_masterpackages: PoliciesMasterpackages + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_masterpackages', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_masterpackages_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_masterpackages' is set + if self.api_client.client_side_validation and ('policies_masterpackages' not in local_var_params or # noqa: E501 + local_var_params['policies_masterpackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_masterpackages` when calling `udm_policies_masterpackages_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_masterpackages' in local_var_params: + body_params = local_var_params['policies_masterpackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/masterpackages/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_masterpackages_object_modify(self, dn, policies_masterpackages, **kwargs): # noqa: E501 + """Modify or move an Primary/Backup Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_modify(dn, policies_masterpackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_masterpackages: (required) + :type policies_masterpackages: PoliciesMasterpackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_masterpackages_object_modify_with_http_info(dn, policies_masterpackages, **kwargs) # noqa: E501 + + def udm_policies_masterpackages_object_modify_with_http_info(self, dn, policies_masterpackages, **kwargs): # noqa: E501 + """Modify or move an Primary/Backup Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_modify_with_http_info(dn, policies_masterpackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_masterpackages: (required) + :type policies_masterpackages: PoliciesMasterpackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_masterpackages', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_masterpackages_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_masterpackages_object_modify`") # noqa: E501 + # verify the required parameter 'policies_masterpackages' is set + if self.api_client.client_side_validation and ('policies_masterpackages' not in local_var_params or # noqa: E501 + local_var_params['policies_masterpackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_masterpackages` when calling `udm_policies_masterpackages_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_masterpackages_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_masterpackages_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_masterpackages' in local_var_params: + body_params = local_var_params['policies_masterpackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/masterpackages/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_masterpackages_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Primary/Backup Node packages policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_masterpackages_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_masterpackages_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Primary/Backup Node packages policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_masterpackages_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_masterpackages_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_masterpackages_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_masterpackages_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/masterpackages/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_masterpackages_object_search(self, **kwargs): # noqa: E501 + """Search for Primary/Backup Node packages policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMasterpackagesList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_masterpackages_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_masterpackages_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Primary/Backup Node packages policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMasterpackagesList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_masterpackages_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_masterpackages_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_masterpackages_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_masterpackages_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_masterpackages_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_masterpackages_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMasterpackagesList", + } + + return self.api_client.call_api( + '/policies/masterpackages/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_masterpackages_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Primary/Backup Node packages policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMasterpackages + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_masterpackages_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_masterpackages_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Primary/Backup Node packages policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMasterpackages, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_masterpackages_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMasterpackages", + } + + return self.api_client.call_api( + '/policies/masterpackages/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_masterpackages_object_update(self, dn, policies_masterpackages, **kwargs): # noqa: E501 + """Modify an Primary/Backup Node packages policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_update(dn, policies_masterpackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_masterpackages: (required) + :type policies_masterpackages: PoliciesMasterpackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_masterpackages_object_update_with_http_info(dn, policies_masterpackages, **kwargs) # noqa: E501 + + def udm_policies_masterpackages_object_update_with_http_info(self, dn, policies_masterpackages, **kwargs): # noqa: E501 + """Modify an Primary/Backup Node packages policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_masterpackages_object_update_with_http_info(dn, policies_masterpackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_masterpackages: (required) + :type policies_masterpackages: PoliciesMasterpackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_masterpackages', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_masterpackages_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_masterpackages_object_update`") # noqa: E501 + # verify the required parameter 'policies_masterpackages' is set + if self.api_client.client_side_validation and ('policies_masterpackages' not in local_var_params or # noqa: E501 + local_var_params['policies_masterpackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_masterpackages` when calling `udm_policies_masterpackages_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_masterpackages_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_masterpackages_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_masterpackages' in local_var_params: + body_params = local_var_params['policies_masterpackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/masterpackages/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_memberpackages_api.py b/openapi_client_udm/api/policies_memberpackages_api.py new file mode 100644 index 0000000..0f13c3f --- /dev/null +++ b/openapi_client_udm/api/policies_memberpackages_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesMemberpackagesApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_memberpackages_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Managed Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMemberpackages + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_memberpackages_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_memberpackages_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Managed Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMemberpackages, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_memberpackages_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_memberpackages_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_memberpackages_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_memberpackages_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMemberpackages", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/memberpackages/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_memberpackages_object_create(self, policies_memberpackages, **kwargs): # noqa: E501 + """Create a new Managed Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_create(policies_memberpackages, async_req=True) + >>> result = thread.get() + + :param policies_memberpackages: (required) + :type policies_memberpackages: PoliciesMemberpackages + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_memberpackages_object_create_with_http_info(policies_memberpackages, **kwargs) # noqa: E501 + + def udm_policies_memberpackages_object_create_with_http_info(self, policies_memberpackages, **kwargs): # noqa: E501 + """Create a new Managed Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_create_with_http_info(policies_memberpackages, async_req=True) + >>> result = thread.get() + + :param policies_memberpackages: (required) + :type policies_memberpackages: PoliciesMemberpackages + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_memberpackages', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_memberpackages_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_memberpackages' is set + if self.api_client.client_side_validation and ('policies_memberpackages' not in local_var_params or # noqa: E501 + local_var_params['policies_memberpackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_memberpackages` when calling `udm_policies_memberpackages_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_memberpackages' in local_var_params: + body_params = local_var_params['policies_memberpackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/memberpackages/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_memberpackages_object_modify(self, dn, policies_memberpackages, **kwargs): # noqa: E501 + """Modify or move an Managed Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_modify(dn, policies_memberpackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_memberpackages: (required) + :type policies_memberpackages: PoliciesMemberpackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_memberpackages_object_modify_with_http_info(dn, policies_memberpackages, **kwargs) # noqa: E501 + + def udm_policies_memberpackages_object_modify_with_http_info(self, dn, policies_memberpackages, **kwargs): # noqa: E501 + """Modify or move an Managed Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_modify_with_http_info(dn, policies_memberpackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_memberpackages: (required) + :type policies_memberpackages: PoliciesMemberpackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_memberpackages', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_memberpackages_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_memberpackages_object_modify`") # noqa: E501 + # verify the required parameter 'policies_memberpackages' is set + if self.api_client.client_side_validation and ('policies_memberpackages' not in local_var_params or # noqa: E501 + local_var_params['policies_memberpackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_memberpackages` when calling `udm_policies_memberpackages_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_memberpackages_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_memberpackages_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_memberpackages' in local_var_params: + body_params = local_var_params['policies_memberpackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/memberpackages/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_memberpackages_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Managed Node packages policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_memberpackages_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_memberpackages_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Managed Node packages policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_memberpackages_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_memberpackages_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_memberpackages_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_memberpackages_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/memberpackages/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_memberpackages_object_search(self, **kwargs): # noqa: E501 + """Search for Managed Node packages policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMemberpackagesList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_memberpackages_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_memberpackages_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Managed Node packages policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMemberpackagesList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_memberpackages_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_memberpackages_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_memberpackages_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_memberpackages_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_memberpackages_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_memberpackages_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMemberpackagesList", + } + + return self.api_client.call_api( + '/policies/memberpackages/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_memberpackages_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Managed Node packages policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesMemberpackages + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_memberpackages_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_memberpackages_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Managed Node packages policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesMemberpackages, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_memberpackages_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesMemberpackages", + } + + return self.api_client.call_api( + '/policies/memberpackages/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_memberpackages_object_update(self, dn, policies_memberpackages, **kwargs): # noqa: E501 + """Modify an Managed Node packages policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_update(dn, policies_memberpackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_memberpackages: (required) + :type policies_memberpackages: PoliciesMemberpackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_memberpackages_object_update_with_http_info(dn, policies_memberpackages, **kwargs) # noqa: E501 + + def udm_policies_memberpackages_object_update_with_http_info(self, dn, policies_memberpackages, **kwargs): # noqa: E501 + """Modify an Managed Node packages policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_memberpackages_object_update_with_http_info(dn, policies_memberpackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_memberpackages: (required) + :type policies_memberpackages: PoliciesMemberpackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_memberpackages', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_memberpackages_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_memberpackages_object_update`") # noqa: E501 + # verify the required parameter 'policies_memberpackages' is set + if self.api_client.client_side_validation and ('policies_memberpackages' not in local_var_params or # noqa: E501 + local_var_params['policies_memberpackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_memberpackages` when calling `udm_policies_memberpackages_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_memberpackages_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_memberpackages_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_memberpackages' in local_var_params: + body_params = local_var_params['policies_memberpackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/memberpackages/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_nfsmounts_api.py b/openapi_client_udm/api/policies_nfsmounts_api.py new file mode 100644 index 0000000..adfd8c7 --- /dev/null +++ b/openapi_client_udm/api/policies_nfsmounts_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesNfsmountsApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_nfsmounts_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the NFS mounts policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesNfsmounts + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_nfsmounts_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_nfsmounts_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the NFS mounts policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesNfsmounts, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_nfsmounts_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_nfsmounts_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_nfsmounts_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_nfsmounts_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesNfsmounts", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/nfsmounts/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_nfsmounts_object_create(self, policies_nfsmounts, **kwargs): # noqa: E501 + """Create a new NFS mounts policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_create(policies_nfsmounts, async_req=True) + >>> result = thread.get() + + :param policies_nfsmounts: (required) + :type policies_nfsmounts: PoliciesNfsmounts + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_nfsmounts_object_create_with_http_info(policies_nfsmounts, **kwargs) # noqa: E501 + + def udm_policies_nfsmounts_object_create_with_http_info(self, policies_nfsmounts, **kwargs): # noqa: E501 + """Create a new NFS mounts policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_create_with_http_info(policies_nfsmounts, async_req=True) + >>> result = thread.get() + + :param policies_nfsmounts: (required) + :type policies_nfsmounts: PoliciesNfsmounts + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_nfsmounts', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_nfsmounts_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_nfsmounts' is set + if self.api_client.client_side_validation and ('policies_nfsmounts' not in local_var_params or # noqa: E501 + local_var_params['policies_nfsmounts'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_nfsmounts` when calling `udm_policies_nfsmounts_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_nfsmounts' in local_var_params: + body_params = local_var_params['policies_nfsmounts'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/nfsmounts/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_nfsmounts_object_modify(self, dn, policies_nfsmounts, **kwargs): # noqa: E501 + """Modify or move an NFS mounts policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_modify(dn, policies_nfsmounts, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_nfsmounts: (required) + :type policies_nfsmounts: PoliciesNfsmounts + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_nfsmounts_object_modify_with_http_info(dn, policies_nfsmounts, **kwargs) # noqa: E501 + + def udm_policies_nfsmounts_object_modify_with_http_info(self, dn, policies_nfsmounts, **kwargs): # noqa: E501 + """Modify or move an NFS mounts policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_modify_with_http_info(dn, policies_nfsmounts, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_nfsmounts: (required) + :type policies_nfsmounts: PoliciesNfsmounts + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_nfsmounts', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_nfsmounts_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_nfsmounts_object_modify`") # noqa: E501 + # verify the required parameter 'policies_nfsmounts' is set + if self.api_client.client_side_validation and ('policies_nfsmounts' not in local_var_params or # noqa: E501 + local_var_params['policies_nfsmounts'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_nfsmounts` when calling `udm_policies_nfsmounts_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_nfsmounts_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_nfsmounts_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_nfsmounts' in local_var_params: + body_params = local_var_params['policies_nfsmounts'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/nfsmounts/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_nfsmounts_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a NFS mounts policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_nfsmounts_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_nfsmounts_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a NFS mounts policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_nfsmounts_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_nfsmounts_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_nfsmounts_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_nfsmounts_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/nfsmounts/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_nfsmounts_object_search(self, **kwargs): # noqa: E501 + """Search for NFS mounts policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesNfsmountsList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_nfsmounts_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_nfsmounts_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for NFS mounts policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesNfsmountsList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_nfsmounts_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_nfsmounts_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_nfsmounts_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_nfsmounts_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_nfsmounts_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_nfsmounts_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesNfsmountsList", + } + + return self.api_client.call_api( + '/policies/nfsmounts/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_nfsmounts_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an NFS mounts policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesNfsmounts + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_nfsmounts_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_nfsmounts_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an NFS mounts policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesNfsmounts, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_nfsmounts_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesNfsmounts", + } + + return self.api_client.call_api( + '/policies/nfsmounts/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_nfsmounts_object_update(self, dn, policies_nfsmounts, **kwargs): # noqa: E501 + """Modify an NFS mounts policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_update(dn, policies_nfsmounts, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_nfsmounts: (required) + :type policies_nfsmounts: PoliciesNfsmounts + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_nfsmounts_object_update_with_http_info(dn, policies_nfsmounts, **kwargs) # noqa: E501 + + def udm_policies_nfsmounts_object_update_with_http_info(self, dn, policies_nfsmounts, **kwargs): # noqa: E501 + """Modify an NFS mounts policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_nfsmounts_object_update_with_http_info(dn, policies_nfsmounts, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_nfsmounts: (required) + :type policies_nfsmounts: PoliciesNfsmounts + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_nfsmounts', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_nfsmounts_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_nfsmounts_object_update`") # noqa: E501 + # verify the required parameter 'policies_nfsmounts' is set + if self.api_client.client_side_validation and ('policies_nfsmounts' not in local_var_params or # noqa: E501 + local_var_params['policies_nfsmounts'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_nfsmounts` when calling `udm_policies_nfsmounts_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_nfsmounts_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_nfsmounts_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_nfsmounts' in local_var_params: + body_params = local_var_params['policies_nfsmounts'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/nfsmounts/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_policy_api.py b/openapi_client_udm/api/policies_policy_api.py new file mode 100644 index 0000000..212a7ad --- /dev/null +++ b/openapi_client_udm/api/policies_policy_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesPolicyApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_policy_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_policy_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesPolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_policy_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_policy_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_policy_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesPolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_policy_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_policy_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_policy_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_policy_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesPolicy", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/policy/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_policy_object_search(self, **kwargs): # noqa: E501 + """Search for Policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_policy_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesPolicyList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_policy_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_policy_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_policy_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesPolicyList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_policy_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_policy_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_policy_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesPolicyList", + } + + return self.api_client.call_api( + '/policies/policy/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_printserver_api.py b/openapi_client_udm/api/policies_printserver_api.py new file mode 100644 index 0000000..d99a43f --- /dev/null +++ b/openapi_client_udm/api/policies_printserver_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesPrintserverApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_printserver_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Print server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesPrintserver + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_printserver_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_printserver_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Print server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesPrintserver, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_printserver_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_printserver_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_printserver_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_printserver_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesPrintserver", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/printserver/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_printserver_object_create(self, policies_printserver, **kwargs): # noqa: E501 + """Create a new Print server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_create(policies_printserver, async_req=True) + >>> result = thread.get() + + :param policies_printserver: (required) + :type policies_printserver: PoliciesPrintserver + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_printserver_object_create_with_http_info(policies_printserver, **kwargs) # noqa: E501 + + def udm_policies_printserver_object_create_with_http_info(self, policies_printserver, **kwargs): # noqa: E501 + """Create a new Print server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_create_with_http_info(policies_printserver, async_req=True) + >>> result = thread.get() + + :param policies_printserver: (required) + :type policies_printserver: PoliciesPrintserver + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_printserver', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_printserver_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_printserver' is set + if self.api_client.client_side_validation and ('policies_printserver' not in local_var_params or # noqa: E501 + local_var_params['policies_printserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_printserver` when calling `udm_policies_printserver_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_printserver' in local_var_params: + body_params = local_var_params['policies_printserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/printserver/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_printserver_object_modify(self, dn, policies_printserver, **kwargs): # noqa: E501 + """Modify or move an Print server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_modify(dn, policies_printserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_printserver: (required) + :type policies_printserver: PoliciesPrintserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_printserver_object_modify_with_http_info(dn, policies_printserver, **kwargs) # noqa: E501 + + def udm_policies_printserver_object_modify_with_http_info(self, dn, policies_printserver, **kwargs): # noqa: E501 + """Modify or move an Print server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_modify_with_http_info(dn, policies_printserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_printserver: (required) + :type policies_printserver: PoliciesPrintserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_printserver', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_printserver_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_printserver_object_modify`") # noqa: E501 + # verify the required parameter 'policies_printserver' is set + if self.api_client.client_side_validation and ('policies_printserver' not in local_var_params or # noqa: E501 + local_var_params['policies_printserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_printserver` when calling `udm_policies_printserver_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_printserver_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_printserver_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_printserver' in local_var_params: + body_params = local_var_params['policies_printserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/printserver/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_printserver_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Print server policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_printserver_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_printserver_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Print server policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_printserver_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_printserver_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_printserver_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_printserver_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/printserver/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_printserver_object_search(self, **kwargs): # noqa: E501 + """Search for Print server policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesPrintserverList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_printserver_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_printserver_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Print server policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesPrintserverList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_printserver_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_printserver_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_printserver_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_printserver_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_printserver_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_printserver_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesPrintserverList", + } + + return self.api_client.call_api( + '/policies/printserver/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_printserver_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Print server policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesPrintserver + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_printserver_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_printserver_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Print server policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesPrintserver, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_printserver_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesPrintserver", + } + + return self.api_client.call_api( + '/policies/printserver/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_printserver_object_update(self, dn, policies_printserver, **kwargs): # noqa: E501 + """Modify an Print server policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_update(dn, policies_printserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_printserver: (required) + :type policies_printserver: PoliciesPrintserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_printserver_object_update_with_http_info(dn, policies_printserver, **kwargs) # noqa: E501 + + def udm_policies_printserver_object_update_with_http_info(self, dn, policies_printserver, **kwargs): # noqa: E501 + """Modify an Print server policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_printserver_object_update_with_http_info(dn, policies_printserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_printserver: (required) + :type policies_printserver: PoliciesPrintserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_printserver', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_printserver_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_printserver_object_update`") # noqa: E501 + # verify the required parameter 'policies_printserver' is set + if self.api_client.client_side_validation and ('policies_printserver' not in local_var_params or # noqa: E501 + local_var_params['policies_printserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_printserver` when calling `udm_policies_printserver_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_printserver_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_printserver_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_printserver' in local_var_params: + body_params = local_var_params['policies_printserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/printserver/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_pwhistory_api.py b/openapi_client_udm/api/policies_pwhistory_api.py new file mode 100644 index 0000000..fd649f7 --- /dev/null +++ b/openapi_client_udm/api/policies_pwhistory_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesPwhistoryApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_pwhistory_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Passwords policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesPwhistory + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_pwhistory_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_pwhistory_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Passwords policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesPwhistory, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_pwhistory_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_pwhistory_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_pwhistory_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_pwhistory_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesPwhistory", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/pwhistory/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_pwhistory_object_create(self, policies_pwhistory, **kwargs): # noqa: E501 + """Create a new Passwords policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_create(policies_pwhistory, async_req=True) + >>> result = thread.get() + + :param policies_pwhistory: (required) + :type policies_pwhistory: PoliciesPwhistory + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_pwhistory_object_create_with_http_info(policies_pwhistory, **kwargs) # noqa: E501 + + def udm_policies_pwhistory_object_create_with_http_info(self, policies_pwhistory, **kwargs): # noqa: E501 + """Create a new Passwords policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_create_with_http_info(policies_pwhistory, async_req=True) + >>> result = thread.get() + + :param policies_pwhistory: (required) + :type policies_pwhistory: PoliciesPwhistory + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_pwhistory', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_pwhistory_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_pwhistory' is set + if self.api_client.client_side_validation and ('policies_pwhistory' not in local_var_params or # noqa: E501 + local_var_params['policies_pwhistory'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_pwhistory` when calling `udm_policies_pwhistory_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_pwhistory' in local_var_params: + body_params = local_var_params['policies_pwhistory'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/pwhistory/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_pwhistory_object_modify(self, dn, policies_pwhistory, **kwargs): # noqa: E501 + """Modify or move an Passwords policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_modify(dn, policies_pwhistory, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_pwhistory: (required) + :type policies_pwhistory: PoliciesPwhistory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_pwhistory_object_modify_with_http_info(dn, policies_pwhistory, **kwargs) # noqa: E501 + + def udm_policies_pwhistory_object_modify_with_http_info(self, dn, policies_pwhistory, **kwargs): # noqa: E501 + """Modify or move an Passwords policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_modify_with_http_info(dn, policies_pwhistory, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_pwhistory: (required) + :type policies_pwhistory: PoliciesPwhistory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_pwhistory', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_pwhistory_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_pwhistory_object_modify`") # noqa: E501 + # verify the required parameter 'policies_pwhistory' is set + if self.api_client.client_side_validation and ('policies_pwhistory' not in local_var_params or # noqa: E501 + local_var_params['policies_pwhistory'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_pwhistory` when calling `udm_policies_pwhistory_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_pwhistory_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_pwhistory_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_pwhistory' in local_var_params: + body_params = local_var_params['policies_pwhistory'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/pwhistory/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_pwhistory_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Passwords policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_pwhistory_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_pwhistory_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Passwords policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_pwhistory_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_pwhistory_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_pwhistory_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_pwhistory_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/pwhistory/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_pwhistory_object_search(self, **kwargs): # noqa: E501 + """Search for Passwords policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesPwhistoryList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_pwhistory_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_pwhistory_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Passwords policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesPwhistoryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_pwhistory_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_pwhistory_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_pwhistory_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_pwhistory_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_pwhistory_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_pwhistory_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesPwhistoryList", + } + + return self.api_client.call_api( + '/policies/pwhistory/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_pwhistory_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Passwords policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesPwhistory + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_pwhistory_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_pwhistory_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Passwords policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesPwhistory, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_pwhistory_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesPwhistory", + } + + return self.api_client.call_api( + '/policies/pwhistory/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_pwhistory_object_update(self, dn, policies_pwhistory, **kwargs): # noqa: E501 + """Modify an Passwords policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_update(dn, policies_pwhistory, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_pwhistory: (required) + :type policies_pwhistory: PoliciesPwhistory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_pwhistory_object_update_with_http_info(dn, policies_pwhistory, **kwargs) # noqa: E501 + + def udm_policies_pwhistory_object_update_with_http_info(self, dn, policies_pwhistory, **kwargs): # noqa: E501 + """Modify an Passwords policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_pwhistory_object_update_with_http_info(dn, policies_pwhistory, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_pwhistory: (required) + :type policies_pwhistory: PoliciesPwhistory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_pwhistory', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_pwhistory_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_pwhistory_object_update`") # noqa: E501 + # verify the required parameter 'policies_pwhistory' is set + if self.api_client.client_side_validation and ('policies_pwhistory' not in local_var_params or # noqa: E501 + local_var_params['policies_pwhistory'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_pwhistory` when calling `udm_policies_pwhistory_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_pwhistory_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_pwhistory_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_pwhistory' in local_var_params: + body_params = local_var_params['policies_pwhistory'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/pwhistory/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_registry_api.py b/openapi_client_udm/api/policies_registry_api.py new file mode 100644 index 0000000..7a63fa8 --- /dev/null +++ b/openapi_client_udm/api/policies_registry_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesRegistryApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_registry_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Univention Configuration Registry policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRegistry + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_registry_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_registry_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Univention Configuration Registry policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRegistry, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_registry_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_registry_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_registry_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_registry_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRegistry", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/registry/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_registry_object_create(self, policies_registry, **kwargs): # noqa: E501 + """Create a new Univention Configuration Registry policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_create(policies_registry, async_req=True) + >>> result = thread.get() + + :param policies_registry: (required) + :type policies_registry: PoliciesRegistry + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_registry_object_create_with_http_info(policies_registry, **kwargs) # noqa: E501 + + def udm_policies_registry_object_create_with_http_info(self, policies_registry, **kwargs): # noqa: E501 + """Create a new Univention Configuration Registry policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_create_with_http_info(policies_registry, async_req=True) + >>> result = thread.get() + + :param policies_registry: (required) + :type policies_registry: PoliciesRegistry + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_registry', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_registry_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_registry' is set + if self.api_client.client_side_validation and ('policies_registry' not in local_var_params or # noqa: E501 + local_var_params['policies_registry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_registry` when calling `udm_policies_registry_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_registry' in local_var_params: + body_params = local_var_params['policies_registry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/registry/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_registry_object_modify(self, dn, policies_registry, **kwargs): # noqa: E501 + """Modify or move an Univention Configuration Registry policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_modify(dn, policies_registry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_registry: (required) + :type policies_registry: PoliciesRegistry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_registry_object_modify_with_http_info(dn, policies_registry, **kwargs) # noqa: E501 + + def udm_policies_registry_object_modify_with_http_info(self, dn, policies_registry, **kwargs): # noqa: E501 + """Modify or move an Univention Configuration Registry policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_modify_with_http_info(dn, policies_registry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_registry: (required) + :type policies_registry: PoliciesRegistry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_registry', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_registry_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_registry_object_modify`") # noqa: E501 + # verify the required parameter 'policies_registry' is set + if self.api_client.client_side_validation and ('policies_registry' not in local_var_params or # noqa: E501 + local_var_params['policies_registry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_registry` when calling `udm_policies_registry_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_registry_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_registry_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_registry' in local_var_params: + body_params = local_var_params['policies_registry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/registry/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_registry_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Univention Configuration Registry policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_registry_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_registry_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Univention Configuration Registry policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_registry_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_registry_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_registry_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_registry_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/registry/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_registry_object_search(self, **kwargs): # noqa: E501 + """Search for Univention Configuration Registry policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRegistryList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_registry_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_registry_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Univention Configuration Registry policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRegistryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_registry_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_registry_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_registry_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_registry_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_registry_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_registry_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRegistryList", + } + + return self.api_client.call_api( + '/policies/registry/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_registry_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Univention Configuration Registry policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRegistry + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_registry_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_registry_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Univention Configuration Registry policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRegistry, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_registry_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRegistry", + } + + return self.api_client.call_api( + '/policies/registry/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_registry_object_update(self, dn, policies_registry, **kwargs): # noqa: E501 + """Modify an Univention Configuration Registry policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_update(dn, policies_registry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_registry: (required) + :type policies_registry: PoliciesRegistry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_registry_object_update_with_http_info(dn, policies_registry, **kwargs) # noqa: E501 + + def udm_policies_registry_object_update_with_http_info(self, dn, policies_registry, **kwargs): # noqa: E501 + """Modify an Univention Configuration Registry policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_registry_object_update_with_http_info(dn, policies_registry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_registry: (required) + :type policies_registry: PoliciesRegistry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_registry', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_registry_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_registry_object_update`") # noqa: E501 + # verify the required parameter 'policies_registry' is set + if self.api_client.client_side_validation and ('policies_registry' not in local_var_params or # noqa: E501 + local_var_params['policies_registry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_registry` when calling `udm_policies_registry_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_registry_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_registry_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_registry' in local_var_params: + body_params = local_var_params['policies_registry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/registry/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_release_api.py b/openapi_client_udm/api/policies_release_api.py new file mode 100644 index 0000000..46e208c --- /dev/null +++ b/openapi_client_udm/api/policies_release_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesReleaseApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_release_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Automatic updates policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRelease + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_release_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_release_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Automatic updates policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRelease, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_release_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_release_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_release_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_release_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRelease", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/release/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_release_object_create(self, policies_release, **kwargs): # noqa: E501 + """Create a new Automatic updates policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_create(policies_release, async_req=True) + >>> result = thread.get() + + :param policies_release: (required) + :type policies_release: PoliciesRelease + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_release_object_create_with_http_info(policies_release, **kwargs) # noqa: E501 + + def udm_policies_release_object_create_with_http_info(self, policies_release, **kwargs): # noqa: E501 + """Create a new Automatic updates policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_create_with_http_info(policies_release, async_req=True) + >>> result = thread.get() + + :param policies_release: (required) + :type policies_release: PoliciesRelease + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_release', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_release_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_release' is set + if self.api_client.client_side_validation and ('policies_release' not in local_var_params or # noqa: E501 + local_var_params['policies_release'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_release` when calling `udm_policies_release_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_release' in local_var_params: + body_params = local_var_params['policies_release'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/release/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_release_object_modify(self, dn, policies_release, **kwargs): # noqa: E501 + """Modify or move an Automatic updates policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_modify(dn, policies_release, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_release: (required) + :type policies_release: PoliciesRelease + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_release_object_modify_with_http_info(dn, policies_release, **kwargs) # noqa: E501 + + def udm_policies_release_object_modify_with_http_info(self, dn, policies_release, **kwargs): # noqa: E501 + """Modify or move an Automatic updates policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_modify_with_http_info(dn, policies_release, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_release: (required) + :type policies_release: PoliciesRelease + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_release', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_release_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_release_object_modify`") # noqa: E501 + # verify the required parameter 'policies_release' is set + if self.api_client.client_side_validation and ('policies_release' not in local_var_params or # noqa: E501 + local_var_params['policies_release'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_release` when calling `udm_policies_release_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_release_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_release_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_release' in local_var_params: + body_params = local_var_params['policies_release'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/release/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_release_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Automatic updates policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_release_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_release_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Automatic updates policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_release_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_release_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_release_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_release_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/release/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_release_object_search(self, **kwargs): # noqa: E501 + """Search for Automatic updates policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesReleaseList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_release_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_release_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Automatic updates policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesReleaseList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_release_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_release_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_release_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_release_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_release_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_release_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesReleaseList", + } + + return self.api_client.call_api( + '/policies/release/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_release_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Automatic updates policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRelease + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_release_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_release_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Automatic updates policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRelease, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_release_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRelease", + } + + return self.api_client.call_api( + '/policies/release/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_release_object_update(self, dn, policies_release, **kwargs): # noqa: E501 + """Modify an Automatic updates policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_update(dn, policies_release, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_release: (required) + :type policies_release: PoliciesRelease + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_release_object_update_with_http_info(dn, policies_release, **kwargs) # noqa: E501 + + def udm_policies_release_object_update_with_http_info(self, dn, policies_release, **kwargs): # noqa: E501 + """Modify an Automatic updates policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_release_object_update_with_http_info(dn, policies_release, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_release: (required) + :type policies_release: PoliciesRelease + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_release', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_release_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_release_object_update`") # noqa: E501 + # verify the required parameter 'policies_release' is set + if self.api_client.client_side_validation and ('policies_release' not in local_var_params or # noqa: E501 + local_var_params['policies_release'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_release` when calling `udm_policies_release_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_release_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_release_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_release' in local_var_params: + body_params = local_var_params['policies_release'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/release/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_repositoryserver_api.py b/openapi_client_udm/api/policies_repositoryserver_api.py new file mode 100644 index 0000000..062b40f --- /dev/null +++ b/openapi_client_udm/api/policies_repositoryserver_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesRepositoryserverApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_repositoryserver_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Repository server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRepositoryserver + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositoryserver_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_repositoryserver_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Repository server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRepositoryserver, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositoryserver_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_repositoryserver_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositoryserver_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositoryserver_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRepositoryserver", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/repositoryserver/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositoryserver_object_create(self, policies_repositoryserver, **kwargs): # noqa: E501 + """Create a new Repository server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_create(policies_repositoryserver, async_req=True) + >>> result = thread.get() + + :param policies_repositoryserver: (required) + :type policies_repositoryserver: PoliciesRepositoryserver + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositoryserver_object_create_with_http_info(policies_repositoryserver, **kwargs) # noqa: E501 + + def udm_policies_repositoryserver_object_create_with_http_info(self, policies_repositoryserver, **kwargs): # noqa: E501 + """Create a new Repository server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_create_with_http_info(policies_repositoryserver, async_req=True) + >>> result = thread.get() + + :param policies_repositoryserver: (required) + :type policies_repositoryserver: PoliciesRepositoryserver + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_repositoryserver', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositoryserver_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_repositoryserver' is set + if self.api_client.client_side_validation and ('policies_repositoryserver' not in local_var_params or # noqa: E501 + local_var_params['policies_repositoryserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_repositoryserver` when calling `udm_policies_repositoryserver_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_repositoryserver' in local_var_params: + body_params = local_var_params['policies_repositoryserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/repositoryserver/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositoryserver_object_modify(self, dn, policies_repositoryserver, **kwargs): # noqa: E501 + """Modify or move an Repository server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_modify(dn, policies_repositoryserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_repositoryserver: (required) + :type policies_repositoryserver: PoliciesRepositoryserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositoryserver_object_modify_with_http_info(dn, policies_repositoryserver, **kwargs) # noqa: E501 + + def udm_policies_repositoryserver_object_modify_with_http_info(self, dn, policies_repositoryserver, **kwargs): # noqa: E501 + """Modify or move an Repository server policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_modify_with_http_info(dn, policies_repositoryserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_repositoryserver: (required) + :type policies_repositoryserver: PoliciesRepositoryserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_repositoryserver', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositoryserver_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_repositoryserver_object_modify`") # noqa: E501 + # verify the required parameter 'policies_repositoryserver' is set + if self.api_client.client_side_validation and ('policies_repositoryserver' not in local_var_params or # noqa: E501 + local_var_params['policies_repositoryserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_repositoryserver` when calling `udm_policies_repositoryserver_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositoryserver_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositoryserver_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_repositoryserver' in local_var_params: + body_params = local_var_params['policies_repositoryserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/repositoryserver/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositoryserver_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Repository server policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositoryserver_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_repositoryserver_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Repository server policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositoryserver_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_repositoryserver_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositoryserver_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositoryserver_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/repositoryserver/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositoryserver_object_search(self, **kwargs): # noqa: E501 + """Search for Repository server policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRepositoryserverList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositoryserver_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_repositoryserver_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Repository server policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRepositoryserverList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositoryserver_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_repositoryserver_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_repositoryserver_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_repositoryserver_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_repositoryserver_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_repositoryserver_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRepositoryserverList", + } + + return self.api_client.call_api( + '/policies/repositoryserver/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositoryserver_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Repository server policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRepositoryserver + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositoryserver_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_repositoryserver_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Repository server policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRepositoryserver, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositoryserver_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRepositoryserver", + } + + return self.api_client.call_api( + '/policies/repositoryserver/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositoryserver_object_update(self, dn, policies_repositoryserver, **kwargs): # noqa: E501 + """Modify an Repository server policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_update(dn, policies_repositoryserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_repositoryserver: (required) + :type policies_repositoryserver: PoliciesRepositoryserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositoryserver_object_update_with_http_info(dn, policies_repositoryserver, **kwargs) # noqa: E501 + + def udm_policies_repositoryserver_object_update_with_http_info(self, dn, policies_repositoryserver, **kwargs): # noqa: E501 + """Modify an Repository server policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositoryserver_object_update_with_http_info(dn, policies_repositoryserver, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_repositoryserver: (required) + :type policies_repositoryserver: PoliciesRepositoryserver + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_repositoryserver', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositoryserver_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_repositoryserver_object_update`") # noqa: E501 + # verify the required parameter 'policies_repositoryserver' is set + if self.api_client.client_side_validation and ('policies_repositoryserver' not in local_var_params or # noqa: E501 + local_var_params['policies_repositoryserver'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_repositoryserver` when calling `udm_policies_repositoryserver_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositoryserver_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositoryserver_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_repositoryserver' in local_var_params: + body_params = local_var_params['policies_repositoryserver'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/repositoryserver/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_repositorysync_api.py b/openapi_client_udm/api/policies_repositorysync_api.py new file mode 100644 index 0000000..b40a6c4 --- /dev/null +++ b/openapi_client_udm/api/policies_repositorysync_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesRepositorysyncApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_repositorysync_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Repository synchronisation policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRepositorysync + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositorysync_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_repositorysync_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Repository synchronisation policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRepositorysync, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositorysync_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_repositorysync_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositorysync_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositorysync_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRepositorysync", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/repositorysync/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositorysync_object_create(self, policies_repositorysync, **kwargs): # noqa: E501 + """Create a new Repository synchronisation policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_create(policies_repositorysync, async_req=True) + >>> result = thread.get() + + :param policies_repositorysync: (required) + :type policies_repositorysync: PoliciesRepositorysync + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositorysync_object_create_with_http_info(policies_repositorysync, **kwargs) # noqa: E501 + + def udm_policies_repositorysync_object_create_with_http_info(self, policies_repositorysync, **kwargs): # noqa: E501 + """Create a new Repository synchronisation policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_create_with_http_info(policies_repositorysync, async_req=True) + >>> result = thread.get() + + :param policies_repositorysync: (required) + :type policies_repositorysync: PoliciesRepositorysync + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_repositorysync', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositorysync_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_repositorysync' is set + if self.api_client.client_side_validation and ('policies_repositorysync' not in local_var_params or # noqa: E501 + local_var_params['policies_repositorysync'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_repositorysync` when calling `udm_policies_repositorysync_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_repositorysync' in local_var_params: + body_params = local_var_params['policies_repositorysync'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/repositorysync/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositorysync_object_modify(self, dn, policies_repositorysync, **kwargs): # noqa: E501 + """Modify or move an Repository synchronisation policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_modify(dn, policies_repositorysync, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_repositorysync: (required) + :type policies_repositorysync: PoliciesRepositorysync + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositorysync_object_modify_with_http_info(dn, policies_repositorysync, **kwargs) # noqa: E501 + + def udm_policies_repositorysync_object_modify_with_http_info(self, dn, policies_repositorysync, **kwargs): # noqa: E501 + """Modify or move an Repository synchronisation policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_modify_with_http_info(dn, policies_repositorysync, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_repositorysync: (required) + :type policies_repositorysync: PoliciesRepositorysync + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_repositorysync', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositorysync_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_repositorysync_object_modify`") # noqa: E501 + # verify the required parameter 'policies_repositorysync' is set + if self.api_client.client_side_validation and ('policies_repositorysync' not in local_var_params or # noqa: E501 + local_var_params['policies_repositorysync'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_repositorysync` when calling `udm_policies_repositorysync_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositorysync_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositorysync_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_repositorysync' in local_var_params: + body_params = local_var_params['policies_repositorysync'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/repositorysync/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositorysync_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Repository synchronisation policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositorysync_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_repositorysync_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Repository synchronisation policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositorysync_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_repositorysync_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositorysync_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositorysync_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/repositorysync/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositorysync_object_search(self, **kwargs): # noqa: E501 + """Search for Repository synchronisation policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRepositorysyncList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositorysync_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_repositorysync_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Repository synchronisation policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRepositorysyncList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositorysync_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_repositorysync_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_repositorysync_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_repositorysync_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_repositorysync_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_repositorysync_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRepositorysyncList", + } + + return self.api_client.call_api( + '/policies/repositorysync/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositorysync_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Repository synchronisation policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesRepositorysync + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositorysync_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_repositorysync_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Repository synchronisation policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesRepositorysync, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositorysync_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesRepositorysync", + } + + return self.api_client.call_api( + '/policies/repositorysync/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_repositorysync_object_update(self, dn, policies_repositorysync, **kwargs): # noqa: E501 + """Modify an Repository synchronisation policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_update(dn, policies_repositorysync, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_repositorysync: (required) + :type policies_repositorysync: PoliciesRepositorysync + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_repositorysync_object_update_with_http_info(dn, policies_repositorysync, **kwargs) # noqa: E501 + + def udm_policies_repositorysync_object_update_with_http_info(self, dn, policies_repositorysync, **kwargs): # noqa: E501 + """Modify an Repository synchronisation policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_repositorysync_object_update_with_http_info(dn, policies_repositorysync, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_repositorysync: (required) + :type policies_repositorysync: PoliciesRepositorysync + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_repositorysync', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_repositorysync_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_repositorysync_object_update`") # noqa: E501 + # verify the required parameter 'policies_repositorysync' is set + if self.api_client.client_side_validation and ('policies_repositorysync' not in local_var_params or # noqa: E501 + local_var_params['policies_repositorysync'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_repositorysync` when calling `udm_policies_repositorysync_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositorysync_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_repositorysync_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_repositorysync' in local_var_params: + body_params = local_var_params['policies_repositorysync'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/repositorysync/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_share_userquota_api.py b/openapi_client_udm/api/policies_share_userquota_api.py new file mode 100644 index 0000000..1e69fa1 --- /dev/null +++ b/openapi_client_udm/api/policies_share_userquota_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesShareUserquotaApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_share_userquota_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the User quota policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesShareUserquota + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_share_userquota_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_share_userquota_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the User quota policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesShareUserquota, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_share_userquota_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_share_userquota_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_share_userquota_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_share_userquota_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesShareUserquota", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/share_userquota/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_share_userquota_object_create(self, policies_share_userquota, **kwargs): # noqa: E501 + """Create a new User quota policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_create(policies_share_userquota, async_req=True) + >>> result = thread.get() + + :param policies_share_userquota: (required) + :type policies_share_userquota: PoliciesShareUserquota + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_share_userquota_object_create_with_http_info(policies_share_userquota, **kwargs) # noqa: E501 + + def udm_policies_share_userquota_object_create_with_http_info(self, policies_share_userquota, **kwargs): # noqa: E501 + """Create a new User quota policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_create_with_http_info(policies_share_userquota, async_req=True) + >>> result = thread.get() + + :param policies_share_userquota: (required) + :type policies_share_userquota: PoliciesShareUserquota + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_share_userquota', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_share_userquota_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_share_userquota' is set + if self.api_client.client_side_validation and ('policies_share_userquota' not in local_var_params or # noqa: E501 + local_var_params['policies_share_userquota'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_share_userquota` when calling `udm_policies_share_userquota_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_share_userquota' in local_var_params: + body_params = local_var_params['policies_share_userquota'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/share_userquota/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_share_userquota_object_modify(self, dn, policies_share_userquota, **kwargs): # noqa: E501 + """Modify or move an User quota policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_modify(dn, policies_share_userquota, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_share_userquota: (required) + :type policies_share_userquota: PoliciesShareUserquota + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_share_userquota_object_modify_with_http_info(dn, policies_share_userquota, **kwargs) # noqa: E501 + + def udm_policies_share_userquota_object_modify_with_http_info(self, dn, policies_share_userquota, **kwargs): # noqa: E501 + """Modify or move an User quota policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_modify_with_http_info(dn, policies_share_userquota, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_share_userquota: (required) + :type policies_share_userquota: PoliciesShareUserquota + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_share_userquota', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_share_userquota_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_share_userquota_object_modify`") # noqa: E501 + # verify the required parameter 'policies_share_userquota' is set + if self.api_client.client_side_validation and ('policies_share_userquota' not in local_var_params or # noqa: E501 + local_var_params['policies_share_userquota'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_share_userquota` when calling `udm_policies_share_userquota_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_share_userquota_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_share_userquota_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_share_userquota' in local_var_params: + body_params = local_var_params['policies_share_userquota'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/share_userquota/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_share_userquota_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a User quota policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_share_userquota_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_share_userquota_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a User quota policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_share_userquota_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_share_userquota_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_share_userquota_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_share_userquota_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/share_userquota/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_share_userquota_object_search(self, **kwargs): # noqa: E501 + """Search for User quota policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesShareUserquotaList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_share_userquota_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_share_userquota_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for User quota policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesShareUserquotaList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_share_userquota_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_share_userquota_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_share_userquota_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_share_userquota_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_share_userquota_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_share_userquota_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesShareUserquotaList", + } + + return self.api_client.call_api( + '/policies/share_userquota/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_share_userquota_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an User quota policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesShareUserquota + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_share_userquota_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_share_userquota_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an User quota policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesShareUserquota, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_share_userquota_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesShareUserquota", + } + + return self.api_client.call_api( + '/policies/share_userquota/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_share_userquota_object_update(self, dn, policies_share_userquota, **kwargs): # noqa: E501 + """Modify an User quota policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_update(dn, policies_share_userquota, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_share_userquota: (required) + :type policies_share_userquota: PoliciesShareUserquota + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_share_userquota_object_update_with_http_info(dn, policies_share_userquota, **kwargs) # noqa: E501 + + def udm_policies_share_userquota_object_update_with_http_info(self, dn, policies_share_userquota, **kwargs): # noqa: E501 + """Modify an User quota policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_share_userquota_object_update_with_http_info(dn, policies_share_userquota, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_share_userquota: (required) + :type policies_share_userquota: PoliciesShareUserquota + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_share_userquota', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_share_userquota_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_share_userquota_object_update`") # noqa: E501 + # verify the required parameter 'policies_share_userquota' is set + if self.api_client.client_side_validation and ('policies_share_userquota' not in local_var_params or # noqa: E501 + local_var_params['policies_share_userquota'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_share_userquota` when calling `udm_policies_share_userquota_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_share_userquota_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_share_userquota_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_share_userquota' in local_var_params: + body_params = local_var_params['policies_share_userquota'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/share_userquota/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_slavepackages_api.py b/openapi_client_udm/api/policies_slavepackages_api.py new file mode 100644 index 0000000..ba4ac9e --- /dev/null +++ b/openapi_client_udm/api/policies_slavepackages_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesSlavepackagesApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_slavepackages_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Replica Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesSlavepackages + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_slavepackages_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_slavepackages_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Replica Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesSlavepackages, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_slavepackages_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_slavepackages_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_slavepackages_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_slavepackages_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesSlavepackages", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/slavepackages/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_slavepackages_object_create(self, policies_slavepackages, **kwargs): # noqa: E501 + """Create a new Replica Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_create(policies_slavepackages, async_req=True) + >>> result = thread.get() + + :param policies_slavepackages: (required) + :type policies_slavepackages: PoliciesSlavepackages + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_slavepackages_object_create_with_http_info(policies_slavepackages, **kwargs) # noqa: E501 + + def udm_policies_slavepackages_object_create_with_http_info(self, policies_slavepackages, **kwargs): # noqa: E501 + """Create a new Replica Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_create_with_http_info(policies_slavepackages, async_req=True) + >>> result = thread.get() + + :param policies_slavepackages: (required) + :type policies_slavepackages: PoliciesSlavepackages + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_slavepackages', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_slavepackages_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_slavepackages' is set + if self.api_client.client_side_validation and ('policies_slavepackages' not in local_var_params or # noqa: E501 + local_var_params['policies_slavepackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_slavepackages` when calling `udm_policies_slavepackages_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_slavepackages' in local_var_params: + body_params = local_var_params['policies_slavepackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/slavepackages/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_slavepackages_object_modify(self, dn, policies_slavepackages, **kwargs): # noqa: E501 + """Modify or move an Replica Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_modify(dn, policies_slavepackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_slavepackages: (required) + :type policies_slavepackages: PoliciesSlavepackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_slavepackages_object_modify_with_http_info(dn, policies_slavepackages, **kwargs) # noqa: E501 + + def udm_policies_slavepackages_object_modify_with_http_info(self, dn, policies_slavepackages, **kwargs): # noqa: E501 + """Modify or move an Replica Node packages policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_modify_with_http_info(dn, policies_slavepackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_slavepackages: (required) + :type policies_slavepackages: PoliciesSlavepackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_slavepackages', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_slavepackages_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_slavepackages_object_modify`") # noqa: E501 + # verify the required parameter 'policies_slavepackages' is set + if self.api_client.client_side_validation and ('policies_slavepackages' not in local_var_params or # noqa: E501 + local_var_params['policies_slavepackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_slavepackages` when calling `udm_policies_slavepackages_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_slavepackages_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_slavepackages_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_slavepackages' in local_var_params: + body_params = local_var_params['policies_slavepackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/slavepackages/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_slavepackages_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Replica Node packages policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_slavepackages_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_slavepackages_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Replica Node packages policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_slavepackages_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_slavepackages_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_slavepackages_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_slavepackages_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/slavepackages/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_slavepackages_object_search(self, **kwargs): # noqa: E501 + """Search for Replica Node packages policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesSlavepackagesList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_slavepackages_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_slavepackages_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Replica Node packages policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesSlavepackagesList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_slavepackages_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_slavepackages_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_slavepackages_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_slavepackages_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_slavepackages_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_slavepackages_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesSlavepackagesList", + } + + return self.api_client.call_api( + '/policies/slavepackages/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_slavepackages_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Replica Node packages policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesSlavepackages + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_slavepackages_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_slavepackages_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Replica Node packages policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesSlavepackages, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_slavepackages_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesSlavepackages", + } + + return self.api_client.call_api( + '/policies/slavepackages/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_slavepackages_object_update(self, dn, policies_slavepackages, **kwargs): # noqa: E501 + """Modify an Replica Node packages policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_update(dn, policies_slavepackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_slavepackages: (required) + :type policies_slavepackages: PoliciesSlavepackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_slavepackages_object_update_with_http_info(dn, policies_slavepackages, **kwargs) # noqa: E501 + + def udm_policies_slavepackages_object_update_with_http_info(self, dn, policies_slavepackages, **kwargs): # noqa: E501 + """Modify an Replica Node packages policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_slavepackages_object_update_with_http_info(dn, policies_slavepackages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_slavepackages: (required) + :type policies_slavepackages: PoliciesSlavepackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_slavepackages', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_slavepackages_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_slavepackages_object_update`") # noqa: E501 + # verify the required parameter 'policies_slavepackages' is set + if self.api_client.client_side_validation and ('policies_slavepackages' not in local_var_params or # noqa: E501 + local_var_params['policies_slavepackages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_slavepackages` when calling `udm_policies_slavepackages_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_slavepackages_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_slavepackages_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_slavepackages' in local_var_params: + body_params = local_var_params['policies_slavepackages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/slavepackages/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/policies_umc_api.py b/openapi_client_udm/api/policies_umc_api.py new file mode 100644 index 0000000..1bc8def --- /dev/null +++ b/openapi_client_udm/api/policies_umc_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PoliciesUmcApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_policies_umc_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UMC policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesUmc + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_umc_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_umc_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UMC policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesUmc, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_umc_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_umc_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_umc_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_umc_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesUmc", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/umc/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_umc_object_create(self, policies_umc, **kwargs): # noqa: E501 + """Create a new UMC policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_create(policies_umc, async_req=True) + >>> result = thread.get() + + :param policies_umc: (required) + :type policies_umc: PoliciesUmc + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_umc_object_create_with_http_info(policies_umc, **kwargs) # noqa: E501 + + def udm_policies_umc_object_create_with_http_info(self, policies_umc, **kwargs): # noqa: E501 + """Create a new UMC policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_create_with_http_info(policies_umc, async_req=True) + >>> result = thread.get() + + :param policies_umc: (required) + :type policies_umc: PoliciesUmc + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'policies_umc', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_umc_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'policies_umc' is set + if self.api_client.client_side_validation and ('policies_umc' not in local_var_params or # noqa: E501 + local_var_params['policies_umc'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_umc` when calling `udm_policies_umc_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_umc' in local_var_params: + body_params = local_var_params['policies_umc'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/policies/umc/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_umc_object_modify(self, dn, policies_umc, **kwargs): # noqa: E501 + """Modify or move an UMC policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_modify(dn, policies_umc, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_umc: (required) + :type policies_umc: PoliciesUmc + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_umc_object_modify_with_http_info(dn, policies_umc, **kwargs) # noqa: E501 + + def udm_policies_umc_object_modify_with_http_info(self, dn, policies_umc, **kwargs): # noqa: E501 + """Modify or move an UMC policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_modify_with_http_info(dn, policies_umc, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_umc: (required) + :type policies_umc: PoliciesUmc + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_umc', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_umc_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_umc_object_modify`") # noqa: E501 + # verify the required parameter 'policies_umc' is set + if self.api_client.client_side_validation and ('policies_umc' not in local_var_params or # noqa: E501 + local_var_params['policies_umc'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_umc` when calling `udm_policies_umc_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_umc_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_umc_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_umc' in local_var_params: + body_params = local_var_params['policies_umc'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/policies/umc/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_umc_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a UMC policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_umc_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_policies_umc_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a UMC policies object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_umc_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_umc_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_umc_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_umc_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/umc/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_umc_object_search(self, **kwargs): # noqa: E501 + """Search for UMC policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesUmcList + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_umc_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_umc_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for UMC policies objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesUmcList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_umc_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_policies_umc_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_policies_umc_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_policies_umc_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_policies_umc_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_policies_umc_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesUmcList", + } + + return self.api_client.call_api( + '/policies/umc/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_umc_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an UMC policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PoliciesUmc + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_umc_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_policies_umc_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an UMC policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PoliciesUmc, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_umc_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PoliciesUmc", + } + + return self.api_client.call_api( + '/policies/umc/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_policies_umc_object_update(self, dn, policies_umc, **kwargs): # noqa: E501 + """Modify an UMC policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_update(dn, policies_umc, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_umc: (required) + :type policies_umc: PoliciesUmc + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_policies_umc_object_update_with_http_info(dn, policies_umc, **kwargs) # noqa: E501 + + def udm_policies_umc_object_update_with_http_info(self, dn, policies_umc, **kwargs): # noqa: E501 + """Modify an UMC policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_policies_umc_object_update_with_http_info(dn, policies_umc, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param policies_umc: (required) + :type policies_umc: PoliciesUmc + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'policies_umc', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_policies_umc_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_policies_umc_object_update`") # noqa: E501 + # verify the required parameter 'policies_umc' is set + if self.api_client.client_side_validation and ('policies_umc' not in local_var_params or # noqa: E501 + local_var_params['policies_umc'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `policies_umc` when calling `udm_policies_umc_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_umc_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_policies_umc_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'policies_umc' in local_var_params: + body_params = local_var_params['policies_umc'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/policies/umc/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/portals_all_api.py b/openapi_client_udm/api/portals_all_api.py new file mode 100644 index 0000000..233c3e7 --- /dev/null +++ b/openapi_client_udm/api/portals_all_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PortalsAllApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_portals_all_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_all_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsAll + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_all_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_all_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_all_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsAll, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_all_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_all_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_all_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_all_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsAll", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/all/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_all_object_search(self, **kwargs): # noqa: E501 + """Search for Portal: Settings objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_all_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsAllList + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_all_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_all_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Portal: Settings objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_all_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsAllList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_all_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_portals_all_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_portals_all_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsAllList", + } + + return self.api_client.call_api( + '/portals/all/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/portals_announcement_api.py b/openapi_client_udm/api/portals_announcement_api.py new file mode 100644 index 0000000..b708446 --- /dev/null +++ b/openapi_client_udm/api/portals_announcement_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PortalsAnnouncementApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_portals_announcement_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal announcement object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsAnnouncement + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_announcement_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_announcement_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal announcement object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsAnnouncement, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_announcement_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_announcement_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_announcement_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_announcement_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsAnnouncement", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/announcement/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_announcement_object_create(self, portals_announcement, **kwargs): # noqa: E501 + """Create a new Portal announcement object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_create(portals_announcement, async_req=True) + >>> result = thread.get() + + :param portals_announcement: (required) + :type portals_announcement: PortalsAnnouncement + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_announcement_object_create_with_http_info(portals_announcement, **kwargs) # noqa: E501 + + def udm_portals_announcement_object_create_with_http_info(self, portals_announcement, **kwargs): # noqa: E501 + """Create a new Portal announcement object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_create_with_http_info(portals_announcement, async_req=True) + >>> result = thread.get() + + :param portals_announcement: (required) + :type portals_announcement: PortalsAnnouncement + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'portals_announcement', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_announcement_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'portals_announcement' is set + if self.api_client.client_side_validation and ('portals_announcement' not in local_var_params or # noqa: E501 + local_var_params['portals_announcement'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_announcement` when calling `udm_portals_announcement_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_announcement' in local_var_params: + body_params = local_var_params['portals_announcement'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/portals/announcement/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_announcement_object_modify(self, dn, portals_announcement, **kwargs): # noqa: E501 + """Modify or move an Portal announcement object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_modify(dn, portals_announcement, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_announcement: (required) + :type portals_announcement: PortalsAnnouncement + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_announcement_object_modify_with_http_info(dn, portals_announcement, **kwargs) # noqa: E501 + + def udm_portals_announcement_object_modify_with_http_info(self, dn, portals_announcement, **kwargs): # noqa: E501 + """Modify or move an Portal announcement object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_modify_with_http_info(dn, portals_announcement, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_announcement: (required) + :type portals_announcement: PortalsAnnouncement + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_announcement', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_announcement_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_announcement_object_modify`") # noqa: E501 + # verify the required parameter 'portals_announcement' is set + if self.api_client.client_side_validation and ('portals_announcement' not in local_var_params or # noqa: E501 + local_var_params['portals_announcement'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_announcement` when calling `udm_portals_announcement_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_announcement_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_announcement_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_announcement' in local_var_params: + body_params = local_var_params['portals_announcement'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/announcement/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_announcement_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Portal announcements object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_announcement_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_announcement_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Portal announcements object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_announcement_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_announcement_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_announcement_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_announcement_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/announcement/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_announcement_object_search(self, **kwargs): # noqa: E501 + """Search for Portal announcements objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsAnnouncementList + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_announcement_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_announcement_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Portal announcements objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsAnnouncementList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_announcement_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_portals_announcement_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_portals_announcement_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_portals_announcement_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_portals_announcement_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_portals_announcement_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsAnnouncementList", + } + + return self.api_client.call_api( + '/portals/announcement/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_announcement_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal announcement object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsAnnouncement + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_announcement_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_announcement_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal announcement object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsAnnouncement, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_announcement_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsAnnouncement", + } + + return self.api_client.call_api( + '/portals/announcement/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_announcement_object_update(self, dn, portals_announcement, **kwargs): # noqa: E501 + """Modify an Portal announcement object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_update(dn, portals_announcement, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_announcement: (required) + :type portals_announcement: PortalsAnnouncement + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_announcement_object_update_with_http_info(dn, portals_announcement, **kwargs) # noqa: E501 + + def udm_portals_announcement_object_update_with_http_info(self, dn, portals_announcement, **kwargs): # noqa: E501 + """Modify an Portal announcement object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_announcement_object_update_with_http_info(dn, portals_announcement, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_announcement: (required) + :type portals_announcement: PortalsAnnouncement + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_announcement', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_announcement_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_announcement_object_update`") # noqa: E501 + # verify the required parameter 'portals_announcement' is set + if self.api_client.client_side_validation and ('portals_announcement' not in local_var_params or # noqa: E501 + local_var_params['portals_announcement'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_announcement` when calling `udm_portals_announcement_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_announcement_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_announcement_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_announcement' in local_var_params: + body_params = local_var_params['portals_announcement'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/announcement/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/portals_category_api.py b/openapi_client_udm/api/portals_category_api.py new file mode 100644 index 0000000..df68b8b --- /dev/null +++ b/openapi_client_udm/api/portals_category_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PortalsCategoryApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_portals_category_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsCategory + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_category_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_category_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsCategory, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_category_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_category_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_category_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_category_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsCategory", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/category/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_category_object_create(self, portals_category, **kwargs): # noqa: E501 + """Create a new Portal category object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_create(portals_category, async_req=True) + >>> result = thread.get() + + :param portals_category: (required) + :type portals_category: PortalsCategory + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_category_object_create_with_http_info(portals_category, **kwargs) # noqa: E501 + + def udm_portals_category_object_create_with_http_info(self, portals_category, **kwargs): # noqa: E501 + """Create a new Portal category object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_create_with_http_info(portals_category, async_req=True) + >>> result = thread.get() + + :param portals_category: (required) + :type portals_category: PortalsCategory + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'portals_category', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_category_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'portals_category' is set + if self.api_client.client_side_validation and ('portals_category' not in local_var_params or # noqa: E501 + local_var_params['portals_category'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_category` when calling `udm_portals_category_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_category' in local_var_params: + body_params = local_var_params['portals_category'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/portals/category/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_category_object_modify(self, dn, portals_category, **kwargs): # noqa: E501 + """Modify or move an Portal category object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_modify(dn, portals_category, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_category: (required) + :type portals_category: PortalsCategory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_category_object_modify_with_http_info(dn, portals_category, **kwargs) # noqa: E501 + + def udm_portals_category_object_modify_with_http_info(self, dn, portals_category, **kwargs): # noqa: E501 + """Modify or move an Portal category object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_modify_with_http_info(dn, portals_category, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_category: (required) + :type portals_category: PortalsCategory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_category', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_category_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_category_object_modify`") # noqa: E501 + # verify the required parameter 'portals_category' is set + if self.api_client.client_side_validation and ('portals_category' not in local_var_params or # noqa: E501 + local_var_params['portals_category'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_category` when calling `udm_portals_category_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_category_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_category_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_category' in local_var_params: + body_params = local_var_params['portals_category'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/category/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_category_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Portal categories object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_category_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_category_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Portal categories object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_category_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_category_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_category_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_category_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/category/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_category_object_search(self, **kwargs): # noqa: E501 + """Search for Portal categories objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsCategoryList + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_category_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_category_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Portal categories objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsCategoryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_category_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_portals_category_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_portals_category_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_portals_category_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_portals_category_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_portals_category_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsCategoryList", + } + + return self.api_client.call_api( + '/portals/category/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_category_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal category object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsCategory + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_category_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_category_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal category object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsCategory, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_category_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsCategory", + } + + return self.api_client.call_api( + '/portals/category/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_category_object_update(self, dn, portals_category, **kwargs): # noqa: E501 + """Modify an Portal category object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_update(dn, portals_category, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_category: (required) + :type portals_category: PortalsCategory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_category_object_update_with_http_info(dn, portals_category, **kwargs) # noqa: E501 + + def udm_portals_category_object_update_with_http_info(self, dn, portals_category, **kwargs): # noqa: E501 + """Modify an Portal category object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_category_object_update_with_http_info(dn, portals_category, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_category: (required) + :type portals_category: PortalsCategory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_category', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_category_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_category_object_update`") # noqa: E501 + # verify the required parameter 'portals_category' is set + if self.api_client.client_side_validation and ('portals_category' not in local_var_params or # noqa: E501 + local_var_params['portals_category'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_category` when calling `udm_portals_category_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_category_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_category_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_category' in local_var_params: + body_params = local_var_params['portals_category'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/category/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/portals_entry_api.py b/openapi_client_udm/api/portals_entry_api.py new file mode 100644 index 0000000..7a22cd7 --- /dev/null +++ b/openapi_client_udm/api/portals_entry_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PortalsEntryApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_portals_entry_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsEntry + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_entry_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_entry_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsEntry, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_entry_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_entry_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_entry_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_entry_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsEntry", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/entry/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_entry_object_create(self, portals_entry, **kwargs): # noqa: E501 + """Create a new Portal entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_create(portals_entry, async_req=True) + >>> result = thread.get() + + :param portals_entry: (required) + :type portals_entry: PortalsEntry + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_entry_object_create_with_http_info(portals_entry, **kwargs) # noqa: E501 + + def udm_portals_entry_object_create_with_http_info(self, portals_entry, **kwargs): # noqa: E501 + """Create a new Portal entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_create_with_http_info(portals_entry, async_req=True) + >>> result = thread.get() + + :param portals_entry: (required) + :type portals_entry: PortalsEntry + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'portals_entry', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_entry_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'portals_entry' is set + if self.api_client.client_side_validation and ('portals_entry' not in local_var_params or # noqa: E501 + local_var_params['portals_entry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_entry` when calling `udm_portals_entry_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_entry' in local_var_params: + body_params = local_var_params['portals_entry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/portals/entry/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_entry_object_modify(self, dn, portals_entry, **kwargs): # noqa: E501 + """Modify or move an Portal entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_modify(dn, portals_entry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_entry: (required) + :type portals_entry: PortalsEntry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_entry_object_modify_with_http_info(dn, portals_entry, **kwargs) # noqa: E501 + + def udm_portals_entry_object_modify_with_http_info(self, dn, portals_entry, **kwargs): # noqa: E501 + """Modify or move an Portal entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_modify_with_http_info(dn, portals_entry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_entry: (required) + :type portals_entry: PortalsEntry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_entry', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_entry_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_entry_object_modify`") # noqa: E501 + # verify the required parameter 'portals_entry' is set + if self.api_client.client_side_validation and ('portals_entry' not in local_var_params or # noqa: E501 + local_var_params['portals_entry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_entry` when calling `udm_portals_entry_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_entry_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_entry_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_entry' in local_var_params: + body_params = local_var_params['portals_entry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/entry/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_entry_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Portal entries object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_entry_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_entry_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Portal entries object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_entry_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_entry_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_entry_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_entry_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/entry/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_entry_object_search(self, **kwargs): # noqa: E501 + """Search for Portal entries objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsEntryList + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_entry_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_entry_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Portal entries objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsEntryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_entry_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_portals_entry_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_portals_entry_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_portals_entry_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_portals_entry_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_portals_entry_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsEntryList", + } + + return self.api_client.call_api( + '/portals/entry/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_entry_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal entry object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsEntry + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_entry_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_entry_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal entry object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsEntry, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_entry_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsEntry", + } + + return self.api_client.call_api( + '/portals/entry/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_entry_object_update(self, dn, portals_entry, **kwargs): # noqa: E501 + """Modify an Portal entry object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_update(dn, portals_entry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_entry: (required) + :type portals_entry: PortalsEntry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_entry_object_update_with_http_info(dn, portals_entry, **kwargs) # noqa: E501 + + def udm_portals_entry_object_update_with_http_info(self, dn, portals_entry, **kwargs): # noqa: E501 + """Modify an Portal entry object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_entry_object_update_with_http_info(dn, portals_entry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_entry: (required) + :type portals_entry: PortalsEntry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_entry', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_entry_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_entry_object_update`") # noqa: E501 + # verify the required parameter 'portals_entry' is set + if self.api_client.client_side_validation and ('portals_entry' not in local_var_params or # noqa: E501 + local_var_params['portals_entry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_entry` when calling `udm_portals_entry_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_entry_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_entry_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_entry' in local_var_params: + body_params = local_var_params['portals_entry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/entry/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/portals_folder_api.py b/openapi_client_udm/api/portals_folder_api.py new file mode 100644 index 0000000..a66f5fb --- /dev/null +++ b/openapi_client_udm/api/portals_folder_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PortalsFolderApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_portals_folder_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsFolder + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_folder_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_folder_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsFolder, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_folder_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_folder_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_folder_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_folder_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsFolder", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/folder/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_folder_object_create(self, portals_folder, **kwargs): # noqa: E501 + """Create a new Portal folder object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_create(portals_folder, async_req=True) + >>> result = thread.get() + + :param portals_folder: (required) + :type portals_folder: PortalsFolder + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_folder_object_create_with_http_info(portals_folder, **kwargs) # noqa: E501 + + def udm_portals_folder_object_create_with_http_info(self, portals_folder, **kwargs): # noqa: E501 + """Create a new Portal folder object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_create_with_http_info(portals_folder, async_req=True) + >>> result = thread.get() + + :param portals_folder: (required) + :type portals_folder: PortalsFolder + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'portals_folder', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_folder_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'portals_folder' is set + if self.api_client.client_side_validation and ('portals_folder' not in local_var_params or # noqa: E501 + local_var_params['portals_folder'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_folder` when calling `udm_portals_folder_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_folder' in local_var_params: + body_params = local_var_params['portals_folder'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/portals/folder/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_folder_object_modify(self, dn, portals_folder, **kwargs): # noqa: E501 + """Modify or move an Portal folder object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_modify(dn, portals_folder, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_folder: (required) + :type portals_folder: PortalsFolder + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_folder_object_modify_with_http_info(dn, portals_folder, **kwargs) # noqa: E501 + + def udm_portals_folder_object_modify_with_http_info(self, dn, portals_folder, **kwargs): # noqa: E501 + """Modify or move an Portal folder object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_modify_with_http_info(dn, portals_folder, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_folder: (required) + :type portals_folder: PortalsFolder + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_folder', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_folder_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_folder_object_modify`") # noqa: E501 + # verify the required parameter 'portals_folder' is set + if self.api_client.client_side_validation and ('portals_folder' not in local_var_params or # noqa: E501 + local_var_params['portals_folder'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_folder` when calling `udm_portals_folder_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_folder_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_folder_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_folder' in local_var_params: + body_params = local_var_params['portals_folder'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/folder/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_folder_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Portal folders object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_folder_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_folder_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Portal folders object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_folder_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_folder_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_folder_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_folder_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/folder/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_folder_object_search(self, **kwargs): # noqa: E501 + """Search for Portal folders objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsFolderList + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_folder_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_folder_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Portal folders objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsFolderList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_folder_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_portals_folder_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_portals_folder_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_portals_folder_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_portals_folder_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_portals_folder_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsFolderList", + } + + return self.api_client.call_api( + '/portals/folder/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_folder_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal folder object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsFolder + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_folder_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_folder_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal folder object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsFolder, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_folder_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsFolder", + } + + return self.api_client.call_api( + '/portals/folder/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_folder_object_update(self, dn, portals_folder, **kwargs): # noqa: E501 + """Modify an Portal folder object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_update(dn, portals_folder, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_folder: (required) + :type portals_folder: PortalsFolder + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_folder_object_update_with_http_info(dn, portals_folder, **kwargs) # noqa: E501 + + def udm_portals_folder_object_update_with_http_info(self, dn, portals_folder, **kwargs): # noqa: E501 + """Modify an Portal folder object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_folder_object_update_with_http_info(dn, portals_folder, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_folder: (required) + :type portals_folder: PortalsFolder + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_folder', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_folder_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_folder_object_update`") # noqa: E501 + # verify the required parameter 'portals_folder' is set + if self.api_client.client_side_validation and ('portals_folder' not in local_var_params or # noqa: E501 + local_var_params['portals_folder'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_folder` when calling `udm_portals_folder_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_folder_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_folder_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_folder' in local_var_params: + body_params = local_var_params['portals_folder'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/folder/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/portals_portal_api.py b/openapi_client_udm/api/portals_portal_api.py new file mode 100644 index 0000000..1812f10 --- /dev/null +++ b/openapi_client_udm/api/portals_portal_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class PortalsPortalApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_portals_portal_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsPortal + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_portal_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_portal_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsPortal, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_portal_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_portal_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_portal_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_portal_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsPortal", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/portal/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_portal_object_create(self, portals_portal, **kwargs): # noqa: E501 + """Create a new Portal object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_create(portals_portal, async_req=True) + >>> result = thread.get() + + :param portals_portal: (required) + :type portals_portal: PortalsPortal + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_portal_object_create_with_http_info(portals_portal, **kwargs) # noqa: E501 + + def udm_portals_portal_object_create_with_http_info(self, portals_portal, **kwargs): # noqa: E501 + """Create a new Portal object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_create_with_http_info(portals_portal, async_req=True) + >>> result = thread.get() + + :param portals_portal: (required) + :type portals_portal: PortalsPortal + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'portals_portal', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_portal_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'portals_portal' is set + if self.api_client.client_side_validation and ('portals_portal' not in local_var_params or # noqa: E501 + local_var_params['portals_portal'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_portal` when calling `udm_portals_portal_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_portal' in local_var_params: + body_params = local_var_params['portals_portal'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/portals/portal/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_portal_object_modify(self, dn, portals_portal, **kwargs): # noqa: E501 + """Modify or move an Portal object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_modify(dn, portals_portal, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_portal: (required) + :type portals_portal: PortalsPortal + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_portal_object_modify_with_http_info(dn, portals_portal, **kwargs) # noqa: E501 + + def udm_portals_portal_object_modify_with_http_info(self, dn, portals_portal, **kwargs): # noqa: E501 + """Modify or move an Portal object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_modify_with_http_info(dn, portals_portal, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_portal: (required) + :type portals_portal: PortalsPortal + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_portal', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_portal_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_portal_object_modify`") # noqa: E501 + # verify the required parameter 'portals_portal' is set + if self.api_client.client_side_validation and ('portals_portal' not in local_var_params or # noqa: E501 + local_var_params['portals_portal'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_portal` when calling `udm_portals_portal_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_portal_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_portal_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_portal' in local_var_params: + body_params = local_var_params['portals_portal'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/portals/portal/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_portal_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Portals object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_portal_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_portals_portal_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Portals object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_portal_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_portal_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_portal_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_portal_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/portal/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_portal_object_search(self, **kwargs): # noqa: E501 + """Search for Portals objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsPortalList + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_portal_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_portal_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Portals objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsPortalList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_portal_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_portals_portal_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_portals_portal_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_portals_portal_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_portals_portal_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_portals_portal_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsPortalList", + } + + return self.api_client.call_api( + '/portals/portal/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_portal_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: PortalsPortal + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_portal_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_portals_portal_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Portal object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(PortalsPortal, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_portal_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "PortalsPortal", + } + + return self.api_client.call_api( + '/portals/portal/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_portals_portal_object_update(self, dn, portals_portal, **kwargs): # noqa: E501 + """Modify an Portal object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_update(dn, portals_portal, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_portal: (required) + :type portals_portal: PortalsPortal + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_portals_portal_object_update_with_http_info(dn, portals_portal, **kwargs) # noqa: E501 + + def udm_portals_portal_object_update_with_http_info(self, dn, portals_portal, **kwargs): # noqa: E501 + """Modify an Portal object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_portals_portal_object_update_with_http_info(dn, portals_portal, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param portals_portal: (required) + :type portals_portal: PortalsPortal + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'portals_portal', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_portals_portal_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_portals_portal_object_update`") # noqa: E501 + # verify the required parameter 'portals_portal' is set + if self.api_client.client_side_validation and ('portals_portal' not in local_var_params or # noqa: E501 + local_var_params['portals_portal'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `portals_portal` when calling `udm_portals_portal_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_portal_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_portals_portal_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'portals_portal' in local_var_params: + body_params = local_var_params['portals_portal'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/portals/portal/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/saml_idpconfig_api.py b/openapi_client_udm/api/saml_idpconfig_api.py new file mode 100644 index 0000000..f6e6650 --- /dev/null +++ b/openapi_client_udm/api/saml_idpconfig_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SamlIdpconfigApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_saml_idpconfig_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the SAML IdP configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SamlIdpconfig + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_idpconfig_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_saml_idpconfig_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the SAML IdP configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SamlIdpconfig, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_idpconfig_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_saml_idpconfig_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_idpconfig_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_idpconfig_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SamlIdpconfig", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/saml/idpconfig/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_idpconfig_object_create(self, saml_idpconfig, **kwargs): # noqa: E501 + """Create a new SAML IdP configuration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_create(saml_idpconfig, async_req=True) + >>> result = thread.get() + + :param saml_idpconfig: (required) + :type saml_idpconfig: SamlIdpconfig + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_idpconfig_object_create_with_http_info(saml_idpconfig, **kwargs) # noqa: E501 + + def udm_saml_idpconfig_object_create_with_http_info(self, saml_idpconfig, **kwargs): # noqa: E501 + """Create a new SAML IdP configuration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_create_with_http_info(saml_idpconfig, async_req=True) + >>> result = thread.get() + + :param saml_idpconfig: (required) + :type saml_idpconfig: SamlIdpconfig + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'saml_idpconfig', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_idpconfig_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'saml_idpconfig' is set + if self.api_client.client_side_validation and ('saml_idpconfig' not in local_var_params or # noqa: E501 + local_var_params['saml_idpconfig'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `saml_idpconfig` when calling `udm_saml_idpconfig_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'saml_idpconfig' in local_var_params: + body_params = local_var_params['saml_idpconfig'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/saml/idpconfig/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_idpconfig_object_modify(self, dn, saml_idpconfig, **kwargs): # noqa: E501 + """Modify or move an SAML IdP configuration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_modify(dn, saml_idpconfig, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param saml_idpconfig: (required) + :type saml_idpconfig: SamlIdpconfig + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_idpconfig_object_modify_with_http_info(dn, saml_idpconfig, **kwargs) # noqa: E501 + + def udm_saml_idpconfig_object_modify_with_http_info(self, dn, saml_idpconfig, **kwargs): # noqa: E501 + """Modify or move an SAML IdP configuration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_modify_with_http_info(dn, saml_idpconfig, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param saml_idpconfig: (required) + :type saml_idpconfig: SamlIdpconfig + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'saml_idpconfig', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_idpconfig_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_saml_idpconfig_object_modify`") # noqa: E501 + # verify the required parameter 'saml_idpconfig' is set + if self.api_client.client_side_validation and ('saml_idpconfig' not in local_var_params or # noqa: E501 + local_var_params['saml_idpconfig'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `saml_idpconfig` when calling `udm_saml_idpconfig_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_idpconfig_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_idpconfig_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'saml_idpconfig' in local_var_params: + body_params = local_var_params['saml_idpconfig'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/saml/idpconfig/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_idpconfig_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a SAML IdP configurations object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_idpconfig_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_saml_idpconfig_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a SAML IdP configurations object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_idpconfig_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_saml_idpconfig_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_idpconfig_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_idpconfig_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/saml/idpconfig/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_idpconfig_object_search(self, **kwargs): # noqa: E501 + """Search for SAML IdP configurations objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SamlIdpconfigList + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_idpconfig_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_saml_idpconfig_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for SAML IdP configurations objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SamlIdpconfigList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_idpconfig_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_saml_idpconfig_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_saml_idpconfig_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_saml_idpconfig_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_saml_idpconfig_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_saml_idpconfig_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SamlIdpconfigList", + } + + return self.api_client.call_api( + '/saml/idpconfig/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_idpconfig_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an SAML IdP configuration object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SamlIdpconfig + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_idpconfig_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_saml_idpconfig_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an SAML IdP configuration object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SamlIdpconfig, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_idpconfig_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SamlIdpconfig", + } + + return self.api_client.call_api( + '/saml/idpconfig/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_idpconfig_object_update(self, dn, saml_idpconfig, **kwargs): # noqa: E501 + """Modify an SAML IdP configuration object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_update(dn, saml_idpconfig, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param saml_idpconfig: (required) + :type saml_idpconfig: SamlIdpconfig + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_idpconfig_object_update_with_http_info(dn, saml_idpconfig, **kwargs) # noqa: E501 + + def udm_saml_idpconfig_object_update_with_http_info(self, dn, saml_idpconfig, **kwargs): # noqa: E501 + """Modify an SAML IdP configuration object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_idpconfig_object_update_with_http_info(dn, saml_idpconfig, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param saml_idpconfig: (required) + :type saml_idpconfig: SamlIdpconfig + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'saml_idpconfig', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_idpconfig_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_saml_idpconfig_object_update`") # noqa: E501 + # verify the required parameter 'saml_idpconfig' is set + if self.api_client.client_side_validation and ('saml_idpconfig' not in local_var_params or # noqa: E501 + local_var_params['saml_idpconfig'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `saml_idpconfig` when calling `udm_saml_idpconfig_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_idpconfig_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_idpconfig_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'saml_idpconfig' in local_var_params: + body_params = local_var_params['saml_idpconfig'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/saml/idpconfig/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/saml_serviceprovider_api.py b/openapi_client_udm/api/saml_serviceprovider_api.py new file mode 100644 index 0000000..472f808 --- /dev/null +++ b/openapi_client_udm/api/saml_serviceprovider_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SamlServiceproviderApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_saml_serviceprovider_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the SAML service provider object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SamlServiceprovider + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_serviceprovider_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_saml_serviceprovider_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the SAML service provider object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SamlServiceprovider, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_serviceprovider_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_saml_serviceprovider_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_serviceprovider_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_serviceprovider_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SamlServiceprovider", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/saml/serviceprovider/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_serviceprovider_object_create(self, saml_serviceprovider, **kwargs): # noqa: E501 + """Create a new SAML service provider object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_create(saml_serviceprovider, async_req=True) + >>> result = thread.get() + + :param saml_serviceprovider: (required) + :type saml_serviceprovider: SamlServiceprovider + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_serviceprovider_object_create_with_http_info(saml_serviceprovider, **kwargs) # noqa: E501 + + def udm_saml_serviceprovider_object_create_with_http_info(self, saml_serviceprovider, **kwargs): # noqa: E501 + """Create a new SAML service provider object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_create_with_http_info(saml_serviceprovider, async_req=True) + >>> result = thread.get() + + :param saml_serviceprovider: (required) + :type saml_serviceprovider: SamlServiceprovider + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'saml_serviceprovider', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_serviceprovider_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'saml_serviceprovider' is set + if self.api_client.client_side_validation and ('saml_serviceprovider' not in local_var_params or # noqa: E501 + local_var_params['saml_serviceprovider'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `saml_serviceprovider` when calling `udm_saml_serviceprovider_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'saml_serviceprovider' in local_var_params: + body_params = local_var_params['saml_serviceprovider'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/saml/serviceprovider/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_serviceprovider_object_modify(self, dn, saml_serviceprovider, **kwargs): # noqa: E501 + """Modify or move an SAML service provider object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_modify(dn, saml_serviceprovider, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param saml_serviceprovider: (required) + :type saml_serviceprovider: SamlServiceprovider + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_serviceprovider_object_modify_with_http_info(dn, saml_serviceprovider, **kwargs) # noqa: E501 + + def udm_saml_serviceprovider_object_modify_with_http_info(self, dn, saml_serviceprovider, **kwargs): # noqa: E501 + """Modify or move an SAML service provider object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_modify_with_http_info(dn, saml_serviceprovider, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param saml_serviceprovider: (required) + :type saml_serviceprovider: SamlServiceprovider + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'saml_serviceprovider', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_serviceprovider_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_saml_serviceprovider_object_modify`") # noqa: E501 + # verify the required parameter 'saml_serviceprovider' is set + if self.api_client.client_side_validation and ('saml_serviceprovider' not in local_var_params or # noqa: E501 + local_var_params['saml_serviceprovider'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `saml_serviceprovider` when calling `udm_saml_serviceprovider_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_serviceprovider_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_serviceprovider_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'saml_serviceprovider' in local_var_params: + body_params = local_var_params['saml_serviceprovider'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/saml/serviceprovider/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_serviceprovider_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a SAML service providers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_serviceprovider_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_saml_serviceprovider_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a SAML service providers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_serviceprovider_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_saml_serviceprovider_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_serviceprovider_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_serviceprovider_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/saml/serviceprovider/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_serviceprovider_object_search(self, **kwargs): # noqa: E501 + """Search for SAML service providers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SamlServiceproviderList + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_serviceprovider_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_saml_serviceprovider_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for SAML service providers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SamlServiceproviderList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_serviceprovider_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_saml_serviceprovider_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_saml_serviceprovider_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_saml_serviceprovider_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_saml_serviceprovider_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_saml_serviceprovider_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SamlServiceproviderList", + } + + return self.api_client.call_api( + '/saml/serviceprovider/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_serviceprovider_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an SAML service provider object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SamlServiceprovider + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_serviceprovider_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_saml_serviceprovider_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an SAML service provider object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SamlServiceprovider, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_serviceprovider_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SamlServiceprovider", + } + + return self.api_client.call_api( + '/saml/serviceprovider/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_saml_serviceprovider_object_update(self, dn, saml_serviceprovider, **kwargs): # noqa: E501 + """Modify an SAML service provider object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_update(dn, saml_serviceprovider, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param saml_serviceprovider: (required) + :type saml_serviceprovider: SamlServiceprovider + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_saml_serviceprovider_object_update_with_http_info(dn, saml_serviceprovider, **kwargs) # noqa: E501 + + def udm_saml_serviceprovider_object_update_with_http_info(self, dn, saml_serviceprovider, **kwargs): # noqa: E501 + """Modify an SAML service provider object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_saml_serviceprovider_object_update_with_http_info(dn, saml_serviceprovider, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param saml_serviceprovider: (required) + :type saml_serviceprovider: SamlServiceprovider + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'saml_serviceprovider', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_saml_serviceprovider_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_saml_serviceprovider_object_update`") # noqa: E501 + # verify the required parameter 'saml_serviceprovider' is set + if self.api_client.client_side_validation and ('saml_serviceprovider' not in local_var_params or # noqa: E501 + local_var_params['saml_serviceprovider'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `saml_serviceprovider` when calling `udm_saml_serviceprovider_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_serviceprovider_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_saml_serviceprovider_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'saml_serviceprovider' in local_var_params: + body_params = local_var_params['saml_serviceprovider'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/saml/serviceprovider/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_cn_api.py b/openapi_client_udm/api/settings_cn_api.py new file mode 100644 index 0000000..4638680 --- /dev/null +++ b/openapi_client_udm/api/settings_cn_api.py @@ -0,0 +1,474 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsCnApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_cn_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Univention Setting object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_cn_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsCn + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_cn_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_cn_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Univention Setting object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_cn_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsCn, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_cn_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_cn_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_cn_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_cn_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsCn", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/cn/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_cn_object_search(self, **kwargs): # noqa: E501 + """Search for Univention Settings objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_cn_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsCnList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_cn_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_cn_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Univention Settings objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_cn_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsCnList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_cn_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_cn_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_cn_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_cn_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_cn_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_cn_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsCnList", + } + + return self.api_client.call_api( + '/settings/cn/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_data_api.py b/openapi_client_udm/api/settings_data_api.py new file mode 100644 index 0000000..759c0c3 --- /dev/null +++ b/openapi_client_udm/api/settings_data_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsDataApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_data_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Data object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsData + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_data_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_data_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Data object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsData, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_data_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_data_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_data_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_data_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsData", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/data/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_data_object_create(self, settings_data, **kwargs): # noqa: E501 + """Create a new Data object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_create(settings_data, async_req=True) + >>> result = thread.get() + + :param settings_data: (required) + :type settings_data: SettingsData + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_data_object_create_with_http_info(settings_data, **kwargs) # noqa: E501 + + def udm_settings_data_object_create_with_http_info(self, settings_data, **kwargs): # noqa: E501 + """Create a new Data object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_create_with_http_info(settings_data, async_req=True) + >>> result = thread.get() + + :param settings_data: (required) + :type settings_data: SettingsData + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_data', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_data_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_data' is set + if self.api_client.client_side_validation and ('settings_data' not in local_var_params or # noqa: E501 + local_var_params['settings_data'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_data` when calling `udm_settings_data_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_data' in local_var_params: + body_params = local_var_params['settings_data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/data/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_data_object_modify(self, dn, settings_data, **kwargs): # noqa: E501 + """Modify or move an Data object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_modify(dn, settings_data, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_data: (required) + :type settings_data: SettingsData + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_data_object_modify_with_http_info(dn, settings_data, **kwargs) # noqa: E501 + + def udm_settings_data_object_modify_with_http_info(self, dn, settings_data, **kwargs): # noqa: E501 + """Modify or move an Data object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_modify_with_http_info(dn, settings_data, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_data: (required) + :type settings_data: SettingsData + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_data', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_data_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_data_object_modify`") # noqa: E501 + # verify the required parameter 'settings_data' is set + if self.api_client.client_side_validation and ('settings_data' not in local_var_params or # noqa: E501 + local_var_params['settings_data'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_data` when calling `udm_settings_data_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_data_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_data_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_data' in local_var_params: + body_params = local_var_params['settings_data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/data/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_data_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Data object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_data_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_data_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Data object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_data_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_data_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_data_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_data_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/data/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_data_object_search(self, **kwargs): # noqa: E501 + """Search for Data objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsDataList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_data_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_data_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Data objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsDataList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_data_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_data_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_data_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_data_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_data_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_data_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsDataList", + } + + return self.api_client.call_api( + '/settings/data/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_data_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Data object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsData + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_data_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_data_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Data object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsData, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_data_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsData", + } + + return self.api_client.call_api( + '/settings/data/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_data_object_update(self, dn, settings_data, **kwargs): # noqa: E501 + """Modify an Data object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_update(dn, settings_data, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_data: (required) + :type settings_data: SettingsData + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_data_object_update_with_http_info(dn, settings_data, **kwargs) # noqa: E501 + + def udm_settings_data_object_update_with_http_info(self, dn, settings_data, **kwargs): # noqa: E501 + """Modify an Data object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_data_object_update_with_http_info(dn, settings_data, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_data: (required) + :type settings_data: SettingsData + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_data', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_data_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_data_object_update`") # noqa: E501 + # verify the required parameter 'settings_data' is set + if self.api_client.client_side_validation and ('settings_data' not in local_var_params or # noqa: E501 + local_var_params['settings_data'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_data` when calling `udm_settings_data_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_data_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_data_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_data' in local_var_params: + body_params = local_var_params['settings_data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/data/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_default_api.py b/openapi_client_udm/api/settings_default_api.py new file mode 100644 index 0000000..de11fa6 --- /dev/null +++ b/openapi_client_udm/api/settings_default_api.py @@ -0,0 +1,897 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsDefaultApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_default_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Default preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_default_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsDefault + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_default_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_default_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Default preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_default_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsDefault, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_default_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_default_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_default_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_default_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsDefault", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/default/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_default_object_modify(self, dn, settings_default, **kwargs): # noqa: E501 + """Modify or move an Default preference object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_default_object_modify(dn, settings_default, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_default: (required) + :type settings_default: SettingsDefault + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_default_object_modify_with_http_info(dn, settings_default, **kwargs) # noqa: E501 + + def udm_settings_default_object_modify_with_http_info(self, dn, settings_default, **kwargs): # noqa: E501 + """Modify or move an Default preference object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_default_object_modify_with_http_info(dn, settings_default, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_default: (required) + :type settings_default: SettingsDefault + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_default', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_default_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_default_object_modify`") # noqa: E501 + # verify the required parameter 'settings_default' is set + if self.api_client.client_side_validation and ('settings_default' not in local_var_params or # noqa: E501 + local_var_params['settings_default'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_default` when calling `udm_settings_default_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_default_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_default_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_default' in local_var_params: + body_params = local_var_params['settings_default'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/default/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_default_object_search(self, **kwargs): # noqa: E501 + """Search for Default preferences objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_default_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsDefaultList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_default_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_default_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Default preferences objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_default_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsDefaultList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_default_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_default_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_default_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_default_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_default_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_default_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsDefaultList", + } + + return self.api_client.call_api( + '/settings/default/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_default_object_update(self, dn, settings_default, **kwargs): # noqa: E501 + """Modify an Default preference object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_default_object_update(dn, settings_default, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_default: (required) + :type settings_default: SettingsDefault + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_default_object_update_with_http_info(dn, settings_default, **kwargs) # noqa: E501 + + def udm_settings_default_object_update_with_http_info(self, dn, settings_default, **kwargs): # noqa: E501 + """Modify an Default preference object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_default_object_update_with_http_info(dn, settings_default, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_default: (required) + :type settings_default: SettingsDefault + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_default', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_default_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_default_object_update`") # noqa: E501 + # verify the required parameter 'settings_default' is set + if self.api_client.client_side_validation and ('settings_default' not in local_var_params or # noqa: E501 + local_var_params['settings_default'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_default` when calling `udm_settings_default_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_default_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_default_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_default' in local_var_params: + body_params = local_var_params['settings_default'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/default/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_directory_api.py b/openapi_client_udm/api/settings_directory_api.py new file mode 100644 index 0000000..0ac55fc --- /dev/null +++ b/openapi_client_udm/api/settings_directory_api.py @@ -0,0 +1,897 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsDirectoryApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_directory_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Default container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_directory_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsDirectory + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_directory_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_directory_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Default container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_directory_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsDirectory, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_directory_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_directory_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_directory_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_directory_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsDirectory", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/directory/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_directory_object_modify(self, dn, settings_directory, **kwargs): # noqa: E501 + """Modify or move an Default container object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_directory_object_modify(dn, settings_directory, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_directory: (required) + :type settings_directory: SettingsDirectory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_directory_object_modify_with_http_info(dn, settings_directory, **kwargs) # noqa: E501 + + def udm_settings_directory_object_modify_with_http_info(self, dn, settings_directory, **kwargs): # noqa: E501 + """Modify or move an Default container object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_directory_object_modify_with_http_info(dn, settings_directory, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_directory: (required) + :type settings_directory: SettingsDirectory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_directory', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_directory_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_directory_object_modify`") # noqa: E501 + # verify the required parameter 'settings_directory' is set + if self.api_client.client_side_validation and ('settings_directory' not in local_var_params or # noqa: E501 + local_var_params['settings_directory'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_directory` when calling `udm_settings_directory_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_directory_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_directory_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_directory' in local_var_params: + body_params = local_var_params['settings_directory'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/directory/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_directory_object_search(self, **kwargs): # noqa: E501 + """Search for Default containers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_directory_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsDirectoryList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_directory_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_directory_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Default containers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_directory_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsDirectoryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_directory_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_directory_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_directory_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_directory_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_directory_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_directory_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsDirectoryList", + } + + return self.api_client.call_api( + '/settings/directory/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_directory_object_update(self, dn, settings_directory, **kwargs): # noqa: E501 + """Modify an Default container object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_directory_object_update(dn, settings_directory, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_directory: (required) + :type settings_directory: SettingsDirectory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_directory_object_update_with_http_info(dn, settings_directory, **kwargs) # noqa: E501 + + def udm_settings_directory_object_update_with_http_info(self, dn, settings_directory, **kwargs): # noqa: E501 + """Modify an Default container object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_directory_object_update_with_http_info(dn, settings_directory, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_directory: (required) + :type settings_directory: SettingsDirectory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_directory', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_directory_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_directory_object_update`") # noqa: E501 + # verify the required parameter 'settings_directory' is set + if self.api_client.client_side_validation and ('settings_directory' not in local_var_params or # noqa: E501 + local_var_params['settings_directory'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_directory` when calling `udm_settings_directory_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_directory_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_directory_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_directory' in local_var_params: + body_params = local_var_params['settings_directory'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/directory/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_extended_attribute_api.py b/openapi_client_udm/api/settings_extended_attribute_api.py new file mode 100644 index 0000000..586d912 --- /dev/null +++ b/openapi_client_udm/api/settings_extended_attribute_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsExtendedAttributeApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_extended_attribute_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Extended attribute object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsExtendedAttribute + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_attribute_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_extended_attribute_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Extended attribute object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsExtendedAttribute, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_attribute_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_extended_attribute_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_attribute_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_attribute_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsExtendedAttribute", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/extended_attribute/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_attribute_object_create(self, settings_extended_attribute, **kwargs): # noqa: E501 + """Create a new Extended attribute object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_create(settings_extended_attribute, async_req=True) + >>> result = thread.get() + + :param settings_extended_attribute: (required) + :type settings_extended_attribute: SettingsExtendedAttribute + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_attribute_object_create_with_http_info(settings_extended_attribute, **kwargs) # noqa: E501 + + def udm_settings_extended_attribute_object_create_with_http_info(self, settings_extended_attribute, **kwargs): # noqa: E501 + """Create a new Extended attribute object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_create_with_http_info(settings_extended_attribute, async_req=True) + >>> result = thread.get() + + :param settings_extended_attribute: (required) + :type settings_extended_attribute: SettingsExtendedAttribute + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_extended_attribute', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_attribute_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_extended_attribute' is set + if self.api_client.client_side_validation and ('settings_extended_attribute' not in local_var_params or # noqa: E501 + local_var_params['settings_extended_attribute'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_extended_attribute` when calling `udm_settings_extended_attribute_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_extended_attribute' in local_var_params: + body_params = local_var_params['settings_extended_attribute'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/extended_attribute/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_attribute_object_modify(self, dn, settings_extended_attribute, **kwargs): # noqa: E501 + """Modify or move an Extended attribute object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_modify(dn, settings_extended_attribute, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_extended_attribute: (required) + :type settings_extended_attribute: SettingsExtendedAttribute + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_attribute_object_modify_with_http_info(dn, settings_extended_attribute, **kwargs) # noqa: E501 + + def udm_settings_extended_attribute_object_modify_with_http_info(self, dn, settings_extended_attribute, **kwargs): # noqa: E501 + """Modify or move an Extended attribute object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_modify_with_http_info(dn, settings_extended_attribute, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_extended_attribute: (required) + :type settings_extended_attribute: SettingsExtendedAttribute + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_extended_attribute', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_attribute_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_extended_attribute_object_modify`") # noqa: E501 + # verify the required parameter 'settings_extended_attribute' is set + if self.api_client.client_side_validation and ('settings_extended_attribute' not in local_var_params or # noqa: E501 + local_var_params['settings_extended_attribute'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_extended_attribute` when calling `udm_settings_extended_attribute_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_attribute_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_attribute_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_extended_attribute' in local_var_params: + body_params = local_var_params['settings_extended_attribute'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/extended_attribute/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_attribute_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Extended attributes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_attribute_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_extended_attribute_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Extended attributes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_attribute_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_extended_attribute_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_attribute_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_attribute_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/extended_attribute/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_attribute_object_search(self, **kwargs): # noqa: E501 + """Search for Extended attributes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsExtendedAttributeList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_attribute_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_extended_attribute_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Extended attributes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsExtendedAttributeList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_attribute_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_extended_attribute_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_extended_attribute_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_extended_attribute_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_extended_attribute_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_extended_attribute_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsExtendedAttributeList", + } + + return self.api_client.call_api( + '/settings/extended_attribute/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_attribute_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Extended attribute object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsExtendedAttribute + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_attribute_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_extended_attribute_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Extended attribute object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsExtendedAttribute, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_attribute_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsExtendedAttribute", + } + + return self.api_client.call_api( + '/settings/extended_attribute/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_attribute_object_update(self, dn, settings_extended_attribute, **kwargs): # noqa: E501 + """Modify an Extended attribute object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_update(dn, settings_extended_attribute, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_extended_attribute: (required) + :type settings_extended_attribute: SettingsExtendedAttribute + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_attribute_object_update_with_http_info(dn, settings_extended_attribute, **kwargs) # noqa: E501 + + def udm_settings_extended_attribute_object_update_with_http_info(self, dn, settings_extended_attribute, **kwargs): # noqa: E501 + """Modify an Extended attribute object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_attribute_object_update_with_http_info(dn, settings_extended_attribute, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_extended_attribute: (required) + :type settings_extended_attribute: SettingsExtendedAttribute + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_extended_attribute', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_attribute_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_extended_attribute_object_update`") # noqa: E501 + # verify the required parameter 'settings_extended_attribute' is set + if self.api_client.client_side_validation and ('settings_extended_attribute' not in local_var_params or # noqa: E501 + local_var_params['settings_extended_attribute'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_extended_attribute` when calling `udm_settings_extended_attribute_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_attribute_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_attribute_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_extended_attribute' in local_var_params: + body_params = local_var_params['settings_extended_attribute'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/extended_attribute/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_extended_options_api.py b/openapi_client_udm/api/settings_extended_options_api.py new file mode 100644 index 0000000..1eb91b6 --- /dev/null +++ b/openapi_client_udm/api/settings_extended_options_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsExtendedOptionsApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_extended_options_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Extended option object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsExtendedOptions + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_options_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_extended_options_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Extended option object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsExtendedOptions, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_options_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_extended_options_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_options_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_options_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsExtendedOptions", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/extended_options/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_options_object_create(self, settings_extended_options, **kwargs): # noqa: E501 + """Create a new Extended option object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_create(settings_extended_options, async_req=True) + >>> result = thread.get() + + :param settings_extended_options: (required) + :type settings_extended_options: SettingsExtendedOptions + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_options_object_create_with_http_info(settings_extended_options, **kwargs) # noqa: E501 + + def udm_settings_extended_options_object_create_with_http_info(self, settings_extended_options, **kwargs): # noqa: E501 + """Create a new Extended option object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_create_with_http_info(settings_extended_options, async_req=True) + >>> result = thread.get() + + :param settings_extended_options: (required) + :type settings_extended_options: SettingsExtendedOptions + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_extended_options', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_options_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_extended_options' is set + if self.api_client.client_side_validation and ('settings_extended_options' not in local_var_params or # noqa: E501 + local_var_params['settings_extended_options'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_extended_options` when calling `udm_settings_extended_options_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_extended_options' in local_var_params: + body_params = local_var_params['settings_extended_options'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/extended_options/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_options_object_modify(self, dn, settings_extended_options, **kwargs): # noqa: E501 + """Modify or move an Extended option object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_modify(dn, settings_extended_options, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_extended_options: (required) + :type settings_extended_options: SettingsExtendedOptions + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_options_object_modify_with_http_info(dn, settings_extended_options, **kwargs) # noqa: E501 + + def udm_settings_extended_options_object_modify_with_http_info(self, dn, settings_extended_options, **kwargs): # noqa: E501 + """Modify or move an Extended option object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_modify_with_http_info(dn, settings_extended_options, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_extended_options: (required) + :type settings_extended_options: SettingsExtendedOptions + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_extended_options', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_options_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_extended_options_object_modify`") # noqa: E501 + # verify the required parameter 'settings_extended_options' is set + if self.api_client.client_side_validation and ('settings_extended_options' not in local_var_params or # noqa: E501 + local_var_params['settings_extended_options'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_extended_options` when calling `udm_settings_extended_options_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_options_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_options_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_extended_options' in local_var_params: + body_params = local_var_params['settings_extended_options'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/extended_options/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_options_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Extended options object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_options_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_extended_options_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Extended options object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_options_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_extended_options_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_options_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_options_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/extended_options/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_options_object_search(self, **kwargs): # noqa: E501 + """Search for Extended options objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsExtendedOptionsList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_options_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_extended_options_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Extended options objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsExtendedOptionsList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_options_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_extended_options_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_extended_options_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_extended_options_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_extended_options_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_extended_options_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsExtendedOptionsList", + } + + return self.api_client.call_api( + '/settings/extended_options/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_options_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Extended option object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsExtendedOptions + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_options_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_extended_options_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Extended option object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsExtendedOptions, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_options_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsExtendedOptions", + } + + return self.api_client.call_api( + '/settings/extended_options/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_extended_options_object_update(self, dn, settings_extended_options, **kwargs): # noqa: E501 + """Modify an Extended option object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_update(dn, settings_extended_options, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_extended_options: (required) + :type settings_extended_options: SettingsExtendedOptions + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_extended_options_object_update_with_http_info(dn, settings_extended_options, **kwargs) # noqa: E501 + + def udm_settings_extended_options_object_update_with_http_info(self, dn, settings_extended_options, **kwargs): # noqa: E501 + """Modify an Extended option object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_extended_options_object_update_with_http_info(dn, settings_extended_options, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_extended_options: (required) + :type settings_extended_options: SettingsExtendedOptions + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_extended_options', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_extended_options_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_extended_options_object_update`") # noqa: E501 + # verify the required parameter 'settings_extended_options' is set + if self.api_client.client_side_validation and ('settings_extended_options' not in local_var_params or # noqa: E501 + local_var_params['settings_extended_options'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_extended_options` when calling `udm_settings_extended_options_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_options_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_extended_options_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_extended_options' in local_var_params: + body_params = local_var_params['settings_extended_options'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/extended_options/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_ldapacl_api.py b/openapi_client_udm/api/settings_ldapacl_api.py new file mode 100644 index 0000000..6a1cbaf --- /dev/null +++ b/openapi_client_udm/api/settings_ldapacl_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsLdapaclApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_ldapacl_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the LDAP ACL Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLdapacl + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapacl_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_ldapacl_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the LDAP ACL Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLdapacl, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapacl_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_ldapacl_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapacl_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapacl_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLdapacl", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/ldapacl/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapacl_object_create(self, settings_ldapacl, **kwargs): # noqa: E501 + """Create a new LDAP ACL Extension object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_create(settings_ldapacl, async_req=True) + >>> result = thread.get() + + :param settings_ldapacl: (required) + :type settings_ldapacl: SettingsLdapacl + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapacl_object_create_with_http_info(settings_ldapacl, **kwargs) # noqa: E501 + + def udm_settings_ldapacl_object_create_with_http_info(self, settings_ldapacl, **kwargs): # noqa: E501 + """Create a new LDAP ACL Extension object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_create_with_http_info(settings_ldapacl, async_req=True) + >>> result = thread.get() + + :param settings_ldapacl: (required) + :type settings_ldapacl: SettingsLdapacl + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_ldapacl', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapacl_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_ldapacl' is set + if self.api_client.client_side_validation and ('settings_ldapacl' not in local_var_params or # noqa: E501 + local_var_params['settings_ldapacl'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_ldapacl` when calling `udm_settings_ldapacl_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_ldapacl' in local_var_params: + body_params = local_var_params['settings_ldapacl'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/ldapacl/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapacl_object_modify(self, dn, settings_ldapacl, **kwargs): # noqa: E501 + """Modify or move an LDAP ACL Extension object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_modify(dn, settings_ldapacl, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_ldapacl: (required) + :type settings_ldapacl: SettingsLdapacl + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapacl_object_modify_with_http_info(dn, settings_ldapacl, **kwargs) # noqa: E501 + + def udm_settings_ldapacl_object_modify_with_http_info(self, dn, settings_ldapacl, **kwargs): # noqa: E501 + """Modify or move an LDAP ACL Extension object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_modify_with_http_info(dn, settings_ldapacl, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_ldapacl: (required) + :type settings_ldapacl: SettingsLdapacl + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_ldapacl', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapacl_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_ldapacl_object_modify`") # noqa: E501 + # verify the required parameter 'settings_ldapacl' is set + if self.api_client.client_side_validation and ('settings_ldapacl' not in local_var_params or # noqa: E501 + local_var_params['settings_ldapacl'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_ldapacl` when calling `udm_settings_ldapacl_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapacl_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapacl_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_ldapacl' in local_var_params: + body_params = local_var_params['settings_ldapacl'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/ldapacl/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapacl_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a LDAP ACL Extensions object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapacl_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_ldapacl_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a LDAP ACL Extensions object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapacl_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_ldapacl_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapacl_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapacl_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/ldapacl/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapacl_object_search(self, **kwargs): # noqa: E501 + """Search for LDAP ACL Extensions objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLdapaclList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapacl_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_ldapacl_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for LDAP ACL Extensions objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLdapaclList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapacl_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_ldapacl_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_ldapacl_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_ldapacl_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_ldapacl_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_ldapacl_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLdapaclList", + } + + return self.api_client.call_api( + '/settings/ldapacl/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapacl_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an LDAP ACL Extension object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLdapacl + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapacl_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_ldapacl_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an LDAP ACL Extension object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLdapacl, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapacl_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLdapacl", + } + + return self.api_client.call_api( + '/settings/ldapacl/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapacl_object_update(self, dn, settings_ldapacl, **kwargs): # noqa: E501 + """Modify an LDAP ACL Extension object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_update(dn, settings_ldapacl, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_ldapacl: (required) + :type settings_ldapacl: SettingsLdapacl + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapacl_object_update_with_http_info(dn, settings_ldapacl, **kwargs) # noqa: E501 + + def udm_settings_ldapacl_object_update_with_http_info(self, dn, settings_ldapacl, **kwargs): # noqa: E501 + """Modify an LDAP ACL Extension object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapacl_object_update_with_http_info(dn, settings_ldapacl, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_ldapacl: (required) + :type settings_ldapacl: SettingsLdapacl + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_ldapacl', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapacl_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_ldapacl_object_update`") # noqa: E501 + # verify the required parameter 'settings_ldapacl' is set + if self.api_client.client_side_validation and ('settings_ldapacl' not in local_var_params or # noqa: E501 + local_var_params['settings_ldapacl'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_ldapacl` when calling `udm_settings_ldapacl_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapacl_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapacl_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_ldapacl' in local_var_params: + body_params = local_var_params['settings_ldapacl'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/ldapacl/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_ldapschema_api.py b/openapi_client_udm/api/settings_ldapschema_api.py new file mode 100644 index 0000000..4d735ff --- /dev/null +++ b/openapi_client_udm/api/settings_ldapschema_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsLdapschemaApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_ldapschema_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the LDAP Schema Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLdapschema + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapschema_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_ldapschema_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the LDAP Schema Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLdapschema, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapschema_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_ldapschema_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapschema_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapschema_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLdapschema", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/ldapschema/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapschema_object_create(self, settings_ldapschema, **kwargs): # noqa: E501 + """Create a new LDAP Schema Extension object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_create(settings_ldapschema, async_req=True) + >>> result = thread.get() + + :param settings_ldapschema: (required) + :type settings_ldapschema: SettingsLdapschema + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapschema_object_create_with_http_info(settings_ldapschema, **kwargs) # noqa: E501 + + def udm_settings_ldapschema_object_create_with_http_info(self, settings_ldapschema, **kwargs): # noqa: E501 + """Create a new LDAP Schema Extension object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_create_with_http_info(settings_ldapschema, async_req=True) + >>> result = thread.get() + + :param settings_ldapschema: (required) + :type settings_ldapschema: SettingsLdapschema + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_ldapschema', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapschema_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_ldapschema' is set + if self.api_client.client_side_validation and ('settings_ldapschema' not in local_var_params or # noqa: E501 + local_var_params['settings_ldapschema'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_ldapschema` when calling `udm_settings_ldapschema_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_ldapschema' in local_var_params: + body_params = local_var_params['settings_ldapschema'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/ldapschema/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapschema_object_modify(self, dn, settings_ldapschema, **kwargs): # noqa: E501 + """Modify or move an LDAP Schema Extension object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_modify(dn, settings_ldapschema, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_ldapschema: (required) + :type settings_ldapschema: SettingsLdapschema + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapschema_object_modify_with_http_info(dn, settings_ldapschema, **kwargs) # noqa: E501 + + def udm_settings_ldapschema_object_modify_with_http_info(self, dn, settings_ldapschema, **kwargs): # noqa: E501 + """Modify or move an LDAP Schema Extension object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_modify_with_http_info(dn, settings_ldapschema, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_ldapschema: (required) + :type settings_ldapschema: SettingsLdapschema + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_ldapschema', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapschema_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_ldapschema_object_modify`") # noqa: E501 + # verify the required parameter 'settings_ldapschema' is set + if self.api_client.client_side_validation and ('settings_ldapschema' not in local_var_params or # noqa: E501 + local_var_params['settings_ldapschema'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_ldapschema` when calling `udm_settings_ldapschema_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapschema_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapschema_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_ldapschema' in local_var_params: + body_params = local_var_params['settings_ldapschema'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/ldapschema/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapschema_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a LDAP Schema Extensions object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapschema_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_ldapschema_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a LDAP Schema Extensions object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapschema_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_ldapschema_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapschema_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapschema_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/ldapschema/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapschema_object_search(self, **kwargs): # noqa: E501 + """Search for LDAP Schema Extensions objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLdapschemaList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapschema_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_ldapschema_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for LDAP Schema Extensions objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLdapschemaList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapschema_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_ldapschema_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_ldapschema_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_ldapschema_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_ldapschema_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_ldapschema_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLdapschemaList", + } + + return self.api_client.call_api( + '/settings/ldapschema/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapschema_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an LDAP Schema Extension object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLdapschema + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapschema_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_ldapschema_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an LDAP Schema Extension object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLdapschema, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapschema_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLdapschema", + } + + return self.api_client.call_api( + '/settings/ldapschema/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_ldapschema_object_update(self, dn, settings_ldapschema, **kwargs): # noqa: E501 + """Modify an LDAP Schema Extension object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_update(dn, settings_ldapschema, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_ldapschema: (required) + :type settings_ldapschema: SettingsLdapschema + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_ldapschema_object_update_with_http_info(dn, settings_ldapschema, **kwargs) # noqa: E501 + + def udm_settings_ldapschema_object_update_with_http_info(self, dn, settings_ldapschema, **kwargs): # noqa: E501 + """Modify an LDAP Schema Extension object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_ldapschema_object_update_with_http_info(dn, settings_ldapschema, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_ldapschema: (required) + :type settings_ldapschema: SettingsLdapschema + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_ldapschema', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_ldapschema_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_ldapschema_object_update`") # noqa: E501 + # verify the required parameter 'settings_ldapschema' is set + if self.api_client.client_side_validation and ('settings_ldapschema' not in local_var_params or # noqa: E501 + local_var_params['settings_ldapschema'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_ldapschema` when calling `udm_settings_ldapschema_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapschema_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_ldapschema_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_ldapschema' in local_var_params: + body_params = local_var_params['settings_ldapschema'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/ldapschema/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_license_api.py b/openapi_client_udm/api/settings_license_api.py new file mode 100644 index 0000000..014ff6d --- /dev/null +++ b/openapi_client_udm/api/settings_license_api.py @@ -0,0 +1,676 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsLicenseApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_license_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the License object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_license_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLicense + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_license_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_license_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the License object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_license_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLicense, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_license_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_license_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_license_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_license_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLicense", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/license/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_license_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Licenses object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_license_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_license_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_license_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Licenses object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_license_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_license_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_license_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_license_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_license_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/license/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_license_object_search(self, **kwargs): # noqa: E501 + """Search for Licenses objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_license_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLicenseList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_license_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_license_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Licenses objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_license_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLicenseList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_license_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_license_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_license_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_license_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_license_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_license_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLicenseList", + } + + return self.api_client.call_api( + '/settings/license/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_lock_api.py b/openapi_client_udm/api/settings_lock_api.py new file mode 100644 index 0000000..7696c18 --- /dev/null +++ b/openapi_client_udm/api/settings_lock_api.py @@ -0,0 +1,1099 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsLockApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_lock_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Lock object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLock + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_lock_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_lock_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Lock object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLock, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_lock_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_lock_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_lock_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_lock_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLock", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/lock/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_lock_object_modify(self, dn, settings_lock, **kwargs): # noqa: E501 + """Modify or move an Lock object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_modify(dn, settings_lock, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_lock: (required) + :type settings_lock: SettingsLock + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_lock_object_modify_with_http_info(dn, settings_lock, **kwargs) # noqa: E501 + + def udm_settings_lock_object_modify_with_http_info(self, dn, settings_lock, **kwargs): # noqa: E501 + """Modify or move an Lock object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_modify_with_http_info(dn, settings_lock, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_lock: (required) + :type settings_lock: SettingsLock + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_lock', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_lock_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_lock_object_modify`") # noqa: E501 + # verify the required parameter 'settings_lock' is set + if self.api_client.client_side_validation and ('settings_lock' not in local_var_params or # noqa: E501 + local_var_params['settings_lock'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_lock` when calling `udm_settings_lock_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_lock_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_lock_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_lock' in local_var_params: + body_params = local_var_params['settings_lock'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/lock/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_lock_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Locks object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_lock_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_lock_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Locks object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_lock_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_lock_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_lock_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_lock_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/lock/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_lock_object_search(self, **kwargs): # noqa: E501 + """Search for Locks objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsLockList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_lock_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_lock_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Locks objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsLockList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_lock_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_lock_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_lock_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_lock_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_lock_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_lock_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsLockList", + } + + return self.api_client.call_api( + '/settings/lock/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_lock_object_update(self, dn, settings_lock, **kwargs): # noqa: E501 + """Modify an Lock object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_update(dn, settings_lock, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_lock: (required) + :type settings_lock: SettingsLock + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_lock_object_update_with_http_info(dn, settings_lock, **kwargs) # noqa: E501 + + def udm_settings_lock_object_update_with_http_info(self, dn, settings_lock, **kwargs): # noqa: E501 + """Modify an Lock object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_lock_object_update_with_http_info(dn, settings_lock, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_lock: (required) + :type settings_lock: SettingsLock + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_lock', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_lock_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_lock_object_update`") # noqa: E501 + # verify the required parameter 'settings_lock' is set + if self.api_client.client_side_validation and ('settings_lock' not in local_var_params or # noqa: E501 + local_var_params['settings_lock'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_lock` when calling `udm_settings_lock_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_lock_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_lock_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_lock' in local_var_params: + body_params = local_var_params['settings_lock'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/lock/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_msprintconnectionpolicy_api.py b/openapi_client_udm/api/settings_msprintconnectionpolicy_api.py new file mode 100644 index 0000000..f620c5e --- /dev/null +++ b/openapi_client_udm/api/settings_msprintconnectionpolicy_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsMsprintconnectionpolicyApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_msprintconnectionpolicy_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Settings: MS Print Connection Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsMsprintconnectionpolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_msprintconnectionpolicy_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_msprintconnectionpolicy_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Settings: MS Print Connection Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsMsprintconnectionpolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_msprintconnectionpolicy_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsMsprintconnectionpolicy", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/msprintconnectionpolicy/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_msprintconnectionpolicy_object_create(self, settings_msprintconnectionpolicy, **kwargs): # noqa: E501 + """Create a new Settings: MS Print Connection Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_create(settings_msprintconnectionpolicy, async_req=True) + >>> result = thread.get() + + :param settings_msprintconnectionpolicy: (required) + :type settings_msprintconnectionpolicy: SettingsMsprintconnectionpolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_msprintconnectionpolicy_object_create_with_http_info(settings_msprintconnectionpolicy, **kwargs) # noqa: E501 + + def udm_settings_msprintconnectionpolicy_object_create_with_http_info(self, settings_msprintconnectionpolicy, **kwargs): # noqa: E501 + """Create a new Settings: MS Print Connection Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_create_with_http_info(settings_msprintconnectionpolicy, async_req=True) + >>> result = thread.get() + + :param settings_msprintconnectionpolicy: (required) + :type settings_msprintconnectionpolicy: SettingsMsprintconnectionpolicy + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_msprintconnectionpolicy', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_msprintconnectionpolicy_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_msprintconnectionpolicy' is set + if self.api_client.client_side_validation and ('settings_msprintconnectionpolicy' not in local_var_params or # noqa: E501 + local_var_params['settings_msprintconnectionpolicy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_msprintconnectionpolicy` when calling `udm_settings_msprintconnectionpolicy_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_msprintconnectionpolicy' in local_var_params: + body_params = local_var_params['settings_msprintconnectionpolicy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/msprintconnectionpolicy/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_msprintconnectionpolicy_object_modify(self, dn, settings_msprintconnectionpolicy, **kwargs): # noqa: E501 + """Modify or move an Settings: MS Print Connection Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_modify(dn, settings_msprintconnectionpolicy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_msprintconnectionpolicy: (required) + :type settings_msprintconnectionpolicy: SettingsMsprintconnectionpolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_msprintconnectionpolicy_object_modify_with_http_info(dn, settings_msprintconnectionpolicy, **kwargs) # noqa: E501 + + def udm_settings_msprintconnectionpolicy_object_modify_with_http_info(self, dn, settings_msprintconnectionpolicy, **kwargs): # noqa: E501 + """Modify or move an Settings: MS Print Connection Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_modify_with_http_info(dn, settings_msprintconnectionpolicy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_msprintconnectionpolicy: (required) + :type settings_msprintconnectionpolicy: SettingsMsprintconnectionpolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_msprintconnectionpolicy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_msprintconnectionpolicy_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_modify`") # noqa: E501 + # verify the required parameter 'settings_msprintconnectionpolicy' is set + if self.api_client.client_side_validation and ('settings_msprintconnectionpolicy' not in local_var_params or # noqa: E501 + local_var_params['settings_msprintconnectionpolicy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_msprintconnectionpolicy` when calling `udm_settings_msprintconnectionpolicy_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_msprintconnectionpolicy' in local_var_params: + body_params = local_var_params['settings_msprintconnectionpolicy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/msprintconnectionpolicy/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_msprintconnectionpolicy_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Settings: MS Print Connection Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_msprintconnectionpolicy_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_msprintconnectionpolicy_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Settings: MS Print Connection Policy object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_msprintconnectionpolicy_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/msprintconnectionpolicy/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_msprintconnectionpolicy_object_search(self, **kwargs): # noqa: E501 + """Search for Settings: MS Print Connection Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsMsprintconnectionpolicyList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_msprintconnectionpolicy_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_msprintconnectionpolicy_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Settings: MS Print Connection Policy objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsMsprintconnectionpolicyList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_msprintconnectionpolicy_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_msprintconnectionpolicy_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_msprintconnectionpolicy_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_msprintconnectionpolicy_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_msprintconnectionpolicy_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_msprintconnectionpolicy_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsMsprintconnectionpolicyList", + } + + return self.api_client.call_api( + '/settings/msprintconnectionpolicy/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_msprintconnectionpolicy_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Settings: MS Print Connection Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsMsprintconnectionpolicy + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_msprintconnectionpolicy_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_msprintconnectionpolicy_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Settings: MS Print Connection Policy object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsMsprintconnectionpolicy, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_msprintconnectionpolicy_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsMsprintconnectionpolicy", + } + + return self.api_client.call_api( + '/settings/msprintconnectionpolicy/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_msprintconnectionpolicy_object_update(self, dn, settings_msprintconnectionpolicy, **kwargs): # noqa: E501 + """Modify an Settings: MS Print Connection Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_update(dn, settings_msprintconnectionpolicy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_msprintconnectionpolicy: (required) + :type settings_msprintconnectionpolicy: SettingsMsprintconnectionpolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_msprintconnectionpolicy_object_update_with_http_info(dn, settings_msprintconnectionpolicy, **kwargs) # noqa: E501 + + def udm_settings_msprintconnectionpolicy_object_update_with_http_info(self, dn, settings_msprintconnectionpolicy, **kwargs): # noqa: E501 + """Modify an Settings: MS Print Connection Policy object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_msprintconnectionpolicy_object_update_with_http_info(dn, settings_msprintconnectionpolicy, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_msprintconnectionpolicy: (required) + :type settings_msprintconnectionpolicy: SettingsMsprintconnectionpolicy + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_msprintconnectionpolicy', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_msprintconnectionpolicy_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_update`") # noqa: E501 + # verify the required parameter 'settings_msprintconnectionpolicy' is set + if self.api_client.client_side_validation and ('settings_msprintconnectionpolicy' not in local_var_params or # noqa: E501 + local_var_params['settings_msprintconnectionpolicy'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_msprintconnectionpolicy` when calling `udm_settings_msprintconnectionpolicy_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_msprintconnectionpolicy_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_msprintconnectionpolicy' in local_var_params: + body_params = local_var_params['settings_msprintconnectionpolicy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/msprintconnectionpolicy/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_mswmifilter_api.py b/openapi_client_udm/api/settings_mswmifilter_api.py new file mode 100644 index 0000000..ac8a439 --- /dev/null +++ b/openapi_client_udm/api/settings_mswmifilter_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsMswmifilterApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_mswmifilter_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Settings: MS WMI Filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsMswmifilter + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_mswmifilter_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_mswmifilter_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Settings: MS WMI Filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsMswmifilter, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_mswmifilter_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_mswmifilter_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_mswmifilter_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_mswmifilter_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsMswmifilter", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/mswmifilter/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_mswmifilter_object_create(self, settings_mswmifilter, **kwargs): # noqa: E501 + """Create a new Settings: MS WMI Filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_create(settings_mswmifilter, async_req=True) + >>> result = thread.get() + + :param settings_mswmifilter: (required) + :type settings_mswmifilter: SettingsMswmifilter + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_mswmifilter_object_create_with_http_info(settings_mswmifilter, **kwargs) # noqa: E501 + + def udm_settings_mswmifilter_object_create_with_http_info(self, settings_mswmifilter, **kwargs): # noqa: E501 + """Create a new Settings: MS WMI Filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_create_with_http_info(settings_mswmifilter, async_req=True) + >>> result = thread.get() + + :param settings_mswmifilter: (required) + :type settings_mswmifilter: SettingsMswmifilter + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_mswmifilter', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_mswmifilter_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_mswmifilter' is set + if self.api_client.client_side_validation and ('settings_mswmifilter' not in local_var_params or # noqa: E501 + local_var_params['settings_mswmifilter'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_mswmifilter` when calling `udm_settings_mswmifilter_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_mswmifilter' in local_var_params: + body_params = local_var_params['settings_mswmifilter'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/mswmifilter/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_mswmifilter_object_modify(self, dn, settings_mswmifilter, **kwargs): # noqa: E501 + """Modify or move an Settings: MS WMI Filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_modify(dn, settings_mswmifilter, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_mswmifilter: (required) + :type settings_mswmifilter: SettingsMswmifilter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_mswmifilter_object_modify_with_http_info(dn, settings_mswmifilter, **kwargs) # noqa: E501 + + def udm_settings_mswmifilter_object_modify_with_http_info(self, dn, settings_mswmifilter, **kwargs): # noqa: E501 + """Modify or move an Settings: MS WMI Filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_modify_with_http_info(dn, settings_mswmifilter, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_mswmifilter: (required) + :type settings_mswmifilter: SettingsMswmifilter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_mswmifilter', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_mswmifilter_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_mswmifilter_object_modify`") # noqa: E501 + # verify the required parameter 'settings_mswmifilter' is set + if self.api_client.client_side_validation and ('settings_mswmifilter' not in local_var_params or # noqa: E501 + local_var_params['settings_mswmifilter'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_mswmifilter` when calling `udm_settings_mswmifilter_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_mswmifilter_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_mswmifilter_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_mswmifilter' in local_var_params: + body_params = local_var_params['settings_mswmifilter'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/mswmifilter/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_mswmifilter_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Settings: MS WMI Filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_mswmifilter_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_mswmifilter_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Settings: MS WMI Filter object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_mswmifilter_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_mswmifilter_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_mswmifilter_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_mswmifilter_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/mswmifilter/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_mswmifilter_object_search(self, **kwargs): # noqa: E501 + """Search for Settings: MS WMI Filter objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsMswmifilterList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_mswmifilter_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_mswmifilter_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Settings: MS WMI Filter objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsMswmifilterList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_mswmifilter_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_mswmifilter_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_mswmifilter_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_mswmifilter_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_mswmifilter_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_mswmifilter_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsMswmifilterList", + } + + return self.api_client.call_api( + '/settings/mswmifilter/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_mswmifilter_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Settings: MS WMI Filter object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsMswmifilter + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_mswmifilter_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_mswmifilter_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Settings: MS WMI Filter object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsMswmifilter, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_mswmifilter_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsMswmifilter", + } + + return self.api_client.call_api( + '/settings/mswmifilter/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_mswmifilter_object_update(self, dn, settings_mswmifilter, **kwargs): # noqa: E501 + """Modify an Settings: MS WMI Filter object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_update(dn, settings_mswmifilter, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_mswmifilter: (required) + :type settings_mswmifilter: SettingsMswmifilter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_mswmifilter_object_update_with_http_info(dn, settings_mswmifilter, **kwargs) # noqa: E501 + + def udm_settings_mswmifilter_object_update_with_http_info(self, dn, settings_mswmifilter, **kwargs): # noqa: E501 + """Modify an Settings: MS WMI Filter object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_mswmifilter_object_update_with_http_info(dn, settings_mswmifilter, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_mswmifilter: (required) + :type settings_mswmifilter: SettingsMswmifilter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_mswmifilter', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_mswmifilter_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_mswmifilter_object_update`") # noqa: E501 + # verify the required parameter 'settings_mswmifilter' is set + if self.api_client.client_side_validation and ('settings_mswmifilter' not in local_var_params or # noqa: E501 + local_var_params['settings_mswmifilter'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_mswmifilter` when calling `udm_settings_mswmifilter_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_mswmifilter_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_mswmifilter_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_mswmifilter' in local_var_params: + body_params = local_var_params['settings_mswmifilter'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/mswmifilter/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_packages_api.py b/openapi_client_udm/api/settings_packages_api.py new file mode 100644 index 0000000..b758317 --- /dev/null +++ b/openapi_client_udm/api/settings_packages_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsPackagesApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_packages_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Package List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPackages + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_packages_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_packages_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Package List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPackages, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_packages_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_packages_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_packages_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_packages_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPackages", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/packages/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_packages_object_create(self, settings_packages, **kwargs): # noqa: E501 + """Create a new Package List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_create(settings_packages, async_req=True) + >>> result = thread.get() + + :param settings_packages: (required) + :type settings_packages: SettingsPackages + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_packages_object_create_with_http_info(settings_packages, **kwargs) # noqa: E501 + + def udm_settings_packages_object_create_with_http_info(self, settings_packages, **kwargs): # noqa: E501 + """Create a new Package List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_create_with_http_info(settings_packages, async_req=True) + >>> result = thread.get() + + :param settings_packages: (required) + :type settings_packages: SettingsPackages + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_packages', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_packages_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_packages' is set + if self.api_client.client_side_validation and ('settings_packages' not in local_var_params or # noqa: E501 + local_var_params['settings_packages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_packages` when calling `udm_settings_packages_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_packages' in local_var_params: + body_params = local_var_params['settings_packages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/packages/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_packages_object_modify(self, dn, settings_packages, **kwargs): # noqa: E501 + """Modify or move an Package List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_modify(dn, settings_packages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_packages: (required) + :type settings_packages: SettingsPackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_packages_object_modify_with_http_info(dn, settings_packages, **kwargs) # noqa: E501 + + def udm_settings_packages_object_modify_with_http_info(self, dn, settings_packages, **kwargs): # noqa: E501 + """Modify or move an Package List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_modify_with_http_info(dn, settings_packages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_packages: (required) + :type settings_packages: SettingsPackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_packages', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_packages_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_packages_object_modify`") # noqa: E501 + # verify the required parameter 'settings_packages' is set + if self.api_client.client_side_validation and ('settings_packages' not in local_var_params or # noqa: E501 + local_var_params['settings_packages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_packages` when calling `udm_settings_packages_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_packages_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_packages_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_packages' in local_var_params: + body_params = local_var_params['settings_packages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/packages/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_packages_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Package Lists object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_packages_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_packages_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Package Lists object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_packages_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_packages_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_packages_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_packages_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/packages/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_packages_object_search(self, **kwargs): # noqa: E501 + """Search for Package Lists objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPackagesList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_packages_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_packages_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Package Lists objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPackagesList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_packages_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_packages_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_packages_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_packages_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_packages_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_packages_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPackagesList", + } + + return self.api_client.call_api( + '/settings/packages/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_packages_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Package List object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPackages + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_packages_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_packages_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Package List object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPackages, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_packages_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPackages", + } + + return self.api_client.call_api( + '/settings/packages/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_packages_object_update(self, dn, settings_packages, **kwargs): # noqa: E501 + """Modify an Package List object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_update(dn, settings_packages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_packages: (required) + :type settings_packages: SettingsPackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_packages_object_update_with_http_info(dn, settings_packages, **kwargs) # noqa: E501 + + def udm_settings_packages_object_update_with_http_info(self, dn, settings_packages, **kwargs): # noqa: E501 + """Modify an Package List object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_packages_object_update_with_http_info(dn, settings_packages, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_packages: (required) + :type settings_packages: SettingsPackages + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_packages', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_packages_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_packages_object_update`") # noqa: E501 + # verify the required parameter 'settings_packages' is set + if self.api_client.client_side_validation and ('settings_packages' not in local_var_params or # noqa: E501 + local_var_params['settings_packages'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_packages` when calling `udm_settings_packages_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_packages_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_packages_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_packages' in local_var_params: + body_params = local_var_params['settings_packages'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/packages/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_portal_all_api.py b/openapi_client_udm/api/settings_portal_all_api.py new file mode 100644 index 0000000..8dc4285 --- /dev/null +++ b/openapi_client_udm/api/settings_portal_all_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsPortalAllApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_portal_all_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Deprecated Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_all_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalAll + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_all_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_portal_all_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Deprecated Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_all_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalAll, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_all_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_all_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_all_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_all_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalAll", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/portal_all/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_all_object_search(self, **kwargs): # noqa: E501 + """Search for Deprecated Portal: Settings objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_all_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalAllList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_all_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_portal_all_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Deprecated Portal: Settings objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_all_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalAllList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_all_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_portal_all_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_portal_all_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalAllList", + } + + return self.api_client.call_api( + '/settings/portal_all/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_portal_api.py b/openapi_client_udm/api/settings_portal_api.py new file mode 100644 index 0000000..08a0dc9 --- /dev/null +++ b/openapi_client_udm/api/settings_portal_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsPortalApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_portal_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Deprecated Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortal + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_portal_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Deprecated Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortal, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortal", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/portal/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_object_create(self, settings_portal, **kwargs): # noqa: E501 + """Create a new Deprecated Portal object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_create(settings_portal, async_req=True) + >>> result = thread.get() + + :param settings_portal: (required) + :type settings_portal: SettingsPortal + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_object_create_with_http_info(settings_portal, **kwargs) # noqa: E501 + + def udm_settings_portal_object_create_with_http_info(self, settings_portal, **kwargs): # noqa: E501 + """Create a new Deprecated Portal object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_create_with_http_info(settings_portal, async_req=True) + >>> result = thread.get() + + :param settings_portal: (required) + :type settings_portal: SettingsPortal + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_portal', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_portal' is set + if self.api_client.client_side_validation and ('settings_portal' not in local_var_params or # noqa: E501 + local_var_params['settings_portal'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal` when calling `udm_settings_portal_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal' in local_var_params: + body_params = local_var_params['settings_portal'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/portal/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_object_modify(self, dn, settings_portal, **kwargs): # noqa: E501 + """Modify or move an Deprecated Portal object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_modify(dn, settings_portal, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal: (required) + :type settings_portal: SettingsPortal + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_object_modify_with_http_info(dn, settings_portal, **kwargs) # noqa: E501 + + def udm_settings_portal_object_modify_with_http_info(self, dn, settings_portal, **kwargs): # noqa: E501 + """Modify or move an Deprecated Portal object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_modify_with_http_info(dn, settings_portal, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal: (required) + :type settings_portal: SettingsPortal + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_portal', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_object_modify`") # noqa: E501 + # verify the required parameter 'settings_portal' is set + if self.api_client.client_side_validation and ('settings_portal' not in local_var_params or # noqa: E501 + local_var_params['settings_portal'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal` when calling `udm_settings_portal_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal' in local_var_params: + body_params = local_var_params['settings_portal'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/portal/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Deprecated Portals object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_portal_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Deprecated Portals object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/portal/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_object_search(self, **kwargs): # noqa: E501 + """Search for Deprecated Portals objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_portal_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Deprecated Portals objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_portal_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_portal_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_portal_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_portal_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_portal_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalList", + } + + return self.api_client.call_api( + '/settings/portal/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Deprecated Portal object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortal + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_portal_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Deprecated Portal object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortal, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortal", + } + + return self.api_client.call_api( + '/settings/portal/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_object_update(self, dn, settings_portal, **kwargs): # noqa: E501 + """Modify an Deprecated Portal object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_update(dn, settings_portal, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal: (required) + :type settings_portal: SettingsPortal + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_object_update_with_http_info(dn, settings_portal, **kwargs) # noqa: E501 + + def udm_settings_portal_object_update_with_http_info(self, dn, settings_portal, **kwargs): # noqa: E501 + """Modify an Deprecated Portal object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_object_update_with_http_info(dn, settings_portal, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal: (required) + :type settings_portal: SettingsPortal + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_portal', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_object_update`") # noqa: E501 + # verify the required parameter 'settings_portal' is set + if self.api_client.client_side_validation and ('settings_portal' not in local_var_params or # noqa: E501 + local_var_params['settings_portal'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal` when calling `udm_settings_portal_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal' in local_var_params: + body_params = local_var_params['settings_portal'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/portal/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_portal_category_api.py b/openapi_client_udm/api/settings_portal_category_api.py new file mode 100644 index 0000000..5ddc99b --- /dev/null +++ b/openapi_client_udm/api/settings_portal_category_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsPortalCategoryApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_portal_category_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Deprecated Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalCategory + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_category_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_portal_category_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Deprecated Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalCategory, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_category_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_category_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_category_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_category_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalCategory", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/portal_category/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_category_object_create(self, settings_portal_category, **kwargs): # noqa: E501 + """Create a new Deprecated Portal category object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_create(settings_portal_category, async_req=True) + >>> result = thread.get() + + :param settings_portal_category: (required) + :type settings_portal_category: SettingsPortalCategory + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_category_object_create_with_http_info(settings_portal_category, **kwargs) # noqa: E501 + + def udm_settings_portal_category_object_create_with_http_info(self, settings_portal_category, **kwargs): # noqa: E501 + """Create a new Deprecated Portal category object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_create_with_http_info(settings_portal_category, async_req=True) + >>> result = thread.get() + + :param settings_portal_category: (required) + :type settings_portal_category: SettingsPortalCategory + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_portal_category', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_category_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_portal_category' is set + if self.api_client.client_side_validation and ('settings_portal_category' not in local_var_params or # noqa: E501 + local_var_params['settings_portal_category'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal_category` when calling `udm_settings_portal_category_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal_category' in local_var_params: + body_params = local_var_params['settings_portal_category'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/portal_category/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_category_object_modify(self, dn, settings_portal_category, **kwargs): # noqa: E501 + """Modify or move an Deprecated Portal category object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_modify(dn, settings_portal_category, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal_category: (required) + :type settings_portal_category: SettingsPortalCategory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_category_object_modify_with_http_info(dn, settings_portal_category, **kwargs) # noqa: E501 + + def udm_settings_portal_category_object_modify_with_http_info(self, dn, settings_portal_category, **kwargs): # noqa: E501 + """Modify or move an Deprecated Portal category object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_modify_with_http_info(dn, settings_portal_category, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal_category: (required) + :type settings_portal_category: SettingsPortalCategory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_portal_category', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_category_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_category_object_modify`") # noqa: E501 + # verify the required parameter 'settings_portal_category' is set + if self.api_client.client_side_validation and ('settings_portal_category' not in local_var_params or # noqa: E501 + local_var_params['settings_portal_category'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal_category` when calling `udm_settings_portal_category_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_category_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_category_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal_category' in local_var_params: + body_params = local_var_params['settings_portal_category'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/portal_category/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_category_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Deprecated Portal categories object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_category_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_portal_category_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Deprecated Portal categories object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_category_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_category_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_category_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_category_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/portal_category/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_category_object_search(self, **kwargs): # noqa: E501 + """Search for Deprecated Portal categories objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalCategoryList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_category_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_portal_category_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Deprecated Portal categories objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalCategoryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_category_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_portal_category_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_portal_category_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_portal_category_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_portal_category_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_portal_category_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalCategoryList", + } + + return self.api_client.call_api( + '/settings/portal_category/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_category_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Deprecated Portal category object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalCategory + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_category_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_portal_category_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Deprecated Portal category object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalCategory, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_category_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalCategory", + } + + return self.api_client.call_api( + '/settings/portal_category/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_category_object_update(self, dn, settings_portal_category, **kwargs): # noqa: E501 + """Modify an Deprecated Portal category object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_update(dn, settings_portal_category, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal_category: (required) + :type settings_portal_category: SettingsPortalCategory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_category_object_update_with_http_info(dn, settings_portal_category, **kwargs) # noqa: E501 + + def udm_settings_portal_category_object_update_with_http_info(self, dn, settings_portal_category, **kwargs): # noqa: E501 + """Modify an Deprecated Portal category object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_category_object_update_with_http_info(dn, settings_portal_category, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal_category: (required) + :type settings_portal_category: SettingsPortalCategory + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_portal_category', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_category_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_category_object_update`") # noqa: E501 + # verify the required parameter 'settings_portal_category' is set + if self.api_client.client_side_validation and ('settings_portal_category' not in local_var_params or # noqa: E501 + local_var_params['settings_portal_category'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal_category` when calling `udm_settings_portal_category_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_category_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_category_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal_category' in local_var_params: + body_params = local_var_params['settings_portal_category'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/portal_category/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_portal_entry_api.py b/openapi_client_udm/api/settings_portal_entry_api.py new file mode 100644 index 0000000..142e9a7 --- /dev/null +++ b/openapi_client_udm/api/settings_portal_entry_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsPortalEntryApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_portal_entry_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Deprecated Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalEntry + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_entry_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_portal_entry_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Deprecated Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalEntry, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_entry_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_entry_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_entry_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_entry_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalEntry", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/portal_entry/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_entry_object_create(self, settings_portal_entry, **kwargs): # noqa: E501 + """Create a new Deprecated Portal entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_create(settings_portal_entry, async_req=True) + >>> result = thread.get() + + :param settings_portal_entry: (required) + :type settings_portal_entry: SettingsPortalEntry + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_entry_object_create_with_http_info(settings_portal_entry, **kwargs) # noqa: E501 + + def udm_settings_portal_entry_object_create_with_http_info(self, settings_portal_entry, **kwargs): # noqa: E501 + """Create a new Deprecated Portal entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_create_with_http_info(settings_portal_entry, async_req=True) + >>> result = thread.get() + + :param settings_portal_entry: (required) + :type settings_portal_entry: SettingsPortalEntry + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_portal_entry', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_entry_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_portal_entry' is set + if self.api_client.client_side_validation and ('settings_portal_entry' not in local_var_params or # noqa: E501 + local_var_params['settings_portal_entry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal_entry` when calling `udm_settings_portal_entry_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal_entry' in local_var_params: + body_params = local_var_params['settings_portal_entry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/portal_entry/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_entry_object_modify(self, dn, settings_portal_entry, **kwargs): # noqa: E501 + """Modify or move an Deprecated Portal entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_modify(dn, settings_portal_entry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal_entry: (required) + :type settings_portal_entry: SettingsPortalEntry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_entry_object_modify_with_http_info(dn, settings_portal_entry, **kwargs) # noqa: E501 + + def udm_settings_portal_entry_object_modify_with_http_info(self, dn, settings_portal_entry, **kwargs): # noqa: E501 + """Modify or move an Deprecated Portal entry object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_modify_with_http_info(dn, settings_portal_entry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal_entry: (required) + :type settings_portal_entry: SettingsPortalEntry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_portal_entry', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_entry_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_entry_object_modify`") # noqa: E501 + # verify the required parameter 'settings_portal_entry' is set + if self.api_client.client_side_validation and ('settings_portal_entry' not in local_var_params or # noqa: E501 + local_var_params['settings_portal_entry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal_entry` when calling `udm_settings_portal_entry_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_entry_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_entry_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal_entry' in local_var_params: + body_params = local_var_params['settings_portal_entry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/portal_entry/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_entry_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Deprecated Portal entries object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_entry_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_portal_entry_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Deprecated Portal entries object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_entry_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_entry_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_entry_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_entry_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/portal_entry/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_entry_object_search(self, **kwargs): # noqa: E501 + """Search for Deprecated Portal entries objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalEntryList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_entry_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_portal_entry_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Deprecated Portal entries objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalEntryList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_entry_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_portal_entry_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_portal_entry_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_portal_entry_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_portal_entry_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_portal_entry_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalEntryList", + } + + return self.api_client.call_api( + '/settings/portal_entry/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_entry_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Deprecated Portal entry object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPortalEntry + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_entry_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_portal_entry_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Deprecated Portal entry object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPortalEntry, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_entry_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPortalEntry", + } + + return self.api_client.call_api( + '/settings/portal_entry/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_portal_entry_object_update(self, dn, settings_portal_entry, **kwargs): # noqa: E501 + """Modify an Deprecated Portal entry object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_update(dn, settings_portal_entry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal_entry: (required) + :type settings_portal_entry: SettingsPortalEntry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_portal_entry_object_update_with_http_info(dn, settings_portal_entry, **kwargs) # noqa: E501 + + def udm_settings_portal_entry_object_update_with_http_info(self, dn, settings_portal_entry, **kwargs): # noqa: E501 + """Modify an Deprecated Portal entry object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_portal_entry_object_update_with_http_info(dn, settings_portal_entry, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_portal_entry: (required) + :type settings_portal_entry: SettingsPortalEntry + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_portal_entry', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_portal_entry_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_portal_entry_object_update`") # noqa: E501 + # verify the required parameter 'settings_portal_entry' is set + if self.api_client.client_side_validation and ('settings_portal_entry' not in local_var_params or # noqa: E501 + local_var_params['settings_portal_entry'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_portal_entry` when calling `udm_settings_portal_entry_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_entry_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_portal_entry_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_portal_entry' in local_var_params: + body_params = local_var_params['settings_portal_entry'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/portal_entry/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_printermodel_api.py b/openapi_client_udm/api/settings_printermodel_api.py new file mode 100644 index 0000000..2c9cf66 --- /dev/null +++ b/openapi_client_udm/api/settings_printermodel_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsPrintermodelApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_printermodel_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer Driver List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPrintermodel + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printermodel_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_printermodel_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer Driver List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPrintermodel, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printermodel_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_printermodel_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printermodel_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printermodel_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPrintermodel", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/printermodel/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printermodel_object_create(self, settings_printermodel, **kwargs): # noqa: E501 + """Create a new Printer Driver List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_create(settings_printermodel, async_req=True) + >>> result = thread.get() + + :param settings_printermodel: (required) + :type settings_printermodel: SettingsPrintermodel + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printermodel_object_create_with_http_info(settings_printermodel, **kwargs) # noqa: E501 + + def udm_settings_printermodel_object_create_with_http_info(self, settings_printermodel, **kwargs): # noqa: E501 + """Create a new Printer Driver List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_create_with_http_info(settings_printermodel, async_req=True) + >>> result = thread.get() + + :param settings_printermodel: (required) + :type settings_printermodel: SettingsPrintermodel + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_printermodel', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printermodel_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_printermodel' is set + if self.api_client.client_side_validation and ('settings_printermodel' not in local_var_params or # noqa: E501 + local_var_params['settings_printermodel'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_printermodel` when calling `udm_settings_printermodel_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_printermodel' in local_var_params: + body_params = local_var_params['settings_printermodel'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/printermodel/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printermodel_object_modify(self, dn, settings_printermodel, **kwargs): # noqa: E501 + """Modify or move an Printer Driver List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_modify(dn, settings_printermodel, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_printermodel: (required) + :type settings_printermodel: SettingsPrintermodel + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printermodel_object_modify_with_http_info(dn, settings_printermodel, **kwargs) # noqa: E501 + + def udm_settings_printermodel_object_modify_with_http_info(self, dn, settings_printermodel, **kwargs): # noqa: E501 + """Modify or move an Printer Driver List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_modify_with_http_info(dn, settings_printermodel, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_printermodel: (required) + :type settings_printermodel: SettingsPrintermodel + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_printermodel', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printermodel_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_printermodel_object_modify`") # noqa: E501 + # verify the required parameter 'settings_printermodel' is set + if self.api_client.client_side_validation and ('settings_printermodel' not in local_var_params or # noqa: E501 + local_var_params['settings_printermodel'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_printermodel` when calling `udm_settings_printermodel_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printermodel_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printermodel_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_printermodel' in local_var_params: + body_params = local_var_params['settings_printermodel'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/printermodel/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printermodel_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Printer Driver Lists object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printermodel_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_printermodel_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Printer Driver Lists object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printermodel_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_printermodel_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printermodel_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printermodel_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/printermodel/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printermodel_object_search(self, **kwargs): # noqa: E501 + """Search for Printer Driver Lists objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPrintermodelList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printermodel_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_printermodel_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Printer Driver Lists objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPrintermodelList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printermodel_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_printermodel_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_printermodel_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_printermodel_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_printermodel_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_printermodel_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPrintermodelList", + } + + return self.api_client.call_api( + '/settings/printermodel/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printermodel_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Printer Driver List object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPrintermodel + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printermodel_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_printermodel_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Printer Driver List object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPrintermodel, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printermodel_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPrintermodel", + } + + return self.api_client.call_api( + '/settings/printermodel/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printermodel_object_update(self, dn, settings_printermodel, **kwargs): # noqa: E501 + """Modify an Printer Driver List object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_update(dn, settings_printermodel, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_printermodel: (required) + :type settings_printermodel: SettingsPrintermodel + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printermodel_object_update_with_http_info(dn, settings_printermodel, **kwargs) # noqa: E501 + + def udm_settings_printermodel_object_update_with_http_info(self, dn, settings_printermodel, **kwargs): # noqa: E501 + """Modify an Printer Driver List object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printermodel_object_update_with_http_info(dn, settings_printermodel, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_printermodel: (required) + :type settings_printermodel: SettingsPrintermodel + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_printermodel', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printermodel_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_printermodel_object_update`") # noqa: E501 + # verify the required parameter 'settings_printermodel' is set + if self.api_client.client_side_validation and ('settings_printermodel' not in local_var_params or # noqa: E501 + local_var_params['settings_printermodel'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_printermodel` when calling `udm_settings_printermodel_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printermodel_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printermodel_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_printermodel' in local_var_params: + body_params = local_var_params['settings_printermodel'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/printermodel/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_printeruri_api.py b/openapi_client_udm/api/settings_printeruri_api.py new file mode 100644 index 0000000..e5d471a --- /dev/null +++ b/openapi_client_udm/api/settings_printeruri_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsPrinteruriApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_printeruri_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer URI List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPrinteruri + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printeruri_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_printeruri_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer URI List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPrinteruri, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printeruri_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_printeruri_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printeruri_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printeruri_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPrinteruri", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/printeruri/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printeruri_object_create(self, settings_printeruri, **kwargs): # noqa: E501 + """Create a new Printer URI List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_create(settings_printeruri, async_req=True) + >>> result = thread.get() + + :param settings_printeruri: (required) + :type settings_printeruri: SettingsPrinteruri + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printeruri_object_create_with_http_info(settings_printeruri, **kwargs) # noqa: E501 + + def udm_settings_printeruri_object_create_with_http_info(self, settings_printeruri, **kwargs): # noqa: E501 + """Create a new Printer URI List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_create_with_http_info(settings_printeruri, async_req=True) + >>> result = thread.get() + + :param settings_printeruri: (required) + :type settings_printeruri: SettingsPrinteruri + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_printeruri', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printeruri_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_printeruri' is set + if self.api_client.client_side_validation and ('settings_printeruri' not in local_var_params or # noqa: E501 + local_var_params['settings_printeruri'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_printeruri` when calling `udm_settings_printeruri_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_printeruri' in local_var_params: + body_params = local_var_params['settings_printeruri'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/printeruri/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printeruri_object_modify(self, dn, settings_printeruri, **kwargs): # noqa: E501 + """Modify or move an Printer URI List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_modify(dn, settings_printeruri, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_printeruri: (required) + :type settings_printeruri: SettingsPrinteruri + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printeruri_object_modify_with_http_info(dn, settings_printeruri, **kwargs) # noqa: E501 + + def udm_settings_printeruri_object_modify_with_http_info(self, dn, settings_printeruri, **kwargs): # noqa: E501 + """Modify or move an Printer URI List object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_modify_with_http_info(dn, settings_printeruri, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_printeruri: (required) + :type settings_printeruri: SettingsPrinteruri + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_printeruri', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printeruri_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_printeruri_object_modify`") # noqa: E501 + # verify the required parameter 'settings_printeruri' is set + if self.api_client.client_side_validation and ('settings_printeruri' not in local_var_params or # noqa: E501 + local_var_params['settings_printeruri'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_printeruri` when calling `udm_settings_printeruri_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printeruri_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printeruri_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_printeruri' in local_var_params: + body_params = local_var_params['settings_printeruri'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/printeruri/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printeruri_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Printer URI Lists object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printeruri_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_printeruri_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Printer URI Lists object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printeruri_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_printeruri_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printeruri_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printeruri_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/printeruri/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printeruri_object_search(self, **kwargs): # noqa: E501 + """Search for Printer URI Lists objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPrinteruriList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printeruri_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_printeruri_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Printer URI Lists objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPrinteruriList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printeruri_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_printeruri_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_printeruri_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_printeruri_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_printeruri_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_printeruri_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPrinteruriList", + } + + return self.api_client.call_api( + '/settings/printeruri/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printeruri_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Printer URI List object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsPrinteruri + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printeruri_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_printeruri_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Printer URI List object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsPrinteruri, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printeruri_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsPrinteruri", + } + + return self.api_client.call_api( + '/settings/printeruri/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_printeruri_object_update(self, dn, settings_printeruri, **kwargs): # noqa: E501 + """Modify an Printer URI List object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_update(dn, settings_printeruri, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_printeruri: (required) + :type settings_printeruri: SettingsPrinteruri + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_printeruri_object_update_with_http_info(dn, settings_printeruri, **kwargs) # noqa: E501 + + def udm_settings_printeruri_object_update_with_http_info(self, dn, settings_printeruri, **kwargs): # noqa: E501 + """Modify an Printer URI List object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_printeruri_object_update_with_http_info(dn, settings_printeruri, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_printeruri: (required) + :type settings_printeruri: SettingsPrinteruri + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_printeruri', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_printeruri_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_printeruri_object_update`") # noqa: E501 + # verify the required parameter 'settings_printeruri' is set + if self.api_client.client_side_validation and ('settings_printeruri' not in local_var_params or # noqa: E501 + local_var_params['settings_printeruri'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_printeruri` when calling `udm_settings_printeruri_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printeruri_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_printeruri_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_printeruri' in local_var_params: + body_params = local_var_params['settings_printeruri'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/printeruri/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_prohibited_username_api.py b/openapi_client_udm/api/settings_prohibited_username_api.py new file mode 100644 index 0000000..33b98b2 --- /dev/null +++ b/openapi_client_udm/api/settings_prohibited_username_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsProhibitedUsernameApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_prohibited_username_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Prohibited user name object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsProhibitedUsername + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_prohibited_username_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_prohibited_username_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Prohibited user name object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsProhibitedUsername, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_prohibited_username_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_prohibited_username_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_prohibited_username_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_prohibited_username_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsProhibitedUsername", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/prohibited_username/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_prohibited_username_object_create(self, settings_prohibited_username, **kwargs): # noqa: E501 + """Create a new Prohibited user name object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_create(settings_prohibited_username, async_req=True) + >>> result = thread.get() + + :param settings_prohibited_username: (required) + :type settings_prohibited_username: SettingsProhibitedUsername + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_prohibited_username_object_create_with_http_info(settings_prohibited_username, **kwargs) # noqa: E501 + + def udm_settings_prohibited_username_object_create_with_http_info(self, settings_prohibited_username, **kwargs): # noqa: E501 + """Create a new Prohibited user name object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_create_with_http_info(settings_prohibited_username, async_req=True) + >>> result = thread.get() + + :param settings_prohibited_username: (required) + :type settings_prohibited_username: SettingsProhibitedUsername + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_prohibited_username', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_prohibited_username_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_prohibited_username' is set + if self.api_client.client_side_validation and ('settings_prohibited_username' not in local_var_params or # noqa: E501 + local_var_params['settings_prohibited_username'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_prohibited_username` when calling `udm_settings_prohibited_username_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_prohibited_username' in local_var_params: + body_params = local_var_params['settings_prohibited_username'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/prohibited_username/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_prohibited_username_object_modify(self, dn, settings_prohibited_username, **kwargs): # noqa: E501 + """Modify or move an Prohibited user name object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_modify(dn, settings_prohibited_username, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_prohibited_username: (required) + :type settings_prohibited_username: SettingsProhibitedUsername + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_prohibited_username_object_modify_with_http_info(dn, settings_prohibited_username, **kwargs) # noqa: E501 + + def udm_settings_prohibited_username_object_modify_with_http_info(self, dn, settings_prohibited_username, **kwargs): # noqa: E501 + """Modify or move an Prohibited user name object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_modify_with_http_info(dn, settings_prohibited_username, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_prohibited_username: (required) + :type settings_prohibited_username: SettingsProhibitedUsername + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_prohibited_username', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_prohibited_username_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_prohibited_username_object_modify`") # noqa: E501 + # verify the required parameter 'settings_prohibited_username' is set + if self.api_client.client_side_validation and ('settings_prohibited_username' not in local_var_params or # noqa: E501 + local_var_params['settings_prohibited_username'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_prohibited_username` when calling `udm_settings_prohibited_username_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_prohibited_username_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_prohibited_username_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_prohibited_username' in local_var_params: + body_params = local_var_params['settings_prohibited_username'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/prohibited_username/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_prohibited_username_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Prohibited user names object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_prohibited_username_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_prohibited_username_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Prohibited user names object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_prohibited_username_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_prohibited_username_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_prohibited_username_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_prohibited_username_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/prohibited_username/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_prohibited_username_object_search(self, **kwargs): # noqa: E501 + """Search for Prohibited user names objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsProhibitedUsernameList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_prohibited_username_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_prohibited_username_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Prohibited user names objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsProhibitedUsernameList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_prohibited_username_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_prohibited_username_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_prohibited_username_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_prohibited_username_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_prohibited_username_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_prohibited_username_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsProhibitedUsernameList", + } + + return self.api_client.call_api( + '/settings/prohibited_username/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_prohibited_username_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Prohibited user name object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsProhibitedUsername + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_prohibited_username_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_prohibited_username_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Prohibited user name object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsProhibitedUsername, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_prohibited_username_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsProhibitedUsername", + } + + return self.api_client.call_api( + '/settings/prohibited_username/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_prohibited_username_object_update(self, dn, settings_prohibited_username, **kwargs): # noqa: E501 + """Modify an Prohibited user name object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_update(dn, settings_prohibited_username, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_prohibited_username: (required) + :type settings_prohibited_username: SettingsProhibitedUsername + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_prohibited_username_object_update_with_http_info(dn, settings_prohibited_username, **kwargs) # noqa: E501 + + def udm_settings_prohibited_username_object_update_with_http_info(self, dn, settings_prohibited_username, **kwargs): # noqa: E501 + """Modify an Prohibited user name object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_prohibited_username_object_update_with_http_info(dn, settings_prohibited_username, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_prohibited_username: (required) + :type settings_prohibited_username: SettingsProhibitedUsername + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_prohibited_username', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_prohibited_username_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_prohibited_username_object_update`") # noqa: E501 + # verify the required parameter 'settings_prohibited_username' is set + if self.api_client.client_side_validation and ('settings_prohibited_username' not in local_var_params or # noqa: E501 + local_var_params['settings_prohibited_username'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_prohibited_username` when calling `udm_settings_prohibited_username_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_prohibited_username_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_prohibited_username_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_prohibited_username' in local_var_params: + body_params = local_var_params['settings_prohibited_username'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/prohibited_username/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_sambaconfig_api.py b/openapi_client_udm/api/settings_sambaconfig_api.py new file mode 100644 index 0000000..4e6331d --- /dev/null +++ b/openapi_client_udm/api/settings_sambaconfig_api.py @@ -0,0 +1,1099 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsSambaconfigApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_sambaconfig_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Samba Configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSambaconfig + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambaconfig_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_sambaconfig_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Samba Configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSambaconfig, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambaconfig_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_sambaconfig_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambaconfig_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambaconfig_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSambaconfig", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/sambaconfig/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambaconfig_object_modify(self, dn, settings_sambaconfig, **kwargs): # noqa: E501 + """Modify or move an Samba Configuration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_modify(dn, settings_sambaconfig, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_sambaconfig: (required) + :type settings_sambaconfig: SettingsSambaconfig + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambaconfig_object_modify_with_http_info(dn, settings_sambaconfig, **kwargs) # noqa: E501 + + def udm_settings_sambaconfig_object_modify_with_http_info(self, dn, settings_sambaconfig, **kwargs): # noqa: E501 + """Modify or move an Samba Configuration object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_modify_with_http_info(dn, settings_sambaconfig, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_sambaconfig: (required) + :type settings_sambaconfig: SettingsSambaconfig + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_sambaconfig', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambaconfig_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_sambaconfig_object_modify`") # noqa: E501 + # verify the required parameter 'settings_sambaconfig' is set + if self.api_client.client_side_validation and ('settings_sambaconfig' not in local_var_params or # noqa: E501 + local_var_params['settings_sambaconfig'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_sambaconfig` when calling `udm_settings_sambaconfig_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambaconfig_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambaconfig_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_sambaconfig' in local_var_params: + body_params = local_var_params['settings_sambaconfig'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/sambaconfig/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambaconfig_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Samba Configuration settings object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambaconfig_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_sambaconfig_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Samba Configuration settings object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambaconfig_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_sambaconfig_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambaconfig_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambaconfig_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/sambaconfig/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambaconfig_object_search(self, **kwargs): # noqa: E501 + """Search for Samba Configuration settings objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSambaconfigList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambaconfig_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_sambaconfig_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Samba Configuration settings objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSambaconfigList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambaconfig_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_sambaconfig_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_sambaconfig_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_sambaconfig_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_sambaconfig_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_sambaconfig_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSambaconfigList", + } + + return self.api_client.call_api( + '/settings/sambaconfig/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambaconfig_object_update(self, dn, settings_sambaconfig, **kwargs): # noqa: E501 + """Modify an Samba Configuration object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_update(dn, settings_sambaconfig, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_sambaconfig: (required) + :type settings_sambaconfig: SettingsSambaconfig + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambaconfig_object_update_with_http_info(dn, settings_sambaconfig, **kwargs) # noqa: E501 + + def udm_settings_sambaconfig_object_update_with_http_info(self, dn, settings_sambaconfig, **kwargs): # noqa: E501 + """Modify an Samba Configuration object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambaconfig_object_update_with_http_info(dn, settings_sambaconfig, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_sambaconfig: (required) + :type settings_sambaconfig: SettingsSambaconfig + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_sambaconfig', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambaconfig_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_sambaconfig_object_update`") # noqa: E501 + # verify the required parameter 'settings_sambaconfig' is set + if self.api_client.client_side_validation and ('settings_sambaconfig' not in local_var_params or # noqa: E501 + local_var_params['settings_sambaconfig'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_sambaconfig` when calling `udm_settings_sambaconfig_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambaconfig_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambaconfig_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_sambaconfig' in local_var_params: + body_params = local_var_params['settings_sambaconfig'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/sambaconfig/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_sambadomain_api.py b/openapi_client_udm/api/settings_sambadomain_api.py new file mode 100644 index 0000000..9e42ce9 --- /dev/null +++ b/openapi_client_udm/api/settings_sambadomain_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsSambadomainApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_sambadomain_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Samba Domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSambadomain + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambadomain_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_sambadomain_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Samba Domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSambadomain, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambadomain_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_sambadomain_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambadomain_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambadomain_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSambadomain", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/sambadomain/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambadomain_object_create(self, settings_sambadomain, **kwargs): # noqa: E501 + """Create a new Samba Domain object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_create(settings_sambadomain, async_req=True) + >>> result = thread.get() + + :param settings_sambadomain: (required) + :type settings_sambadomain: SettingsSambadomain + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambadomain_object_create_with_http_info(settings_sambadomain, **kwargs) # noqa: E501 + + def udm_settings_sambadomain_object_create_with_http_info(self, settings_sambadomain, **kwargs): # noqa: E501 + """Create a new Samba Domain object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_create_with_http_info(settings_sambadomain, async_req=True) + >>> result = thread.get() + + :param settings_sambadomain: (required) + :type settings_sambadomain: SettingsSambadomain + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_sambadomain', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambadomain_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_sambadomain' is set + if self.api_client.client_side_validation and ('settings_sambadomain' not in local_var_params or # noqa: E501 + local_var_params['settings_sambadomain'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_sambadomain` when calling `udm_settings_sambadomain_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_sambadomain' in local_var_params: + body_params = local_var_params['settings_sambadomain'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/sambadomain/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambadomain_object_modify(self, dn, settings_sambadomain, **kwargs): # noqa: E501 + """Modify or move an Samba Domain object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_modify(dn, settings_sambadomain, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_sambadomain: (required) + :type settings_sambadomain: SettingsSambadomain + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambadomain_object_modify_with_http_info(dn, settings_sambadomain, **kwargs) # noqa: E501 + + def udm_settings_sambadomain_object_modify_with_http_info(self, dn, settings_sambadomain, **kwargs): # noqa: E501 + """Modify or move an Samba Domain object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_modify_with_http_info(dn, settings_sambadomain, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_sambadomain: (required) + :type settings_sambadomain: SettingsSambadomain + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_sambadomain', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambadomain_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_sambadomain_object_modify`") # noqa: E501 + # verify the required parameter 'settings_sambadomain' is set + if self.api_client.client_side_validation and ('settings_sambadomain' not in local_var_params or # noqa: E501 + local_var_params['settings_sambadomain'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_sambadomain` when calling `udm_settings_sambadomain_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambadomain_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambadomain_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_sambadomain' in local_var_params: + body_params = local_var_params['settings_sambadomain'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/sambadomain/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambadomain_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Samba Domains object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambadomain_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_sambadomain_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Samba Domains object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambadomain_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_sambadomain_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambadomain_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambadomain_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/sambadomain/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambadomain_object_search(self, **kwargs): # noqa: E501 + """Search for Samba Domains objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSambadomainList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambadomain_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_sambadomain_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Samba Domains objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSambadomainList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambadomain_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_sambadomain_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_sambadomain_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_sambadomain_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_sambadomain_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_sambadomain_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSambadomainList", + } + + return self.api_client.call_api( + '/settings/sambadomain/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambadomain_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Samba Domain object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSambadomain + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambadomain_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_sambadomain_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Samba Domain object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSambadomain, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambadomain_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSambadomain", + } + + return self.api_client.call_api( + '/settings/sambadomain/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_sambadomain_object_update(self, dn, settings_sambadomain, **kwargs): # noqa: E501 + """Modify an Samba Domain object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_update(dn, settings_sambadomain, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_sambadomain: (required) + :type settings_sambadomain: SettingsSambadomain + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_sambadomain_object_update_with_http_info(dn, settings_sambadomain, **kwargs) # noqa: E501 + + def udm_settings_sambadomain_object_update_with_http_info(self, dn, settings_sambadomain, **kwargs): # noqa: E501 + """Modify an Samba Domain object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_sambadomain_object_update_with_http_info(dn, settings_sambadomain, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_sambadomain: (required) + :type settings_sambadomain: SettingsSambadomain + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_sambadomain', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_sambadomain_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_sambadomain_object_update`") # noqa: E501 + # verify the required parameter 'settings_sambadomain' is set + if self.api_client.client_side_validation and ('settings_sambadomain' not in local_var_params or # noqa: E501 + local_var_params['settings_sambadomain'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_sambadomain` when calling `udm_settings_sambadomain_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambadomain_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_sambadomain_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_sambadomain' in local_var_params: + body_params = local_var_params['settings_sambadomain'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/sambadomain/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_service_api.py b/openapi_client_udm/api/settings_service_api.py new file mode 100644 index 0000000..7a4e700 --- /dev/null +++ b/openapi_client_udm/api/settings_service_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsServiceApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_service_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsService + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_service_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_service_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsService, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_service_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_service_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_service_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_service_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsService", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/service/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_service_object_create(self, settings_service, **kwargs): # noqa: E501 + """Create a new Service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_create(settings_service, async_req=True) + >>> result = thread.get() + + :param settings_service: (required) + :type settings_service: SettingsService + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_service_object_create_with_http_info(settings_service, **kwargs) # noqa: E501 + + def udm_settings_service_object_create_with_http_info(self, settings_service, **kwargs): # noqa: E501 + """Create a new Service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_create_with_http_info(settings_service, async_req=True) + >>> result = thread.get() + + :param settings_service: (required) + :type settings_service: SettingsService + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_service', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_service_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_service' is set + if self.api_client.client_side_validation and ('settings_service' not in local_var_params or # noqa: E501 + local_var_params['settings_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_service` when calling `udm_settings_service_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_service' in local_var_params: + body_params = local_var_params['settings_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/service/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_service_object_modify(self, dn, settings_service, **kwargs): # noqa: E501 + """Modify or move an Service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_modify(dn, settings_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_service: (required) + :type settings_service: SettingsService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_service_object_modify_with_http_info(dn, settings_service, **kwargs) # noqa: E501 + + def udm_settings_service_object_modify_with_http_info(self, dn, settings_service, **kwargs): # noqa: E501 + """Modify or move an Service object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_modify_with_http_info(dn, settings_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_service: (required) + :type settings_service: SettingsService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_service', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_service_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_service_object_modify`") # noqa: E501 + # verify the required parameter 'settings_service' is set + if self.api_client.client_side_validation and ('settings_service' not in local_var_params or # noqa: E501 + local_var_params['settings_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_service` when calling `udm_settings_service_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_service_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_service_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_service' in local_var_params: + body_params = local_var_params['settings_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/service/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_service_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Services object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_service_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_service_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Services object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_service_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_service_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_service_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_service_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/service/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_service_object_search(self, **kwargs): # noqa: E501 + """Search for Services objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsServiceList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_service_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_service_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Services objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsServiceList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_service_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_service_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_service_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_service_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_service_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_service_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsServiceList", + } + + return self.api_client.call_api( + '/settings/service/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_service_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Service object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsService + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_service_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_service_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Service object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsService, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_service_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsService", + } + + return self.api_client.call_api( + '/settings/service/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_service_object_update(self, dn, settings_service, **kwargs): # noqa: E501 + """Modify an Service object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_update(dn, settings_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_service: (required) + :type settings_service: SettingsService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_service_object_update_with_http_info(dn, settings_service, **kwargs) # noqa: E501 + + def udm_settings_service_object_update_with_http_info(self, dn, settings_service, **kwargs): # noqa: E501 + """Modify an Service object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_service_object_update_with_http_info(dn, settings_service, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_service: (required) + :type settings_service: SettingsService + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_service', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_service_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_service_object_update`") # noqa: E501 + # verify the required parameter 'settings_service' is set + if self.api_client.client_side_validation and ('settings_service' not in local_var_params or # noqa: E501 + local_var_params['settings_service'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_service` when calling `udm_settings_service_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_service_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_service_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_service' in local_var_params: + body_params = local_var_params['settings_service'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/service/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_settings_api.py b/openapi_client_udm/api/settings_settings_api.py new file mode 100644 index 0000000..cfde1fb --- /dev/null +++ b/openapi_client_udm/api/settings_settings_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsSettingsApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_settings_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_settings_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSettings + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_settings_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_settings_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_settings_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSettings, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_settings_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_settings_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_settings_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_settings_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSettings", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/settings/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_settings_object_search(self, **kwargs): # noqa: E501 + """Search for Preferences objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_settings_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSettingsList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_settings_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_settings_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Preferences objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_settings_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSettingsList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_settings_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_settings_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_settings_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSettingsList", + } + + return self.api_client.call_api( + '/settings/settings/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_syntax_api.py b/openapi_client_udm/api/settings_syntax_api.py new file mode 100644 index 0000000..e091e13 --- /dev/null +++ b/openapi_client_udm/api/settings_syntax_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsSyntaxApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_syntax_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Syntax Definition object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSyntax + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_syntax_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_syntax_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Syntax Definition object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSyntax, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_syntax_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_syntax_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_syntax_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_syntax_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSyntax", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/syntax/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_syntax_object_create(self, settings_syntax, **kwargs): # noqa: E501 + """Create a new Syntax Definition object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_create(settings_syntax, async_req=True) + >>> result = thread.get() + + :param settings_syntax: (required) + :type settings_syntax: SettingsSyntax + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_syntax_object_create_with_http_info(settings_syntax, **kwargs) # noqa: E501 + + def udm_settings_syntax_object_create_with_http_info(self, settings_syntax, **kwargs): # noqa: E501 + """Create a new Syntax Definition object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_create_with_http_info(settings_syntax, async_req=True) + >>> result = thread.get() + + :param settings_syntax: (required) + :type settings_syntax: SettingsSyntax + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_syntax', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_syntax_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_syntax' is set + if self.api_client.client_side_validation and ('settings_syntax' not in local_var_params or # noqa: E501 + local_var_params['settings_syntax'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_syntax` when calling `udm_settings_syntax_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_syntax' in local_var_params: + body_params = local_var_params['settings_syntax'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/syntax/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_syntax_object_modify(self, dn, settings_syntax, **kwargs): # noqa: E501 + """Modify or move an Syntax Definition object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_modify(dn, settings_syntax, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_syntax: (required) + :type settings_syntax: SettingsSyntax + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_syntax_object_modify_with_http_info(dn, settings_syntax, **kwargs) # noqa: E501 + + def udm_settings_syntax_object_modify_with_http_info(self, dn, settings_syntax, **kwargs): # noqa: E501 + """Modify or move an Syntax Definition object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_modify_with_http_info(dn, settings_syntax, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_syntax: (required) + :type settings_syntax: SettingsSyntax + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_syntax', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_syntax_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_syntax_object_modify`") # noqa: E501 + # verify the required parameter 'settings_syntax' is set + if self.api_client.client_side_validation and ('settings_syntax' not in local_var_params or # noqa: E501 + local_var_params['settings_syntax'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_syntax` when calling `udm_settings_syntax_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_syntax_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_syntax_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_syntax' in local_var_params: + body_params = local_var_params['settings_syntax'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/syntax/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_syntax_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Syntax Definitions object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_syntax_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_syntax_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Syntax Definitions object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_syntax_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_syntax_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_syntax_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_syntax_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/syntax/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_syntax_object_search(self, **kwargs): # noqa: E501 + """Search for Syntax Definitions objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSyntaxList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_syntax_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_syntax_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Syntax Definitions objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSyntaxList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_syntax_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_syntax_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_syntax_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_syntax_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_syntax_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_syntax_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSyntaxList", + } + + return self.api_client.call_api( + '/settings/syntax/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_syntax_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Syntax Definition object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsSyntax + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_syntax_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_syntax_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Syntax Definition object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsSyntax, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_syntax_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsSyntax", + } + + return self.api_client.call_api( + '/settings/syntax/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_syntax_object_update(self, dn, settings_syntax, **kwargs): # noqa: E501 + """Modify an Syntax Definition object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_update(dn, settings_syntax, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_syntax: (required) + :type settings_syntax: SettingsSyntax + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_syntax_object_update_with_http_info(dn, settings_syntax, **kwargs) # noqa: E501 + + def udm_settings_syntax_object_update_with_http_info(self, dn, settings_syntax, **kwargs): # noqa: E501 + """Modify an Syntax Definition object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_syntax_object_update_with_http_info(dn, settings_syntax, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_syntax: (required) + :type settings_syntax: SettingsSyntax + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_syntax', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_syntax_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_syntax_object_update`") # noqa: E501 + # verify the required parameter 'settings_syntax' is set + if self.api_client.client_side_validation and ('settings_syntax' not in local_var_params or # noqa: E501 + local_var_params['settings_syntax'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_syntax` when calling `udm_settings_syntax_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_syntax_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_syntax_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_syntax' in local_var_params: + body_params = local_var_params['settings_syntax'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/syntax/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_udm_hook_api.py b/openapi_client_udm/api/settings_udm_hook_api.py new file mode 100644 index 0000000..4e61d17 --- /dev/null +++ b/openapi_client_udm/api/settings_udm_hook_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsUdmHookApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_udm_hook_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UDM Hook object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmHook + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_hook_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_udm_hook_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UDM Hook object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmHook, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_hook_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_hook_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_hook_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_hook_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmHook", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/udm_hook/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_hook_object_create(self, settings_udm_hook, **kwargs): # noqa: E501 + """Create a new UDM Hook object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_create(settings_udm_hook, async_req=True) + >>> result = thread.get() + + :param settings_udm_hook: (required) + :type settings_udm_hook: SettingsUdmHook + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_hook_object_create_with_http_info(settings_udm_hook, **kwargs) # noqa: E501 + + def udm_settings_udm_hook_object_create_with_http_info(self, settings_udm_hook, **kwargs): # noqa: E501 + """Create a new UDM Hook object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_create_with_http_info(settings_udm_hook, async_req=True) + >>> result = thread.get() + + :param settings_udm_hook: (required) + :type settings_udm_hook: SettingsUdmHook + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_udm_hook', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_hook_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_udm_hook' is set + if self.api_client.client_side_validation and ('settings_udm_hook' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_hook'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_hook` when calling `udm_settings_udm_hook_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_hook' in local_var_params: + body_params = local_var_params['settings_udm_hook'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/udm_hook/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_hook_object_modify(self, dn, settings_udm_hook, **kwargs): # noqa: E501 + """Modify or move an UDM Hook object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_modify(dn, settings_udm_hook, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_hook: (required) + :type settings_udm_hook: SettingsUdmHook + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_hook_object_modify_with_http_info(dn, settings_udm_hook, **kwargs) # noqa: E501 + + def udm_settings_udm_hook_object_modify_with_http_info(self, dn, settings_udm_hook, **kwargs): # noqa: E501 + """Modify or move an UDM Hook object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_modify_with_http_info(dn, settings_udm_hook, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_hook: (required) + :type settings_udm_hook: SettingsUdmHook + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_udm_hook', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_hook_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_hook_object_modify`") # noqa: E501 + # verify the required parameter 'settings_udm_hook' is set + if self.api_client.client_side_validation and ('settings_udm_hook' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_hook'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_hook` when calling `udm_settings_udm_hook_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_hook_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_hook_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_hook' in local_var_params: + body_params = local_var_params['settings_udm_hook'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/udm_hook/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_hook_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a UDM Hooks object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_hook_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_udm_hook_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a UDM Hooks object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_hook_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_hook_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_hook_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_hook_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/udm_hook/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_hook_object_search(self, **kwargs): # noqa: E501 + """Search for UDM Hooks objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmHookList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_hook_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_udm_hook_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for UDM Hooks objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmHookList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_hook_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_udm_hook_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_udm_hook_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_udm_hook_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_udm_hook_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_udm_hook_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmHookList", + } + + return self.api_client.call_api( + '/settings/udm_hook/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_hook_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an UDM Hook object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmHook + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_hook_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_udm_hook_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an UDM Hook object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmHook, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_hook_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmHook", + } + + return self.api_client.call_api( + '/settings/udm_hook/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_hook_object_update(self, dn, settings_udm_hook, **kwargs): # noqa: E501 + """Modify an UDM Hook object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_update(dn, settings_udm_hook, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_hook: (required) + :type settings_udm_hook: SettingsUdmHook + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_hook_object_update_with_http_info(dn, settings_udm_hook, **kwargs) # noqa: E501 + + def udm_settings_udm_hook_object_update_with_http_info(self, dn, settings_udm_hook, **kwargs): # noqa: E501 + """Modify an UDM Hook object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_hook_object_update_with_http_info(dn, settings_udm_hook, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_hook: (required) + :type settings_udm_hook: SettingsUdmHook + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_udm_hook', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_hook_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_hook_object_update`") # noqa: E501 + # verify the required parameter 'settings_udm_hook' is set + if self.api_client.client_side_validation and ('settings_udm_hook' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_hook'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_hook` when calling `udm_settings_udm_hook_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_hook_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_hook_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_hook' in local_var_params: + body_params = local_var_params['settings_udm_hook'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/udm_hook/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_udm_module_api.py b/openapi_client_udm/api/settings_udm_module_api.py new file mode 100644 index 0000000..cf5f9c3 --- /dev/null +++ b/openapi_client_udm/api/settings_udm_module_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsUdmModuleApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_udm_module_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UDM Module object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmModule + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_module_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_udm_module_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UDM Module object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmModule, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_module_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_module_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_module_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_module_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmModule", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/udm_module/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_module_object_create(self, settings_udm_module, **kwargs): # noqa: E501 + """Create a new UDM Module object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_create(settings_udm_module, async_req=True) + >>> result = thread.get() + + :param settings_udm_module: (required) + :type settings_udm_module: SettingsUdmModule + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_module_object_create_with_http_info(settings_udm_module, **kwargs) # noqa: E501 + + def udm_settings_udm_module_object_create_with_http_info(self, settings_udm_module, **kwargs): # noqa: E501 + """Create a new UDM Module object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_create_with_http_info(settings_udm_module, async_req=True) + >>> result = thread.get() + + :param settings_udm_module: (required) + :type settings_udm_module: SettingsUdmModule + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_udm_module', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_module_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_udm_module' is set + if self.api_client.client_side_validation and ('settings_udm_module' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_module'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_module` when calling `udm_settings_udm_module_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_module' in local_var_params: + body_params = local_var_params['settings_udm_module'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/udm_module/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_module_object_modify(self, dn, settings_udm_module, **kwargs): # noqa: E501 + """Modify or move an UDM Module object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_modify(dn, settings_udm_module, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_module: (required) + :type settings_udm_module: SettingsUdmModule + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_module_object_modify_with_http_info(dn, settings_udm_module, **kwargs) # noqa: E501 + + def udm_settings_udm_module_object_modify_with_http_info(self, dn, settings_udm_module, **kwargs): # noqa: E501 + """Modify or move an UDM Module object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_modify_with_http_info(dn, settings_udm_module, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_module: (required) + :type settings_udm_module: SettingsUdmModule + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_udm_module', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_module_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_module_object_modify`") # noqa: E501 + # verify the required parameter 'settings_udm_module' is set + if self.api_client.client_side_validation and ('settings_udm_module' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_module'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_module` when calling `udm_settings_udm_module_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_module_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_module_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_module' in local_var_params: + body_params = local_var_params['settings_udm_module'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/udm_module/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_module_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a UDM Modules object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_module_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_udm_module_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a UDM Modules object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_module_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_module_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_module_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_module_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/udm_module/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_module_object_search(self, **kwargs): # noqa: E501 + """Search for UDM Modules objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmModuleList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_module_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_udm_module_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for UDM Modules objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmModuleList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_module_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_udm_module_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_udm_module_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_udm_module_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_udm_module_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_udm_module_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmModuleList", + } + + return self.api_client.call_api( + '/settings/udm_module/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_module_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an UDM Module object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmModule + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_module_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_udm_module_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an UDM Module object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmModule, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_module_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmModule", + } + + return self.api_client.call_api( + '/settings/udm_module/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_module_object_update(self, dn, settings_udm_module, **kwargs): # noqa: E501 + """Modify an UDM Module object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_update(dn, settings_udm_module, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_module: (required) + :type settings_udm_module: SettingsUdmModule + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_module_object_update_with_http_info(dn, settings_udm_module, **kwargs) # noqa: E501 + + def udm_settings_udm_module_object_update_with_http_info(self, dn, settings_udm_module, **kwargs): # noqa: E501 + """Modify an UDM Module object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_module_object_update_with_http_info(dn, settings_udm_module, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_module: (required) + :type settings_udm_module: SettingsUdmModule + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_udm_module', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_module_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_module_object_update`") # noqa: E501 + # verify the required parameter 'settings_udm_module' is set + if self.api_client.client_side_validation and ('settings_udm_module' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_module'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_module` when calling `udm_settings_udm_module_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_module_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_module_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_module' in local_var_params: + body_params = local_var_params['settings_udm_module'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/udm_module/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_udm_syntax_api.py b/openapi_client_udm/api/settings_udm_syntax_api.py new file mode 100644 index 0000000..33105e6 --- /dev/null +++ b/openapi_client_udm/api/settings_udm_syntax_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsUdmSyntaxApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_udm_syntax_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UDM Syntax object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmSyntax + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_syntax_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_udm_syntax_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UDM Syntax object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmSyntax, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_syntax_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_syntax_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_syntax_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_syntax_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmSyntax", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/udm_syntax/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_syntax_object_create(self, settings_udm_syntax, **kwargs): # noqa: E501 + """Create a new UDM Syntax object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_create(settings_udm_syntax, async_req=True) + >>> result = thread.get() + + :param settings_udm_syntax: (required) + :type settings_udm_syntax: SettingsUdmSyntax + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_syntax_object_create_with_http_info(settings_udm_syntax, **kwargs) # noqa: E501 + + def udm_settings_udm_syntax_object_create_with_http_info(self, settings_udm_syntax, **kwargs): # noqa: E501 + """Create a new UDM Syntax object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_create_with_http_info(settings_udm_syntax, async_req=True) + >>> result = thread.get() + + :param settings_udm_syntax: (required) + :type settings_udm_syntax: SettingsUdmSyntax + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_udm_syntax', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_syntax_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_udm_syntax' is set + if self.api_client.client_side_validation and ('settings_udm_syntax' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_syntax'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_syntax` when calling `udm_settings_udm_syntax_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_syntax' in local_var_params: + body_params = local_var_params['settings_udm_syntax'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/udm_syntax/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_syntax_object_modify(self, dn, settings_udm_syntax, **kwargs): # noqa: E501 + """Modify or move an UDM Syntax object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_modify(dn, settings_udm_syntax, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_syntax: (required) + :type settings_udm_syntax: SettingsUdmSyntax + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_syntax_object_modify_with_http_info(dn, settings_udm_syntax, **kwargs) # noqa: E501 + + def udm_settings_udm_syntax_object_modify_with_http_info(self, dn, settings_udm_syntax, **kwargs): # noqa: E501 + """Modify or move an UDM Syntax object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_modify_with_http_info(dn, settings_udm_syntax, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_syntax: (required) + :type settings_udm_syntax: SettingsUdmSyntax + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_udm_syntax', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_syntax_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_syntax_object_modify`") # noqa: E501 + # verify the required parameter 'settings_udm_syntax' is set + if self.api_client.client_side_validation and ('settings_udm_syntax' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_syntax'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_syntax` when calling `udm_settings_udm_syntax_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_syntax_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_syntax_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_syntax' in local_var_params: + body_params = local_var_params['settings_udm_syntax'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/udm_syntax/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_syntax_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a UDM Syntaxes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_syntax_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_udm_syntax_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a UDM Syntaxes object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_syntax_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_syntax_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_syntax_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_syntax_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/udm_syntax/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_syntax_object_search(self, **kwargs): # noqa: E501 + """Search for UDM Syntaxes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmSyntaxList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_syntax_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_udm_syntax_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for UDM Syntaxes objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmSyntaxList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_syntax_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_udm_syntax_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_udm_syntax_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_udm_syntax_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_udm_syntax_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_udm_syntax_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmSyntaxList", + } + + return self.api_client.call_api( + '/settings/udm_syntax/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_syntax_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an UDM Syntax object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUdmSyntax + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_syntax_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_udm_syntax_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an UDM Syntax object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUdmSyntax, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_syntax_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUdmSyntax", + } + + return self.api_client.call_api( + '/settings/udm_syntax/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_udm_syntax_object_update(self, dn, settings_udm_syntax, **kwargs): # noqa: E501 + """Modify an UDM Syntax object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_update(dn, settings_udm_syntax, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_syntax: (required) + :type settings_udm_syntax: SettingsUdmSyntax + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_udm_syntax_object_update_with_http_info(dn, settings_udm_syntax, **kwargs) # noqa: E501 + + def udm_settings_udm_syntax_object_update_with_http_info(self, dn, settings_udm_syntax, **kwargs): # noqa: E501 + """Modify an UDM Syntax object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_udm_syntax_object_update_with_http_info(dn, settings_udm_syntax, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_udm_syntax: (required) + :type settings_udm_syntax: SettingsUdmSyntax + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_udm_syntax', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_udm_syntax_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_udm_syntax_object_update`") # noqa: E501 + # verify the required parameter 'settings_udm_syntax' is set + if self.api_client.client_side_validation and ('settings_udm_syntax' not in local_var_params or # noqa: E501 + local_var_params['settings_udm_syntax'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_udm_syntax` when calling `udm_settings_udm_syntax_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_syntax_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_udm_syntax_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_udm_syntax' in local_var_params: + body_params = local_var_params['settings_udm_syntax'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/udm_syntax/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_umc_operationset_api.py b/openapi_client_udm/api/settings_umc_operationset_api.py new file mode 100644 index 0000000..17c26e5 --- /dev/null +++ b/openapi_client_udm/api/settings_umc_operationset_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsUmcOperationsetApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_umc_operationset_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UMC operation set object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUmcOperationset + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_umc_operationset_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_umc_operationset_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the UMC operation set object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUmcOperationset, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_umc_operationset_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_umc_operationset_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_umc_operationset_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_umc_operationset_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUmcOperationset", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/umc_operationset/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_umc_operationset_object_create(self, settings_umc_operationset, **kwargs): # noqa: E501 + """Create a new UMC operation set object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_create(settings_umc_operationset, async_req=True) + >>> result = thread.get() + + :param settings_umc_operationset: (required) + :type settings_umc_operationset: SettingsUmcOperationset + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_umc_operationset_object_create_with_http_info(settings_umc_operationset, **kwargs) # noqa: E501 + + def udm_settings_umc_operationset_object_create_with_http_info(self, settings_umc_operationset, **kwargs): # noqa: E501 + """Create a new UMC operation set object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_create_with_http_info(settings_umc_operationset, async_req=True) + >>> result = thread.get() + + :param settings_umc_operationset: (required) + :type settings_umc_operationset: SettingsUmcOperationset + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_umc_operationset', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_umc_operationset_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_umc_operationset' is set + if self.api_client.client_side_validation and ('settings_umc_operationset' not in local_var_params or # noqa: E501 + local_var_params['settings_umc_operationset'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_umc_operationset` when calling `udm_settings_umc_operationset_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_umc_operationset' in local_var_params: + body_params = local_var_params['settings_umc_operationset'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/umc_operationset/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_umc_operationset_object_modify(self, dn, settings_umc_operationset, **kwargs): # noqa: E501 + """Modify or move an UMC operation set object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_modify(dn, settings_umc_operationset, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_umc_operationset: (required) + :type settings_umc_operationset: SettingsUmcOperationset + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_umc_operationset_object_modify_with_http_info(dn, settings_umc_operationset, **kwargs) # noqa: E501 + + def udm_settings_umc_operationset_object_modify_with_http_info(self, dn, settings_umc_operationset, **kwargs): # noqa: E501 + """Modify or move an UMC operation set object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_modify_with_http_info(dn, settings_umc_operationset, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_umc_operationset: (required) + :type settings_umc_operationset: SettingsUmcOperationset + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_umc_operationset', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_umc_operationset_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_umc_operationset_object_modify`") # noqa: E501 + # verify the required parameter 'settings_umc_operationset' is set + if self.api_client.client_side_validation and ('settings_umc_operationset' not in local_var_params or # noqa: E501 + local_var_params['settings_umc_operationset'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_umc_operationset` when calling `udm_settings_umc_operationset_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_umc_operationset_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_umc_operationset_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_umc_operationset' in local_var_params: + body_params = local_var_params['settings_umc_operationset'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/umc_operationset/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_umc_operationset_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a UMC operation sets object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_umc_operationset_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_umc_operationset_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a UMC operation sets object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_umc_operationset_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_umc_operationset_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_umc_operationset_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_umc_operationset_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/umc_operationset/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_umc_operationset_object_search(self, **kwargs): # noqa: E501 + """Search for UMC operation sets objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUmcOperationsetList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_umc_operationset_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_umc_operationset_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for UMC operation sets objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUmcOperationsetList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_umc_operationset_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_umc_operationset_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_umc_operationset_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_umc_operationset_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_umc_operationset_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_umc_operationset_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUmcOperationsetList", + } + + return self.api_client.call_api( + '/settings/umc_operationset/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_umc_operationset_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an UMC operation set object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUmcOperationset + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_umc_operationset_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_umc_operationset_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an UMC operation set object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUmcOperationset, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_umc_operationset_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUmcOperationset", + } + + return self.api_client.call_api( + '/settings/umc_operationset/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_umc_operationset_object_update(self, dn, settings_umc_operationset, **kwargs): # noqa: E501 + """Modify an UMC operation set object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_update(dn, settings_umc_operationset, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_umc_operationset: (required) + :type settings_umc_operationset: SettingsUmcOperationset + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_umc_operationset_object_update_with_http_info(dn, settings_umc_operationset, **kwargs) # noqa: E501 + + def udm_settings_umc_operationset_object_update_with_http_info(self, dn, settings_umc_operationset, **kwargs): # noqa: E501 + """Modify an UMC operation set object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_umc_operationset_object_update_with_http_info(dn, settings_umc_operationset, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_umc_operationset: (required) + :type settings_umc_operationset: SettingsUmcOperationset + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_umc_operationset', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_umc_operationset_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_umc_operationset_object_update`") # noqa: E501 + # verify the required parameter 'settings_umc_operationset' is set + if self.api_client.client_side_validation and ('settings_umc_operationset' not in local_var_params or # noqa: E501 + local_var_params['settings_umc_operationset'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_umc_operationset` when calling `udm_settings_umc_operationset_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_umc_operationset_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_umc_operationset_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_umc_operationset' in local_var_params: + body_params = local_var_params['settings_umc_operationset'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/umc_operationset/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/settings_usertemplate_api.py b/openapi_client_udm/api/settings_usertemplate_api.py new file mode 100644 index 0000000..ee27f0a --- /dev/null +++ b/openapi_client_udm/api/settings_usertemplate_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SettingsUsertemplateApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_settings_usertemplate_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the User Template object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUsertemplate + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_usertemplate_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_usertemplate_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the User Template object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUsertemplate, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_usertemplate_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_usertemplate_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_usertemplate_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_usertemplate_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUsertemplate", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/usertemplate/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_usertemplate_object_create(self, settings_usertemplate, **kwargs): # noqa: E501 + """Create a new User Template object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_create(settings_usertemplate, async_req=True) + >>> result = thread.get() + + :param settings_usertemplate: (required) + :type settings_usertemplate: SettingsUsertemplate + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_usertemplate_object_create_with_http_info(settings_usertemplate, **kwargs) # noqa: E501 + + def udm_settings_usertemplate_object_create_with_http_info(self, settings_usertemplate, **kwargs): # noqa: E501 + """Create a new User Template object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_create_with_http_info(settings_usertemplate, async_req=True) + >>> result = thread.get() + + :param settings_usertemplate: (required) + :type settings_usertemplate: SettingsUsertemplate + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'settings_usertemplate', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_usertemplate_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'settings_usertemplate' is set + if self.api_client.client_side_validation and ('settings_usertemplate' not in local_var_params or # noqa: E501 + local_var_params['settings_usertemplate'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_usertemplate` when calling `udm_settings_usertemplate_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_usertemplate' in local_var_params: + body_params = local_var_params['settings_usertemplate'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/settings/usertemplate/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_usertemplate_object_modify(self, dn, settings_usertemplate, **kwargs): # noqa: E501 + """Modify or move an User Template object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_modify(dn, settings_usertemplate, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_usertemplate: (required) + :type settings_usertemplate: SettingsUsertemplate + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_usertemplate_object_modify_with_http_info(dn, settings_usertemplate, **kwargs) # noqa: E501 + + def udm_settings_usertemplate_object_modify_with_http_info(self, dn, settings_usertemplate, **kwargs): # noqa: E501 + """Modify or move an User Template object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_modify_with_http_info(dn, settings_usertemplate, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_usertemplate: (required) + :type settings_usertemplate: SettingsUsertemplate + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_usertemplate', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_usertemplate_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_usertemplate_object_modify`") # noqa: E501 + # verify the required parameter 'settings_usertemplate' is set + if self.api_client.client_side_validation and ('settings_usertemplate' not in local_var_params or # noqa: E501 + local_var_params['settings_usertemplate'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_usertemplate` when calling `udm_settings_usertemplate_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_usertemplate_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_usertemplate_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_usertemplate' in local_var_params: + body_params = local_var_params['settings_usertemplate'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/settings/usertemplate/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_usertemplate_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a User Templates object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_usertemplate_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_settings_usertemplate_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a User Templates object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_usertemplate_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_usertemplate_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_usertemplate_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_usertemplate_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/usertemplate/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_usertemplate_object_search(self, **kwargs): # noqa: E501 + """Search for User Templates objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUsertemplateList + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_usertemplate_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_usertemplate_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for User Templates objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUsertemplateList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_usertemplate_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_settings_usertemplate_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_settings_usertemplate_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_settings_usertemplate_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_settings_usertemplate_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_settings_usertemplate_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUsertemplateList", + } + + return self.api_client.call_api( + '/settings/usertemplate/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_usertemplate_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an User Template object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SettingsUsertemplate + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_usertemplate_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_settings_usertemplate_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an User Template object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SettingsUsertemplate, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_usertemplate_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SettingsUsertemplate", + } + + return self.api_client.call_api( + '/settings/usertemplate/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_settings_usertemplate_object_update(self, dn, settings_usertemplate, **kwargs): # noqa: E501 + """Modify an User Template object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_update(dn, settings_usertemplate, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_usertemplate: (required) + :type settings_usertemplate: SettingsUsertemplate + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_settings_usertemplate_object_update_with_http_info(dn, settings_usertemplate, **kwargs) # noqa: E501 + + def udm_settings_usertemplate_object_update_with_http_info(self, dn, settings_usertemplate, **kwargs): # noqa: E501 + """Modify an User Template object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_settings_usertemplate_object_update_with_http_info(dn, settings_usertemplate, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param settings_usertemplate: (required) + :type settings_usertemplate: SettingsUsertemplate + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'settings_usertemplate', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_settings_usertemplate_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_settings_usertemplate_object_update`") # noqa: E501 + # verify the required parameter 'settings_usertemplate' is set + if self.api_client.client_side_validation and ('settings_usertemplate' not in local_var_params or # noqa: E501 + local_var_params['settings_usertemplate'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `settings_usertemplate` when calling `udm_settings_usertemplate_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_usertemplate_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_settings_usertemplate_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'settings_usertemplate' in local_var_params: + body_params = local_var_params['settings_usertemplate'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/settings/usertemplate/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/shares_print_api.py b/openapi_client_udm/api/shares_print_api.py new file mode 100644 index 0000000..86f0ca3 --- /dev/null +++ b/openapi_client_udm/api/shares_print_api.py @@ -0,0 +1,440 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SharesPrintApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_shares_print_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer share object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_print_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesPrint + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_print_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_shares_print_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer share object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_print_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesPrint, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_print_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_print_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_print_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_print_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesPrint", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/shares/print/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_print_object_search(self, **kwargs): # noqa: E501 + """Search for Printer shares objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_print_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesPrintList + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_print_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_shares_print_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Printer shares objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_print_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesPrintList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_print_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_shares_print_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_shares_print_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesPrintList", + } + + return self.api_client.call_api( + '/shares/print/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/shares_printer_api.py b/openapi_client_udm/api/shares_printer_api.py new file mode 100644 index 0000000..8dc50a0 --- /dev/null +++ b/openapi_client_udm/api/shares_printer_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SharesPrinterApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_shares_printer_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesPrinter + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printer_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_shares_printer_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesPrinter, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printer_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_printer_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printer_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printer_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesPrinter", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/shares/printer/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printer_object_create(self, shares_printer, **kwargs): # noqa: E501 + """Create a new Printer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_create(shares_printer, async_req=True) + >>> result = thread.get() + + :param shares_printer: (required) + :type shares_printer: SharesPrinter + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printer_object_create_with_http_info(shares_printer, **kwargs) # noqa: E501 + + def udm_shares_printer_object_create_with_http_info(self, shares_printer, **kwargs): # noqa: E501 + """Create a new Printer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_create_with_http_info(shares_printer, async_req=True) + >>> result = thread.get() + + :param shares_printer: (required) + :type shares_printer: SharesPrinter + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'shares_printer', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printer_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'shares_printer' is set + if self.api_client.client_side_validation and ('shares_printer' not in local_var_params or # noqa: E501 + local_var_params['shares_printer'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_printer` when calling `udm_shares_printer_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_printer' in local_var_params: + body_params = local_var_params['shares_printer'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/shares/printer/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printer_object_modify(self, dn, shares_printer, **kwargs): # noqa: E501 + """Modify or move an Printer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_modify(dn, shares_printer, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_printer: (required) + :type shares_printer: SharesPrinter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printer_object_modify_with_http_info(dn, shares_printer, **kwargs) # noqa: E501 + + def udm_shares_printer_object_modify_with_http_info(self, dn, shares_printer, **kwargs): # noqa: E501 + """Modify or move an Printer object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_modify_with_http_info(dn, shares_printer, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_printer: (required) + :type shares_printer: SharesPrinter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'shares_printer', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printer_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_printer_object_modify`") # noqa: E501 + # verify the required parameter 'shares_printer' is set + if self.api_client.client_side_validation and ('shares_printer' not in local_var_params or # noqa: E501 + local_var_params['shares_printer'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_printer` when calling `udm_shares_printer_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printer_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printer_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_printer' in local_var_params: + body_params = local_var_params['shares_printer'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/shares/printer/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printer_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Printers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printer_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_shares_printer_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Printers object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printer_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_printer_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printer_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printer_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/shares/printer/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printer_object_search(self, **kwargs): # noqa: E501 + """Search for Printers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesPrinterList + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printer_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_shares_printer_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Printers objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesPrinterList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printer_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_shares_printer_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_shares_printer_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_shares_printer_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_shares_printer_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_shares_printer_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesPrinterList", + } + + return self.api_client.call_api( + '/shares/printer/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printer_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Printer object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesPrinter + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printer_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_shares_printer_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Printer object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesPrinter, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printer_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesPrinter", + } + + return self.api_client.call_api( + '/shares/printer/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printer_object_update(self, dn, shares_printer, **kwargs): # noqa: E501 + """Modify an Printer object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_update(dn, shares_printer, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_printer: (required) + :type shares_printer: SharesPrinter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printer_object_update_with_http_info(dn, shares_printer, **kwargs) # noqa: E501 + + def udm_shares_printer_object_update_with_http_info(self, dn, shares_printer, **kwargs): # noqa: E501 + """Modify an Printer object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printer_object_update_with_http_info(dn, shares_printer, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_printer: (required) + :type shares_printer: SharesPrinter + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'shares_printer', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printer_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_printer_object_update`") # noqa: E501 + # verify the required parameter 'shares_printer' is set + if self.api_client.client_side_validation and ('shares_printer' not in local_var_params or # noqa: E501 + local_var_params['shares_printer'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_printer` when calling `udm_shares_printer_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printer_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printer_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_printer' in local_var_params: + body_params = local_var_params['shares_printer'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/shares/printer/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/shares_printergroup_api.py b/openapi_client_udm/api/shares_printergroup_api.py new file mode 100644 index 0000000..abf3f81 --- /dev/null +++ b/openapi_client_udm/api/shares_printergroup_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SharesPrintergroupApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_shares_printergroup_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer share group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesPrintergroup + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printergroup_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_shares_printergroup_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Printer share group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesPrintergroup, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printergroup_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_printergroup_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printergroup_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printergroup_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesPrintergroup", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/shares/printergroup/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printergroup_object_create(self, shares_printergroup, **kwargs): # noqa: E501 + """Create a new Printer share group object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_create(shares_printergroup, async_req=True) + >>> result = thread.get() + + :param shares_printergroup: (required) + :type shares_printergroup: SharesPrintergroup + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printergroup_object_create_with_http_info(shares_printergroup, **kwargs) # noqa: E501 + + def udm_shares_printergroup_object_create_with_http_info(self, shares_printergroup, **kwargs): # noqa: E501 + """Create a new Printer share group object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_create_with_http_info(shares_printergroup, async_req=True) + >>> result = thread.get() + + :param shares_printergroup: (required) + :type shares_printergroup: SharesPrintergroup + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'shares_printergroup', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printergroup_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'shares_printergroup' is set + if self.api_client.client_side_validation and ('shares_printergroup' not in local_var_params or # noqa: E501 + local_var_params['shares_printergroup'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_printergroup` when calling `udm_shares_printergroup_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_printergroup' in local_var_params: + body_params = local_var_params['shares_printergroup'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/shares/printergroup/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printergroup_object_modify(self, dn, shares_printergroup, **kwargs): # noqa: E501 + """Modify or move an Printer share group object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_modify(dn, shares_printergroup, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_printergroup: (required) + :type shares_printergroup: SharesPrintergroup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printergroup_object_modify_with_http_info(dn, shares_printergroup, **kwargs) # noqa: E501 + + def udm_shares_printergroup_object_modify_with_http_info(self, dn, shares_printergroup, **kwargs): # noqa: E501 + """Modify or move an Printer share group object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_modify_with_http_info(dn, shares_printergroup, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_printergroup: (required) + :type shares_printergroup: SharesPrintergroup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'shares_printergroup', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printergroup_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_printergroup_object_modify`") # noqa: E501 + # verify the required parameter 'shares_printergroup' is set + if self.api_client.client_side_validation and ('shares_printergroup' not in local_var_params or # noqa: E501 + local_var_params['shares_printergroup'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_printergroup` when calling `udm_shares_printergroup_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printergroup_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printergroup_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_printergroup' in local_var_params: + body_params = local_var_params['shares_printergroup'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/shares/printergroup/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printergroup_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Printer share groups object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printergroup_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_shares_printergroup_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Printer share groups object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printergroup_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_printergroup_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printergroup_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printergroup_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/shares/printergroup/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printergroup_object_search(self, **kwargs): # noqa: E501 + """Search for Printer share groups objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesPrintergroupList + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printergroup_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_shares_printergroup_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Printer share groups objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesPrintergroupList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printergroup_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_shares_printergroup_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_shares_printergroup_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_shares_printergroup_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_shares_printergroup_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_shares_printergroup_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesPrintergroupList", + } + + return self.api_client.call_api( + '/shares/printergroup/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printergroup_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Printer share group object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesPrintergroup + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printergroup_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_shares_printergroup_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Printer share group object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesPrintergroup, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printergroup_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesPrintergroup", + } + + return self.api_client.call_api( + '/shares/printergroup/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_printergroup_object_update(self, dn, shares_printergroup, **kwargs): # noqa: E501 + """Modify an Printer share group object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_update(dn, shares_printergroup, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_printergroup: (required) + :type shares_printergroup: SharesPrintergroup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_printergroup_object_update_with_http_info(dn, shares_printergroup, **kwargs) # noqa: E501 + + def udm_shares_printergroup_object_update_with_http_info(self, dn, shares_printergroup, **kwargs): # noqa: E501 + """Modify an Printer share group object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_printergroup_object_update_with_http_info(dn, shares_printergroup, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_printergroup: (required) + :type shares_printergroup: SharesPrintergroup + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'shares_printergroup', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_printergroup_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_printergroup_object_update`") # noqa: E501 + # verify the required parameter 'shares_printergroup' is set + if self.api_client.client_side_validation and ('shares_printergroup' not in local_var_params or # noqa: E501 + local_var_params['shares_printergroup'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_printergroup` when calling `udm_shares_printergroup_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printergroup_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_printergroup_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_printergroup' in local_var_params: + body_params = local_var_params['shares_printergroup'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/shares/printergroup/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/shares_share_api.py b/openapi_client_udm/api/shares_share_api.py new file mode 100644 index 0000000..fb29a8b --- /dev/null +++ b/openapi_client_udm/api/shares_share_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SharesShareApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_shares_share_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Share directory object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesShare + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_share_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_shares_share_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Share directory object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesShare, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_share_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_share_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_share_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_share_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesShare", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/shares/share/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_share_object_create(self, shares_share, **kwargs): # noqa: E501 + """Create a new Share directory object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_create(shares_share, async_req=True) + >>> result = thread.get() + + :param shares_share: (required) + :type shares_share: SharesShare + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_share_object_create_with_http_info(shares_share, **kwargs) # noqa: E501 + + def udm_shares_share_object_create_with_http_info(self, shares_share, **kwargs): # noqa: E501 + """Create a new Share directory object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_create_with_http_info(shares_share, async_req=True) + >>> result = thread.get() + + :param shares_share: (required) + :type shares_share: SharesShare + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'shares_share', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_share_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'shares_share' is set + if self.api_client.client_side_validation and ('shares_share' not in local_var_params or # noqa: E501 + local_var_params['shares_share'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_share` when calling `udm_shares_share_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_share' in local_var_params: + body_params = local_var_params['shares_share'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/shares/share/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_share_object_modify(self, dn, shares_share, **kwargs): # noqa: E501 + """Modify or move an Share directory object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_modify(dn, shares_share, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_share: (required) + :type shares_share: SharesShare + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_share_object_modify_with_http_info(dn, shares_share, **kwargs) # noqa: E501 + + def udm_shares_share_object_modify_with_http_info(self, dn, shares_share, **kwargs): # noqa: E501 + """Modify or move an Share directory object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_modify_with_http_info(dn, shares_share, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_share: (required) + :type shares_share: SharesShare + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'shares_share', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_share_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_share_object_modify`") # noqa: E501 + # verify the required parameter 'shares_share' is set + if self.api_client.client_side_validation and ('shares_share' not in local_var_params or # noqa: E501 + local_var_params['shares_share'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_share` when calling `udm_shares_share_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_share_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_share_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_share' in local_var_params: + body_params = local_var_params['shares_share'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/shares/share/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_share_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Share directories object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_share_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_shares_share_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Share directories object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_share_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_share_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_share_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_share_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/shares/share/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_share_object_search(self, **kwargs): # noqa: E501 + """Search for Share directories objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesShareList + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_share_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_shares_share_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Share directories objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesShareList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_share_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_shares_share_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_shares_share_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_shares_share_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_shares_share_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_shares_share_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesShareList", + } + + return self.api_client.call_api( + '/shares/share/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_share_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Share directory object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SharesShare + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_share_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_shares_share_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Share directory object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SharesShare, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_share_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "SharesShare", + } + + return self.api_client.call_api( + '/shares/share/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_shares_share_object_update(self, dn, shares_share, **kwargs): # noqa: E501 + """Modify an Share directory object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_update(dn, shares_share, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_share: (required) + :type shares_share: SharesShare + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_shares_share_object_update_with_http_info(dn, shares_share, **kwargs) # noqa: E501 + + def udm_shares_share_object_update_with_http_info(self, dn, shares_share, **kwargs): # noqa: E501 + """Modify an Share directory object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_shares_share_object_update_with_http_info(dn, shares_share, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param shares_share: (required) + :type shares_share: SharesShare + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'shares_share', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_shares_share_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_shares_share_object_update`") # noqa: E501 + # verify the required parameter 'shares_share' is set + if self.api_client.client_side_validation and ('shares_share' not in local_var_params or # noqa: E501 + local_var_params['shares_share'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `shares_share` when calling `udm_shares_share_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_share_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_shares_share_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'shares_share' in local_var_params: + body_params = local_var_params['shares_share'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/shares/share/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/users_contact_api.py b/openapi_client_udm/api/users_contact_api.py new file mode 100644 index 0000000..626b26d --- /dev/null +++ b/openapi_client_udm/api/users_contact_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UsersContactApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_users_contact_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Contact object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersContact + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_contact_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_users_contact_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Contact object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersContact, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_contact_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_contact_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_contact_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_contact_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersContact", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/contact/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_contact_object_create(self, users_contact, **kwargs): # noqa: E501 + """Create a new Contact object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_create(users_contact, async_req=True) + >>> result = thread.get() + + :param users_contact: (required) + :type users_contact: UsersContact + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_contact_object_create_with_http_info(users_contact, **kwargs) # noqa: E501 + + def udm_users_contact_object_create_with_http_info(self, users_contact, **kwargs): # noqa: E501 + """Create a new Contact object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_create_with_http_info(users_contact, async_req=True) + >>> result = thread.get() + + :param users_contact: (required) + :type users_contact: UsersContact + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'users_contact', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_contact_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'users_contact' is set + if self.api_client.client_side_validation and ('users_contact' not in local_var_params or # noqa: E501 + local_var_params['users_contact'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_contact` when calling `udm_users_contact_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_contact' in local_var_params: + body_params = local_var_params['users_contact'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/users/contact/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_contact_object_modify(self, dn, users_contact, **kwargs): # noqa: E501 + """Modify or move an Contact object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_modify(dn, users_contact, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_contact: (required) + :type users_contact: UsersContact + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_contact_object_modify_with_http_info(dn, users_contact, **kwargs) # noqa: E501 + + def udm_users_contact_object_modify_with_http_info(self, dn, users_contact, **kwargs): # noqa: E501 + """Modify or move an Contact object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_modify_with_http_info(dn, users_contact, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_contact: (required) + :type users_contact: UsersContact + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_contact', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_contact_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_contact_object_modify`") # noqa: E501 + # verify the required parameter 'users_contact' is set + if self.api_client.client_side_validation and ('users_contact' not in local_var_params or # noqa: E501 + local_var_params['users_contact'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_contact` when calling `udm_users_contact_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_contact_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_contact_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_contact' in local_var_params: + body_params = local_var_params['users_contact'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/contact/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_contact_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Contact information object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_contact_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_users_contact_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Contact information object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_contact_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_contact_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_contact_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_contact_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/users/contact/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_contact_object_search(self, **kwargs): # noqa: E501 + """Search for Contact information objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersContactList + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_contact_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_users_contact_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Contact information objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersContactList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_contact_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_users_contact_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_users_contact_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_users_contact_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_users_contact_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_users_contact_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersContactList", + } + + return self.api_client.call_api( + '/users/contact/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_contact_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Contact object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersContact + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_contact_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_users_contact_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Contact object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersContact, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_contact_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersContact", + } + + return self.api_client.call_api( + '/users/contact/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_contact_object_update(self, dn, users_contact, **kwargs): # noqa: E501 + """Modify an Contact object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_update(dn, users_contact, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_contact: (required) + :type users_contact: UsersContact + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_contact_object_update_with_http_info(dn, users_contact, **kwargs) # noqa: E501 + + def udm_users_contact_object_update_with_http_info(self, dn, users_contact, **kwargs): # noqa: E501 + """Modify an Contact object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_contact_object_update_with_http_info(dn, users_contact, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_contact: (required) + :type users_contact: UsersContact + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_contact', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_contact_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_contact_object_update`") # noqa: E501 + # verify the required parameter 'users_contact' is set + if self.api_client.client_side_validation and ('users_contact' not in local_var_params or # noqa: E501 + local_var_params['users_contact'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_contact` when calling `udm_users_contact_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_contact_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_contact_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_contact' in local_var_params: + body_params = local_var_params['users_contact'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/users/contact/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/users_ldap_api.py b/openapi_client_udm/api/users_ldap_api.py new file mode 100644 index 0000000..160c443 --- /dev/null +++ b/openapi_client_udm/api/users_ldap_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UsersLdapApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_users_ldap_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Simple authentication account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersLdap + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_ldap_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_users_ldap_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Simple authentication account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersLdap, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_ldap_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_ldap_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_ldap_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_ldap_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersLdap", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/ldap/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_ldap_object_create(self, users_ldap, **kwargs): # noqa: E501 + """Create a new Simple authentication account object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_create(users_ldap, async_req=True) + >>> result = thread.get() + + :param users_ldap: (required) + :type users_ldap: UsersLdap + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_ldap_object_create_with_http_info(users_ldap, **kwargs) # noqa: E501 + + def udm_users_ldap_object_create_with_http_info(self, users_ldap, **kwargs): # noqa: E501 + """Create a new Simple authentication account object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_create_with_http_info(users_ldap, async_req=True) + >>> result = thread.get() + + :param users_ldap: (required) + :type users_ldap: UsersLdap + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'users_ldap', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_ldap_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'users_ldap' is set + if self.api_client.client_side_validation and ('users_ldap' not in local_var_params or # noqa: E501 + local_var_params['users_ldap'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_ldap` when calling `udm_users_ldap_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_ldap' in local_var_params: + body_params = local_var_params['users_ldap'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/users/ldap/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_ldap_object_modify(self, dn, users_ldap, **kwargs): # noqa: E501 + """Modify or move an Simple authentication account object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_modify(dn, users_ldap, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_ldap: (required) + :type users_ldap: UsersLdap + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_ldap_object_modify_with_http_info(dn, users_ldap, **kwargs) # noqa: E501 + + def udm_users_ldap_object_modify_with_http_info(self, dn, users_ldap, **kwargs): # noqa: E501 + """Modify or move an Simple authentication account object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_modify_with_http_info(dn, users_ldap, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_ldap: (required) + :type users_ldap: UsersLdap + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_ldap', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_ldap_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_ldap_object_modify`") # noqa: E501 + # verify the required parameter 'users_ldap' is set + if self.api_client.client_side_validation and ('users_ldap' not in local_var_params or # noqa: E501 + local_var_params['users_ldap'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_ldap` when calling `udm_users_ldap_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_ldap_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_ldap_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_ldap' in local_var_params: + body_params = local_var_params['users_ldap'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/ldap/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_ldap_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Simple authentication accounts object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_ldap_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_users_ldap_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Simple authentication accounts object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_ldap_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_ldap_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_ldap_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_ldap_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/users/ldap/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_ldap_object_search(self, **kwargs): # noqa: E501 + """Search for Simple authentication accounts objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersLdapList + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_ldap_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_users_ldap_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Simple authentication accounts objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersLdapList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_ldap_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_users_ldap_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_users_ldap_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_users_ldap_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_users_ldap_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_users_ldap_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersLdapList", + } + + return self.api_client.call_api( + '/users/ldap/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_ldap_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Simple authentication account object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersLdap + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_ldap_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_users_ldap_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Simple authentication account object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersLdap, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_ldap_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersLdap", + } + + return self.api_client.call_api( + '/users/ldap/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_ldap_object_update(self, dn, users_ldap, **kwargs): # noqa: E501 + """Modify an Simple authentication account object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_update(dn, users_ldap, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_ldap: (required) + :type users_ldap: UsersLdap + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_ldap_object_update_with_http_info(dn, users_ldap, **kwargs) # noqa: E501 + + def udm_users_ldap_object_update_with_http_info(self, dn, users_ldap, **kwargs): # noqa: E501 + """Modify an Simple authentication account object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_ldap_object_update_with_http_info(dn, users_ldap, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_ldap: (required) + :type users_ldap: UsersLdap + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_ldap', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_ldap_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_ldap_object_update`") # noqa: E501 + # verify the required parameter 'users_ldap' is set + if self.api_client.client_side_validation and ('users_ldap' not in local_var_params or # noqa: E501 + local_var_params['users_ldap'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_ldap` when calling `udm_users_ldap_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_ldap_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_ldap_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_ldap' in local_var_params: + body_params = local_var_params['users_ldap'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/users/ldap/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/users_passwd_api.py b/openapi_client_udm/api/users_passwd_api.py new file mode 100644 index 0000000..c938166 --- /dev/null +++ b/openapi_client_udm/api/users_passwd_api.py @@ -0,0 +1,645 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UsersPasswdApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_users_passwd_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Password object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_passwd_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersPasswd + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_passwd_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_users_passwd_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Password object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_passwd_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersPasswd, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_passwd_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_passwd_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_passwd_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_passwd_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersPasswd", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/passwd/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_passwd_object_modify(self, dn, users_passwd, **kwargs): # noqa: E501 + """Modify or move an Password object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_passwd_object_modify(dn, users_passwd, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_passwd: (required) + :type users_passwd: UsersPasswd + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_passwd_object_modify_with_http_info(dn, users_passwd, **kwargs) # noqa: E501 + + def udm_users_passwd_object_modify_with_http_info(self, dn, users_passwd, **kwargs): # noqa: E501 + """Modify or move an Password object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_passwd_object_modify_with_http_info(dn, users_passwd, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_passwd: (required) + :type users_passwd: UsersPasswd + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_passwd', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_passwd_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_passwd_object_modify`") # noqa: E501 + # verify the required parameter 'users_passwd' is set + if self.api_client.client_side_validation and ('users_passwd' not in local_var_params or # noqa: E501 + local_var_params['users_passwd'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_passwd` when calling `udm_users_passwd_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_passwd_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_passwd_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_passwd' in local_var_params: + body_params = local_var_params['users_passwd'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/passwd/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_passwd_object_update(self, dn, users_passwd, **kwargs): # noqa: E501 + """Modify an Password object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_passwd_object_update(dn, users_passwd, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_passwd: (required) + :type users_passwd: UsersPasswd + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_passwd_object_update_with_http_info(dn, users_passwd, **kwargs) # noqa: E501 + + def udm_users_passwd_object_update_with_http_info(self, dn, users_passwd, **kwargs): # noqa: E501 + """Modify an Password object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_passwd_object_update_with_http_info(dn, users_passwd, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_passwd: (required) + :type users_passwd: UsersPasswd + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_passwd', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_passwd_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_passwd_object_update`") # noqa: E501 + # verify the required parameter 'users_passwd' is set + if self.api_client.client_side_validation and ('users_passwd' not in local_var_params or # noqa: E501 + local_var_params['users_passwd'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_passwd` when calling `udm_users_passwd_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_passwd_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_passwd_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_passwd' in local_var_params: + body_params = local_var_params['users_passwd'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/users/passwd/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/users_self_api.py b/openapi_client_udm/api/users_self_api.py new file mode 100644 index 0000000..d653bf5 --- /dev/null +++ b/openapi_client_udm/api/users_self_api.py @@ -0,0 +1,863 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UsersSelfApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_users_self_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Self object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_self_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersSelf + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_self_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_users_self_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Self object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_self_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersSelf, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_self_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_self_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_self_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_self_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersSelf", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/self/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_self_object_modify(self, dn, users_self, **kwargs): # noqa: E501 + """Modify or move an Self object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_self_object_modify(dn, users_self, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_self: (required) + :type users_self: UsersSelf + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_self_object_modify_with_http_info(dn, users_self, **kwargs) # noqa: E501 + + def udm_users_self_object_modify_with_http_info(self, dn, users_self, **kwargs): # noqa: E501 + """Modify or move an Self object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_self_object_modify_with_http_info(dn, users_self, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_self: (required) + :type users_self: UsersSelf + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_self', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_self_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_self_object_modify`") # noqa: E501 + # verify the required parameter 'users_self' is set + if self.api_client.client_side_validation and ('users_self' not in local_var_params or # noqa: E501 + local_var_params['users_self'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_self` when calling `udm_users_self_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_self_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_self_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_self' in local_var_params: + body_params = local_var_params['users_self'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/self/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_self_object_search(self, **kwargs): # noqa: E501 + """Search for Self objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_self_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersSelfList + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_self_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_users_self_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Self objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_self_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersSelfList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_self_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_users_self_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_users_self_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersSelfList", + } + + return self.api_client.call_api( + '/users/self/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_self_object_update(self, dn, users_self, **kwargs): # noqa: E501 + """Modify an Self object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_self_object_update(dn, users_self, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_self: (required) + :type users_self: UsersSelf + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_self_object_update_with_http_info(dn, users_self, **kwargs) # noqa: E501 + + def udm_users_self_object_update_with_http_info(self, dn, users_self, **kwargs): # noqa: E501 + """Modify an Self object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_self_object_update_with_http_info(dn, users_self, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_self: (required) + :type users_self: UsersSelf + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_self', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_self_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_self_object_update`") # noqa: E501 + # verify the required parameter 'users_self' is set + if self.api_client.client_side_validation and ('users_self' not in local_var_params or # noqa: E501 + local_var_params['users_self'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_self` when calling `udm_users_self_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_self_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_self_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_self' in local_var_params: + body_params = local_var_params['users_self'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/users/self/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/users_user_api.py b/openapi_client_udm/api/users_user_api.py new file mode 100644 index 0000000..7332876 --- /dev/null +++ b/openapi_client_udm/api/users_user_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UsersUserApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_users_user_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the User object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersUser + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_user_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_users_user_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the User object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersUser, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_user_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_user_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_user_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_user_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersUser", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/user/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_user_object_create(self, users_user, **kwargs): # noqa: E501 + """Create a new User object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_create(users_user, async_req=True) + >>> result = thread.get() + + :param users_user: (required) + :type users_user: UsersUser + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_user_object_create_with_http_info(users_user, **kwargs) # noqa: E501 + + def udm_users_user_object_create_with_http_info(self, users_user, **kwargs): # noqa: E501 + """Create a new User object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_create_with_http_info(users_user, async_req=True) + >>> result = thread.get() + + :param users_user: (required) + :type users_user: UsersUser + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'users_user', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_user_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'users_user' is set + if self.api_client.client_side_validation and ('users_user' not in local_var_params or # noqa: E501 + local_var_params['users_user'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_user` when calling `udm_users_user_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_user' in local_var_params: + body_params = local_var_params['users_user'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/users/user/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_user_object_modify(self, dn, users_user, **kwargs): # noqa: E501 + """Modify or move an User object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_modify(dn, users_user, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_user: (required) + :type users_user: UsersUser + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_user_object_modify_with_http_info(dn, users_user, **kwargs) # noqa: E501 + + def udm_users_user_object_modify_with_http_info(self, dn, users_user, **kwargs): # noqa: E501 + """Modify or move an User object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_modify_with_http_info(dn, users_user, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_user: (required) + :type users_user: UsersUser + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_user', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_user_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_user_object_modify`") # noqa: E501 + # verify the required parameter 'users_user' is set + if self.api_client.client_side_validation and ('users_user' not in local_var_params or # noqa: E501 + local_var_params['users_user'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_user` when calling `udm_users_user_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_user_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_user_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_user' in local_var_params: + body_params = local_var_params['users_user'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/users/user/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_user_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Users object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_user_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_users_user_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Users object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_user_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_user_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_user_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_user_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/users/user/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_user_object_search(self, **kwargs): # noqa: E501 + """Search for Users objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersUserList + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_user_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_users_user_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Users objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersUserList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_user_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_users_user_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_users_user_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_users_user_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_users_user_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_users_user_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersUserList", + } + + return self.api_client.call_api( + '/users/user/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_user_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an User object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UsersUser + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_user_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_users_user_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an User object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UsersUser, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_user_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UsersUser", + } + + return self.api_client.call_api( + '/users/user/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_users_user_object_update(self, dn, users_user, **kwargs): # noqa: E501 + """Modify an User object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_update(dn, users_user, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_user: (required) + :type users_user: UsersUser + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_users_user_object_update_with_http_info(dn, users_user, **kwargs) # noqa: E501 + + def udm_users_user_object_update_with_http_info(self, dn, users_user, **kwargs): # noqa: E501 + """Modify an User object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_users_user_object_update_with_http_info(dn, users_user, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param users_user: (required) + :type users_user: UsersUser + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'users_user', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_users_user_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_users_user_object_update`") # noqa: E501 + # verify the required parameter 'users_user' is set + if self.api_client.client_side_validation and ('users_user' not in local_var_params or # noqa: E501 + local_var_params['users_user'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `users_user` when calling `udm_users_user_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_user_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_users_user_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'users_user' in local_var_params: + body_params = local_var_params['users_user'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/users/user/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/uvmm_cloudconnection_api.py b/openapi_client_udm/api/uvmm_cloudconnection_api.py new file mode 100644 index 0000000..009a4e0 --- /dev/null +++ b/openapi_client_udm/api/uvmm_cloudconnection_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UvmmCloudconnectionApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_uvmm_cloudconnection_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Cloud Connection object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmCloudconnection + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudconnection_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_uvmm_cloudconnection_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Cloud Connection object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmCloudconnection, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudconnection_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_cloudconnection_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudconnection_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudconnection_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmCloudconnection", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/uvmm/cloudconnection/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudconnection_object_create(self, uvmm_cloudconnection, **kwargs): # noqa: E501 + """Create a new Cloud Connection object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_create(uvmm_cloudconnection, async_req=True) + >>> result = thread.get() + + :param uvmm_cloudconnection: (required) + :type uvmm_cloudconnection: UvmmCloudconnection + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudconnection_object_create_with_http_info(uvmm_cloudconnection, **kwargs) # noqa: E501 + + def udm_uvmm_cloudconnection_object_create_with_http_info(self, uvmm_cloudconnection, **kwargs): # noqa: E501 + """Create a new Cloud Connection object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_create_with_http_info(uvmm_cloudconnection, async_req=True) + >>> result = thread.get() + + :param uvmm_cloudconnection: (required) + :type uvmm_cloudconnection: UvmmCloudconnection + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'uvmm_cloudconnection', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudconnection_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'uvmm_cloudconnection' is set + if self.api_client.client_side_validation and ('uvmm_cloudconnection' not in local_var_params or # noqa: E501 + local_var_params['uvmm_cloudconnection'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_cloudconnection` when calling `udm_uvmm_cloudconnection_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_cloudconnection' in local_var_params: + body_params = local_var_params['uvmm_cloudconnection'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/uvmm/cloudconnection/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudconnection_object_modify(self, dn, uvmm_cloudconnection, **kwargs): # noqa: E501 + """Modify or move an Cloud Connection object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_modify(dn, uvmm_cloudconnection, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_cloudconnection: (required) + :type uvmm_cloudconnection: UvmmCloudconnection + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudconnection_object_modify_with_http_info(dn, uvmm_cloudconnection, **kwargs) # noqa: E501 + + def udm_uvmm_cloudconnection_object_modify_with_http_info(self, dn, uvmm_cloudconnection, **kwargs): # noqa: E501 + """Modify or move an Cloud Connection object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_modify_with_http_info(dn, uvmm_cloudconnection, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_cloudconnection: (required) + :type uvmm_cloudconnection: UvmmCloudconnection + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'uvmm_cloudconnection', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudconnection_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_cloudconnection_object_modify`") # noqa: E501 + # verify the required parameter 'uvmm_cloudconnection' is set + if self.api_client.client_side_validation and ('uvmm_cloudconnection' not in local_var_params or # noqa: E501 + local_var_params['uvmm_cloudconnection'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_cloudconnection` when calling `udm_uvmm_cloudconnection_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudconnection_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudconnection_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_cloudconnection' in local_var_params: + body_params = local_var_params['uvmm_cloudconnection'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/uvmm/cloudconnection/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudconnection_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Cloud Connections object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudconnection_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_uvmm_cloudconnection_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Cloud Connections object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudconnection_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_cloudconnection_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudconnection_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudconnection_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/uvmm/cloudconnection/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudconnection_object_search(self, **kwargs): # noqa: E501 + """Search for Cloud Connections objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmCloudconnectionList + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudconnection_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_uvmm_cloudconnection_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Cloud Connections objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmCloudconnectionList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudconnection_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_uvmm_cloudconnection_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_uvmm_cloudconnection_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_uvmm_cloudconnection_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_uvmm_cloudconnection_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_uvmm_cloudconnection_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmCloudconnectionList", + } + + return self.api_client.call_api( + '/uvmm/cloudconnection/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudconnection_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Cloud Connection object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmCloudconnection + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudconnection_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_uvmm_cloudconnection_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Cloud Connection object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmCloudconnection, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudconnection_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmCloudconnection", + } + + return self.api_client.call_api( + '/uvmm/cloudconnection/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudconnection_object_update(self, dn, uvmm_cloudconnection, **kwargs): # noqa: E501 + """Modify an Cloud Connection object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_update(dn, uvmm_cloudconnection, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_cloudconnection: (required) + :type uvmm_cloudconnection: UvmmCloudconnection + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudconnection_object_update_with_http_info(dn, uvmm_cloudconnection, **kwargs) # noqa: E501 + + def udm_uvmm_cloudconnection_object_update_with_http_info(self, dn, uvmm_cloudconnection, **kwargs): # noqa: E501 + """Modify an Cloud Connection object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudconnection_object_update_with_http_info(dn, uvmm_cloudconnection, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_cloudconnection: (required) + :type uvmm_cloudconnection: UvmmCloudconnection + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'uvmm_cloudconnection', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudconnection_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_cloudconnection_object_update`") # noqa: E501 + # verify the required parameter 'uvmm_cloudconnection' is set + if self.api_client.client_side_validation and ('uvmm_cloudconnection' not in local_var_params or # noqa: E501 + local_var_params['uvmm_cloudconnection'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_cloudconnection` when calling `udm_uvmm_cloudconnection_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudconnection_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudconnection_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_cloudconnection' in local_var_params: + body_params = local_var_params['uvmm_cloudconnection'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/uvmm/cloudconnection/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/uvmm_cloudtype_api.py b/openapi_client_udm/api/uvmm_cloudtype_api.py new file mode 100644 index 0000000..6d4b5ad --- /dev/null +++ b/openapi_client_udm/api/uvmm_cloudtype_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UvmmCloudtypeApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_uvmm_cloudtype_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Cloud Type object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmCloudtype + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudtype_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_uvmm_cloudtype_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Cloud Type object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmCloudtype, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudtype_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_cloudtype_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudtype_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudtype_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmCloudtype", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/uvmm/cloudtype/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudtype_object_create(self, uvmm_cloudtype, **kwargs): # noqa: E501 + """Create a new Cloud Type object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_create(uvmm_cloudtype, async_req=True) + >>> result = thread.get() + + :param uvmm_cloudtype: (required) + :type uvmm_cloudtype: UvmmCloudtype + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudtype_object_create_with_http_info(uvmm_cloudtype, **kwargs) # noqa: E501 + + def udm_uvmm_cloudtype_object_create_with_http_info(self, uvmm_cloudtype, **kwargs): # noqa: E501 + """Create a new Cloud Type object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_create_with_http_info(uvmm_cloudtype, async_req=True) + >>> result = thread.get() + + :param uvmm_cloudtype: (required) + :type uvmm_cloudtype: UvmmCloudtype + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'uvmm_cloudtype', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudtype_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'uvmm_cloudtype' is set + if self.api_client.client_side_validation and ('uvmm_cloudtype' not in local_var_params or # noqa: E501 + local_var_params['uvmm_cloudtype'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_cloudtype` when calling `udm_uvmm_cloudtype_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_cloudtype' in local_var_params: + body_params = local_var_params['uvmm_cloudtype'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/uvmm/cloudtype/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudtype_object_modify(self, dn, uvmm_cloudtype, **kwargs): # noqa: E501 + """Modify or move an Cloud Type object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_modify(dn, uvmm_cloudtype, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_cloudtype: (required) + :type uvmm_cloudtype: UvmmCloudtype + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudtype_object_modify_with_http_info(dn, uvmm_cloudtype, **kwargs) # noqa: E501 + + def udm_uvmm_cloudtype_object_modify_with_http_info(self, dn, uvmm_cloudtype, **kwargs): # noqa: E501 + """Modify or move an Cloud Type object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_modify_with_http_info(dn, uvmm_cloudtype, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_cloudtype: (required) + :type uvmm_cloudtype: UvmmCloudtype + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'uvmm_cloudtype', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudtype_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_cloudtype_object_modify`") # noqa: E501 + # verify the required parameter 'uvmm_cloudtype' is set + if self.api_client.client_side_validation and ('uvmm_cloudtype' not in local_var_params or # noqa: E501 + local_var_params['uvmm_cloudtype'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_cloudtype` when calling `udm_uvmm_cloudtype_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudtype_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudtype_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_cloudtype' in local_var_params: + body_params = local_var_params['uvmm_cloudtype'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/uvmm/cloudtype/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudtype_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Cloud Types object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudtype_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_uvmm_cloudtype_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Cloud Types object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudtype_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_cloudtype_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudtype_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudtype_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/uvmm/cloudtype/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudtype_object_search(self, **kwargs): # noqa: E501 + """Search for Cloud Types objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmCloudtypeList + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudtype_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_uvmm_cloudtype_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Cloud Types objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmCloudtypeList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudtype_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_uvmm_cloudtype_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_uvmm_cloudtype_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_uvmm_cloudtype_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_uvmm_cloudtype_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_uvmm_cloudtype_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmCloudtypeList", + } + + return self.api_client.call_api( + '/uvmm/cloudtype/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudtype_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Cloud Type object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmCloudtype + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudtype_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_uvmm_cloudtype_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Cloud Type object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmCloudtype, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudtype_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmCloudtype", + } + + return self.api_client.call_api( + '/uvmm/cloudtype/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_cloudtype_object_update(self, dn, uvmm_cloudtype, **kwargs): # noqa: E501 + """Modify an Cloud Type object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_update(dn, uvmm_cloudtype, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_cloudtype: (required) + :type uvmm_cloudtype: UvmmCloudtype + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_cloudtype_object_update_with_http_info(dn, uvmm_cloudtype, **kwargs) # noqa: E501 + + def udm_uvmm_cloudtype_object_update_with_http_info(self, dn, uvmm_cloudtype, **kwargs): # noqa: E501 + """Modify an Cloud Type object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_cloudtype_object_update_with_http_info(dn, uvmm_cloudtype, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_cloudtype: (required) + :type uvmm_cloudtype: UvmmCloudtype + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'uvmm_cloudtype', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_cloudtype_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_cloudtype_object_update`") # noqa: E501 + # verify the required parameter 'uvmm_cloudtype' is set + if self.api_client.client_side_validation and ('uvmm_cloudtype' not in local_var_params or # noqa: E501 + local_var_params['uvmm_cloudtype'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_cloudtype` when calling `udm_uvmm_cloudtype_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudtype_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_cloudtype_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_cloudtype' in local_var_params: + body_params = local_var_params['uvmm_cloudtype'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/uvmm/cloudtype/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/uvmm_info_api.py b/openapi_client_udm/api/uvmm_info_api.py new file mode 100644 index 0000000..03bd429 --- /dev/null +++ b/openapi_client_udm/api/uvmm_info_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UvmmInfoApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_uvmm_info_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Machine information object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmInfo + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_info_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_uvmm_info_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Machine information object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmInfo, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_info_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_info_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_info_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_info_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmInfo", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/uvmm/info/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_info_object_create(self, uvmm_info, **kwargs): # noqa: E501 + """Create a new Machine information object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_create(uvmm_info, async_req=True) + >>> result = thread.get() + + :param uvmm_info: (required) + :type uvmm_info: UvmmInfo + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_info_object_create_with_http_info(uvmm_info, **kwargs) # noqa: E501 + + def udm_uvmm_info_object_create_with_http_info(self, uvmm_info, **kwargs): # noqa: E501 + """Create a new Machine information object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_create_with_http_info(uvmm_info, async_req=True) + >>> result = thread.get() + + :param uvmm_info: (required) + :type uvmm_info: UvmmInfo + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'uvmm_info', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_info_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'uvmm_info' is set + if self.api_client.client_side_validation and ('uvmm_info' not in local_var_params or # noqa: E501 + local_var_params['uvmm_info'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_info` when calling `udm_uvmm_info_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_info' in local_var_params: + body_params = local_var_params['uvmm_info'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/uvmm/info/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_info_object_modify(self, dn, uvmm_info, **kwargs): # noqa: E501 + """Modify or move an Machine information object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_modify(dn, uvmm_info, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_info: (required) + :type uvmm_info: UvmmInfo + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_info_object_modify_with_http_info(dn, uvmm_info, **kwargs) # noqa: E501 + + def udm_uvmm_info_object_modify_with_http_info(self, dn, uvmm_info, **kwargs): # noqa: E501 + """Modify or move an Machine information object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_modify_with_http_info(dn, uvmm_info, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_info: (required) + :type uvmm_info: UvmmInfo + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'uvmm_info', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_info_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_info_object_modify`") # noqa: E501 + # verify the required parameter 'uvmm_info' is set + if self.api_client.client_side_validation and ('uvmm_info' not in local_var_params or # noqa: E501 + local_var_params['uvmm_info'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_info` when calling `udm_uvmm_info_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_info_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_info_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_info' in local_var_params: + body_params = local_var_params['uvmm_info'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/uvmm/info/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_info_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Machine information object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_info_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_uvmm_info_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Machine information object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_info_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_info_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_info_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_info_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/uvmm/info/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_info_object_search(self, **kwargs): # noqa: E501 + """Search for Machine information objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmInfoList + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_info_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_uvmm_info_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Machine information objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmInfoList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_info_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_uvmm_info_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_uvmm_info_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_uvmm_info_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_uvmm_info_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_uvmm_info_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmInfoList", + } + + return self.api_client.call_api( + '/uvmm/info/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_info_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Machine information object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmInfo + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_info_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_uvmm_info_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Machine information object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmInfo, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_info_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmInfo", + } + + return self.api_client.call_api( + '/uvmm/info/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_info_object_update(self, dn, uvmm_info, **kwargs): # noqa: E501 + """Modify an Machine information object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_update(dn, uvmm_info, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_info: (required) + :type uvmm_info: UvmmInfo + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_info_object_update_with_http_info(dn, uvmm_info, **kwargs) # noqa: E501 + + def udm_uvmm_info_object_update_with_http_info(self, dn, uvmm_info, **kwargs): # noqa: E501 + """Modify an Machine information object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_info_object_update_with_http_info(dn, uvmm_info, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_info: (required) + :type uvmm_info: UvmmInfo + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'uvmm_info', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_info_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_info_object_update`") # noqa: E501 + # verify the required parameter 'uvmm_info' is set + if self.api_client.client_side_validation and ('uvmm_info' not in local_var_params or # noqa: E501 + local_var_params['uvmm_info'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_info` when calling `udm_uvmm_info_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_info_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_info_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_info' in local_var_params: + body_params = local_var_params['uvmm_info'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/uvmm/info/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api/uvmm_profile_api.py b/openapi_client_udm/api/uvmm_profile_api.py new file mode 100644 index 0000000..84dc63d --- /dev/null +++ b/openapi_client_udm/api/uvmm_profile_api.py @@ -0,0 +1,1473 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client_udm.api_client import ApiClient +from openapi_client_udm.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class UvmmProfileApi(object): + """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): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def udm_uvmm_profile_object(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Profile object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmProfile + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_profile_object_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_uvmm_profile_object_with_http_info(self, dn, **kwargs): # noqa: E501 + """ Get a representation of the Profile object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmProfile, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_profile_object" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_profile_object`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_profile_object`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_profile_object`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmProfile", + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/uvmm/profile/{dn}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_profile_object_create(self, uvmm_profile, **kwargs): # noqa: E501 + """Create a new Profile object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_create(uvmm_profile, async_req=True) + >>> result = thread.get() + + :param uvmm_profile: (required) + :type uvmm_profile: UvmmProfile + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_profile_object_create_with_http_info(uvmm_profile, **kwargs) # noqa: E501 + + def udm_uvmm_profile_object_create_with_http_info(self, uvmm_profile, **kwargs): # noqa: E501 + """Create a new Profile object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_create_with_http_info(uvmm_profile, async_req=True) + >>> result = thread.get() + + :param uvmm_profile: (required) + :type uvmm_profile: UvmmProfile + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'uvmm_profile', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_profile_object_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'uvmm_profile' is set + if self.api_client.client_side_validation and ('uvmm_profile' not in local_var_params or # noqa: E501 + local_var_params['uvmm_profile'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_profile` when calling `udm_uvmm_profile_object_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_profile' in local_var_params: + body_params = local_var_params['uvmm_profile'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'POST', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + } + + return self.api_client.call_api( + '/uvmm/profile/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_profile_object_modify(self, dn, uvmm_profile, **kwargs): # noqa: E501 + """Modify or move an Profile object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_modify(dn, uvmm_profile, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_profile: (required) + :type uvmm_profile: UvmmProfile + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: InlineResponse201 + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_profile_object_modify_with_http_info(dn, uvmm_profile, **kwargs) # noqa: E501 + + def udm_uvmm_profile_object_modify_with_http_info(self, dn, uvmm_profile, **kwargs): # noqa: E501 + """Modify or move an Profile object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_modify_with_http_info(dn, uvmm_profile, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_profile: (required) + :type uvmm_profile: UvmmProfile + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(InlineResponse201, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'uvmm_profile', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_profile_object_modify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_profile_object_modify`") # noqa: E501 + # verify the required parameter 'uvmm_profile' is set + if self.api_client.client_side_validation and ('uvmm_profile' not in local_var_params or # noqa: E501 + local_var_params['uvmm_profile'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_profile` when calling `udm_uvmm_profile_object_modify`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_profile_object_modify`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_profile_object_modify`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_profile' in local_var_params: + body_params = local_var_params['uvmm_profile'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PUT', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 201: "InlineResponse201", + 202: "dict(str, object)", + 204: None, + 404: "dict(str, object)", + } + + return self.api_client.call_api( + '/uvmm/profile/{dn}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_profile_object_remove(self, dn, **kwargs): # noqa: E501 + """Remove a Profiles object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_remove(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_profile_object_remove_with_http_info(dn, **kwargs) # noqa: E501 + + def udm_uvmm_profile_object_remove_with_http_info(self, dn, **kwargs): # noqa: E501 + """Remove a Profiles object # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_remove_with_http_info(dn, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param cleanup: Whether to perform a cleanup (e.g. of temporary objects, locks, etc). + :type cleanup: bool + :param recursive: Whether to remove referring objects (e.g. DNS or DHCP references). + :type recursive: bool + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'cleanup', + 'recursive', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_profile_object_remove" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_profile_object_remove`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_profile_object_remove`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_profile_object_remove`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + if 'cleanup' in local_var_params and local_var_params['cleanup'] is not None: # noqa: E501 + query_params.append(('cleanup', local_var_params['cleanup'])) # noqa: E501 + if 'recursive' in local_var_params and local_var_params['recursive'] is not None: # noqa: E501 + query_params.append(('recursive', local_var_params['recursive'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/uvmm/profile/{dn}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_profile_object_search(self, **kwargs): # noqa: E501 + """Search for Profiles objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_search(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmProfileList + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_profile_object_search_with_http_info(**kwargs) # noqa: E501 + + def udm_uvmm_profile_object_search_with_http_info(self, **kwargs): # noqa: E501 + """Search for Profiles objects # noqa: E501 + + Information about the object type and links to search for objects. The found objects are either referenced as HAL links or embedded via HAL embedded resources. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_search_with_http_info(async_req=True) + >>> result = thread.get() + + :param filter: A LDAP filter which may contain `UDM` property names instead of `LDAP` attribute names. + :type filter: str + :param position: Position which is used as search base. + :type position: str + :param scope: The LDAP search scope (sub, base, one). + :type scope: str + :param query: The values to search for (propertyname and search filter value). Alternatively with `filter` a raw LDAP filter can be given. + :type query: dict(str, object) + :param hidden: Include hidden/system objects in the response. + :type hidden: bool + :param properties: The properties which should be returned, if not given all properties are returned. + :type properties: list[str] + :param limit: **Broken/Experimental**: How many results should be shown per page. + :type limit: int + :param page: **Broken/Experimental**: The search page, starting at one. + :type page: int + :param dir: **Broken/Experimental**: The Sort direction (ASC or DESC). + :type dir: str + :param by: **Broken/Experimental**: Sort the search result by the specified property. + :type by: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmProfileList, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'filter', + 'position', + 'scope', + 'query', + 'hidden', + 'properties', + 'limit', + 'page', + 'dir', + 'by', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_profile_object_search" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + if self.api_client.client_side_validation and 'scope' in local_var_params and not re.search(r'^(sub|one|base|base\+one)$', local_var_params['scope']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `scope` when calling `udm_uvmm_profile_object_search`, must conform to the pattern `/^(sub|one|base|base\+one)$/`") # noqa: E501 + if self.api_client.client_side_validation and ('properties' in local_var_params and # noqa: E501 + len(local_var_params['properties']) < 0): # noqa: E501 + raise ApiValueError("Invalid value for parameter `properties` when calling `udm_uvmm_profile_object_search`, number of items must be greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 0: # noqa: E501 + raise ApiValueError("Invalid value for parameter `limit` when calling `udm_uvmm_profile_object_search`, must be a value greater than or equal to `0`") # noqa: E501 + if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `page` when calling `udm_uvmm_profile_object_search`, must be a value greater than or equal to `1`") # noqa: E501 + if self.api_client.client_side_validation and 'dir' in local_var_params and not re.search(r'^(ASC|DESC)$', local_var_params['dir']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dir` when calling `udm_uvmm_profile_object_search`, must conform to the pattern `/^(ASC|DESC)$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in local_var_params and local_var_params['filter'] is not None: # noqa: E501 + query_params.append(('filter', local_var_params['filter'])) # noqa: E501 + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'scope' in local_var_params and local_var_params['scope'] is not None: # noqa: E501 + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501 + query_params.append(('query', local_var_params['query'])) # noqa: E501 + if 'hidden' in local_var_params and local_var_params['hidden'] is not None: # noqa: E501 + query_params.append(('hidden', local_var_params['hidden'])) # noqa: E501 + if 'properties' in local_var_params and local_var_params['properties'] is not None: # noqa: E501 + query_params.append(('properties', local_var_params['properties'])) # noqa: E501 + collection_formats['properties'] = 'multi' # noqa: E501 + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 + query_params.append(('limit', local_var_params['limit'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'dir' in local_var_params and local_var_params['dir'] is not None: # noqa: E501 + query_params.append(('dir', local_var_params['dir'])) # noqa: E501 + if 'by' in local_var_params and local_var_params['by'] is not None: # noqa: E501 + query_params.append(('by', local_var_params['by'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmProfileList", + } + + return self.api_client.call_api( + '/uvmm/profile/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_profile_object_template(self, **kwargs): # noqa: E501 + """Get a template for creating an Profile object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_template(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: UvmmProfile + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_profile_object_template_with_http_info(**kwargs) # noqa: E501 + + def udm_uvmm_profile_object_template_with_http_info(self, **kwargs): # noqa: E501 + """Get a template for creating an Profile object (contains all properties and their default values) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_template_with_http_info(async_req=True) + >>> result = thread.get() + + :param position: Position which is used as search base. + :type position: str + :param superordinate: The superordinate DN of the object to create. `position` is sufficient. + :type superordinate: str + :param template: **Experimental**: A |UDM| template object. + :type template: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(UvmmProfile, status_code(int), headers(HTTPHeaderDict)) + """ + + local_var_params = locals() + + all_params = [ + 'position', + 'superordinate', + 'template', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_profile_object_template" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'position' in local_var_params and local_var_params['position'] is not None: # noqa: E501 + query_params.append(('position', local_var_params['position'])) # noqa: E501 + if 'superordinate' in local_var_params and local_var_params['superordinate'] is not None: # noqa: E501 + query_params.append(('superordinate', local_var_params['superordinate'])) # noqa: E501 + if 'template' in local_var_params and local_var_params['template'] is not None: # noqa: E501 + query_params.append(('template', local_var_params['template'])) # noqa: E501 + + header_params = dict(local_var_params.get('_headers', {})) + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = { + 400: "dict(str, object)", + 401: "dict(str, object)", + 403: "dict(str, object)", + 422: "EmbeddedError", + 500: "EmbeddedError", + 503: "dict(str, object)", + 502: "dict(str, object)", + 504: "dict(str, object)", + 200: "UvmmProfile", + } + + return self.api_client.call_api( + '/uvmm/profile/add', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) + + def udm_uvmm_profile_object_update(self, dn, uvmm_profile, **kwargs): # noqa: E501 + """Modify an Profile object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_update(dn, uvmm_profile, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_profile: (required) + :type uvmm_profile: UvmmProfile + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + return self.udm_uvmm_profile_object_update_with_http_info(dn, uvmm_profile, **kwargs) # noqa: E501 + + def udm_uvmm_profile_object_update_with_http_info(self, dn, uvmm_profile, **kwargs): # noqa: E501 + """Modify an Profile object (moving is currently not possible) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.udm_uvmm_profile_object_update_with_http_info(dn, uvmm_profile, async_req=True) + >>> result = thread.get() + + :param dn: The (urlencoded) LDAP Distinguished Name (DN). (required) + :type dn: str + :param uvmm_profile: (required) + :type uvmm_profile: UvmmProfile + :param if_match: Provide entity tag to make a conditional request to not overwrite any values in a race condition. + :type if_match: str + :param if_unmodified_since: Provide last modified time to make a conditional request to not overwrite any values in a race condition. + :type if_unmodified_since: str + :param user_agent: The user agent. + :type user_agent: str + :param accept_language: The accepted response languages. + :type accept_language: str + :param if_none_match: Use request from cache by using the Etag entity tag if it matches. + :type if_none_match: str + :param if_modified_since: Use request from cache by using the Last-Modified date if it matches. + :type if_modified_since: str + :param x_request_id: A request-ID used for logging and tracing. + :type x_request_id: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _return_http_data_only: response data without head status code + and headers + :type _return_http_data_only: bool, optional + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :type _preload_content: bool, optional + :param _request_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. + :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 + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + local_var_params = locals() + + all_params = [ + 'dn', + 'uvmm_profile', + 'if_match', + 'if_unmodified_since', + 'user_agent', + 'accept_language', + 'if_none_match', + 'if_modified_since', + 'x_request_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method udm_uvmm_profile_object_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dn' is set + if self.api_client.client_side_validation and ('dn' not in local_var_params or # noqa: E501 + local_var_params['dn'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dn` when calling `udm_uvmm_profile_object_update`") # noqa: E501 + # verify the required parameter 'uvmm_profile' is set + if self.api_client.client_side_validation and ('uvmm_profile' not in local_var_params or # noqa: E501 + local_var_params['uvmm_profile'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `uvmm_profile` when calling `udm_uvmm_profile_object_update`") # noqa: E501 + + if self.api_client.client_side_validation and ('dn' in local_var_params and # noqa: E501 + len(local_var_params['dn']) < 3): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_profile_object_update`, length must be greater than or equal to `3`") # noqa: E501 + if self.api_client.client_side_validation and 'dn' in local_var_params and not re.search(r'^.+=.+$', local_var_params['dn']): # noqa: E501 + raise ApiValueError("Invalid value for parameter `dn` when calling `udm_uvmm_profile_object_update`, must conform to the pattern `/^.+=.+$/`") # noqa: E501 + collection_formats = {} + + path_params = {} + if 'dn' in local_var_params: + path_params['dn'] = local_var_params['dn'] # noqa: E501 + + query_params = [] + + header_params = dict(local_var_params.get('_headers', {})) + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] # noqa: E501 + if 'user_agent' in local_var_params: + header_params['User-Agent'] = local_var_params['user_agent'] # noqa: E501 + if 'accept_language' in local_var_params: + header_params['Accept-Language'] = local_var_params['accept_language'] # noqa: E501 + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] # noqa: E501 + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] # noqa: E501 + if 'x_request_id' in local_var_params: + header_params['X-Request-Id'] = local_var_params['x_request_id'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'uvmm_profile' in local_var_params: + body_params = local_var_params['uvmm_profile'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/hal+json', 'text/html']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = local_var_params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'], + 'PATCH', body_params)) # noqa: E501 + + # Authentication setting + auth_settings = ['basic'] # noqa: E501 + + response_types_map = {} + + return self.api_client.call_api( + '/uvmm/profile/{dn}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_types_map=response_types_map, + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats, + _request_auth=local_var_params.get('_request_auth')) diff --git a/openapi_client_udm/api_client.py b/openapi_client_udm/api_client.py new file mode 100644 index 0000000..aa2486c --- /dev/null +++ b/openapi_client_udm/api_client.py @@ -0,0 +1,701 @@ +# coding: utf-8 +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + +from __future__ import absolute_import + +import atexit +import datetime +from dateutil.parser import parse +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from openapi_client_udm.configuration import Configuration +import openapi_client_udm.models +from openapi_client_udm import rest +from openapi_client_udm.exceptions import ApiValueError, ApiException + + +class ApiClient(object): + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + _pool = None + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None, pool_threads=1): + if configuration is None: + configuration = Configuration.get_default_copy() + self.configuration = configuration + self.pool_threads = pool_threads + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/1.0.2/python' + self.client_side_validation = configuration.client_side_validation + + async def __aenter__(self): + return self + + async def __aexit__(self, exc_type, exc_value, traceback): + await self.close() + + async def close(self): + await self.rest_client.close() + if self._pool: + self._pool.close() + self._pool.join() + self._pool = None + if hasattr(atexit, 'unregister'): + atexit.unregister(self.close) + + @property + def pool(self): + """Create thread pool on first request + avoids instantiating unused threadpool for blocking clients. + """ + if self._pool is None: + atexit.register(self.close) + self._pool = ThreadPool(self.pool_threads) + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + async def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_types_map=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None, _host=None, + _request_auth=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + post_params.extend(self.files_parameters(files)) + + # auth setting + self.update_params_for_auth( + header_params, query_params, auth_settings, + request_auth=_request_auth) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + try: + # perform request and return response + response_data = await self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + except ApiException as e: + e.body = e.body.decode('utf-8') if six.PY3 else e.body + raise e + + self.last_response = response_data + + return_data = response_data + + if not _preload_content: + return return_data + + response_type = response_types_map.get(response_data.status, None) + + if six.PY3 and response_type not in ["file", "bytes"]: + match = None + content_type = response_data.getheader('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" + response_data.data = response_data.data.decode(encoding) + + # deserialize response data + + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.openapi_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(openapi_client_udm.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datetime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_types_map=None, auth_settings=None, + async_req=None, _return_http_data_only=None, + collection_formats=None,_preload_content=True, + _request_timeout=None, _host=None, _request_auth=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async_req request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_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. + :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_token: dict, optional + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_types_map, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout, _host, + _request_auth) + + return self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, + query_params, + header_params, body, + post_params, files, + response_types_map, + auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, + _request_timeout, + _host, _request_auth)) + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ApiValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def files_parameters(self, files=None): + """Builds form parameters. + + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types, method=None, body=None): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :param method: http method (e.g. POST, PATCH). + :param body: http body to send. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if (method == 'PATCH' and + 'application/json-patch+json' in content_types and + isinstance(body, list)): + return 'application/json-patch+json' + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, queries, auth_settings, + request_auth=None): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + :param request_auth: if set, the provided settings will + override the token in the configuration. + """ + if not auth_settings: + return + + if request_auth: + self._apply_auth_params(headers, queries, request_auth) + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + self._apply_auth_params(headers, queries, auth_setting) + + def _apply_auth_params(self, headers, queries, auth_setting): + """Updates the request parameters based on a single auth_setting + + :param headers: Header parameters dict to be updated. + :param queries: Query parameters tuple list to be updated. + :param auth_setting: auth settings for the endpoint + """ + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datetime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + has_discriminator = False + if (hasattr(klass, 'get_real_child_model') + and klass.discriminator_value_class_map): + has_discriminator = True + + if not klass.openapi_types and has_discriminator is False: + return data + + kwargs = {} + if (data is not None and + klass.openapi_types is not None and + isinstance(data, (list, dict))): + for attr, attr_type in six.iteritems(klass.openapi_types): + if klass.attribute_map[attr] in data: + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if has_discriminator: + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/openapi_client_udm/configuration.py b/openapi_client_udm/configuration.py new file mode 100644 index 0000000..5ebe4a4 --- /dev/null +++ b/openapi_client_udm/configuration.py @@ -0,0 +1,479 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import copy +import logging +import sys +import urllib3 + +import six +from six.moves import http_client as httplib +from openapi_client_udm.exceptions import ApiValueError + + +JSON_SCHEMA_VALIDATION_KEYWORDS = { + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' +} + +class Configuration(object): + """NOTE: This class is auto generated by OpenAPI Generator + + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + :param disabled_client_side_validations (string): Comma-separated list of + JSON schema validation keywords to disable JSON schema structural validation + rules. The following keywords may be specified: multipleOf, maximum, + exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, + maxItems, minItems. + By default, the validation is performed for data generated locally by the client + and data received from the server, independent of any validation performed by + the server side. If the input data does not satisfy the JSON schema validation + rules specified in the OpenAPI document, an exception is raised. + If disabled_client_side_validations is set, structural validation is + disabled. This can be useful to troubleshoot data validation problem, such as + when the OpenAPI document validation rules do not match the actual API data + received by the server. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format + + :Example: + + HTTP Basic Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + http_basic_auth: + type: http + scheme: basic + + Configure API client with HTTP basic authentication: + +conf = openapi_client_udm.Configuration( + username='the-user', + password='the-password', +) + + """ + + _default = None + + def __init__(self, host=None, + api_key=None, api_key_prefix=None, + username=None, password=None, + discard_unknown_keys=False, + disabled_client_side_validations="", + server_index=None, server_variables=None, + server_operation_index=None, server_operation_variables=None, + ssl_ca_cert=None, + ): + """Constructor + """ + self._base_path = "https://ucs.sawtooth.claremontmakerspace.org/univention/udm" if host is None else host + """Default Base url + """ + self.server_index = 0 if server_index is None and host is None else server_index + self.server_operation_index = server_operation_index or {} + """Default server index + """ + self.server_variables = server_variables or {} + self.server_operation_variables = server_operation_variables or {} + """Default server variables + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.api_key = {} + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = {} + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.discard_unknown_keys = discard_unknown_keys + self.disabled_client_side_validations = disabled_client_side_validations + self.logger = {} + """Logging Settings + """ + self.logger["package_logger"] = logging.getLogger("openapi_client_udm") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + """Log format + """ + self.logger_stream_handler = None + """Log stream handler + """ + self.logger_file_handler = None + """Log file handler + """ + self.logger_file = None + """Debug file location + """ + self.debug = False + """Debug switch + """ + + self.verify_ssl = True + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = ssl_ca_cert + """Set this to customize the certificate file to verify the peer. + """ + self.cert_file = None + """client certificate file + """ + self.key_file = None + """client key file + """ + self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ + + self.connection_pool_maxsize = 100 + """This value is passed to the aiohttp to limit simultaneous connections. + Default values is 100, None means no-limit. + """ + + self.proxy = None + """Proxy URL + """ + self.proxy_headers = None + """Proxy headers + """ + self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = None + """Adding retries to override urllib3 default value 3 + """ + # Enable client side validation + self.client_side_validation = True + + self.socket_options = None + """Options to pass down to the underlying urllib3 socket + """ + + def __deepcopy__(self, memo): + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + def __setattr__(self, name, value): + object.__setattr__(self, name, value) + if name == 'disabled_client_side_validations': + s = set(filter(None, value.split(','))) + for v in s: + if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: + raise ApiValueError( + "Invalid keyword: '{0}''".format(v)) + self._disabled_client_side_validations = s + + @classmethod + def set_default(cls, default): + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = copy.deepcopy(default) + + @classmethod + def get_default_copy(cls): + """Return new instance of configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration passed by the set_default method. + + :return: The configuration object. + """ + if cls._default is not None: + return copy.deepcopy(cls._default) + return Configuration() + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier, alias=None): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :param alias: The alternative identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + auth = {} + if self.username is not None and self.password is not None: + auth['basic'] = { + 'type': 'basic', + 'in': 'header', + 'key': 'Authorization', + 'value': self.get_basic_auth_token() + } + return auth + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 1.0.2\n"\ + "SDK Package Version: 1.0.2".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "https://ucs.sawtooth.claremontmakerspace.org/univention/udm", + 'description': "No description provided", + }, + { + 'url': "http://ucs.sawtooth.claremontmakerspace.org/univention/udm", + 'description': "No description provided", + }, + { + 'url': "https://172.18.142.8/univention/udm", + 'description': "No description provided", + }, + { + 'url': "http://172.18.142.8/univention/udm", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables=None, servers=None): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :param servers: an array of host settings or None + :return: URL based on host settings + """ + if index is None: + return self._base_path + + variables = {} if variables is None else variables + servers = self.get_host_settings() if servers is None else servers + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url + + @property + def host(self): + """Return generated host.""" + return self.get_host_from_settings(self.server_index, variables=self.server_variables) + + @host.setter + def host(self, value): + """Fix base path.""" + self._base_path = value + self.server_index = None diff --git a/openapi_client_udm/exceptions.py b/openapi_client_udm/exceptions.py new file mode 100644 index 0000000..084e60a --- /dev/null +++ b/openapi_client_udm/exceptions.py @@ -0,0 +1,163 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +import six + + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiAttributeError(OpenApiException, AttributeError): + def __init__(self, msg, path_to_item=None): + """ + Raised when an attribute reference or assignment fails. + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiAttributeError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +class NotFoundException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(NotFoundException, self).__init__(status, reason, http_resp) + + +class UnauthorizedException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(UnauthorizedException, self).__init__(status, reason, http_resp) + + +class ForbiddenException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(ForbiddenException, self).__init__(status, reason, http_resp) + + +class ServiceException(ApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + super(ServiceException, self).__init__(status, reason, http_resp) + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, six.integer_types): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/openapi_client_udm/models/__init__.py b/openapi_client_udm/models/__init__.py new file mode 100644 index 0000000..0a83581 --- /dev/null +++ b/openapi_client_udm/models/__init__.py @@ -0,0 +1,878 @@ +# coding: utf-8 + +# flake8: noqa +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +# import models into model package +from openapi_client_udm.models.appcenter_app import AppcenterApp +from openapi_client_udm.models.appcenter_app_list import AppcenterAppList +from openapi_client_udm.models.appcenter_app_list_embedded import AppcenterAppListEmbedded +from openapi_client_udm.models.appcenter_app_policies import AppcenterAppPolicies +from openapi_client_udm.models.appcenter_app_request import AppcenterAppRequest +from openapi_client_udm.models.appcenter_app_request_all_of import AppcenterAppRequestAllOf +from openapi_client_udm.models.appcenter_app_request_patch import AppcenterAppRequestPatch +from openapi_client_udm.models.appcenter_app_response_mixin import AppcenterAppResponseMixin +from openapi_client_udm.models.computers_computer import ComputersComputer +from openapi_client_udm.models.computers_computer_list import ComputersComputerList +from openapi_client_udm.models.computers_computer_list_embedded import ComputersComputerListEmbedded +from openapi_client_udm.models.computers_computer_request import ComputersComputerRequest +from openapi_client_udm.models.computers_computer_request_patch import ComputersComputerRequestPatch +from openapi_client_udm.models.computers_computer_response_mixin import ComputersComputerResponseMixin +from openapi_client_udm.models.computers_domaincontroller_backup import ComputersDomaincontrollerBackup +from openapi_client_udm.models.computers_domaincontroller_backup_list import ComputersDomaincontrollerBackupList +from openapi_client_udm.models.computers_domaincontroller_backup_list_embedded import ComputersDomaincontrollerBackupListEmbedded +from openapi_client_udm.models.computers_domaincontroller_backup_options import ComputersDomaincontrollerBackupOptions +from openapi_client_udm.models.computers_domaincontroller_backup_policies import ComputersDomaincontrollerBackupPolicies +from openapi_client_udm.models.computers_domaincontroller_backup_request import ComputersDomaincontrollerBackupRequest +from openapi_client_udm.models.computers_domaincontroller_backup_request_patch import ComputersDomaincontrollerBackupRequestPatch +from openapi_client_udm.models.computers_domaincontroller_backup_response_mixin import ComputersDomaincontrollerBackupResponseMixin +from openapi_client_udm.models.computers_domaincontroller_master import ComputersDomaincontrollerMaster +from openapi_client_udm.models.computers_domaincontroller_master_list import ComputersDomaincontrollerMasterList +from openapi_client_udm.models.computers_domaincontroller_master_list_embedded import ComputersDomaincontrollerMasterListEmbedded +from openapi_client_udm.models.computers_domaincontroller_master_options import ComputersDomaincontrollerMasterOptions +from openapi_client_udm.models.computers_domaincontroller_master_policies import ComputersDomaincontrollerMasterPolicies +from openapi_client_udm.models.computers_domaincontroller_master_request import ComputersDomaincontrollerMasterRequest +from openapi_client_udm.models.computers_domaincontroller_master_request_patch import ComputersDomaincontrollerMasterRequestPatch +from openapi_client_udm.models.computers_domaincontroller_master_response_mixin import ComputersDomaincontrollerMasterResponseMixin +from openapi_client_udm.models.computers_domaincontroller_slave import ComputersDomaincontrollerSlave +from openapi_client_udm.models.computers_domaincontroller_slave_list import ComputersDomaincontrollerSlaveList +from openapi_client_udm.models.computers_domaincontroller_slave_list_embedded import ComputersDomaincontrollerSlaveListEmbedded +from openapi_client_udm.models.computers_domaincontroller_slave_options import ComputersDomaincontrollerSlaveOptions +from openapi_client_udm.models.computers_domaincontroller_slave_policies import ComputersDomaincontrollerSlavePolicies +from openapi_client_udm.models.computers_domaincontroller_slave_request import ComputersDomaincontrollerSlaveRequest +from openapi_client_udm.models.computers_domaincontroller_slave_request_patch import ComputersDomaincontrollerSlaveRequestPatch +from openapi_client_udm.models.computers_domaincontroller_slave_response_mixin import ComputersDomaincontrollerSlaveResponseMixin +from openapi_client_udm.models.computers_ipmanagedclient import ComputersIpmanagedclient +from openapi_client_udm.models.computers_ipmanagedclient_list import ComputersIpmanagedclientList +from openapi_client_udm.models.computers_ipmanagedclient_list_embedded import ComputersIpmanagedclientListEmbedded +from openapi_client_udm.models.computers_ipmanagedclient_options import ComputersIpmanagedclientOptions +from openapi_client_udm.models.computers_ipmanagedclient_request import ComputersIpmanagedclientRequest +from openapi_client_udm.models.computers_ipmanagedclient_request_patch import ComputersIpmanagedclientRequestPatch +from openapi_client_udm.models.computers_ipmanagedclient_response_mixin import ComputersIpmanagedclientResponseMixin +from openapi_client_udm.models.computers_linux import ComputersLinux +from openapi_client_udm.models.computers_linux_list import ComputersLinuxList +from openapi_client_udm.models.computers_linux_list_embedded import ComputersLinuxListEmbedded +from openapi_client_udm.models.computers_linux_options import ComputersLinuxOptions +from openapi_client_udm.models.computers_linux_request import ComputersLinuxRequest +from openapi_client_udm.models.computers_linux_request_patch import ComputersLinuxRequestPatch +from openapi_client_udm.models.computers_linux_response_mixin import ComputersLinuxResponseMixin +from openapi_client_udm.models.computers_macos import ComputersMacos +from openapi_client_udm.models.computers_macos_list import ComputersMacosList +from openapi_client_udm.models.computers_macos_list_embedded import ComputersMacosListEmbedded +from openapi_client_udm.models.computers_macos_options import ComputersMacosOptions +from openapi_client_udm.models.computers_macos_request import ComputersMacosRequest +from openapi_client_udm.models.computers_macos_request_patch import ComputersMacosRequestPatch +from openapi_client_udm.models.computers_macos_response_mixin import ComputersMacosResponseMixin +from openapi_client_udm.models.computers_memberserver import ComputersMemberserver +from openapi_client_udm.models.computers_memberserver_list import ComputersMemberserverList +from openapi_client_udm.models.computers_memberserver_list_embedded import ComputersMemberserverListEmbedded +from openapi_client_udm.models.computers_memberserver_options import ComputersMemberserverOptions +from openapi_client_udm.models.computers_memberserver_policies import ComputersMemberserverPolicies +from openapi_client_udm.models.computers_memberserver_request import ComputersMemberserverRequest +from openapi_client_udm.models.computers_memberserver_request_patch import ComputersMemberserverRequestPatch +from openapi_client_udm.models.computers_memberserver_response_mixin import ComputersMemberserverResponseMixin +from openapi_client_udm.models.computers_trustaccount import ComputersTrustaccount +from openapi_client_udm.models.computers_trustaccount_list import ComputersTrustaccountList +from openapi_client_udm.models.computers_trustaccount_list_embedded import ComputersTrustaccountListEmbedded +from openapi_client_udm.models.computers_trustaccount_options import ComputersTrustaccountOptions +from openapi_client_udm.models.computers_trustaccount_request import ComputersTrustaccountRequest +from openapi_client_udm.models.computers_trustaccount_request_patch import ComputersTrustaccountRequestPatch +from openapi_client_udm.models.computers_trustaccount_response_mixin import ComputersTrustaccountResponseMixin +from openapi_client_udm.models.computers_ubuntu import ComputersUbuntu +from openapi_client_udm.models.computers_ubuntu_list import ComputersUbuntuList +from openapi_client_udm.models.computers_ubuntu_list_embedded import ComputersUbuntuListEmbedded +from openapi_client_udm.models.computers_ubuntu_options import ComputersUbuntuOptions +from openapi_client_udm.models.computers_ubuntu_request import ComputersUbuntuRequest +from openapi_client_udm.models.computers_ubuntu_request_patch import ComputersUbuntuRequestPatch +from openapi_client_udm.models.computers_ubuntu_response_mixin import ComputersUbuntuResponseMixin +from openapi_client_udm.models.computers_windows import ComputersWindows +from openapi_client_udm.models.computers_windows_domaincontroller import ComputersWindowsDomaincontroller +from openapi_client_udm.models.computers_windows_domaincontroller_list import ComputersWindowsDomaincontrollerList +from openapi_client_udm.models.computers_windows_domaincontroller_list_embedded import ComputersWindowsDomaincontrollerListEmbedded +from openapi_client_udm.models.computers_windows_domaincontroller_options import ComputersWindowsDomaincontrollerOptions +from openapi_client_udm.models.computers_windows_domaincontroller_request import ComputersWindowsDomaincontrollerRequest +from openapi_client_udm.models.computers_windows_domaincontroller_request_patch import ComputersWindowsDomaincontrollerRequestPatch +from openapi_client_udm.models.computers_windows_domaincontroller_response_mixin import ComputersWindowsDomaincontrollerResponseMixin +from openapi_client_udm.models.computers_windows_list import ComputersWindowsList +from openapi_client_udm.models.computers_windows_list_embedded import ComputersWindowsListEmbedded +from openapi_client_udm.models.computers_windows_options import ComputersWindowsOptions +from openapi_client_udm.models.computers_windows_request import ComputersWindowsRequest +from openapi_client_udm.models.computers_windows_request_patch import ComputersWindowsRequestPatch +from openapi_client_udm.models.computers_windows_response_mixin import ComputersWindowsResponseMixin +from openapi_client_udm.models.container_cn import ContainerCn +from openapi_client_udm.models.container_cn_list import ContainerCnList +from openapi_client_udm.models.container_cn_list_embedded import ContainerCnListEmbedded +from openapi_client_udm.models.container_cn_policies import ContainerCnPolicies +from openapi_client_udm.models.container_cn_request import ContainerCnRequest +from openapi_client_udm.models.container_cn_request_patch import ContainerCnRequestPatch +from openapi_client_udm.models.container_cn_response_mixin import ContainerCnResponseMixin +from openapi_client_udm.models.container_dc import ContainerDc +from openapi_client_udm.models.container_dc_list import ContainerDcList +from openapi_client_udm.models.container_dc_list_embedded import ContainerDcListEmbedded +from openapi_client_udm.models.container_dc_options import ContainerDcOptions +from openapi_client_udm.models.container_dc_policies import ContainerDcPolicies +from openapi_client_udm.models.container_dc_request import ContainerDcRequest +from openapi_client_udm.models.container_dc_request_patch import ContainerDcRequestPatch +from openapi_client_udm.models.container_dc_response_mixin import ContainerDcResponseMixin +from openapi_client_udm.models.container_msgpo import ContainerMsgpo +from openapi_client_udm.models.container_msgpo_list import ContainerMsgpoList +from openapi_client_udm.models.container_msgpo_list_embedded import ContainerMsgpoListEmbedded +from openapi_client_udm.models.container_msgpo_policies import ContainerMsgpoPolicies +from openapi_client_udm.models.container_msgpo_request import ContainerMsgpoRequest +from openapi_client_udm.models.container_msgpo_request_patch import ContainerMsgpoRequestPatch +from openapi_client_udm.models.container_msgpo_response_mixin import ContainerMsgpoResponseMixin +from openapi_client_udm.models.container_ou import ContainerOu +from openapi_client_udm.models.container_ou_list import ContainerOuList +from openapi_client_udm.models.container_ou_list_embedded import ContainerOuListEmbedded +from openapi_client_udm.models.container_ou_policies import ContainerOuPolicies +from openapi_client_udm.models.container_ou_request import ContainerOuRequest +from openapi_client_udm.models.container_ou_request_patch import ContainerOuRequestPatch +from openapi_client_udm.models.container_ou_response_mixin import ContainerOuResponseMixin +from openapi_client_udm.models.dhcp_dhcp import DhcpDhcp +from openapi_client_udm.models.dhcp_dhcp_list import DhcpDhcpList +from openapi_client_udm.models.dhcp_dhcp_list_embedded import DhcpDhcpListEmbedded +from openapi_client_udm.models.dhcp_dhcp_request import DhcpDhcpRequest +from openapi_client_udm.models.dhcp_dhcp_request_patch import DhcpDhcpRequestPatch +from openapi_client_udm.models.dhcp_dhcp_response_mixin import DhcpDhcpResponseMixin +from openapi_client_udm.models.dhcp_host import DhcpHost +from openapi_client_udm.models.dhcp_host_list import DhcpHostList +from openapi_client_udm.models.dhcp_host_list_embedded import DhcpHostListEmbedded +from openapi_client_udm.models.dhcp_host_options import DhcpHostOptions +from openapi_client_udm.models.dhcp_host_policies import DhcpHostPolicies +from openapi_client_udm.models.dhcp_host_request import DhcpHostRequest +from openapi_client_udm.models.dhcp_host_request_patch import DhcpHostRequestPatch +from openapi_client_udm.models.dhcp_host_response_mixin import DhcpHostResponseMixin +from openapi_client_udm.models.dhcp_pool import DhcpPool +from openapi_client_udm.models.dhcp_pool_list import DhcpPoolList +from openapi_client_udm.models.dhcp_pool_list_embedded import DhcpPoolListEmbedded +from openapi_client_udm.models.dhcp_pool_options import DhcpPoolOptions +from openapi_client_udm.models.dhcp_pool_policies import DhcpPoolPolicies +from openapi_client_udm.models.dhcp_pool_request import DhcpPoolRequest +from openapi_client_udm.models.dhcp_pool_request_patch import DhcpPoolRequestPatch +from openapi_client_udm.models.dhcp_pool_response_mixin import DhcpPoolResponseMixin +from openapi_client_udm.models.dhcp_server import DhcpServer +from openapi_client_udm.models.dhcp_server_list import DhcpServerList +from openapi_client_udm.models.dhcp_server_list_embedded import DhcpServerListEmbedded +from openapi_client_udm.models.dhcp_server_request import DhcpServerRequest +from openapi_client_udm.models.dhcp_server_request_patch import DhcpServerRequestPatch +from openapi_client_udm.models.dhcp_server_response_mixin import DhcpServerResponseMixin +from openapi_client_udm.models.dhcp_service import DhcpService +from openapi_client_udm.models.dhcp_service_list import DhcpServiceList +from openapi_client_udm.models.dhcp_service_list_embedded import DhcpServiceListEmbedded +from openapi_client_udm.models.dhcp_service_options import DhcpServiceOptions +from openapi_client_udm.models.dhcp_service_policies import DhcpServicePolicies +from openapi_client_udm.models.dhcp_service_request import DhcpServiceRequest +from openapi_client_udm.models.dhcp_service_request_patch import DhcpServiceRequestPatch +from openapi_client_udm.models.dhcp_service_response_mixin import DhcpServiceResponseMixin +from openapi_client_udm.models.dhcp_shared import DhcpShared +from openapi_client_udm.models.dhcp_shared_list import DhcpSharedList +from openapi_client_udm.models.dhcp_shared_list_embedded import DhcpSharedListEmbedded +from openapi_client_udm.models.dhcp_shared_options import DhcpSharedOptions +from openapi_client_udm.models.dhcp_shared_policies import DhcpSharedPolicies +from openapi_client_udm.models.dhcp_shared_request import DhcpSharedRequest +from openapi_client_udm.models.dhcp_shared_request_patch import DhcpSharedRequestPatch +from openapi_client_udm.models.dhcp_shared_response_mixin import DhcpSharedResponseMixin +from openapi_client_udm.models.dhcp_sharedsubnet import DhcpSharedsubnet +from openapi_client_udm.models.dhcp_sharedsubnet_list import DhcpSharedsubnetList +from openapi_client_udm.models.dhcp_sharedsubnet_list_embedded import DhcpSharedsubnetListEmbedded +from openapi_client_udm.models.dhcp_sharedsubnet_options import DhcpSharedsubnetOptions +from openapi_client_udm.models.dhcp_sharedsubnet_policies import DhcpSharedsubnetPolicies +from openapi_client_udm.models.dhcp_sharedsubnet_request import DhcpSharedsubnetRequest +from openapi_client_udm.models.dhcp_sharedsubnet_request_patch import DhcpSharedsubnetRequestPatch +from openapi_client_udm.models.dhcp_sharedsubnet_response_mixin import DhcpSharedsubnetResponseMixin +from openapi_client_udm.models.dhcp_subnet import DhcpSubnet +from openapi_client_udm.models.dhcp_subnet_list import DhcpSubnetList +from openapi_client_udm.models.dhcp_subnet_list_embedded import DhcpSubnetListEmbedded +from openapi_client_udm.models.dhcp_subnet_options import DhcpSubnetOptions +from openapi_client_udm.models.dhcp_subnet_policies import DhcpSubnetPolicies +from openapi_client_udm.models.dhcp_subnet_request import DhcpSubnetRequest +from openapi_client_udm.models.dhcp_subnet_request_patch import DhcpSubnetRequestPatch +from openapi_client_udm.models.dhcp_subnet_response_mixin import DhcpSubnetResponseMixin +from openapi_client_udm.models.dns_alias import DnsAlias +from openapi_client_udm.models.dns_alias_list import DnsAliasList +from openapi_client_udm.models.dns_alias_list_embedded import DnsAliasListEmbedded +from openapi_client_udm.models.dns_alias_request import DnsAliasRequest +from openapi_client_udm.models.dns_alias_request_patch import DnsAliasRequestPatch +from openapi_client_udm.models.dns_alias_response_mixin import DnsAliasResponseMixin +from openapi_client_udm.models.dns_dns import DnsDns +from openapi_client_udm.models.dns_dns_list import DnsDnsList +from openapi_client_udm.models.dns_dns_list_embedded import DnsDnsListEmbedded +from openapi_client_udm.models.dns_dns_request import DnsDnsRequest +from openapi_client_udm.models.dns_dns_request_patch import DnsDnsRequestPatch +from openapi_client_udm.models.dns_dns_response_mixin import DnsDnsResponseMixin +from openapi_client_udm.models.dns_forward_zone import DnsForwardZone +from openapi_client_udm.models.dns_forward_zone_list import DnsForwardZoneList +from openapi_client_udm.models.dns_forward_zone_list_embedded import DnsForwardZoneListEmbedded +from openapi_client_udm.models.dns_forward_zone_policies import DnsForwardZonePolicies +from openapi_client_udm.models.dns_forward_zone_request import DnsForwardZoneRequest +from openapi_client_udm.models.dns_forward_zone_request_patch import DnsForwardZoneRequestPatch +from openapi_client_udm.models.dns_forward_zone_response_mixin import DnsForwardZoneResponseMixin +from openapi_client_udm.models.dns_host_record import DnsHostRecord +from openapi_client_udm.models.dns_host_record_list import DnsHostRecordList +from openapi_client_udm.models.dns_host_record_list_embedded import DnsHostRecordListEmbedded +from openapi_client_udm.models.dns_host_record_request import DnsHostRecordRequest +from openapi_client_udm.models.dns_host_record_request_patch import DnsHostRecordRequestPatch +from openapi_client_udm.models.dns_host_record_response_mixin import DnsHostRecordResponseMixin +from openapi_client_udm.models.dns_ns_record import DnsNsRecord +from openapi_client_udm.models.dns_ns_record_list import DnsNsRecordList +from openapi_client_udm.models.dns_ns_record_list_embedded import DnsNsRecordListEmbedded +from openapi_client_udm.models.dns_ns_record_request import DnsNsRecordRequest +from openapi_client_udm.models.dns_ns_record_request_patch import DnsNsRecordRequestPatch +from openapi_client_udm.models.dns_ns_record_response_mixin import DnsNsRecordResponseMixin +from openapi_client_udm.models.dns_ptr_record import DnsPtrRecord +from openapi_client_udm.models.dns_ptr_record_list import DnsPtrRecordList +from openapi_client_udm.models.dns_ptr_record_list_embedded import DnsPtrRecordListEmbedded +from openapi_client_udm.models.dns_ptr_record_request import DnsPtrRecordRequest +from openapi_client_udm.models.dns_ptr_record_request_patch import DnsPtrRecordRequestPatch +from openapi_client_udm.models.dns_ptr_record_response_mixin import DnsPtrRecordResponseMixin +from openapi_client_udm.models.dns_reverse_zone import DnsReverseZone +from openapi_client_udm.models.dns_reverse_zone_list import DnsReverseZoneList +from openapi_client_udm.models.dns_reverse_zone_list_embedded import DnsReverseZoneListEmbedded +from openapi_client_udm.models.dns_reverse_zone_policies import DnsReverseZonePolicies +from openapi_client_udm.models.dns_reverse_zone_request import DnsReverseZoneRequest +from openapi_client_udm.models.dns_reverse_zone_request_patch import DnsReverseZoneRequestPatch +from openapi_client_udm.models.dns_reverse_zone_response_mixin import DnsReverseZoneResponseMixin +from openapi_client_udm.models.dns_srv_record import DnsSrvRecord +from openapi_client_udm.models.dns_srv_record_list import DnsSrvRecordList +from openapi_client_udm.models.dns_srv_record_list_embedded import DnsSrvRecordListEmbedded +from openapi_client_udm.models.dns_srv_record_request import DnsSrvRecordRequest +from openapi_client_udm.models.dns_srv_record_request_patch import DnsSrvRecordRequestPatch +from openapi_client_udm.models.dns_srv_record_response_mixin import DnsSrvRecordResponseMixin +from openapi_client_udm.models.dns_txt_record import DnsTxtRecord +from openapi_client_udm.models.dns_txt_record_list import DnsTxtRecordList +from openapi_client_udm.models.dns_txt_record_list_embedded import DnsTxtRecordListEmbedded +from openapi_client_udm.models.dns_txt_record_request import DnsTxtRecordRequest +from openapi_client_udm.models.dns_txt_record_request_patch import DnsTxtRecordRequestPatch +from openapi_client_udm.models.dns_txt_record_response_mixin import DnsTxtRecordResponseMixin +from openapi_client_udm.models.embedded_error import EmbeddedError +from openapi_client_udm.models.groups_group import GroupsGroup +from openapi_client_udm.models.groups_group_list import GroupsGroupList +from openapi_client_udm.models.groups_group_list_embedded import GroupsGroupListEmbedded +from openapi_client_udm.models.groups_group_options import GroupsGroupOptions +from openapi_client_udm.models.groups_group_policies import GroupsGroupPolicies +from openapi_client_udm.models.groups_group_request import GroupsGroupRequest +from openapi_client_udm.models.groups_group_request_patch import GroupsGroupRequestPatch +from openapi_client_udm.models.groups_group_response_mixin import GroupsGroupResponseMixin +from openapi_client_udm.models.inline_response201 import InlineResponse201 +from openapi_client_udm.models.kerberos_kdcentry import KerberosKdcentry +from openapi_client_udm.models.kerberos_kdcentry_list import KerberosKdcentryList +from openapi_client_udm.models.kerberos_kdcentry_list_embedded import KerberosKdcentryListEmbedded +from openapi_client_udm.models.kerberos_kdcentry_request import KerberosKdcentryRequest +from openapi_client_udm.models.kerberos_kdcentry_request_patch import KerberosKdcentryRequestPatch +from openapi_client_udm.models.kerberos_kdcentry_response_mixin import KerberosKdcentryResponseMixin +from openapi_client_udm.models.links import Links +from openapi_client_udm.models.mail_domain import MailDomain +from openapi_client_udm.models.mail_domain_list import MailDomainList +from openapi_client_udm.models.mail_domain_list_embedded import MailDomainListEmbedded +from openapi_client_udm.models.mail_domain_request import MailDomainRequest +from openapi_client_udm.models.mail_domain_request_patch import MailDomainRequestPatch +from openapi_client_udm.models.mail_domain_response_mixin import MailDomainResponseMixin +from openapi_client_udm.models.mail_folder import MailFolder +from openapi_client_udm.models.mail_folder_list import MailFolderList +from openapi_client_udm.models.mail_folder_list_embedded import MailFolderListEmbedded +from openapi_client_udm.models.mail_folder_request import MailFolderRequest +from openapi_client_udm.models.mail_folder_request_patch import MailFolderRequestPatch +from openapi_client_udm.models.mail_folder_response_mixin import MailFolderResponseMixin +from openapi_client_udm.models.mail_lists import MailLists +from openapi_client_udm.models.mail_lists_list import MailListsList +from openapi_client_udm.models.mail_lists_list_embedded import MailListsListEmbedded +from openapi_client_udm.models.mail_lists_request import MailListsRequest +from openapi_client_udm.models.mail_lists_request_patch import MailListsRequestPatch +from openapi_client_udm.models.mail_lists_response_mixin import MailListsResponseMixin +from openapi_client_udm.models.mail_mail import MailMail +from openapi_client_udm.models.mail_mail_list import MailMailList +from openapi_client_udm.models.mail_mail_list_embedded import MailMailListEmbedded +from openapi_client_udm.models.mail_mail_request import MailMailRequest +from openapi_client_udm.models.mail_mail_request_patch import MailMailRequestPatch +from openapi_client_udm.models.mail_mail_response_mixin import MailMailResponseMixin +from openapi_client_udm.models.monitoring_alert import MonitoringAlert +from openapi_client_udm.models.monitoring_alert_list import MonitoringAlertList +from openapi_client_udm.models.monitoring_alert_list_embedded import MonitoringAlertListEmbedded +from openapi_client_udm.models.monitoring_alert_request import MonitoringAlertRequest +from openapi_client_udm.models.monitoring_alert_request_patch import MonitoringAlertRequestPatch +from openapi_client_udm.models.monitoring_alert_response_mixin import MonitoringAlertResponseMixin +from openapi_client_udm.models.ms_domainpolicy import MsDomainpolicy +from openapi_client_udm.models.ms_domainpolicy_list import MsDomainpolicyList +from openapi_client_udm.models.ms_domainpolicy_list_embedded import MsDomainpolicyListEmbedded +from openapi_client_udm.models.ms_domainpolicy_policies import MsDomainpolicyPolicies +from openapi_client_udm.models.ms_domainpolicy_request import MsDomainpolicyRequest +from openapi_client_udm.models.ms_domainpolicy_request_patch import MsDomainpolicyRequestPatch +from openapi_client_udm.models.ms_domainpolicy_response_mixin import MsDomainpolicyResponseMixin +from openapi_client_udm.models.ms_gpipsec_filter import MsGpipsecFilter +from openapi_client_udm.models.ms_gpipsec_filter_list import MsGpipsecFilterList +from openapi_client_udm.models.ms_gpipsec_filter_list_embedded import MsGpipsecFilterListEmbedded +from openapi_client_udm.models.ms_gpipsec_filter_policies import MsGpipsecFilterPolicies +from openapi_client_udm.models.ms_gpipsec_filter_request import MsGpipsecFilterRequest +from openapi_client_udm.models.ms_gpipsec_filter_request_patch import MsGpipsecFilterRequestPatch +from openapi_client_udm.models.ms_gpipsec_filter_response_mixin import MsGpipsecFilterResponseMixin +from openapi_client_udm.models.ms_gpipsec_isakmp_policy import MsGpipsecIsakmpPolicy +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_list import MsGpipsecIsakmpPolicyList +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_list_embedded import MsGpipsecIsakmpPolicyListEmbedded +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_policies import MsGpipsecIsakmpPolicyPolicies +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_request import MsGpipsecIsakmpPolicyRequest +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_request_patch import MsGpipsecIsakmpPolicyRequestPatch +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_response_mixin import MsGpipsecIsakmpPolicyResponseMixin +from openapi_client_udm.models.ms_gpipsec_negotiation_policy import MsGpipsecNegotiationPolicy +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_list import MsGpipsecNegotiationPolicyList +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_list_embedded import MsGpipsecNegotiationPolicyListEmbedded +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_policies import MsGpipsecNegotiationPolicyPolicies +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_request import MsGpipsecNegotiationPolicyRequest +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_request_patch import MsGpipsecNegotiationPolicyRequestPatch +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_response_mixin import MsGpipsecNegotiationPolicyResponseMixin +from openapi_client_udm.models.ms_gpipsec_nfa import MsGpipsecNfa +from openapi_client_udm.models.ms_gpipsec_nfa_list import MsGpipsecNfaList +from openapi_client_udm.models.ms_gpipsec_nfa_list_embedded import MsGpipsecNfaListEmbedded +from openapi_client_udm.models.ms_gpipsec_nfa_policies import MsGpipsecNfaPolicies +from openapi_client_udm.models.ms_gpipsec_nfa_request import MsGpipsecNfaRequest +from openapi_client_udm.models.ms_gpipsec_nfa_request_patch import MsGpipsecNfaRequestPatch +from openapi_client_udm.models.ms_gpipsec_nfa_response_mixin import MsGpipsecNfaResponseMixin +from openapi_client_udm.models.ms_gpipsec_policy import MsGpipsecPolicy +from openapi_client_udm.models.ms_gpipsec_policy_list import MsGpipsecPolicyList +from openapi_client_udm.models.ms_gpipsec_policy_list_embedded import MsGpipsecPolicyListEmbedded +from openapi_client_udm.models.ms_gpipsec_policy_policies import MsGpipsecPolicyPolicies +from openapi_client_udm.models.ms_gpipsec_policy_request import MsGpipsecPolicyRequest +from openapi_client_udm.models.ms_gpipsec_policy_request_patch import MsGpipsecPolicyRequestPatch +from openapi_client_udm.models.ms_gpipsec_policy_response_mixin import MsGpipsecPolicyResponseMixin +from openapi_client_udm.models.ms_gpsi_category_registration import MsGpsiCategoryRegistration +from openapi_client_udm.models.ms_gpsi_category_registration_list import MsGpsiCategoryRegistrationList +from openapi_client_udm.models.ms_gpsi_category_registration_list_embedded import MsGpsiCategoryRegistrationListEmbedded +from openapi_client_udm.models.ms_gpsi_category_registration_policies import MsGpsiCategoryRegistrationPolicies +from openapi_client_udm.models.ms_gpsi_category_registration_request import MsGpsiCategoryRegistrationRequest +from openapi_client_udm.models.ms_gpsi_category_registration_request_patch import MsGpsiCategoryRegistrationRequestPatch +from openapi_client_udm.models.ms_gpsi_category_registration_response_mixin import MsGpsiCategoryRegistrationResponseMixin +from openapi_client_udm.models.ms_gpsi_class_store import MsGpsiClassStore +from openapi_client_udm.models.ms_gpsi_class_store_list import MsGpsiClassStoreList +from openapi_client_udm.models.ms_gpsi_class_store_list_embedded import MsGpsiClassStoreListEmbedded +from openapi_client_udm.models.ms_gpsi_class_store_policies import MsGpsiClassStorePolicies +from openapi_client_udm.models.ms_gpsi_class_store_request import MsGpsiClassStoreRequest +from openapi_client_udm.models.ms_gpsi_class_store_request_patch import MsGpsiClassStoreRequestPatch +from openapi_client_udm.models.ms_gpsi_class_store_response_mixin import MsGpsiClassStoreResponseMixin +from openapi_client_udm.models.ms_gpsi_package_registration import MsGpsiPackageRegistration +from openapi_client_udm.models.ms_gpsi_package_registration_list import MsGpsiPackageRegistrationList +from openapi_client_udm.models.ms_gpsi_package_registration_list_embedded import MsGpsiPackageRegistrationListEmbedded +from openapi_client_udm.models.ms_gpsi_package_registration_policies import MsGpsiPackageRegistrationPolicies +from openapi_client_udm.models.ms_gpsi_package_registration_request import MsGpsiPackageRegistrationRequest +from openapi_client_udm.models.ms_gpsi_package_registration_request_patch import MsGpsiPackageRegistrationRequestPatch +from openapi_client_udm.models.ms_gpsi_package_registration_response_mixin import MsGpsiPackageRegistrationResponseMixin +from openapi_client_udm.models.ms_gpwl_wired import MsGpwlWired +from openapi_client_udm.models.ms_gpwl_wired_list import MsGpwlWiredList +from openapi_client_udm.models.ms_gpwl_wired_list_embedded import MsGpwlWiredListEmbedded +from openapi_client_udm.models.ms_gpwl_wired_policies import MsGpwlWiredPolicies +from openapi_client_udm.models.ms_gpwl_wired_request import MsGpwlWiredRequest +from openapi_client_udm.models.ms_gpwl_wired_request_patch import MsGpwlWiredRequestPatch +from openapi_client_udm.models.ms_gpwl_wired_response_mixin import MsGpwlWiredResponseMixin +from openapi_client_udm.models.ms_gpwl_wireless import MsGpwlWireless +from openapi_client_udm.models.ms_gpwl_wireless_blob import MsGpwlWirelessBlob +from openapi_client_udm.models.ms_gpwl_wireless_blob_list import MsGpwlWirelessBlobList +from openapi_client_udm.models.ms_gpwl_wireless_blob_list_embedded import MsGpwlWirelessBlobListEmbedded +from openapi_client_udm.models.ms_gpwl_wireless_blob_policies import MsGpwlWirelessBlobPolicies +from openapi_client_udm.models.ms_gpwl_wireless_blob_request import MsGpwlWirelessBlobRequest +from openapi_client_udm.models.ms_gpwl_wireless_blob_request_patch import MsGpwlWirelessBlobRequestPatch +from openapi_client_udm.models.ms_gpwl_wireless_blob_response_mixin import MsGpwlWirelessBlobResponseMixin +from openapi_client_udm.models.ms_gpwl_wireless_list import MsGpwlWirelessList +from openapi_client_udm.models.ms_gpwl_wireless_list_embedded import MsGpwlWirelessListEmbedded +from openapi_client_udm.models.ms_gpwl_wireless_policies import MsGpwlWirelessPolicies +from openapi_client_udm.models.ms_gpwl_wireless_request import MsGpwlWirelessRequest +from openapi_client_udm.models.ms_gpwl_wireless_request_patch import MsGpwlWirelessRequestPatch +from openapi_client_udm.models.ms_gpwl_wireless_response_mixin import MsGpwlWirelessResponseMixin +from openapi_client_udm.models.nagios_nagios import NagiosNagios +from openapi_client_udm.models.nagios_nagios_list import NagiosNagiosList +from openapi_client_udm.models.nagios_nagios_list_embedded import NagiosNagiosListEmbedded +from openapi_client_udm.models.nagios_nagios_request import NagiosNagiosRequest +from openapi_client_udm.models.nagios_nagios_request_patch import NagiosNagiosRequestPatch +from openapi_client_udm.models.nagios_nagios_response_mixin import NagiosNagiosResponseMixin +from openapi_client_udm.models.nagios_service import NagiosService +from openapi_client_udm.models.nagios_service_list import NagiosServiceList +from openapi_client_udm.models.nagios_service_list_embedded import NagiosServiceListEmbedded +from openapi_client_udm.models.nagios_service_request import NagiosServiceRequest +from openapi_client_udm.models.nagios_service_request_patch import NagiosServiceRequestPatch +from openapi_client_udm.models.nagios_service_response_mixin import NagiosServiceResponseMixin +from openapi_client_udm.models.nagios_timeperiod import NagiosTimeperiod +from openapi_client_udm.models.nagios_timeperiod_list import NagiosTimeperiodList +from openapi_client_udm.models.nagios_timeperiod_list_embedded import NagiosTimeperiodListEmbedded +from openapi_client_udm.models.nagios_timeperiod_request import NagiosTimeperiodRequest +from openapi_client_udm.models.nagios_timeperiod_request_patch import NagiosTimeperiodRequestPatch +from openapi_client_udm.models.nagios_timeperiod_response_mixin import NagiosTimeperiodResponseMixin +from openapi_client_udm.models.networks_network import NetworksNetwork +from openapi_client_udm.models.networks_network_list import NetworksNetworkList +from openapi_client_udm.models.networks_network_list_embedded import NetworksNetworkListEmbedded +from openapi_client_udm.models.networks_network_request import NetworksNetworkRequest +from openapi_client_udm.models.networks_network_request_patch import NetworksNetworkRequestPatch +from openapi_client_udm.models.networks_network_response_mixin import NetworksNetworkResponseMixin +from openapi_client_udm.models.policies_admin_container import PoliciesAdminContainer +from openapi_client_udm.models.policies_admin_container_list import PoliciesAdminContainerList +from openapi_client_udm.models.policies_admin_container_list_embedded import PoliciesAdminContainerListEmbedded +from openapi_client_udm.models.policies_admin_container_request import PoliciesAdminContainerRequest +from openapi_client_udm.models.policies_admin_container_request_patch import PoliciesAdminContainerRequestPatch +from openapi_client_udm.models.policies_admin_container_response_mixin import PoliciesAdminContainerResponseMixin +from openapi_client_udm.models.policies_desktop import PoliciesDesktop +from openapi_client_udm.models.policies_desktop_list import PoliciesDesktopList +from openapi_client_udm.models.policies_desktop_list_embedded import PoliciesDesktopListEmbedded +from openapi_client_udm.models.policies_desktop_request import PoliciesDesktopRequest +from openapi_client_udm.models.policies_desktop_request_patch import PoliciesDesktopRequestPatch +from openapi_client_udm.models.policies_desktop_response_mixin import PoliciesDesktopResponseMixin +from openapi_client_udm.models.policies_dhcp_boot import PoliciesDhcpBoot +from openapi_client_udm.models.policies_dhcp_boot_list import PoliciesDhcpBootList +from openapi_client_udm.models.policies_dhcp_boot_list_embedded import PoliciesDhcpBootListEmbedded +from openapi_client_udm.models.policies_dhcp_boot_request import PoliciesDhcpBootRequest +from openapi_client_udm.models.policies_dhcp_boot_request_patch import PoliciesDhcpBootRequestPatch +from openapi_client_udm.models.policies_dhcp_boot_response_mixin import PoliciesDhcpBootResponseMixin +from openapi_client_udm.models.policies_dhcp_dns import PoliciesDhcpDns +from openapi_client_udm.models.policies_dhcp_dns_list import PoliciesDhcpDnsList +from openapi_client_udm.models.policies_dhcp_dns_list_embedded import PoliciesDhcpDnsListEmbedded +from openapi_client_udm.models.policies_dhcp_dns_request import PoliciesDhcpDnsRequest +from openapi_client_udm.models.policies_dhcp_dns_request_patch import PoliciesDhcpDnsRequestPatch +from openapi_client_udm.models.policies_dhcp_dns_response_mixin import PoliciesDhcpDnsResponseMixin +from openapi_client_udm.models.policies_dhcp_dnsupdate import PoliciesDhcpDnsupdate +from openapi_client_udm.models.policies_dhcp_dnsupdate_list import PoliciesDhcpDnsupdateList +from openapi_client_udm.models.policies_dhcp_dnsupdate_list_embedded import PoliciesDhcpDnsupdateListEmbedded +from openapi_client_udm.models.policies_dhcp_dnsupdate_request import PoliciesDhcpDnsupdateRequest +from openapi_client_udm.models.policies_dhcp_dnsupdate_request_patch import PoliciesDhcpDnsupdateRequestPatch +from openapi_client_udm.models.policies_dhcp_dnsupdate_response_mixin import PoliciesDhcpDnsupdateResponseMixin +from openapi_client_udm.models.policies_dhcp_leasetime import PoliciesDhcpLeasetime +from openapi_client_udm.models.policies_dhcp_leasetime_list import PoliciesDhcpLeasetimeList +from openapi_client_udm.models.policies_dhcp_leasetime_list_embedded import PoliciesDhcpLeasetimeListEmbedded +from openapi_client_udm.models.policies_dhcp_leasetime_request import PoliciesDhcpLeasetimeRequest +from openapi_client_udm.models.policies_dhcp_leasetime_request_patch import PoliciesDhcpLeasetimeRequestPatch +from openapi_client_udm.models.policies_dhcp_leasetime_response_mixin import PoliciesDhcpLeasetimeResponseMixin +from openapi_client_udm.models.policies_dhcp_netbios import PoliciesDhcpNetbios +from openapi_client_udm.models.policies_dhcp_netbios_list import PoliciesDhcpNetbiosList +from openapi_client_udm.models.policies_dhcp_netbios_list_embedded import PoliciesDhcpNetbiosListEmbedded +from openapi_client_udm.models.policies_dhcp_netbios_request import PoliciesDhcpNetbiosRequest +from openapi_client_udm.models.policies_dhcp_netbios_request_patch import PoliciesDhcpNetbiosRequestPatch +from openapi_client_udm.models.policies_dhcp_netbios_response_mixin import PoliciesDhcpNetbiosResponseMixin +from openapi_client_udm.models.policies_dhcp_routing import PoliciesDhcpRouting +from openapi_client_udm.models.policies_dhcp_routing_list import PoliciesDhcpRoutingList +from openapi_client_udm.models.policies_dhcp_routing_list_embedded import PoliciesDhcpRoutingListEmbedded +from openapi_client_udm.models.policies_dhcp_routing_request import PoliciesDhcpRoutingRequest +from openapi_client_udm.models.policies_dhcp_routing_request_patch import PoliciesDhcpRoutingRequestPatch +from openapi_client_udm.models.policies_dhcp_routing_response_mixin import PoliciesDhcpRoutingResponseMixin +from openapi_client_udm.models.policies_dhcp_scope import PoliciesDhcpScope +from openapi_client_udm.models.policies_dhcp_scope_list import PoliciesDhcpScopeList +from openapi_client_udm.models.policies_dhcp_scope_list_embedded import PoliciesDhcpScopeListEmbedded +from openapi_client_udm.models.policies_dhcp_scope_request import PoliciesDhcpScopeRequest +from openapi_client_udm.models.policies_dhcp_scope_request_patch import PoliciesDhcpScopeRequestPatch +from openapi_client_udm.models.policies_dhcp_scope_response_mixin import PoliciesDhcpScopeResponseMixin +from openapi_client_udm.models.policies_dhcp_statements import PoliciesDhcpStatements +from openapi_client_udm.models.policies_dhcp_statements_list import PoliciesDhcpStatementsList +from openapi_client_udm.models.policies_dhcp_statements_list_embedded import PoliciesDhcpStatementsListEmbedded +from openapi_client_udm.models.policies_dhcp_statements_request import PoliciesDhcpStatementsRequest +from openapi_client_udm.models.policies_dhcp_statements_request_patch import PoliciesDhcpStatementsRequestPatch +from openapi_client_udm.models.policies_dhcp_statements_response_mixin import PoliciesDhcpStatementsResponseMixin +from openapi_client_udm.models.policies_ldapserver import PoliciesLdapserver +from openapi_client_udm.models.policies_ldapserver_list import PoliciesLdapserverList +from openapi_client_udm.models.policies_ldapserver_list_embedded import PoliciesLdapserverListEmbedded +from openapi_client_udm.models.policies_ldapserver_request import PoliciesLdapserverRequest +from openapi_client_udm.models.policies_ldapserver_request_patch import PoliciesLdapserverRequestPatch +from openapi_client_udm.models.policies_ldapserver_response_mixin import PoliciesLdapserverResponseMixin +from openapi_client_udm.models.policies_maintenance import PoliciesMaintenance +from openapi_client_udm.models.policies_maintenance_list import PoliciesMaintenanceList +from openapi_client_udm.models.policies_maintenance_list_embedded import PoliciesMaintenanceListEmbedded +from openapi_client_udm.models.policies_maintenance_request import PoliciesMaintenanceRequest +from openapi_client_udm.models.policies_maintenance_request_patch import PoliciesMaintenanceRequestPatch +from openapi_client_udm.models.policies_maintenance_response_mixin import PoliciesMaintenanceResponseMixin +from openapi_client_udm.models.policies_masterpackages import PoliciesMasterpackages +from openapi_client_udm.models.policies_masterpackages_list import PoliciesMasterpackagesList +from openapi_client_udm.models.policies_masterpackages_list_embedded import PoliciesMasterpackagesListEmbedded +from openapi_client_udm.models.policies_masterpackages_request import PoliciesMasterpackagesRequest +from openapi_client_udm.models.policies_masterpackages_request_patch import PoliciesMasterpackagesRequestPatch +from openapi_client_udm.models.policies_masterpackages_response_mixin import PoliciesMasterpackagesResponseMixin +from openapi_client_udm.models.policies_memberpackages import PoliciesMemberpackages +from openapi_client_udm.models.policies_memberpackages_list import PoliciesMemberpackagesList +from openapi_client_udm.models.policies_memberpackages_list_embedded import PoliciesMemberpackagesListEmbedded +from openapi_client_udm.models.policies_memberpackages_request import PoliciesMemberpackagesRequest +from openapi_client_udm.models.policies_memberpackages_request_patch import PoliciesMemberpackagesRequestPatch +from openapi_client_udm.models.policies_memberpackages_response_mixin import PoliciesMemberpackagesResponseMixin +from openapi_client_udm.models.policies_nfsmounts import PoliciesNfsmounts +from openapi_client_udm.models.policies_nfsmounts_list import PoliciesNfsmountsList +from openapi_client_udm.models.policies_nfsmounts_list_embedded import PoliciesNfsmountsListEmbedded +from openapi_client_udm.models.policies_nfsmounts_request import PoliciesNfsmountsRequest +from openapi_client_udm.models.policies_nfsmounts_request_patch import PoliciesNfsmountsRequestPatch +from openapi_client_udm.models.policies_nfsmounts_response_mixin import PoliciesNfsmountsResponseMixin +from openapi_client_udm.models.policies_policy import PoliciesPolicy +from openapi_client_udm.models.policies_policy_list import PoliciesPolicyList +from openapi_client_udm.models.policies_policy_list_embedded import PoliciesPolicyListEmbedded +from openapi_client_udm.models.policies_policy_request import PoliciesPolicyRequest +from openapi_client_udm.models.policies_policy_request_patch import PoliciesPolicyRequestPatch +from openapi_client_udm.models.policies_policy_response_mixin import PoliciesPolicyResponseMixin +from openapi_client_udm.models.policies_printserver import PoliciesPrintserver +from openapi_client_udm.models.policies_printserver_list import PoliciesPrintserverList +from openapi_client_udm.models.policies_printserver_list_embedded import PoliciesPrintserverListEmbedded +from openapi_client_udm.models.policies_printserver_request import PoliciesPrintserverRequest +from openapi_client_udm.models.policies_printserver_request_patch import PoliciesPrintserverRequestPatch +from openapi_client_udm.models.policies_printserver_response_mixin import PoliciesPrintserverResponseMixin +from openapi_client_udm.models.policies_pwhistory import PoliciesPwhistory +from openapi_client_udm.models.policies_pwhistory_list import PoliciesPwhistoryList +from openapi_client_udm.models.policies_pwhistory_list_embedded import PoliciesPwhistoryListEmbedded +from openapi_client_udm.models.policies_pwhistory_request import PoliciesPwhistoryRequest +from openapi_client_udm.models.policies_pwhistory_request_patch import PoliciesPwhistoryRequestPatch +from openapi_client_udm.models.policies_pwhistory_response_mixin import PoliciesPwhistoryResponseMixin +from openapi_client_udm.models.policies_registry import PoliciesRegistry +from openapi_client_udm.models.policies_registry_list import PoliciesRegistryList +from openapi_client_udm.models.policies_registry_list_embedded import PoliciesRegistryListEmbedded +from openapi_client_udm.models.policies_registry_request import PoliciesRegistryRequest +from openapi_client_udm.models.policies_registry_request_patch import PoliciesRegistryRequestPatch +from openapi_client_udm.models.policies_registry_response_mixin import PoliciesRegistryResponseMixin +from openapi_client_udm.models.policies_release import PoliciesRelease +from openapi_client_udm.models.policies_release_list import PoliciesReleaseList +from openapi_client_udm.models.policies_release_list_embedded import PoliciesReleaseListEmbedded +from openapi_client_udm.models.policies_release_request import PoliciesReleaseRequest +from openapi_client_udm.models.policies_release_request_patch import PoliciesReleaseRequestPatch +from openapi_client_udm.models.policies_release_response_mixin import PoliciesReleaseResponseMixin +from openapi_client_udm.models.policies_repositoryserver import PoliciesRepositoryserver +from openapi_client_udm.models.policies_repositoryserver_list import PoliciesRepositoryserverList +from openapi_client_udm.models.policies_repositoryserver_list_embedded import PoliciesRepositoryserverListEmbedded +from openapi_client_udm.models.policies_repositoryserver_request import PoliciesRepositoryserverRequest +from openapi_client_udm.models.policies_repositoryserver_request_patch import PoliciesRepositoryserverRequestPatch +from openapi_client_udm.models.policies_repositoryserver_response_mixin import PoliciesRepositoryserverResponseMixin +from openapi_client_udm.models.policies_repositorysync import PoliciesRepositorysync +from openapi_client_udm.models.policies_repositorysync_list import PoliciesRepositorysyncList +from openapi_client_udm.models.policies_repositorysync_list_embedded import PoliciesRepositorysyncListEmbedded +from openapi_client_udm.models.policies_repositorysync_request import PoliciesRepositorysyncRequest +from openapi_client_udm.models.policies_repositorysync_request_patch import PoliciesRepositorysyncRequestPatch +from openapi_client_udm.models.policies_repositorysync_response_mixin import PoliciesRepositorysyncResponseMixin +from openapi_client_udm.models.policies_share_userquota import PoliciesShareUserquota +from openapi_client_udm.models.policies_share_userquota_list import PoliciesShareUserquotaList +from openapi_client_udm.models.policies_share_userquota_list_embedded import PoliciesShareUserquotaListEmbedded +from openapi_client_udm.models.policies_share_userquota_request import PoliciesShareUserquotaRequest +from openapi_client_udm.models.policies_share_userquota_request_patch import PoliciesShareUserquotaRequestPatch +from openapi_client_udm.models.policies_share_userquota_response_mixin import PoliciesShareUserquotaResponseMixin +from openapi_client_udm.models.policies_slavepackages import PoliciesSlavepackages +from openapi_client_udm.models.policies_slavepackages_list import PoliciesSlavepackagesList +from openapi_client_udm.models.policies_slavepackages_list_embedded import PoliciesSlavepackagesListEmbedded +from openapi_client_udm.models.policies_slavepackages_request import PoliciesSlavepackagesRequest +from openapi_client_udm.models.policies_slavepackages_request_patch import PoliciesSlavepackagesRequestPatch +from openapi_client_udm.models.policies_slavepackages_response_mixin import PoliciesSlavepackagesResponseMixin +from openapi_client_udm.models.policies_umc import PoliciesUmc +from openapi_client_udm.models.policies_umc_list import PoliciesUmcList +from openapi_client_udm.models.policies_umc_list_embedded import PoliciesUmcListEmbedded +from openapi_client_udm.models.policies_umc_request import PoliciesUmcRequest +from openapi_client_udm.models.policies_umc_request_patch import PoliciesUmcRequestPatch +from openapi_client_udm.models.policies_umc_response_mixin import PoliciesUmcResponseMixin +from openapi_client_udm.models.portals_all import PortalsAll +from openapi_client_udm.models.portals_all_list import PortalsAllList +from openapi_client_udm.models.portals_all_list_embedded import PortalsAllListEmbedded +from openapi_client_udm.models.portals_all_request import PortalsAllRequest +from openapi_client_udm.models.portals_all_request_patch import PortalsAllRequestPatch +from openapi_client_udm.models.portals_all_response_mixin import PortalsAllResponseMixin +from openapi_client_udm.models.portals_announcement import PortalsAnnouncement +from openapi_client_udm.models.portals_announcement_list import PortalsAnnouncementList +from openapi_client_udm.models.portals_announcement_list_embedded import PortalsAnnouncementListEmbedded +from openapi_client_udm.models.portals_announcement_request import PortalsAnnouncementRequest +from openapi_client_udm.models.portals_announcement_request_patch import PortalsAnnouncementRequestPatch +from openapi_client_udm.models.portals_announcement_response_mixin import PortalsAnnouncementResponseMixin +from openapi_client_udm.models.portals_category import PortalsCategory +from openapi_client_udm.models.portals_category_list import PortalsCategoryList +from openapi_client_udm.models.portals_category_list_embedded import PortalsCategoryListEmbedded +from openapi_client_udm.models.portals_category_request import PortalsCategoryRequest +from openapi_client_udm.models.portals_category_request_patch import PortalsCategoryRequestPatch +from openapi_client_udm.models.portals_category_response_mixin import PortalsCategoryResponseMixin +from openapi_client_udm.models.portals_entry import PortalsEntry +from openapi_client_udm.models.portals_entry_list import PortalsEntryList +from openapi_client_udm.models.portals_entry_list_embedded import PortalsEntryListEmbedded +from openapi_client_udm.models.portals_entry_request import PortalsEntryRequest +from openapi_client_udm.models.portals_entry_request_patch import PortalsEntryRequestPatch +from openapi_client_udm.models.portals_entry_response_mixin import PortalsEntryResponseMixin +from openapi_client_udm.models.portals_folder import PortalsFolder +from openapi_client_udm.models.portals_folder_list import PortalsFolderList +from openapi_client_udm.models.portals_folder_list_embedded import PortalsFolderListEmbedded +from openapi_client_udm.models.portals_folder_request import PortalsFolderRequest +from openapi_client_udm.models.portals_folder_request_patch import PortalsFolderRequestPatch +from openapi_client_udm.models.portals_folder_response_mixin import PortalsFolderResponseMixin +from openapi_client_udm.models.portals_portal import PortalsPortal +from openapi_client_udm.models.portals_portal_list import PortalsPortalList +from openapi_client_udm.models.portals_portal_list_embedded import PortalsPortalListEmbedded +from openapi_client_udm.models.portals_portal_request import PortalsPortalRequest +from openapi_client_udm.models.portals_portal_request_patch import PortalsPortalRequestPatch +from openapi_client_udm.models.portals_portal_response_mixin import PortalsPortalResponseMixin +from openapi_client_udm.models.saml_idpconfig import SamlIdpconfig +from openapi_client_udm.models.saml_idpconfig_list import SamlIdpconfigList +from openapi_client_udm.models.saml_idpconfig_list_embedded import SamlIdpconfigListEmbedded +from openapi_client_udm.models.saml_idpconfig_request import SamlIdpconfigRequest +from openapi_client_udm.models.saml_idpconfig_request_patch import SamlIdpconfigRequestPatch +from openapi_client_udm.models.saml_idpconfig_response_mixin import SamlIdpconfigResponseMixin +from openapi_client_udm.models.saml_serviceprovider import SamlServiceprovider +from openapi_client_udm.models.saml_serviceprovider_list import SamlServiceproviderList +from openapi_client_udm.models.saml_serviceprovider_list_embedded import SamlServiceproviderListEmbedded +from openapi_client_udm.models.saml_serviceprovider_request import SamlServiceproviderRequest +from openapi_client_udm.models.saml_serviceprovider_request_patch import SamlServiceproviderRequestPatch +from openapi_client_udm.models.saml_serviceprovider_response_mixin import SamlServiceproviderResponseMixin +from openapi_client_udm.models.settings_cn import SettingsCn +from openapi_client_udm.models.settings_cn_list import SettingsCnList +from openapi_client_udm.models.settings_cn_list_embedded import SettingsCnListEmbedded +from openapi_client_udm.models.settings_cn_policies import SettingsCnPolicies +from openapi_client_udm.models.settings_cn_request import SettingsCnRequest +from openapi_client_udm.models.settings_cn_request_patch import SettingsCnRequestPatch +from openapi_client_udm.models.settings_cn_response_mixin import SettingsCnResponseMixin +from openapi_client_udm.models.settings_data import SettingsData +from openapi_client_udm.models.settings_data_list import SettingsDataList +from openapi_client_udm.models.settings_data_list_embedded import SettingsDataListEmbedded +from openapi_client_udm.models.settings_data_request import SettingsDataRequest +from openapi_client_udm.models.settings_data_request_patch import SettingsDataRequestPatch +from openapi_client_udm.models.settings_data_response_mixin import SettingsDataResponseMixin +from openapi_client_udm.models.settings_default import SettingsDefault +from openapi_client_udm.models.settings_default_list import SettingsDefaultList +from openapi_client_udm.models.settings_default_list_embedded import SettingsDefaultListEmbedded +from openapi_client_udm.models.settings_default_request import SettingsDefaultRequest +from openapi_client_udm.models.settings_default_request_patch import SettingsDefaultRequestPatch +from openapi_client_udm.models.settings_default_response_mixin import SettingsDefaultResponseMixin +from openapi_client_udm.models.settings_directory import SettingsDirectory +from openapi_client_udm.models.settings_directory_list import SettingsDirectoryList +from openapi_client_udm.models.settings_directory_list_embedded import SettingsDirectoryListEmbedded +from openapi_client_udm.models.settings_directory_request import SettingsDirectoryRequest +from openapi_client_udm.models.settings_directory_request_patch import SettingsDirectoryRequestPatch +from openapi_client_udm.models.settings_directory_response_mixin import SettingsDirectoryResponseMixin +from openapi_client_udm.models.settings_extended_attribute import SettingsExtendedAttribute +from openapi_client_udm.models.settings_extended_attribute_list import SettingsExtendedAttributeList +from openapi_client_udm.models.settings_extended_attribute_list_embedded import SettingsExtendedAttributeListEmbedded +from openapi_client_udm.models.settings_extended_attribute_request import SettingsExtendedAttributeRequest +from openapi_client_udm.models.settings_extended_attribute_request_patch import SettingsExtendedAttributeRequestPatch +from openapi_client_udm.models.settings_extended_attribute_response_mixin import SettingsExtendedAttributeResponseMixin +from openapi_client_udm.models.settings_extended_options import SettingsExtendedOptions +from openapi_client_udm.models.settings_extended_options_list import SettingsExtendedOptionsList +from openapi_client_udm.models.settings_extended_options_list_embedded import SettingsExtendedOptionsListEmbedded +from openapi_client_udm.models.settings_extended_options_request import SettingsExtendedOptionsRequest +from openapi_client_udm.models.settings_extended_options_request_patch import SettingsExtendedOptionsRequestPatch +from openapi_client_udm.models.settings_extended_options_response_mixin import SettingsExtendedOptionsResponseMixin +from openapi_client_udm.models.settings_ldapacl import SettingsLdapacl +from openapi_client_udm.models.settings_ldapacl_list import SettingsLdapaclList +from openapi_client_udm.models.settings_ldapacl_list_embedded import SettingsLdapaclListEmbedded +from openapi_client_udm.models.settings_ldapacl_request import SettingsLdapaclRequest +from openapi_client_udm.models.settings_ldapacl_request_patch import SettingsLdapaclRequestPatch +from openapi_client_udm.models.settings_ldapacl_response_mixin import SettingsLdapaclResponseMixin +from openapi_client_udm.models.settings_ldapschema import SettingsLdapschema +from openapi_client_udm.models.settings_ldapschema_list import SettingsLdapschemaList +from openapi_client_udm.models.settings_ldapschema_list_embedded import SettingsLdapschemaListEmbedded +from openapi_client_udm.models.settings_ldapschema_request import SettingsLdapschemaRequest +from openapi_client_udm.models.settings_ldapschema_request_patch import SettingsLdapschemaRequestPatch +from openapi_client_udm.models.settings_ldapschema_response_mixin import SettingsLdapschemaResponseMixin +from openapi_client_udm.models.settings_license import SettingsLicense +from openapi_client_udm.models.settings_license_list import SettingsLicenseList +from openapi_client_udm.models.settings_license_list_embedded import SettingsLicenseListEmbedded +from openapi_client_udm.models.settings_license_options import SettingsLicenseOptions +from openapi_client_udm.models.settings_license_request import SettingsLicenseRequest +from openapi_client_udm.models.settings_license_request_patch import SettingsLicenseRequestPatch +from openapi_client_udm.models.settings_license_response_mixin import SettingsLicenseResponseMixin +from openapi_client_udm.models.settings_lock import SettingsLock +from openapi_client_udm.models.settings_lock_list import SettingsLockList +from openapi_client_udm.models.settings_lock_list_embedded import SettingsLockListEmbedded +from openapi_client_udm.models.settings_lock_request import SettingsLockRequest +from openapi_client_udm.models.settings_lock_request_patch import SettingsLockRequestPatch +from openapi_client_udm.models.settings_lock_response_mixin import SettingsLockResponseMixin +from openapi_client_udm.models.settings_msprintconnectionpolicy import SettingsMsprintconnectionpolicy +from openapi_client_udm.models.settings_msprintconnectionpolicy_list import SettingsMsprintconnectionpolicyList +from openapi_client_udm.models.settings_msprintconnectionpolicy_list_embedded import SettingsMsprintconnectionpolicyListEmbedded +from openapi_client_udm.models.settings_msprintconnectionpolicy_policies import SettingsMsprintconnectionpolicyPolicies +from openapi_client_udm.models.settings_msprintconnectionpolicy_request import SettingsMsprintconnectionpolicyRequest +from openapi_client_udm.models.settings_msprintconnectionpolicy_request_patch import SettingsMsprintconnectionpolicyRequestPatch +from openapi_client_udm.models.settings_msprintconnectionpolicy_response_mixin import SettingsMsprintconnectionpolicyResponseMixin +from openapi_client_udm.models.settings_mswmifilter import SettingsMswmifilter +from openapi_client_udm.models.settings_mswmifilter_list import SettingsMswmifilterList +from openapi_client_udm.models.settings_mswmifilter_list_embedded import SettingsMswmifilterListEmbedded +from openapi_client_udm.models.settings_mswmifilter_policies import SettingsMswmifilterPolicies +from openapi_client_udm.models.settings_mswmifilter_request import SettingsMswmifilterRequest +from openapi_client_udm.models.settings_mswmifilter_request_patch import SettingsMswmifilterRequestPatch +from openapi_client_udm.models.settings_mswmifilter_response_mixin import SettingsMswmifilterResponseMixin +from openapi_client_udm.models.settings_packages import SettingsPackages +from openapi_client_udm.models.settings_packages_list import SettingsPackagesList +from openapi_client_udm.models.settings_packages_list_embedded import SettingsPackagesListEmbedded +from openapi_client_udm.models.settings_packages_request import SettingsPackagesRequest +from openapi_client_udm.models.settings_packages_request_patch import SettingsPackagesRequestPatch +from openapi_client_udm.models.settings_packages_response_mixin import SettingsPackagesResponseMixin +from openapi_client_udm.models.settings_portal import SettingsPortal +from openapi_client_udm.models.settings_portal_all import SettingsPortalAll +from openapi_client_udm.models.settings_portal_all_list import SettingsPortalAllList +from openapi_client_udm.models.settings_portal_all_list_embedded import SettingsPortalAllListEmbedded +from openapi_client_udm.models.settings_portal_all_request import SettingsPortalAllRequest +from openapi_client_udm.models.settings_portal_all_request_patch import SettingsPortalAllRequestPatch +from openapi_client_udm.models.settings_portal_all_response_mixin import SettingsPortalAllResponseMixin +from openapi_client_udm.models.settings_portal_category import SettingsPortalCategory +from openapi_client_udm.models.settings_portal_category_list import SettingsPortalCategoryList +from openapi_client_udm.models.settings_portal_category_list_embedded import SettingsPortalCategoryListEmbedded +from openapi_client_udm.models.settings_portal_category_request import SettingsPortalCategoryRequest +from openapi_client_udm.models.settings_portal_category_request_patch import SettingsPortalCategoryRequestPatch +from openapi_client_udm.models.settings_portal_category_response_mixin import SettingsPortalCategoryResponseMixin +from openapi_client_udm.models.settings_portal_entry import SettingsPortalEntry +from openapi_client_udm.models.settings_portal_entry_list import SettingsPortalEntryList +from openapi_client_udm.models.settings_portal_entry_list_embedded import SettingsPortalEntryListEmbedded +from openapi_client_udm.models.settings_portal_entry_request import SettingsPortalEntryRequest +from openapi_client_udm.models.settings_portal_entry_request_patch import SettingsPortalEntryRequestPatch +from openapi_client_udm.models.settings_portal_entry_response_mixin import SettingsPortalEntryResponseMixin +from openapi_client_udm.models.settings_portal_list import SettingsPortalList +from openapi_client_udm.models.settings_portal_list_embedded import SettingsPortalListEmbedded +from openapi_client_udm.models.settings_portal_request import SettingsPortalRequest +from openapi_client_udm.models.settings_portal_request_patch import SettingsPortalRequestPatch +from openapi_client_udm.models.settings_portal_response_mixin import SettingsPortalResponseMixin +from openapi_client_udm.models.settings_printermodel import SettingsPrintermodel +from openapi_client_udm.models.settings_printermodel_list import SettingsPrintermodelList +from openapi_client_udm.models.settings_printermodel_list_embedded import SettingsPrintermodelListEmbedded +from openapi_client_udm.models.settings_printermodel_request import SettingsPrintermodelRequest +from openapi_client_udm.models.settings_printermodel_request_patch import SettingsPrintermodelRequestPatch +from openapi_client_udm.models.settings_printermodel_response_mixin import SettingsPrintermodelResponseMixin +from openapi_client_udm.models.settings_printeruri import SettingsPrinteruri +from openapi_client_udm.models.settings_printeruri_list import SettingsPrinteruriList +from openapi_client_udm.models.settings_printeruri_list_embedded import SettingsPrinteruriListEmbedded +from openapi_client_udm.models.settings_printeruri_request import SettingsPrinteruriRequest +from openapi_client_udm.models.settings_printeruri_request_patch import SettingsPrinteruriRequestPatch +from openapi_client_udm.models.settings_printeruri_response_mixin import SettingsPrinteruriResponseMixin +from openapi_client_udm.models.settings_prohibited_username import SettingsProhibitedUsername +from openapi_client_udm.models.settings_prohibited_username_list import SettingsProhibitedUsernameList +from openapi_client_udm.models.settings_prohibited_username_list_embedded import SettingsProhibitedUsernameListEmbedded +from openapi_client_udm.models.settings_prohibited_username_request import SettingsProhibitedUsernameRequest +from openapi_client_udm.models.settings_prohibited_username_request_patch import SettingsProhibitedUsernameRequestPatch +from openapi_client_udm.models.settings_prohibited_username_response_mixin import SettingsProhibitedUsernameResponseMixin +from openapi_client_udm.models.settings_sambaconfig import SettingsSambaconfig +from openapi_client_udm.models.settings_sambaconfig_list import SettingsSambaconfigList +from openapi_client_udm.models.settings_sambaconfig_list_embedded import SettingsSambaconfigListEmbedded +from openapi_client_udm.models.settings_sambaconfig_request import SettingsSambaconfigRequest +from openapi_client_udm.models.settings_sambaconfig_request_patch import SettingsSambaconfigRequestPatch +from openapi_client_udm.models.settings_sambaconfig_response_mixin import SettingsSambaconfigResponseMixin +from openapi_client_udm.models.settings_sambadomain import SettingsSambadomain +from openapi_client_udm.models.settings_sambadomain_list import SettingsSambadomainList +from openapi_client_udm.models.settings_sambadomain_list_embedded import SettingsSambadomainListEmbedded +from openapi_client_udm.models.settings_sambadomain_request import SettingsSambadomainRequest +from openapi_client_udm.models.settings_sambadomain_request_patch import SettingsSambadomainRequestPatch +from openapi_client_udm.models.settings_sambadomain_response_mixin import SettingsSambadomainResponseMixin +from openapi_client_udm.models.settings_service import SettingsService +from openapi_client_udm.models.settings_service_list import SettingsServiceList +from openapi_client_udm.models.settings_service_list_embedded import SettingsServiceListEmbedded +from openapi_client_udm.models.settings_service_request import SettingsServiceRequest +from openapi_client_udm.models.settings_service_request_patch import SettingsServiceRequestPatch +from openapi_client_udm.models.settings_service_response_mixin import SettingsServiceResponseMixin +from openapi_client_udm.models.settings_settings import SettingsSettings +from openapi_client_udm.models.settings_settings_list import SettingsSettingsList +from openapi_client_udm.models.settings_settings_list_embedded import SettingsSettingsListEmbedded +from openapi_client_udm.models.settings_settings_request import SettingsSettingsRequest +from openapi_client_udm.models.settings_settings_request_patch import SettingsSettingsRequestPatch +from openapi_client_udm.models.settings_settings_response_mixin import SettingsSettingsResponseMixin +from openapi_client_udm.models.settings_syntax import SettingsSyntax +from openapi_client_udm.models.settings_syntax_list import SettingsSyntaxList +from openapi_client_udm.models.settings_syntax_list_embedded import SettingsSyntaxListEmbedded +from openapi_client_udm.models.settings_syntax_request import SettingsSyntaxRequest +from openapi_client_udm.models.settings_syntax_request_patch import SettingsSyntaxRequestPatch +from openapi_client_udm.models.settings_syntax_response_mixin import SettingsSyntaxResponseMixin +from openapi_client_udm.models.settings_udm_hook import SettingsUdmHook +from openapi_client_udm.models.settings_udm_hook_list import SettingsUdmHookList +from openapi_client_udm.models.settings_udm_hook_list_embedded import SettingsUdmHookListEmbedded +from openapi_client_udm.models.settings_udm_hook_request import SettingsUdmHookRequest +from openapi_client_udm.models.settings_udm_hook_request_patch import SettingsUdmHookRequestPatch +from openapi_client_udm.models.settings_udm_hook_response_mixin import SettingsUdmHookResponseMixin +from openapi_client_udm.models.settings_udm_module import SettingsUdmModule +from openapi_client_udm.models.settings_udm_module_list import SettingsUdmModuleList +from openapi_client_udm.models.settings_udm_module_list_embedded import SettingsUdmModuleListEmbedded +from openapi_client_udm.models.settings_udm_module_request import SettingsUdmModuleRequest +from openapi_client_udm.models.settings_udm_module_request_patch import SettingsUdmModuleRequestPatch +from openapi_client_udm.models.settings_udm_module_response_mixin import SettingsUdmModuleResponseMixin +from openapi_client_udm.models.settings_udm_syntax import SettingsUdmSyntax +from openapi_client_udm.models.settings_udm_syntax_list import SettingsUdmSyntaxList +from openapi_client_udm.models.settings_udm_syntax_list_embedded import SettingsUdmSyntaxListEmbedded +from openapi_client_udm.models.settings_udm_syntax_request import SettingsUdmSyntaxRequest +from openapi_client_udm.models.settings_udm_syntax_request_patch import SettingsUdmSyntaxRequestPatch +from openapi_client_udm.models.settings_udm_syntax_response_mixin import SettingsUdmSyntaxResponseMixin +from openapi_client_udm.models.settings_umc_operationset import SettingsUmcOperationset +from openapi_client_udm.models.settings_umc_operationset_list import SettingsUmcOperationsetList +from openapi_client_udm.models.settings_umc_operationset_list_embedded import SettingsUmcOperationsetListEmbedded +from openapi_client_udm.models.settings_umc_operationset_request import SettingsUmcOperationsetRequest +from openapi_client_udm.models.settings_umc_operationset_request_patch import SettingsUmcOperationsetRequestPatch +from openapi_client_udm.models.settings_umc_operationset_response_mixin import SettingsUmcOperationsetResponseMixin +from openapi_client_udm.models.settings_usertemplate import SettingsUsertemplate +from openapi_client_udm.models.settings_usertemplate_list import SettingsUsertemplateList +from openapi_client_udm.models.settings_usertemplate_list_embedded import SettingsUsertemplateListEmbedded +from openapi_client_udm.models.settings_usertemplate_request import SettingsUsertemplateRequest +from openapi_client_udm.models.settings_usertemplate_request_patch import SettingsUsertemplateRequestPatch +from openapi_client_udm.models.settings_usertemplate_response_mixin import SettingsUsertemplateResponseMixin +from openapi_client_udm.models.shares_print import SharesPrint +from openapi_client_udm.models.shares_print_list import SharesPrintList +from openapi_client_udm.models.shares_print_list_embedded import SharesPrintListEmbedded +from openapi_client_udm.models.shares_print_request import SharesPrintRequest +from openapi_client_udm.models.shares_print_request_patch import SharesPrintRequestPatch +from openapi_client_udm.models.shares_print_response_mixin import SharesPrintResponseMixin +from openapi_client_udm.models.shares_printer import SharesPrinter +from openapi_client_udm.models.shares_printer_list import SharesPrinterList +from openapi_client_udm.models.shares_printer_list_embedded import SharesPrinterListEmbedded +from openapi_client_udm.models.shares_printer_request import SharesPrinterRequest +from openapi_client_udm.models.shares_printer_request_patch import SharesPrinterRequestPatch +from openapi_client_udm.models.shares_printer_response_mixin import SharesPrinterResponseMixin +from openapi_client_udm.models.shares_printergroup import SharesPrintergroup +from openapi_client_udm.models.shares_printergroup_list import SharesPrintergroupList +from openapi_client_udm.models.shares_printergroup_list_embedded import SharesPrintergroupListEmbedded +from openapi_client_udm.models.shares_printergroup_request import SharesPrintergroupRequest +from openapi_client_udm.models.shares_printergroup_request_patch import SharesPrintergroupRequestPatch +from openapi_client_udm.models.shares_printergroup_response_mixin import SharesPrintergroupResponseMixin +from openapi_client_udm.models.shares_share import SharesShare +from openapi_client_udm.models.shares_share_list import SharesShareList +from openapi_client_udm.models.shares_share_list_embedded import SharesShareListEmbedded +from openapi_client_udm.models.shares_share_options import SharesShareOptions +from openapi_client_udm.models.shares_share_policies import SharesSharePolicies +from openapi_client_udm.models.shares_share_request import SharesShareRequest +from openapi_client_udm.models.shares_share_request_patch import SharesShareRequestPatch +from openapi_client_udm.models.shares_share_response_mixin import SharesShareResponseMixin +from openapi_client_udm.models.users_contact import UsersContact +from openapi_client_udm.models.users_contact_list import UsersContactList +from openapi_client_udm.models.users_contact_list_embedded import UsersContactListEmbedded +from openapi_client_udm.models.users_contact_request import UsersContactRequest +from openapi_client_udm.models.users_contact_request_patch import UsersContactRequestPatch +from openapi_client_udm.models.users_contact_response_mixin import UsersContactResponseMixin +from openapi_client_udm.models.users_ldap import UsersLdap +from openapi_client_udm.models.users_ldap_list import UsersLdapList +from openapi_client_udm.models.users_ldap_list_embedded import UsersLdapListEmbedded +from openapi_client_udm.models.users_ldap_options import UsersLdapOptions +from openapi_client_udm.models.users_ldap_policies import UsersLdapPolicies +from openapi_client_udm.models.users_ldap_request import UsersLdapRequest +from openapi_client_udm.models.users_ldap_request_patch import UsersLdapRequestPatch +from openapi_client_udm.models.users_ldap_response_mixin import UsersLdapResponseMixin +from openapi_client_udm.models.users_passwd import UsersPasswd +from openapi_client_udm.models.users_passwd_list import UsersPasswdList +from openapi_client_udm.models.users_passwd_list_embedded import UsersPasswdListEmbedded +from openapi_client_udm.models.users_passwd_request import UsersPasswdRequest +from openapi_client_udm.models.users_passwd_request_patch import UsersPasswdRequestPatch +from openapi_client_udm.models.users_passwd_response_mixin import UsersPasswdResponseMixin +from openapi_client_udm.models.users_self import UsersSelf +from openapi_client_udm.models.users_self_list import UsersSelfList +from openapi_client_udm.models.users_self_list_embedded import UsersSelfListEmbedded +from openapi_client_udm.models.users_self_options import UsersSelfOptions +from openapi_client_udm.models.users_self_request import UsersSelfRequest +from openapi_client_udm.models.users_self_request_patch import UsersSelfRequestPatch +from openapi_client_udm.models.users_self_response_mixin import UsersSelfResponseMixin +from openapi_client_udm.models.users_user import UsersUser +from openapi_client_udm.models.users_user_list import UsersUserList +from openapi_client_udm.models.users_user_list_embedded import UsersUserListEmbedded +from openapi_client_udm.models.users_user_options import UsersUserOptions +from openapi_client_udm.models.users_user_policies import UsersUserPolicies +from openapi_client_udm.models.users_user_request import UsersUserRequest +from openapi_client_udm.models.users_user_request_patch import UsersUserRequestPatch +from openapi_client_udm.models.users_user_response_mixin import UsersUserResponseMixin +from openapi_client_udm.models.uvmm_cloudconnection import UvmmCloudconnection +from openapi_client_udm.models.uvmm_cloudconnection_list import UvmmCloudconnectionList +from openapi_client_udm.models.uvmm_cloudconnection_list_embedded import UvmmCloudconnectionListEmbedded +from openapi_client_udm.models.uvmm_cloudconnection_request import UvmmCloudconnectionRequest +from openapi_client_udm.models.uvmm_cloudconnection_request_patch import UvmmCloudconnectionRequestPatch +from openapi_client_udm.models.uvmm_cloudconnection_response_mixin import UvmmCloudconnectionResponseMixin +from openapi_client_udm.models.uvmm_cloudtype import UvmmCloudtype +from openapi_client_udm.models.uvmm_cloudtype_list import UvmmCloudtypeList +from openapi_client_udm.models.uvmm_cloudtype_list_embedded import UvmmCloudtypeListEmbedded +from openapi_client_udm.models.uvmm_cloudtype_request import UvmmCloudtypeRequest +from openapi_client_udm.models.uvmm_cloudtype_request_patch import UvmmCloudtypeRequestPatch +from openapi_client_udm.models.uvmm_cloudtype_response_mixin import UvmmCloudtypeResponseMixin +from openapi_client_udm.models.uvmm_info import UvmmInfo +from openapi_client_udm.models.uvmm_info_list import UvmmInfoList +from openapi_client_udm.models.uvmm_info_list_embedded import UvmmInfoListEmbedded +from openapi_client_udm.models.uvmm_info_request import UvmmInfoRequest +from openapi_client_udm.models.uvmm_info_request_patch import UvmmInfoRequestPatch +from openapi_client_udm.models.uvmm_info_response_mixin import UvmmInfoResponseMixin +from openapi_client_udm.models.uvmm_profile import UvmmProfile +from openapi_client_udm.models.uvmm_profile_list import UvmmProfileList +from openapi_client_udm.models.uvmm_profile_list_embedded import UvmmProfileListEmbedded +from openapi_client_udm.models.uvmm_profile_request import UvmmProfileRequest +from openapi_client_udm.models.uvmm_profile_request_patch import UvmmProfileRequestPatch +from openapi_client_udm.models.uvmm_profile_response_mixin import UvmmProfileResponseMixin diff --git a/openapi_client_udm/models/appcenter_app.py b/openapi_client_udm/models/appcenter_app.py new file mode 100644 index 0000000..031b497 --- /dev/null +++ b/openapi_client_udm/models/appcenter_app.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class AppcenterApp(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'AppcenterAppPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """AppcenterApp - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this AppcenterApp. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this AppcenterApp. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this AppcenterApp. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this AppcenterApp. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this AppcenterApp. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this AppcenterApp. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this AppcenterApp. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this AppcenterApp. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this AppcenterApp. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this AppcenterApp. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this AppcenterApp. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this AppcenterApp. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this AppcenterApp. # noqa: E501 + + + :return: The policies of this AppcenterApp. # noqa: E501 + :rtype: AppcenterAppPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this AppcenterApp. + + + :param policies: The policies of this AppcenterApp. # noqa: E501 + :type policies: AppcenterAppPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this AppcenterApp. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this AppcenterApp. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this AppcenterApp. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this AppcenterApp. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this AppcenterApp. # noqa: E501 + + + :return: The links of this AppcenterApp. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this AppcenterApp. + + + :param links: The links of this AppcenterApp. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this AppcenterApp. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this AppcenterApp. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this AppcenterApp. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this AppcenterApp. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this AppcenterApp. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this AppcenterApp. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this AppcenterApp. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this AppcenterApp. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this AppcenterApp. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this AppcenterApp. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this AppcenterApp. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this AppcenterApp. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this AppcenterApp. # noqa: E501 + + + :return: The uri of this AppcenterApp. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this AppcenterApp. + + + :param uri: The uri of this AppcenterApp. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppcenterApp): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppcenterApp): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/appcenter_app_list.py b/openapi_client_udm/models/appcenter_app_list.py new file mode 100644 index 0000000..31deb8c --- /dev/null +++ b/openapi_client_udm/models/appcenter_app_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class AppcenterAppList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'AppcenterAppListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """AppcenterAppList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this AppcenterAppList. # noqa: E501 + + + :return: The embedded of this AppcenterAppList. # noqa: E501 + :rtype: AppcenterAppListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this AppcenterAppList. + + + :param embedded: The embedded of this AppcenterAppList. # noqa: E501 + :type embedded: AppcenterAppListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppcenterAppList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppcenterAppList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/appcenter_app_list_embedded.py b/openapi_client_udm/models/appcenter_app_list_embedded.py new file mode 100644 index 0000000..d971b02 --- /dev/null +++ b/openapi_client_udm/models/appcenter_app_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class AppcenterAppListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[AppcenterApp]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """AppcenterAppListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this AppcenterAppListEmbedded. # noqa: E501 + + + :return: The udmobject of this AppcenterAppListEmbedded. # noqa: E501 + :rtype: list[AppcenterApp] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this AppcenterAppListEmbedded. + + + :param udmobject: The udmobject of this AppcenterAppListEmbedded. # noqa: E501 + :type udmobject: list[AppcenterApp] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppcenterAppListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppcenterAppListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/appcenter_app_policies.py b/openapi_client_udm/models/appcenter_app_policies.py new file mode 100644 index 0000000..66307c0 --- /dev/null +++ b/openapi_client_udm/models/appcenter_app_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class AppcenterAppPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """AppcenterAppPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this AppcenterAppPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this AppcenterAppPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this AppcenterAppPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this AppcenterAppPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this AppcenterAppPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this AppcenterAppPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this AppcenterAppPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this AppcenterAppPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this AppcenterAppPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this AppcenterAppPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this AppcenterAppPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this AppcenterAppPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this AppcenterAppPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this AppcenterAppPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this AppcenterAppPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this AppcenterAppPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this AppcenterAppPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this AppcenterAppPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this AppcenterAppPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this AppcenterAppPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this AppcenterAppPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this AppcenterAppPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this AppcenterAppPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this AppcenterAppPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this AppcenterAppPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this AppcenterAppPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this AppcenterAppPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this AppcenterAppPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this AppcenterAppPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this AppcenterAppPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this AppcenterAppPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this AppcenterAppPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this AppcenterAppPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this AppcenterAppPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this AppcenterAppPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this AppcenterAppPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this AppcenterAppPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this AppcenterAppPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this AppcenterAppPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this AppcenterAppPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this AppcenterAppPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this AppcenterAppPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this AppcenterAppPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this AppcenterAppPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this AppcenterAppPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this AppcenterAppPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this AppcenterAppPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this AppcenterAppPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this AppcenterAppPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this AppcenterAppPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this AppcenterAppPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this AppcenterAppPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this AppcenterAppPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this AppcenterAppPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this AppcenterAppPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this AppcenterAppPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this AppcenterAppPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this AppcenterAppPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this AppcenterAppPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this AppcenterAppPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this AppcenterAppPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this AppcenterAppPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this AppcenterAppPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this AppcenterAppPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this AppcenterAppPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this AppcenterAppPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this AppcenterAppPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this AppcenterAppPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this AppcenterAppPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this AppcenterAppPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this AppcenterAppPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this AppcenterAppPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this AppcenterAppPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppcenterAppPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppcenterAppPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/appcenter_app_request.py b/openapi_client_udm/models/appcenter_app_request.py new file mode 100644 index 0000000..388114a --- /dev/null +++ b/openapi_client_udm/models/appcenter_app_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class AppcenterAppRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'AppcenterAppPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """AppcenterAppRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this AppcenterAppRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this AppcenterAppRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this AppcenterAppRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this AppcenterAppRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this AppcenterAppRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this AppcenterAppRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this AppcenterAppRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this AppcenterAppRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this AppcenterAppRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this AppcenterAppRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this AppcenterAppRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this AppcenterAppRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this AppcenterAppRequest. # noqa: E501 + + + :return: The policies of this AppcenterAppRequest. # noqa: E501 + :rtype: AppcenterAppPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this AppcenterAppRequest. + + + :param policies: The policies of this AppcenterAppRequest. # noqa: E501 + :type policies: AppcenterAppPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this AppcenterAppRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this AppcenterAppRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this AppcenterAppRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this AppcenterAppRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppcenterAppRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppcenterAppRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/appcenter_app_request_all_of.py b/openapi_client_udm/models/appcenter_app_request_all_of.py new file mode 100644 index 0000000..b97e841 --- /dev/null +++ b/openapi_client_udm/models/appcenter_app_request_all_of.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class AppcenterAppRequestAllOf(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'position': 'str' + } + + attribute_map = { + 'position': 'position' + } + + def __init__(self, position=None, local_vars_configuration=None): # noqa: E501 + """AppcenterAppRequestAllOf - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._position = None + self.discriminator = None + + if position is not None: + self.position = position + + @property + def position(self): + """Gets the position of this AppcenterAppRequestAllOf. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this AppcenterAppRequestAllOf. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this AppcenterAppRequestAllOf. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this AppcenterAppRequestAllOf. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppcenterAppRequestAllOf): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppcenterAppRequestAllOf): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/appcenter_app_request_patch.py b/openapi_client_udm/models/appcenter_app_request_patch.py new file mode 100644 index 0000000..4628edc --- /dev/null +++ b/openapi_client_udm/models/appcenter_app_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class AppcenterAppRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'AppcenterAppPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """AppcenterAppRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this AppcenterAppRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this AppcenterAppRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this AppcenterAppRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this AppcenterAppRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this AppcenterAppRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this AppcenterAppRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this AppcenterAppRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this AppcenterAppRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this AppcenterAppRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this AppcenterAppRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this AppcenterAppRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this AppcenterAppRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this AppcenterAppRequestPatch. # noqa: E501 + + + :return: The policies of this AppcenterAppRequestPatch. # noqa: E501 + :rtype: AppcenterAppPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this AppcenterAppRequestPatch. + + + :param policies: The policies of this AppcenterAppRequestPatch. # noqa: E501 + :type policies: AppcenterAppPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppcenterAppRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppcenterAppRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/appcenter_app_response_mixin.py b/openapi_client_udm/models/appcenter_app_response_mixin.py new file mode 100644 index 0000000..5ade811 --- /dev/null +++ b/openapi_client_udm/models/appcenter_app_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class AppcenterAppResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """AppcenterAppResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this AppcenterAppResponseMixin. # noqa: E501 + + + :return: The links of this AppcenterAppResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this AppcenterAppResponseMixin. + + + :param links: The links of this AppcenterAppResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this AppcenterAppResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this AppcenterAppResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this AppcenterAppResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this AppcenterAppResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this AppcenterAppResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this AppcenterAppResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this AppcenterAppResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this AppcenterAppResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this AppcenterAppResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this AppcenterAppResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this AppcenterAppResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this AppcenterAppResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this AppcenterAppResponseMixin. # noqa: E501 + + + :return: The uri of this AppcenterAppResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this AppcenterAppResponseMixin. + + + :param uri: The uri of this AppcenterAppResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AppcenterAppResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AppcenterAppResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_computer.py b/openapi_client_udm/models/computers_computer.py new file mode 100644 index 0000000..43d094a --- /dev/null +++ b/openapi_client_udm/models/computers_computer.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersComputer(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersComputer - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersComputer. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersComputer. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersComputer. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersComputer. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersComputer. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersComputer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersComputer. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersComputer. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersComputer. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ComputersComputer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersComputer. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ComputersComputer. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersComputer. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersComputer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersComputer. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersComputer. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersComputer. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersComputer. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersComputer. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersComputer. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersComputer. # noqa: E501 + + + :return: The links of this ComputersComputer. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersComputer. + + + :param links: The links of this ComputersComputer. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersComputer. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersComputer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersComputer. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersComputer. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersComputer. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersComputer. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersComputer. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersComputer. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersComputer. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersComputer. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersComputer. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersComputer. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersComputer. # noqa: E501 + + + :return: The uri of this ComputersComputer. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersComputer. + + + :param uri: The uri of this ComputersComputer. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersComputer): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersComputer): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_computer_list.py b/openapi_client_udm/models/computers_computer_list.py new file mode 100644 index 0000000..3edfaf3 --- /dev/null +++ b/openapi_client_udm/models/computers_computer_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersComputerList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersComputerListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersComputerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersComputerList. # noqa: E501 + + + :return: The embedded of this ComputersComputerList. # noqa: E501 + :rtype: ComputersComputerListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersComputerList. + + + :param embedded: The embedded of this ComputersComputerList. # noqa: E501 + :type embedded: ComputersComputerListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersComputerList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersComputerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_computer_list_embedded.py b/openapi_client_udm/models/computers_computer_list_embedded.py new file mode 100644 index 0000000..fb7f186 --- /dev/null +++ b/openapi_client_udm/models/computers_computer_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersComputerListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersComputer]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersComputerListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersComputerListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersComputerListEmbedded. # noqa: E501 + :rtype: list[ComputersComputer] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersComputerListEmbedded. + + + :param udmobject: The udmobject of this ComputersComputerListEmbedded. # noqa: E501 + :type udmobject: list[ComputersComputer] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersComputerListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersComputerListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_computer_request.py b/openapi_client_udm/models/computers_computer_request.py new file mode 100644 index 0000000..d44af6a --- /dev/null +++ b/openapi_client_udm/models/computers_computer_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersComputerRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersComputerRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersComputerRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersComputerRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersComputerRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersComputerRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersComputerRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersComputerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersComputerRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersComputerRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersComputerRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ComputersComputerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersComputerRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ComputersComputerRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersComputerRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersComputerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersComputerRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersComputerRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersComputerRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersComputerRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersComputerRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersComputerRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersComputerRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersComputerRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_computer_request_patch.py b/openapi_client_udm/models/computers_computer_request_patch.py new file mode 100644 index 0000000..8788265 --- /dev/null +++ b/openapi_client_udm/models/computers_computer_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersComputerRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersComputerRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersComputerRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersComputerRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersComputerRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersComputerRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersComputerRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersComputerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersComputerRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersComputerRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersComputerRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ComputersComputerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersComputerRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ComputersComputerRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersComputerRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersComputerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersComputerRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersComputerRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersComputerRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersComputerRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_computer_response_mixin.py b/openapi_client_udm/models/computers_computer_response_mixin.py new file mode 100644 index 0000000..1c34959 --- /dev/null +++ b/openapi_client_udm/models/computers_computer_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersComputerResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersComputerResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersComputerResponseMixin. # noqa: E501 + + + :return: The links of this ComputersComputerResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersComputerResponseMixin. + + + :param links: The links of this ComputersComputerResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersComputerResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersComputerResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersComputerResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersComputerResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersComputerResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersComputerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersComputerResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersComputerResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersComputerResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersComputerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersComputerResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersComputerResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersComputerResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersComputerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersComputerResponseMixin. + + + :param uri: The uri of this ComputersComputerResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersComputerResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersComputerResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_backup.py b/openapi_client_udm/models/computers_domaincontroller_backup.py new file mode 100644 index 0000000..315157f --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_backup.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerBackup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerBackupOptions', + 'policies': 'ComputersDomaincontrollerBackupPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerBackup - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerBackup. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerBackup. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerBackup. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerBackup. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerBackup. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerBackup. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerBackup. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: ComputersDomaincontrollerBackupOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerBackup. + + + :param options: The options of this ComputersDomaincontrollerBackup. # noqa: E501 + :type options: ComputersDomaincontrollerBackupOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerBackup. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: ComputersDomaincontrollerBackupPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerBackup. + + + :param policies: The policies of this ComputersDomaincontrollerBackup. # noqa: E501 + :type policies: ComputersDomaincontrollerBackupPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersDomaincontrollerBackup. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersDomaincontrollerBackup. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersDomaincontrollerBackup. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersDomaincontrollerBackup. # noqa: E501 + + + :return: The links of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersDomaincontrollerBackup. + + + :param links: The links of this ComputersDomaincontrollerBackup. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerBackup. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerBackup. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersDomaincontrollerBackup. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersDomaincontrollerBackup. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersDomaincontrollerBackup. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersDomaincontrollerBackup. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersDomaincontrollerBackup. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersDomaincontrollerBackup. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersDomaincontrollerBackup. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersDomaincontrollerBackup. # noqa: E501 + + + :return: The uri of this ComputersDomaincontrollerBackup. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersDomaincontrollerBackup. + + + :param uri: The uri of this ComputersDomaincontrollerBackup. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerBackup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerBackup): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_backup_list.py b/openapi_client_udm/models/computers_domaincontroller_backup_list.py new file mode 100644 index 0000000..98ed1cd --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_backup_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerBackupList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersDomaincontrollerBackupListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerBackupList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerBackupList. # noqa: E501 + + + :return: The embedded of this ComputersDomaincontrollerBackupList. # noqa: E501 + :rtype: ComputersDomaincontrollerBackupListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerBackupList. + + + :param embedded: The embedded of this ComputersDomaincontrollerBackupList. # noqa: E501 + :type embedded: ComputersDomaincontrollerBackupListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerBackupList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerBackupList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_backup_list_embedded.py b/openapi_client_udm/models/computers_domaincontroller_backup_list_embedded.py new file mode 100644 index 0000000..9bca901 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_backup_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerBackupListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersDomaincontrollerBackup]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerBackupListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersDomaincontrollerBackupListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersDomaincontrollerBackupListEmbedded. # noqa: E501 + :rtype: list[ComputersDomaincontrollerBackup] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersDomaincontrollerBackupListEmbedded. + + + :param udmobject: The udmobject of this ComputersDomaincontrollerBackupListEmbedded. # noqa: E501 + :type udmobject: list[ComputersDomaincontrollerBackup] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerBackupListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerBackupListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_backup_options.py b/openapi_client_udm/models/computers_domaincontroller_backup_options.py new file mode 100644 index 0000000..cc9d9d2 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_backup_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerBackupOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerBackupOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersDomaincontrollerBackupOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersDomaincontrollerBackupOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersDomaincontrollerBackupOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersDomaincontrollerBackupOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersDomaincontrollerBackupOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersDomaincontrollerBackupOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersDomaincontrollerBackupOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerBackupOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerBackupOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_backup_policies.py b/openapi_client_udm/models/computers_domaincontroller_backup_policies.py new file mode 100644 index 0000000..0e6423a --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_backup_policies.py @@ -0,0 +1,411 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerBackupPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_printserver': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_release': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_printserver': 'policies/printserver', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_release': 'policies/release', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_printserver=None, policies_repositorysync=None, policies_nfsmounts=None, policies_umc=None, policies_maintenance=None, policies_release=None, policies_registry=None, policies_masterpackages=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerBackupPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_printserver = None + self._policies_repositorysync = None + self._policies_nfsmounts = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_release = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_release is not None: + self.policies_release = policies_release + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_printserver(self): + """Gets the policies_printserver of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this ComputersDomaincontrollerBackupPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this ComputersDomaincontrollerBackupPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this ComputersDomaincontrollerBackupPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_umc(self): + """Gets the policies_umc of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this ComputersDomaincontrollerBackupPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this ComputersDomaincontrollerBackupPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_release(self): + """Gets the policies_release of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this ComputersDomaincontrollerBackupPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_registry(self): + """Gets the policies_registry of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this ComputersDomaincontrollerBackupPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this ComputersDomaincontrollerBackupPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this ComputersDomaincontrollerBackupPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this ComputersDomaincontrollerBackupPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerBackupPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerBackupPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_backup_request.py b/openapi_client_udm/models/computers_domaincontroller_backup_request.py new file mode 100644 index 0000000..6cb322e --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_backup_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerBackupRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerBackupOptions', + 'policies': 'ComputersDomaincontrollerBackupPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerBackupRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerBackupRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerBackupRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :rtype: ComputersDomaincontrollerBackupOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerBackupRequest. + + + :param options: The options of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :type options: ComputersDomaincontrollerBackupOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :rtype: ComputersDomaincontrollerBackupPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerBackupRequest. + + + :param policies: The policies of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :type policies: ComputersDomaincontrollerBackupPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersDomaincontrollerBackupRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersDomaincontrollerBackupRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerBackupRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerBackupRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_backup_request_patch.py b/openapi_client_udm/models/computers_domaincontroller_backup_request_patch.py new file mode 100644 index 0000000..06d7f09 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_backup_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerBackupRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerBackupOptions', + 'policies': 'ComputersDomaincontrollerBackupPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerBackupRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerBackupRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerBackupRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + :rtype: ComputersDomaincontrollerBackupOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerBackupRequestPatch. + + + :param options: The options of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + :type options: ComputersDomaincontrollerBackupOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + :rtype: ComputersDomaincontrollerBackupPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerBackupRequestPatch. + + + :param policies: The policies of this ComputersDomaincontrollerBackupRequestPatch. # noqa: E501 + :type policies: ComputersDomaincontrollerBackupPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerBackupRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerBackupRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_backup_response_mixin.py b/openapi_client_udm/models/computers_domaincontroller_backup_response_mixin.py new file mode 100644 index 0000000..e3614ad --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_backup_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerBackupResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerBackupResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + + + :return: The links of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersDomaincontrollerBackupResponseMixin. + + + :param links: The links of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerBackupResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersDomaincontrollerBackupResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersDomaincontrollerBackupResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersDomaincontrollerBackupResponseMixin. + + + :param uri: The uri of this ComputersDomaincontrollerBackupResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerBackupResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerBackupResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_master.py b/openapi_client_udm/models/computers_domaincontroller_master.py new file mode 100644 index 0000000..85a05db --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_master.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerMaster(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerMasterOptions', + 'policies': 'ComputersDomaincontrollerMasterPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerMaster - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerMaster. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerMaster. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerMaster. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerMaster. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerMaster. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerMaster. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerMaster. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: ComputersDomaincontrollerMasterOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerMaster. + + + :param options: The options of this ComputersDomaincontrollerMaster. # noqa: E501 + :type options: ComputersDomaincontrollerMasterOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerMaster. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: ComputersDomaincontrollerMasterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerMaster. + + + :param policies: The policies of this ComputersDomaincontrollerMaster. # noqa: E501 + :type policies: ComputersDomaincontrollerMasterPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersDomaincontrollerMaster. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersDomaincontrollerMaster. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersDomaincontrollerMaster. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersDomaincontrollerMaster. # noqa: E501 + + + :return: The links of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersDomaincontrollerMaster. + + + :param links: The links of this ComputersDomaincontrollerMaster. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerMaster. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerMaster. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersDomaincontrollerMaster. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersDomaincontrollerMaster. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersDomaincontrollerMaster. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersDomaincontrollerMaster. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersDomaincontrollerMaster. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersDomaincontrollerMaster. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersDomaincontrollerMaster. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersDomaincontrollerMaster. # noqa: E501 + + + :return: The uri of this ComputersDomaincontrollerMaster. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersDomaincontrollerMaster. + + + :param uri: The uri of this ComputersDomaincontrollerMaster. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerMaster): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerMaster): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_master_list.py b/openapi_client_udm/models/computers_domaincontroller_master_list.py new file mode 100644 index 0000000..77df719 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_master_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerMasterList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersDomaincontrollerMasterListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerMasterList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerMasterList. # noqa: E501 + + + :return: The embedded of this ComputersDomaincontrollerMasterList. # noqa: E501 + :rtype: ComputersDomaincontrollerMasterListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerMasterList. + + + :param embedded: The embedded of this ComputersDomaincontrollerMasterList. # noqa: E501 + :type embedded: ComputersDomaincontrollerMasterListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerMasterList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerMasterList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_master_list_embedded.py b/openapi_client_udm/models/computers_domaincontroller_master_list_embedded.py new file mode 100644 index 0000000..8467e31 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_master_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerMasterListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersDomaincontrollerMaster]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerMasterListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersDomaincontrollerMasterListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersDomaincontrollerMasterListEmbedded. # noqa: E501 + :rtype: list[ComputersDomaincontrollerMaster] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersDomaincontrollerMasterListEmbedded. + + + :param udmobject: The udmobject of this ComputersDomaincontrollerMasterListEmbedded. # noqa: E501 + :type udmobject: list[ComputersDomaincontrollerMaster] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerMasterListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerMasterListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_master_options.py b/openapi_client_udm/models/computers_domaincontroller_master_options.py new file mode 100644 index 0000000..cf8a196 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_master_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerMasterOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerMasterOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersDomaincontrollerMasterOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersDomaincontrollerMasterOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersDomaincontrollerMasterOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersDomaincontrollerMasterOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersDomaincontrollerMasterOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersDomaincontrollerMasterOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersDomaincontrollerMasterOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerMasterOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerMasterOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_master_policies.py b/openapi_client_udm/models/computers_domaincontroller_master_policies.py new file mode 100644 index 0000000..35693c3 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_master_policies.py @@ -0,0 +1,411 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerMasterPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_printserver': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_release': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_printserver': 'policies/printserver', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_release': 'policies/release', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_printserver=None, policies_repositorysync=None, policies_nfsmounts=None, policies_umc=None, policies_maintenance=None, policies_release=None, policies_registry=None, policies_masterpackages=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerMasterPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_printserver = None + self._policies_repositorysync = None + self._policies_nfsmounts = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_release = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_release is not None: + self.policies_release = policies_release + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_printserver(self): + """Gets the policies_printserver of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this ComputersDomaincontrollerMasterPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this ComputersDomaincontrollerMasterPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this ComputersDomaincontrollerMasterPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_umc(self): + """Gets the policies_umc of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this ComputersDomaincontrollerMasterPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this ComputersDomaincontrollerMasterPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_release(self): + """Gets the policies_release of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this ComputersDomaincontrollerMasterPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_registry(self): + """Gets the policies_registry of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this ComputersDomaincontrollerMasterPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this ComputersDomaincontrollerMasterPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this ComputersDomaincontrollerMasterPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this ComputersDomaincontrollerMasterPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerMasterPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerMasterPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_master_request.py b/openapi_client_udm/models/computers_domaincontroller_master_request.py new file mode 100644 index 0000000..8689d1e --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_master_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerMasterRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerMasterOptions', + 'policies': 'ComputersDomaincontrollerMasterPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerMasterRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerMasterRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerMasterRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :rtype: ComputersDomaincontrollerMasterOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerMasterRequest. + + + :param options: The options of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :type options: ComputersDomaincontrollerMasterOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :rtype: ComputersDomaincontrollerMasterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerMasterRequest. + + + :param policies: The policies of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :type policies: ComputersDomaincontrollerMasterPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersDomaincontrollerMasterRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersDomaincontrollerMasterRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerMasterRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerMasterRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_master_request_patch.py b/openapi_client_udm/models/computers_domaincontroller_master_request_patch.py new file mode 100644 index 0000000..4296773 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_master_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerMasterRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerMasterOptions', + 'policies': 'ComputersDomaincontrollerMasterPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerMasterRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerMasterRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerMasterRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + :rtype: ComputersDomaincontrollerMasterOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerMasterRequestPatch. + + + :param options: The options of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + :type options: ComputersDomaincontrollerMasterOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + :rtype: ComputersDomaincontrollerMasterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerMasterRequestPatch. + + + :param policies: The policies of this ComputersDomaincontrollerMasterRequestPatch. # noqa: E501 + :type policies: ComputersDomaincontrollerMasterPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerMasterRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerMasterRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_master_response_mixin.py b/openapi_client_udm/models/computers_domaincontroller_master_response_mixin.py new file mode 100644 index 0000000..3da0ccd --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_master_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerMasterResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerMasterResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + + + :return: The links of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersDomaincontrollerMasterResponseMixin. + + + :param links: The links of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerMasterResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersDomaincontrollerMasterResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersDomaincontrollerMasterResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersDomaincontrollerMasterResponseMixin. + + + :param uri: The uri of this ComputersDomaincontrollerMasterResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerMasterResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerMasterResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_slave.py b/openapi_client_udm/models/computers_domaincontroller_slave.py new file mode 100644 index 0000000..0a15ac1 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_slave.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerSlave(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerSlaveOptions', + 'policies': 'ComputersDomaincontrollerSlavePolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerSlave - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerSlave. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerSlave. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerSlave. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerSlave. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerSlave. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerSlave. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerSlave. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: ComputersDomaincontrollerSlaveOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerSlave. + + + :param options: The options of this ComputersDomaincontrollerSlave. # noqa: E501 + :type options: ComputersDomaincontrollerSlaveOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerSlave. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: ComputersDomaincontrollerSlavePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerSlave. + + + :param policies: The policies of this ComputersDomaincontrollerSlave. # noqa: E501 + :type policies: ComputersDomaincontrollerSlavePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersDomaincontrollerSlave. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersDomaincontrollerSlave. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersDomaincontrollerSlave. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersDomaincontrollerSlave. # noqa: E501 + + + :return: The links of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersDomaincontrollerSlave. + + + :param links: The links of this ComputersDomaincontrollerSlave. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerSlave. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerSlave. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersDomaincontrollerSlave. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersDomaincontrollerSlave. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersDomaincontrollerSlave. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersDomaincontrollerSlave. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersDomaincontrollerSlave. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersDomaincontrollerSlave. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersDomaincontrollerSlave. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersDomaincontrollerSlave. # noqa: E501 + + + :return: The uri of this ComputersDomaincontrollerSlave. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersDomaincontrollerSlave. + + + :param uri: The uri of this ComputersDomaincontrollerSlave. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerSlave): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerSlave): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_slave_list.py b/openapi_client_udm/models/computers_domaincontroller_slave_list.py new file mode 100644 index 0000000..26a3710 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_slave_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerSlaveList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersDomaincontrollerSlaveListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerSlaveList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerSlaveList. # noqa: E501 + + + :return: The embedded of this ComputersDomaincontrollerSlaveList. # noqa: E501 + :rtype: ComputersDomaincontrollerSlaveListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerSlaveList. + + + :param embedded: The embedded of this ComputersDomaincontrollerSlaveList. # noqa: E501 + :type embedded: ComputersDomaincontrollerSlaveListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_slave_list_embedded.py b/openapi_client_udm/models/computers_domaincontroller_slave_list_embedded.py new file mode 100644 index 0000000..a9679a8 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_slave_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerSlaveListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersDomaincontrollerSlave]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerSlaveListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersDomaincontrollerSlaveListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersDomaincontrollerSlaveListEmbedded. # noqa: E501 + :rtype: list[ComputersDomaincontrollerSlave] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersDomaincontrollerSlaveListEmbedded. + + + :param udmobject: The udmobject of this ComputersDomaincontrollerSlaveListEmbedded. # noqa: E501 + :type udmobject: list[ComputersDomaincontrollerSlave] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_slave_options.py b/openapi_client_udm/models/computers_domaincontroller_slave_options.py new file mode 100644 index 0000000..9fbf63f --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_slave_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerSlaveOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerSlaveOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersDomaincontrollerSlaveOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersDomaincontrollerSlaveOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersDomaincontrollerSlaveOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersDomaincontrollerSlaveOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersDomaincontrollerSlaveOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersDomaincontrollerSlaveOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersDomaincontrollerSlaveOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_slave_policies.py b/openapi_client_udm/models/computers_domaincontroller_slave_policies.py new file mode 100644 index 0000000..e3ac88e --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_slave_policies.py @@ -0,0 +1,411 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerSlavePolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_release': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_printserver': 'policies/printserver', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_release': 'policies/release', + 'policies_registry': 'policies/registry', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_printserver=None, policies_repositorysync=None, policies_nfsmounts=None, policies_umc=None, policies_maintenance=None, policies_release=None, policies_registry=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerSlavePolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_printserver = None + self._policies_repositorysync = None + self._policies_nfsmounts = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_release = None + self._policies_registry = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_release is not None: + self.policies_release = policies_release + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this ComputersDomaincontrollerSlavePolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_printserver(self): + """Gets the policies_printserver of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this ComputersDomaincontrollerSlavePolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this ComputersDomaincontrollerSlavePolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this ComputersDomaincontrollerSlavePolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_umc(self): + """Gets the policies_umc of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this ComputersDomaincontrollerSlavePolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this ComputersDomaincontrollerSlavePolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_release(self): + """Gets the policies_release of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this ComputersDomaincontrollerSlavePolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_registry(self): + """Gets the policies_registry of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this ComputersDomaincontrollerSlavePolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this ComputersDomaincontrollerSlavePolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this ComputersDomaincontrollerSlavePolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerSlavePolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerSlavePolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_slave_request.py b/openapi_client_udm/models/computers_domaincontroller_slave_request.py new file mode 100644 index 0000000..fd38944 --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_slave_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerSlaveRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerSlaveOptions', + 'policies': 'ComputersDomaincontrollerSlavePolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerSlaveRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerSlaveRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerSlaveRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :rtype: ComputersDomaincontrollerSlaveOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerSlaveRequest. + + + :param options: The options of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :type options: ComputersDomaincontrollerSlaveOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :rtype: ComputersDomaincontrollerSlavePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerSlaveRequest. + + + :param policies: The policies of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :type policies: ComputersDomaincontrollerSlavePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersDomaincontrollerSlaveRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersDomaincontrollerSlaveRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_slave_request_patch.py b/openapi_client_udm/models/computers_domaincontroller_slave_request_patch.py new file mode 100644 index 0000000..fd8b85a --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_slave_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerSlaveRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersDomaincontrollerSlaveOptions', + 'policies': 'ComputersDomaincontrollerSlavePolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerSlaveRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersDomaincontrollerSlaveRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersDomaincontrollerSlaveRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + + + :return: The options of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + :rtype: ComputersDomaincontrollerSlaveOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersDomaincontrollerSlaveRequestPatch. + + + :param options: The options of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + :type options: ComputersDomaincontrollerSlaveOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + + + :return: The policies of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + :rtype: ComputersDomaincontrollerSlavePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersDomaincontrollerSlaveRequestPatch. + + + :param policies: The policies of this ComputersDomaincontrollerSlaveRequestPatch. # noqa: E501 + :type policies: ComputersDomaincontrollerSlavePolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_domaincontroller_slave_response_mixin.py b/openapi_client_udm/models/computers_domaincontroller_slave_response_mixin.py new file mode 100644 index 0000000..4298fad --- /dev/null +++ b/openapi_client_udm/models/computers_domaincontroller_slave_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersDomaincontrollerSlaveResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersDomaincontrollerSlaveResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + + + :return: The links of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersDomaincontrollerSlaveResponseMixin. + + + :param links: The links of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersDomaincontrollerSlaveResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersDomaincontrollerSlaveResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersDomaincontrollerSlaveResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersDomaincontrollerSlaveResponseMixin. + + + :param uri: The uri of this ComputersDomaincontrollerSlaveResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersDomaincontrollerSlaveResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ipmanagedclient.py b/openapi_client_udm/models/computers_ipmanagedclient.py new file mode 100644 index 0000000..13e4673 --- /dev/null +++ b/openapi_client_udm/models/computers_ipmanagedclient.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersIpmanagedclient(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersIpmanagedclientOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersIpmanagedclient - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersIpmanagedclient. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersIpmanagedclient. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersIpmanagedclient. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersIpmanagedclient. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersIpmanagedclient. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersIpmanagedclient. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersIpmanagedclient. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersIpmanagedclient. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersIpmanagedclient. # noqa: E501 + + + :return: The options of this ComputersIpmanagedclient. # noqa: E501 + :rtype: ComputersIpmanagedclientOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersIpmanagedclient. + + + :param options: The options of this ComputersIpmanagedclient. # noqa: E501 + :type options: ComputersIpmanagedclientOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersIpmanagedclient. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersIpmanagedclient. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersIpmanagedclient. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersIpmanagedclient. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersIpmanagedclient. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersIpmanagedclient. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersIpmanagedclient. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersIpmanagedclient. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersIpmanagedclient. # noqa: E501 + + + :return: The links of this ComputersIpmanagedclient. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersIpmanagedclient. + + + :param links: The links of this ComputersIpmanagedclient. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersIpmanagedclient. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersIpmanagedclient. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersIpmanagedclient. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersIpmanagedclient. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersIpmanagedclient. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersIpmanagedclient. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersIpmanagedclient. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersIpmanagedclient. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersIpmanagedclient. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersIpmanagedclient. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersIpmanagedclient. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersIpmanagedclient. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersIpmanagedclient. # noqa: E501 + + + :return: The uri of this ComputersIpmanagedclient. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersIpmanagedclient. + + + :param uri: The uri of this ComputersIpmanagedclient. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersIpmanagedclient): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersIpmanagedclient): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ipmanagedclient_list.py b/openapi_client_udm/models/computers_ipmanagedclient_list.py new file mode 100644 index 0000000..d3973b8 --- /dev/null +++ b/openapi_client_udm/models/computers_ipmanagedclient_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersIpmanagedclientList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersIpmanagedclientListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersIpmanagedclientList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersIpmanagedclientList. # noqa: E501 + + + :return: The embedded of this ComputersIpmanagedclientList. # noqa: E501 + :rtype: ComputersIpmanagedclientListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersIpmanagedclientList. + + + :param embedded: The embedded of this ComputersIpmanagedclientList. # noqa: E501 + :type embedded: ComputersIpmanagedclientListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersIpmanagedclientList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersIpmanagedclientList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ipmanagedclient_list_embedded.py b/openapi_client_udm/models/computers_ipmanagedclient_list_embedded.py new file mode 100644 index 0000000..c52f08e --- /dev/null +++ b/openapi_client_udm/models/computers_ipmanagedclient_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersIpmanagedclientListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersIpmanagedclient]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersIpmanagedclientListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersIpmanagedclientListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersIpmanagedclientListEmbedded. # noqa: E501 + :rtype: list[ComputersIpmanagedclient] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersIpmanagedclientListEmbedded. + + + :param udmobject: The udmobject of this ComputersIpmanagedclientListEmbedded. # noqa: E501 + :type udmobject: list[ComputersIpmanagedclient] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersIpmanagedclientListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersIpmanagedclientListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ipmanagedclient_options.py b/openapi_client_udm/models/computers_ipmanagedclient_options.py new file mode 100644 index 0000000..a1d0a83 --- /dev/null +++ b/openapi_client_udm/models/computers_ipmanagedclient_options.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersIpmanagedclientOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersIpmanagedclientOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def pki(self): + """Gets the pki of this ComputersIpmanagedclientOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersIpmanagedclientOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersIpmanagedclientOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersIpmanagedclientOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersIpmanagedclientOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersIpmanagedclientOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersIpmanagedclientOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersIpmanagedclientOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersIpmanagedclientOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersIpmanagedclientOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersIpmanagedclientOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersIpmanagedclientOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersIpmanagedclientOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersIpmanagedclientOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ipmanagedclient_request.py b/openapi_client_udm/models/computers_ipmanagedclient_request.py new file mode 100644 index 0000000..36a4296 --- /dev/null +++ b/openapi_client_udm/models/computers_ipmanagedclient_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersIpmanagedclientRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersIpmanagedclientOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersIpmanagedclientRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersIpmanagedclientRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersIpmanagedclientRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersIpmanagedclientRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersIpmanagedclientRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersIpmanagedclientRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersIpmanagedclientRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersIpmanagedclientRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersIpmanagedclientRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersIpmanagedclientRequest. # noqa: E501 + + + :return: The options of this ComputersIpmanagedclientRequest. # noqa: E501 + :rtype: ComputersIpmanagedclientOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersIpmanagedclientRequest. + + + :param options: The options of this ComputersIpmanagedclientRequest. # noqa: E501 + :type options: ComputersIpmanagedclientOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersIpmanagedclientRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersIpmanagedclientRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersIpmanagedclientRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersIpmanagedclientRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersIpmanagedclientRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersIpmanagedclientRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersIpmanagedclientRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersIpmanagedclientRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersIpmanagedclientRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersIpmanagedclientRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ipmanagedclient_request_patch.py b/openapi_client_udm/models/computers_ipmanagedclient_request_patch.py new file mode 100644 index 0000000..53306d5 --- /dev/null +++ b/openapi_client_udm/models/computers_ipmanagedclient_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersIpmanagedclientRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersIpmanagedclientOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersIpmanagedclientRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersIpmanagedclientRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersIpmanagedclientRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + + + :return: The options of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + :rtype: ComputersIpmanagedclientOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersIpmanagedclientRequestPatch. + + + :param options: The options of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + :type options: ComputersIpmanagedclientOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersIpmanagedclientRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersIpmanagedclientRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersIpmanagedclientRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersIpmanagedclientRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ipmanagedclient_response_mixin.py b/openapi_client_udm/models/computers_ipmanagedclient_response_mixin.py new file mode 100644 index 0000000..3785795 --- /dev/null +++ b/openapi_client_udm/models/computers_ipmanagedclient_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersIpmanagedclientResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersIpmanagedclientResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + + + :return: The links of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersIpmanagedclientResponseMixin. + + + :param links: The links of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersIpmanagedclientResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersIpmanagedclientResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersIpmanagedclientResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersIpmanagedclientResponseMixin. + + + :param uri: The uri of this ComputersIpmanagedclientResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersIpmanagedclientResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersIpmanagedclientResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_linux.py b/openapi_client_udm/models/computers_linux.py new file mode 100644 index 0000000..cad5698 --- /dev/null +++ b/openapi_client_udm/models/computers_linux.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersLinux(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersLinuxOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersLinux - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersLinux. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersLinux. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersLinux. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersLinux. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersLinux. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersLinux. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersLinux. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersLinux. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersLinux. # noqa: E501 + + + :return: The options of this ComputersLinux. # noqa: E501 + :rtype: ComputersLinuxOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersLinux. + + + :param options: The options of this ComputersLinux. # noqa: E501 + :type options: ComputersLinuxOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersLinux. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersLinux. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersLinux. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersLinux. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersLinux. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersLinux. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersLinux. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersLinux. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersLinux. # noqa: E501 + + + :return: The links of this ComputersLinux. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersLinux. + + + :param links: The links of this ComputersLinux. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersLinux. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersLinux. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersLinux. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersLinux. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersLinux. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersLinux. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersLinux. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersLinux. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersLinux. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersLinux. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersLinux. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersLinux. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersLinux. # noqa: E501 + + + :return: The uri of this ComputersLinux. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersLinux. + + + :param uri: The uri of this ComputersLinux. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersLinux): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersLinux): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_linux_list.py b/openapi_client_udm/models/computers_linux_list.py new file mode 100644 index 0000000..2015c33 --- /dev/null +++ b/openapi_client_udm/models/computers_linux_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersLinuxList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersLinuxListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersLinuxList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersLinuxList. # noqa: E501 + + + :return: The embedded of this ComputersLinuxList. # noqa: E501 + :rtype: ComputersLinuxListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersLinuxList. + + + :param embedded: The embedded of this ComputersLinuxList. # noqa: E501 + :type embedded: ComputersLinuxListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersLinuxList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersLinuxList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_linux_list_embedded.py b/openapi_client_udm/models/computers_linux_list_embedded.py new file mode 100644 index 0000000..36043b1 --- /dev/null +++ b/openapi_client_udm/models/computers_linux_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersLinuxListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersLinux]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersLinuxListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersLinuxListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersLinuxListEmbedded. # noqa: E501 + :rtype: list[ComputersLinux] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersLinuxListEmbedded. + + + :param udmobject: The udmobject of this ComputersLinuxListEmbedded. # noqa: E501 + :type udmobject: list[ComputersLinux] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersLinuxListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersLinuxListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_linux_options.py b/openapi_client_udm/models/computers_linux_options.py new file mode 100644 index 0000000..0b04aaa --- /dev/null +++ b/openapi_client_udm/models/computers_linux_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersLinuxOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersLinuxOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersLinuxOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersLinuxOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersLinuxOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersLinuxOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersLinuxOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersLinuxOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersLinuxOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersLinuxOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersLinuxOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersLinuxOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersLinuxOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersLinuxOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersLinuxOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersLinuxOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersLinuxOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersLinuxOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersLinuxOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersLinuxOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersLinuxOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersLinuxOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersLinuxOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersLinuxOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersLinuxOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersLinuxOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersLinuxOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersLinuxOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_linux_request.py b/openapi_client_udm/models/computers_linux_request.py new file mode 100644 index 0000000..72810c4 --- /dev/null +++ b/openapi_client_udm/models/computers_linux_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersLinuxRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersLinuxOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersLinuxRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersLinuxRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersLinuxRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersLinuxRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersLinuxRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersLinuxRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersLinuxRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersLinuxRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersLinuxRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersLinuxRequest. # noqa: E501 + + + :return: The options of this ComputersLinuxRequest. # noqa: E501 + :rtype: ComputersLinuxOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersLinuxRequest. + + + :param options: The options of this ComputersLinuxRequest. # noqa: E501 + :type options: ComputersLinuxOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersLinuxRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersLinuxRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersLinuxRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersLinuxRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersLinuxRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersLinuxRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersLinuxRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersLinuxRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersLinuxRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersLinuxRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_linux_request_patch.py b/openapi_client_udm/models/computers_linux_request_patch.py new file mode 100644 index 0000000..e3441d2 --- /dev/null +++ b/openapi_client_udm/models/computers_linux_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersLinuxRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersLinuxOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersLinuxRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersLinuxRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersLinuxRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersLinuxRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersLinuxRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersLinuxRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersLinuxRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersLinuxRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersLinuxRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersLinuxRequestPatch. # noqa: E501 + + + :return: The options of this ComputersLinuxRequestPatch. # noqa: E501 + :rtype: ComputersLinuxOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersLinuxRequestPatch. + + + :param options: The options of this ComputersLinuxRequestPatch. # noqa: E501 + :type options: ComputersLinuxOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersLinuxRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersLinuxRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersLinuxRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersLinuxRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersLinuxRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersLinuxRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_linux_response_mixin.py b/openapi_client_udm/models/computers_linux_response_mixin.py new file mode 100644 index 0000000..8fefd21 --- /dev/null +++ b/openapi_client_udm/models/computers_linux_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersLinuxResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersLinuxResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersLinuxResponseMixin. # noqa: E501 + + + :return: The links of this ComputersLinuxResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersLinuxResponseMixin. + + + :param links: The links of this ComputersLinuxResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersLinuxResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersLinuxResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersLinuxResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersLinuxResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersLinuxResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersLinuxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersLinuxResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersLinuxResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersLinuxResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersLinuxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersLinuxResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersLinuxResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersLinuxResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersLinuxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersLinuxResponseMixin. + + + :param uri: The uri of this ComputersLinuxResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersLinuxResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersLinuxResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_macos.py b/openapi_client_udm/models/computers_macos.py new file mode 100644 index 0000000..f3c7acb --- /dev/null +++ b/openapi_client_udm/models/computers_macos.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMacos(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersMacosOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersMacos - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersMacos. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersMacos. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersMacos. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersMacos. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersMacos. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersMacos. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersMacos. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersMacos. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersMacos. # noqa: E501 + + + :return: The options of this ComputersMacos. # noqa: E501 + :rtype: ComputersMacosOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersMacos. + + + :param options: The options of this ComputersMacos. # noqa: E501 + :type options: ComputersMacosOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersMacos. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersMacos. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersMacos. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersMacos. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersMacos. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersMacos. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersMacos. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersMacos. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersMacos. # noqa: E501 + + + :return: The links of this ComputersMacos. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersMacos. + + + :param links: The links of this ComputersMacos. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersMacos. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersMacos. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersMacos. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersMacos. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersMacos. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersMacos. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersMacos. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersMacos. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersMacos. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersMacos. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersMacos. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersMacos. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersMacos. # noqa: E501 + + + :return: The uri of this ComputersMacos. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersMacos. + + + :param uri: The uri of this ComputersMacos. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMacos): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMacos): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_macos_list.py b/openapi_client_udm/models/computers_macos_list.py new file mode 100644 index 0000000..3383048 --- /dev/null +++ b/openapi_client_udm/models/computers_macos_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMacosList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersMacosListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersMacosList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersMacosList. # noqa: E501 + + + :return: The embedded of this ComputersMacosList. # noqa: E501 + :rtype: ComputersMacosListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersMacosList. + + + :param embedded: The embedded of this ComputersMacosList. # noqa: E501 + :type embedded: ComputersMacosListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMacosList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMacosList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_macos_list_embedded.py b/openapi_client_udm/models/computers_macos_list_embedded.py new file mode 100644 index 0000000..3215c77 --- /dev/null +++ b/openapi_client_udm/models/computers_macos_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMacosListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersMacos]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersMacosListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersMacosListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersMacosListEmbedded. # noqa: E501 + :rtype: list[ComputersMacos] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersMacosListEmbedded. + + + :param udmobject: The udmobject of this ComputersMacosListEmbedded. # noqa: E501 + :type udmobject: list[ComputersMacos] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMacosListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMacosListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_macos_options.py b/openapi_client_udm/models/computers_macos_options.py new file mode 100644 index 0000000..5d1a5b7 --- /dev/null +++ b/openapi_client_udm/models/computers_macos_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMacosOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersMacosOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersMacosOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersMacosOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersMacosOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersMacosOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersMacosOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersMacosOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersMacosOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersMacosOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersMacosOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersMacosOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersMacosOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersMacosOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersMacosOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersMacosOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersMacosOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersMacosOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersMacosOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersMacosOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersMacosOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersMacosOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersMacosOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersMacosOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersMacosOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersMacosOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMacosOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMacosOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_macos_request.py b/openapi_client_udm/models/computers_macos_request.py new file mode 100644 index 0000000..79e0567 --- /dev/null +++ b/openapi_client_udm/models/computers_macos_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMacosRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersMacosOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersMacosRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersMacosRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersMacosRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersMacosRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersMacosRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersMacosRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersMacosRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersMacosRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersMacosRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersMacosRequest. # noqa: E501 + + + :return: The options of this ComputersMacosRequest. # noqa: E501 + :rtype: ComputersMacosOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersMacosRequest. + + + :param options: The options of this ComputersMacosRequest. # noqa: E501 + :type options: ComputersMacosOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersMacosRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersMacosRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersMacosRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersMacosRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersMacosRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersMacosRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersMacosRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersMacosRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMacosRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMacosRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_macos_request_patch.py b/openapi_client_udm/models/computers_macos_request_patch.py new file mode 100644 index 0000000..71a3fa2 --- /dev/null +++ b/openapi_client_udm/models/computers_macos_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMacosRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersMacosOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersMacosRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersMacosRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersMacosRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersMacosRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersMacosRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersMacosRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersMacosRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersMacosRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersMacosRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersMacosRequestPatch. # noqa: E501 + + + :return: The options of this ComputersMacosRequestPatch. # noqa: E501 + :rtype: ComputersMacosOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersMacosRequestPatch. + + + :param options: The options of this ComputersMacosRequestPatch. # noqa: E501 + :type options: ComputersMacosOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersMacosRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersMacosRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersMacosRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersMacosRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMacosRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMacosRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_macos_response_mixin.py b/openapi_client_udm/models/computers_macos_response_mixin.py new file mode 100644 index 0000000..cf6faaa --- /dev/null +++ b/openapi_client_udm/models/computers_macos_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMacosResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersMacosResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersMacosResponseMixin. # noqa: E501 + + + :return: The links of this ComputersMacosResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersMacosResponseMixin. + + + :param links: The links of this ComputersMacosResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersMacosResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersMacosResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersMacosResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersMacosResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersMacosResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersMacosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersMacosResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersMacosResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersMacosResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersMacosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersMacosResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersMacosResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersMacosResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersMacosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersMacosResponseMixin. + + + :param uri: The uri of this ComputersMacosResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMacosResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMacosResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_memberserver.py b/openapi_client_udm/models/computers_memberserver.py new file mode 100644 index 0000000..39f4e7f --- /dev/null +++ b/openapi_client_udm/models/computers_memberserver.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMemberserver(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersMemberserverOptions', + 'policies': 'ComputersMemberserverPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersMemberserver - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersMemberserver. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersMemberserver. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersMemberserver. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersMemberserver. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersMemberserver. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersMemberserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersMemberserver. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersMemberserver. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersMemberserver. # noqa: E501 + + + :return: The options of this ComputersMemberserver. # noqa: E501 + :rtype: ComputersMemberserverOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersMemberserver. + + + :param options: The options of this ComputersMemberserver. # noqa: E501 + :type options: ComputersMemberserverOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersMemberserver. # noqa: E501 + + + :return: The policies of this ComputersMemberserver. # noqa: E501 + :rtype: ComputersMemberserverPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersMemberserver. + + + :param policies: The policies of this ComputersMemberserver. # noqa: E501 + :type policies: ComputersMemberserverPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersMemberserver. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersMemberserver. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersMemberserver. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersMemberserver. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersMemberserver. # noqa: E501 + + + :return: The links of this ComputersMemberserver. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersMemberserver. + + + :param links: The links of this ComputersMemberserver. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersMemberserver. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersMemberserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersMemberserver. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersMemberserver. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersMemberserver. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersMemberserver. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersMemberserver. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersMemberserver. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersMemberserver. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersMemberserver. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersMemberserver. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersMemberserver. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersMemberserver. # noqa: E501 + + + :return: The uri of this ComputersMemberserver. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersMemberserver. + + + :param uri: The uri of this ComputersMemberserver. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMemberserver): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMemberserver): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_memberserver_list.py b/openapi_client_udm/models/computers_memberserver_list.py new file mode 100644 index 0000000..cbeb924 --- /dev/null +++ b/openapi_client_udm/models/computers_memberserver_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMemberserverList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersMemberserverListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersMemberserverList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersMemberserverList. # noqa: E501 + + + :return: The embedded of this ComputersMemberserverList. # noqa: E501 + :rtype: ComputersMemberserverListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersMemberserverList. + + + :param embedded: The embedded of this ComputersMemberserverList. # noqa: E501 + :type embedded: ComputersMemberserverListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMemberserverList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMemberserverList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_memberserver_list_embedded.py b/openapi_client_udm/models/computers_memberserver_list_embedded.py new file mode 100644 index 0000000..917c0ad --- /dev/null +++ b/openapi_client_udm/models/computers_memberserver_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMemberserverListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersMemberserver]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersMemberserverListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersMemberserverListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersMemberserverListEmbedded. # noqa: E501 + :rtype: list[ComputersMemberserver] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersMemberserverListEmbedded. + + + :param udmobject: The udmobject of this ComputersMemberserverListEmbedded. # noqa: E501 + :type udmobject: list[ComputersMemberserver] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMemberserverListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMemberserverListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_memberserver_options.py b/openapi_client_udm/models/computers_memberserver_options.py new file mode 100644 index 0000000..d7f123c --- /dev/null +++ b/openapi_client_udm/models/computers_memberserver_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMemberserverOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersMemberserverOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersMemberserverOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersMemberserverOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersMemberserverOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersMemberserverOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersMemberserverOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersMemberserverOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersMemberserverOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersMemberserverOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersMemberserverOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersMemberserverOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersMemberserverOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersMemberserverOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersMemberserverOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersMemberserverOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersMemberserverOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersMemberserverOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersMemberserverOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersMemberserverOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersMemberserverOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersMemberserverOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersMemberserverOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersMemberserverOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersMemberserverOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersMemberserverOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMemberserverOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMemberserverOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_memberserver_policies.py b/openapi_client_udm/models/computers_memberserver_policies.py new file mode 100644 index 0000000..bb4be4c --- /dev/null +++ b/openapi_client_udm/models/computers_memberserver_policies.py @@ -0,0 +1,445 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMemberserverPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_printserver': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_release': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_printserver': 'policies/printserver', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_release': 'policies/release', + 'policies_registry': 'policies/registry', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_printserver=None, policies_repositorysync=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_release=None, policies_registry=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """ComputersMemberserverPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_printserver = None + self._policies_repositorysync = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_release = None + self._policies_registry = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_release is not None: + self.policies_release = policies_release + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_printserver(self): + """Gets the policies_printserver of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this ComputersMemberserverPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this ComputersMemberserverPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this ComputersMemberserverPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this ComputersMemberserverPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this ComputersMemberserverPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this ComputersMemberserverPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_release(self): + """Gets the policies_release of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this ComputersMemberserverPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_registry(self): + """Gets the policies_registry of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this ComputersMemberserverPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this ComputersMemberserverPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this ComputersMemberserverPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this ComputersMemberserverPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this ComputersMemberserverPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this ComputersMemberserverPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMemberserverPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMemberserverPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_memberserver_request.py b/openapi_client_udm/models/computers_memberserver_request.py new file mode 100644 index 0000000..90dc5cf --- /dev/null +++ b/openapi_client_udm/models/computers_memberserver_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMemberserverRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersMemberserverOptions', + 'policies': 'ComputersMemberserverPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersMemberserverRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersMemberserverRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersMemberserverRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersMemberserverRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersMemberserverRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersMemberserverRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersMemberserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersMemberserverRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersMemberserverRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersMemberserverRequest. # noqa: E501 + + + :return: The options of this ComputersMemberserverRequest. # noqa: E501 + :rtype: ComputersMemberserverOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersMemberserverRequest. + + + :param options: The options of this ComputersMemberserverRequest. # noqa: E501 + :type options: ComputersMemberserverOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersMemberserverRequest. # noqa: E501 + + + :return: The policies of this ComputersMemberserverRequest. # noqa: E501 + :rtype: ComputersMemberserverPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersMemberserverRequest. + + + :param policies: The policies of this ComputersMemberserverRequest. # noqa: E501 + :type policies: ComputersMemberserverPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersMemberserverRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersMemberserverRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersMemberserverRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersMemberserverRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMemberserverRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMemberserverRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_memberserver_request_patch.py b/openapi_client_udm/models/computers_memberserver_request_patch.py new file mode 100644 index 0000000..953a16c --- /dev/null +++ b/openapi_client_udm/models/computers_memberserver_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMemberserverRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersMemberserverOptions', + 'policies': 'ComputersMemberserverPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersMemberserverRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersMemberserverRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersMemberserverRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersMemberserverRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersMemberserverRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersMemberserverRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersMemberserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersMemberserverRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersMemberserverRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersMemberserverRequestPatch. # noqa: E501 + + + :return: The options of this ComputersMemberserverRequestPatch. # noqa: E501 + :rtype: ComputersMemberserverOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersMemberserverRequestPatch. + + + :param options: The options of this ComputersMemberserverRequestPatch. # noqa: E501 + :type options: ComputersMemberserverOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersMemberserverRequestPatch. # noqa: E501 + + + :return: The policies of this ComputersMemberserverRequestPatch. # noqa: E501 + :rtype: ComputersMemberserverPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersMemberserverRequestPatch. + + + :param policies: The policies of this ComputersMemberserverRequestPatch. # noqa: E501 + :type policies: ComputersMemberserverPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMemberserverRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMemberserverRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_memberserver_response_mixin.py b/openapi_client_udm/models/computers_memberserver_response_mixin.py new file mode 100644 index 0000000..26d6783 --- /dev/null +++ b/openapi_client_udm/models/computers_memberserver_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersMemberserverResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersMemberserverResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersMemberserverResponseMixin. # noqa: E501 + + + :return: The links of this ComputersMemberserverResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersMemberserverResponseMixin. + + + :param links: The links of this ComputersMemberserverResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersMemberserverResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersMemberserverResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersMemberserverResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersMemberserverResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersMemberserverResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersMemberserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersMemberserverResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersMemberserverResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersMemberserverResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersMemberserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersMemberserverResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersMemberserverResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersMemberserverResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersMemberserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersMemberserverResponseMixin. + + + :param uri: The uri of this ComputersMemberserverResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersMemberserverResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersMemberserverResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_trustaccount.py b/openapi_client_udm/models/computers_trustaccount.py new file mode 100644 index 0000000..d796019 --- /dev/null +++ b/openapi_client_udm/models/computers_trustaccount.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersTrustaccount(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersTrustaccountOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersTrustaccount - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersTrustaccount. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersTrustaccount. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersTrustaccount. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersTrustaccount. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersTrustaccount. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersTrustaccount. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersTrustaccount. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersTrustaccount. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersTrustaccount. # noqa: E501 + + + :return: The options of this ComputersTrustaccount. # noqa: E501 + :rtype: ComputersTrustaccountOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersTrustaccount. + + + :param options: The options of this ComputersTrustaccount. # noqa: E501 + :type options: ComputersTrustaccountOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersTrustaccount. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersTrustaccount. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersTrustaccount. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersTrustaccount. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersTrustaccount. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersTrustaccount. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersTrustaccount. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersTrustaccount. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersTrustaccount. # noqa: E501 + + + :return: The links of this ComputersTrustaccount. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersTrustaccount. + + + :param links: The links of this ComputersTrustaccount. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersTrustaccount. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersTrustaccount. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersTrustaccount. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersTrustaccount. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersTrustaccount. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersTrustaccount. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersTrustaccount. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersTrustaccount. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersTrustaccount. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersTrustaccount. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersTrustaccount. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersTrustaccount. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersTrustaccount. # noqa: E501 + + + :return: The uri of this ComputersTrustaccount. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersTrustaccount. + + + :param uri: The uri of this ComputersTrustaccount. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersTrustaccount): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersTrustaccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_trustaccount_list.py b/openapi_client_udm/models/computers_trustaccount_list.py new file mode 100644 index 0000000..40b6d32 --- /dev/null +++ b/openapi_client_udm/models/computers_trustaccount_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersTrustaccountList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersTrustaccountListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersTrustaccountList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersTrustaccountList. # noqa: E501 + + + :return: The embedded of this ComputersTrustaccountList. # noqa: E501 + :rtype: ComputersTrustaccountListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersTrustaccountList. + + + :param embedded: The embedded of this ComputersTrustaccountList. # noqa: E501 + :type embedded: ComputersTrustaccountListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersTrustaccountList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersTrustaccountList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_trustaccount_list_embedded.py b/openapi_client_udm/models/computers_trustaccount_list_embedded.py new file mode 100644 index 0000000..f4b7091 --- /dev/null +++ b/openapi_client_udm/models/computers_trustaccount_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersTrustaccountListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersTrustaccount]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersTrustaccountListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersTrustaccountListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersTrustaccountListEmbedded. # noqa: E501 + :rtype: list[ComputersTrustaccount] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersTrustaccountListEmbedded. + + + :param udmobject: The udmobject of this ComputersTrustaccountListEmbedded. # noqa: E501 + :type udmobject: list[ComputersTrustaccount] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersTrustaccountListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersTrustaccountListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_trustaccount_options.py b/openapi_client_udm/models/computers_trustaccount_options.py new file mode 100644 index 0000000..80e6d13 --- /dev/null +++ b/openapi_client_udm/models/computers_trustaccount_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersTrustaccountOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'pki': 'bool' + } + + attribute_map = { + 'pki': 'pki' + } + + def __init__(self, pki=False, local_vars_configuration=None): # noqa: E501 + """ComputersTrustaccountOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._pki = None + self.discriminator = None + + if pki is not None: + self.pki = pki + + @property + def pki(self): + """Gets the pki of this ComputersTrustaccountOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersTrustaccountOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersTrustaccountOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersTrustaccountOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersTrustaccountOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersTrustaccountOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_trustaccount_request.py b/openapi_client_udm/models/computers_trustaccount_request.py new file mode 100644 index 0000000..3d351fd --- /dev/null +++ b/openapi_client_udm/models/computers_trustaccount_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersTrustaccountRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersTrustaccountOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersTrustaccountRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersTrustaccountRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersTrustaccountRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersTrustaccountRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersTrustaccountRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersTrustaccountRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersTrustaccountRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersTrustaccountRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersTrustaccountRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersTrustaccountRequest. # noqa: E501 + + + :return: The options of this ComputersTrustaccountRequest. # noqa: E501 + :rtype: ComputersTrustaccountOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersTrustaccountRequest. + + + :param options: The options of this ComputersTrustaccountRequest. # noqa: E501 + :type options: ComputersTrustaccountOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersTrustaccountRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersTrustaccountRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersTrustaccountRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersTrustaccountRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersTrustaccountRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersTrustaccountRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersTrustaccountRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersTrustaccountRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersTrustaccountRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersTrustaccountRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_trustaccount_request_patch.py b/openapi_client_udm/models/computers_trustaccount_request_patch.py new file mode 100644 index 0000000..048298a --- /dev/null +++ b/openapi_client_udm/models/computers_trustaccount_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersTrustaccountRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersTrustaccountOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersTrustaccountRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersTrustaccountRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersTrustaccountRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersTrustaccountRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersTrustaccountRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersTrustaccountRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersTrustaccountRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersTrustaccountRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersTrustaccountRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersTrustaccountRequestPatch. # noqa: E501 + + + :return: The options of this ComputersTrustaccountRequestPatch. # noqa: E501 + :rtype: ComputersTrustaccountOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersTrustaccountRequestPatch. + + + :param options: The options of this ComputersTrustaccountRequestPatch. # noqa: E501 + :type options: ComputersTrustaccountOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersTrustaccountRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersTrustaccountRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersTrustaccountRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersTrustaccountRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersTrustaccountRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersTrustaccountRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_trustaccount_response_mixin.py b/openapi_client_udm/models/computers_trustaccount_response_mixin.py new file mode 100644 index 0000000..36606b3 --- /dev/null +++ b/openapi_client_udm/models/computers_trustaccount_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersTrustaccountResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersTrustaccountResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersTrustaccountResponseMixin. # noqa: E501 + + + :return: The links of this ComputersTrustaccountResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersTrustaccountResponseMixin. + + + :param links: The links of this ComputersTrustaccountResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersTrustaccountResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersTrustaccountResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersTrustaccountResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersTrustaccountResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersTrustaccountResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersTrustaccountResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersTrustaccountResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersTrustaccountResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersTrustaccountResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersTrustaccountResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersTrustaccountResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersTrustaccountResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersTrustaccountResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersTrustaccountResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersTrustaccountResponseMixin. + + + :param uri: The uri of this ComputersTrustaccountResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersTrustaccountResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersTrustaccountResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ubuntu.py b/openapi_client_udm/models/computers_ubuntu.py new file mode 100644 index 0000000..95a2a3f --- /dev/null +++ b/openapi_client_udm/models/computers_ubuntu.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersUbuntu(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersUbuntuOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersUbuntu - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersUbuntu. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersUbuntu. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersUbuntu. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersUbuntu. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersUbuntu. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersUbuntu. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersUbuntu. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersUbuntu. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersUbuntu. # noqa: E501 + + + :return: The options of this ComputersUbuntu. # noqa: E501 + :rtype: ComputersUbuntuOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersUbuntu. + + + :param options: The options of this ComputersUbuntu. # noqa: E501 + :type options: ComputersUbuntuOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersUbuntu. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersUbuntu. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersUbuntu. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersUbuntu. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersUbuntu. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersUbuntu. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersUbuntu. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersUbuntu. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersUbuntu. # noqa: E501 + + + :return: The links of this ComputersUbuntu. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersUbuntu. + + + :param links: The links of this ComputersUbuntu. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersUbuntu. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersUbuntu. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersUbuntu. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersUbuntu. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersUbuntu. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersUbuntu. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersUbuntu. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersUbuntu. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersUbuntu. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersUbuntu. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersUbuntu. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersUbuntu. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersUbuntu. # noqa: E501 + + + :return: The uri of this ComputersUbuntu. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersUbuntu. + + + :param uri: The uri of this ComputersUbuntu. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersUbuntu): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersUbuntu): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ubuntu_list.py b/openapi_client_udm/models/computers_ubuntu_list.py new file mode 100644 index 0000000..39638ba --- /dev/null +++ b/openapi_client_udm/models/computers_ubuntu_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersUbuntuList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersUbuntuListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersUbuntuList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersUbuntuList. # noqa: E501 + + + :return: The embedded of this ComputersUbuntuList. # noqa: E501 + :rtype: ComputersUbuntuListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersUbuntuList. + + + :param embedded: The embedded of this ComputersUbuntuList. # noqa: E501 + :type embedded: ComputersUbuntuListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersUbuntuList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersUbuntuList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ubuntu_list_embedded.py b/openapi_client_udm/models/computers_ubuntu_list_embedded.py new file mode 100644 index 0000000..719382e --- /dev/null +++ b/openapi_client_udm/models/computers_ubuntu_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersUbuntuListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersUbuntu]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersUbuntuListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersUbuntuListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersUbuntuListEmbedded. # noqa: E501 + :rtype: list[ComputersUbuntu] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersUbuntuListEmbedded. + + + :param udmobject: The udmobject of this ComputersUbuntuListEmbedded. # noqa: E501 + :type udmobject: list[ComputersUbuntu] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersUbuntuListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersUbuntuListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ubuntu_options.py b/openapi_client_udm/models/computers_ubuntu_options.py new file mode 100644 index 0000000..612d681 --- /dev/null +++ b/openapi_client_udm/models/computers_ubuntu_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersUbuntuOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersUbuntuOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersUbuntuOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersUbuntuOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersUbuntuOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersUbuntuOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersUbuntuOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersUbuntuOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersUbuntuOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersUbuntuOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersUbuntuOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersUbuntuOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersUbuntuOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersUbuntuOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersUbuntuOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersUbuntuOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersUbuntuOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersUbuntuOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersUbuntuOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersUbuntuOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersUbuntuOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersUbuntuOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersUbuntuOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersUbuntuOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersUbuntuOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersUbuntuOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersUbuntuOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersUbuntuOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ubuntu_request.py b/openapi_client_udm/models/computers_ubuntu_request.py new file mode 100644 index 0000000..bd0b1f1 --- /dev/null +++ b/openapi_client_udm/models/computers_ubuntu_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersUbuntuRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersUbuntuOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersUbuntuRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersUbuntuRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersUbuntuRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersUbuntuRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersUbuntuRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersUbuntuRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersUbuntuRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersUbuntuRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersUbuntuRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersUbuntuRequest. # noqa: E501 + + + :return: The options of this ComputersUbuntuRequest. # noqa: E501 + :rtype: ComputersUbuntuOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersUbuntuRequest. + + + :param options: The options of this ComputersUbuntuRequest. # noqa: E501 + :type options: ComputersUbuntuOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersUbuntuRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersUbuntuRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersUbuntuRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersUbuntuRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersUbuntuRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersUbuntuRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersUbuntuRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersUbuntuRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersUbuntuRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersUbuntuRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ubuntu_request_patch.py b/openapi_client_udm/models/computers_ubuntu_request_patch.py new file mode 100644 index 0000000..693a321 --- /dev/null +++ b/openapi_client_udm/models/computers_ubuntu_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersUbuntuRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersUbuntuOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersUbuntuRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersUbuntuRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersUbuntuRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersUbuntuRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersUbuntuRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersUbuntuRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersUbuntuRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersUbuntuRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersUbuntuRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersUbuntuRequestPatch. # noqa: E501 + + + :return: The options of this ComputersUbuntuRequestPatch. # noqa: E501 + :rtype: ComputersUbuntuOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersUbuntuRequestPatch. + + + :param options: The options of this ComputersUbuntuRequestPatch. # noqa: E501 + :type options: ComputersUbuntuOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersUbuntuRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersUbuntuRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersUbuntuRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersUbuntuRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersUbuntuRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersUbuntuRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_ubuntu_response_mixin.py b/openapi_client_udm/models/computers_ubuntu_response_mixin.py new file mode 100644 index 0000000..2ca3674 --- /dev/null +++ b/openapi_client_udm/models/computers_ubuntu_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersUbuntuResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersUbuntuResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersUbuntuResponseMixin. # noqa: E501 + + + :return: The links of this ComputersUbuntuResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersUbuntuResponseMixin. + + + :param links: The links of this ComputersUbuntuResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersUbuntuResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersUbuntuResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersUbuntuResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersUbuntuResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersUbuntuResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersUbuntuResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersUbuntuResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersUbuntuResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersUbuntuResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersUbuntuResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersUbuntuResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersUbuntuResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersUbuntuResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersUbuntuResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersUbuntuResponseMixin. + + + :param uri: The uri of this ComputersUbuntuResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersUbuntuResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersUbuntuResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows.py b/openapi_client_udm/models/computers_windows.py new file mode 100644 index 0000000..5795e02 --- /dev/null +++ b/openapi_client_udm/models/computers_windows.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindows(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersWindowsOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindows - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersWindows. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersWindows. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersWindows. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersWindows. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersWindows. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersWindows. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersWindows. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersWindows. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersWindows. # noqa: E501 + + + :return: The options of this ComputersWindows. # noqa: E501 + :rtype: ComputersWindowsOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersWindows. + + + :param options: The options of this ComputersWindows. # noqa: E501 + :type options: ComputersWindowsOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersWindows. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersWindows. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersWindows. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersWindows. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersWindows. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersWindows. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersWindows. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersWindows. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersWindows. # noqa: E501 + + + :return: The links of this ComputersWindows. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersWindows. + + + :param links: The links of this ComputersWindows. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersWindows. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersWindows. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersWindows. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersWindows. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersWindows. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersWindows. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersWindows. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersWindows. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersWindows. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersWindows. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersWindows. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersWindows. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersWindows. # noqa: E501 + + + :return: The uri of this ComputersWindows. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersWindows. + + + :param uri: The uri of this ComputersWindows. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindows): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindows): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_domaincontroller.py b/openapi_client_udm/models/computers_windows_domaincontroller.py new file mode 100644 index 0000000..3b5c172 --- /dev/null +++ b/openapi_client_udm/models/computers_windows_domaincontroller.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsDomaincontroller(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersWindowsDomaincontrollerOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsDomaincontroller - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ComputersWindowsDomaincontroller. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersWindowsDomaincontroller. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersWindowsDomaincontroller. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersWindowsDomaincontroller. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersWindowsDomaincontroller. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersWindowsDomaincontroller. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersWindowsDomaincontroller. # noqa: E501 + + + :return: The options of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: ComputersWindowsDomaincontrollerOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersWindowsDomaincontroller. + + + :param options: The options of this ComputersWindowsDomaincontroller. # noqa: E501 + :type options: ComputersWindowsDomaincontrollerOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersWindowsDomaincontroller. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersWindowsDomaincontroller. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersWindowsDomaincontroller. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersWindowsDomaincontroller. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersWindowsDomaincontroller. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersWindowsDomaincontroller. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ComputersWindowsDomaincontroller. # noqa: E501 + + + :return: The links of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersWindowsDomaincontroller. + + + :param links: The links of this ComputersWindowsDomaincontroller. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersWindowsDomaincontroller. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersWindowsDomaincontroller. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersWindowsDomaincontroller. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersWindowsDomaincontroller. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersWindowsDomaincontroller. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersWindowsDomaincontroller. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersWindowsDomaincontroller. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersWindowsDomaincontroller. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersWindowsDomaincontroller. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersWindowsDomaincontroller. # noqa: E501 + + + :return: The uri of this ComputersWindowsDomaincontroller. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersWindowsDomaincontroller. + + + :param uri: The uri of this ComputersWindowsDomaincontroller. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsDomaincontroller): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsDomaincontroller): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_domaincontroller_list.py b/openapi_client_udm/models/computers_windows_domaincontroller_list.py new file mode 100644 index 0000000..195e4fb --- /dev/null +++ b/openapi_client_udm/models/computers_windows_domaincontroller_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsDomaincontrollerList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersWindowsDomaincontrollerListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsDomaincontrollerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersWindowsDomaincontrollerList. # noqa: E501 + + + :return: The embedded of this ComputersWindowsDomaincontrollerList. # noqa: E501 + :rtype: ComputersWindowsDomaincontrollerListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersWindowsDomaincontrollerList. + + + :param embedded: The embedded of this ComputersWindowsDomaincontrollerList. # noqa: E501 + :type embedded: ComputersWindowsDomaincontrollerListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_domaincontroller_list_embedded.py b/openapi_client_udm/models/computers_windows_domaincontroller_list_embedded.py new file mode 100644 index 0000000..b69c6c4 --- /dev/null +++ b/openapi_client_udm/models/computers_windows_domaincontroller_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsDomaincontrollerListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersWindowsDomaincontroller]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsDomaincontrollerListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersWindowsDomaincontrollerListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersWindowsDomaincontrollerListEmbedded. # noqa: E501 + :rtype: list[ComputersWindowsDomaincontroller] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersWindowsDomaincontrollerListEmbedded. + + + :param udmobject: The udmobject of this ComputersWindowsDomaincontrollerListEmbedded. # noqa: E501 + :type udmobject: list[ComputersWindowsDomaincontroller] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_domaincontroller_options.py b/openapi_client_udm/models/computers_windows_domaincontroller_options.py new file mode 100644 index 0000000..095bb93 --- /dev/null +++ b/openapi_client_udm/models/computers_windows_domaincontroller_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsDomaincontrollerOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsDomaincontrollerOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersWindowsDomaincontrollerOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersWindowsDomaincontrollerOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersWindowsDomaincontrollerOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersWindowsDomaincontrollerOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersWindowsDomaincontrollerOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersWindowsDomaincontrollerOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersWindowsDomaincontrollerOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_domaincontroller_request.py b/openapi_client_udm/models/computers_windows_domaincontroller_request.py new file mode 100644 index 0000000..5500361 --- /dev/null +++ b/openapi_client_udm/models/computers_windows_domaincontroller_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsDomaincontrollerRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersWindowsDomaincontrollerOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsDomaincontrollerRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersWindowsDomaincontrollerRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersWindowsDomaincontrollerRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + + + :return: The options of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :rtype: ComputersWindowsDomaincontrollerOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersWindowsDomaincontrollerRequest. + + + :param options: The options of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :type options: ComputersWindowsDomaincontrollerOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersWindowsDomaincontrollerRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersWindowsDomaincontrollerRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersWindowsDomaincontrollerRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_domaincontroller_request_patch.py b/openapi_client_udm/models/computers_windows_domaincontroller_request_patch.py new file mode 100644 index 0000000..4da46dd --- /dev/null +++ b/openapi_client_udm/models/computers_windows_domaincontroller_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsDomaincontrollerRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersWindowsDomaincontrollerOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsDomaincontrollerRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersWindowsDomaincontrollerRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersWindowsDomaincontrollerRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + + + :return: The options of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + :rtype: ComputersWindowsDomaincontrollerOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersWindowsDomaincontrollerRequestPatch. + + + :param options: The options of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + :type options: ComputersWindowsDomaincontrollerOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersWindowsDomaincontrollerRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersWindowsDomaincontrollerRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_domaincontroller_response_mixin.py b/openapi_client_udm/models/computers_windows_domaincontroller_response_mixin.py new file mode 100644 index 0000000..bb14804 --- /dev/null +++ b/openapi_client_udm/models/computers_windows_domaincontroller_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsDomaincontrollerResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsDomaincontrollerResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + + + :return: The links of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersWindowsDomaincontrollerResponseMixin. + + + :param links: The links of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersWindowsDomaincontrollerResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersWindowsDomaincontrollerResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersWindowsDomaincontrollerResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersWindowsDomaincontrollerResponseMixin. + + + :param uri: The uri of this ComputersWindowsDomaincontrollerResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsDomaincontrollerResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_list.py b/openapi_client_udm/models/computers_windows_list.py new file mode 100644 index 0000000..623df33 --- /dev/null +++ b/openapi_client_udm/models/computers_windows_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ComputersWindowsListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ComputersWindowsList. # noqa: E501 + + + :return: The embedded of this ComputersWindowsList. # noqa: E501 + :rtype: ComputersWindowsListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersWindowsList. + + + :param embedded: The embedded of this ComputersWindowsList. # noqa: E501 + :type embedded: ComputersWindowsListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_list_embedded.py b/openapi_client_udm/models/computers_windows_list_embedded.py new file mode 100644 index 0000000..255436e --- /dev/null +++ b/openapi_client_udm/models/computers_windows_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ComputersWindows]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ComputersWindowsListEmbedded. # noqa: E501 + + + :return: The udmobject of this ComputersWindowsListEmbedded. # noqa: E501 + :rtype: list[ComputersWindows] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ComputersWindowsListEmbedded. + + + :param udmobject: The udmobject of this ComputersWindowsListEmbedded. # noqa: E501 + :type udmobject: list[ComputersWindows] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_options.py b/openapi_client_udm/models/computers_windows_options.py new file mode 100644 index 0000000..944a7b9 --- /dev/null +++ b/openapi_client_udm/models/computers_windows_options.py @@ -0,0 +1,273 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'kerberos': 'bool', + 'samba': 'bool', + 'pki': 'bool', + 'nagios': 'bool', + 'radius_authenticator': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'kerberos': 'kerberos', + 'samba': 'samba', + 'pki': 'pki', + 'nagios': 'nagios', + 'radius_authenticator': 'radiusAuthenticator' + } + + def __init__(self, posix=True, kerberos=True, samba=True, pki=False, nagios=False, radius_authenticator=False, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._kerberos = None + self._samba = None + self._pki = None + self._nagios = None + self._radius_authenticator = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + if pki is not None: + self.pki = pki + if nagios is not None: + self.nagios = nagios + if radius_authenticator is not None: + self.radius_authenticator = radius_authenticator + + @property + def posix(self): + """Gets the posix of this ComputersWindowsOptions. # noqa: E501 + + Posix account # noqa: E501 + + :return: The posix of this ComputersWindowsOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this ComputersWindowsOptions. + + Posix account # noqa: E501 + + :param posix: The posix of this ComputersWindowsOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def kerberos(self): + """Gets the kerberos of this ComputersWindowsOptions. # noqa: E501 + + Kerberos principal # noqa: E501 + + :return: The kerberos of this ComputersWindowsOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ComputersWindowsOptions. + + Kerberos principal # noqa: E501 + + :param kerberos: The kerberos of this ComputersWindowsOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ComputersWindowsOptions. # noqa: E501 + + Samba account # noqa: E501 + + :return: The samba of this ComputersWindowsOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ComputersWindowsOptions. + + Samba account # noqa: E501 + + :param samba: The samba of this ComputersWindowsOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def pki(self): + """Gets the pki of this ComputersWindowsOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this ComputersWindowsOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this ComputersWindowsOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this ComputersWindowsOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + @property + def nagios(self): + """Gets the nagios of this ComputersWindowsOptions. # noqa: E501 + + Nagios support # noqa: E501 + + :return: The nagios of this ComputersWindowsOptions. # noqa: E501 + :rtype: bool + """ + return self._nagios + + @nagios.setter + def nagios(self, nagios): + """Sets the nagios of this ComputersWindowsOptions. + + Nagios support # noqa: E501 + + :param nagios: The nagios of this ComputersWindowsOptions. # noqa: E501 + :type nagios: bool + """ + + self._nagios = nagios + + @property + def radius_authenticator(self): + """Gets the radius_authenticator of this ComputersWindowsOptions. # noqa: E501 + + RADIUS Authenticator # noqa: E501 + + :return: The radius_authenticator of this ComputersWindowsOptions. # noqa: E501 + :rtype: bool + """ + return self._radius_authenticator + + @radius_authenticator.setter + def radius_authenticator(self, radius_authenticator): + """Sets the radius_authenticator of this ComputersWindowsOptions. + + RADIUS Authenticator # noqa: E501 + + :param radius_authenticator: The radius_authenticator of this ComputersWindowsOptions. # noqa: E501 + :type radius_authenticator: bool + """ + + self._radius_authenticator = radius_authenticator + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_request.py b/openapi_client_udm/models/computers_windows_request.py new file mode 100644 index 0000000..7e5c87d --- /dev/null +++ b/openapi_client_udm/models/computers_windows_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersWindowsOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ComputersWindowsRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersWindowsRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersWindowsRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersWindowsRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersWindowsRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersWindowsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersWindowsRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersWindowsRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersWindowsRequest. # noqa: E501 + + + :return: The options of this ComputersWindowsRequest. # noqa: E501 + :rtype: ComputersWindowsOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersWindowsRequest. + + + :param options: The options of this ComputersWindowsRequest. # noqa: E501 + :type options: ComputersWindowsOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersWindowsRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersWindowsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersWindowsRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersWindowsRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ComputersWindowsRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ComputersWindowsRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ComputersWindowsRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ComputersWindowsRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_request_patch.py b/openapi_client_udm/models/computers_windows_request_patch.py new file mode 100644 index 0000000..f28aafa --- /dev/null +++ b/openapi_client_udm/models/computers_windows_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ComputersWindowsOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ComputersWindowsRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ComputersWindowsRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ComputersWindowsRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ComputersWindowsRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ComputersWindowsRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ComputersWindowsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ComputersWindowsRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ComputersWindowsRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ComputersWindowsRequestPatch. # noqa: E501 + + + :return: The options of this ComputersWindowsRequestPatch. # noqa: E501 + :rtype: ComputersWindowsOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ComputersWindowsRequestPatch. + + + :param options: The options of this ComputersWindowsRequestPatch. # noqa: E501 + :type options: ComputersWindowsOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ComputersWindowsRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this ComputersWindowsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ComputersWindowsRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this ComputersWindowsRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/computers_windows_response_mixin.py b/openapi_client_udm/models/computers_windows_response_mixin.py new file mode 100644 index 0000000..e2c5ddf --- /dev/null +++ b/openapi_client_udm/models/computers_windows_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ComputersWindowsResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ComputersWindowsResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ComputersWindowsResponseMixin. # noqa: E501 + + + :return: The links of this ComputersWindowsResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ComputersWindowsResponseMixin. + + + :param links: The links of this ComputersWindowsResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ComputersWindowsResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ComputersWindowsResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ComputersWindowsResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ComputersWindowsResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ComputersWindowsResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ComputersWindowsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ComputersWindowsResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ComputersWindowsResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ComputersWindowsResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ComputersWindowsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ComputersWindowsResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ComputersWindowsResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ComputersWindowsResponseMixin. # noqa: E501 + + + :return: The uri of this ComputersWindowsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ComputersWindowsResponseMixin. + + + :param uri: The uri of this ComputersWindowsResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComputersWindowsResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ComputersWindowsResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_cn.py b/openapi_client_udm/models/container_cn.py new file mode 100644 index 0000000..cbb5bf1 --- /dev/null +++ b/openapi_client_udm/models/container_cn.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerCn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerCnPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ContainerCn - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ContainerCn. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerCn. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerCn. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerCn. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerCn. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerCn. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerCn. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerCn. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerCn. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerCn. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerCn. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerCn. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerCn. # noqa: E501 + + + :return: The policies of this ContainerCn. # noqa: E501 + :rtype: ContainerCnPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerCn. + + + :param policies: The policies of this ContainerCn. # noqa: E501 + :type policies: ContainerCnPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ContainerCn. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ContainerCn. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ContainerCn. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ContainerCn. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ContainerCn. # noqa: E501 + + + :return: The links of this ContainerCn. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ContainerCn. + + + :param links: The links of this ContainerCn. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ContainerCn. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ContainerCn. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerCn. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ContainerCn. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ContainerCn. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ContainerCn. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ContainerCn. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ContainerCn. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ContainerCn. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ContainerCn. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ContainerCn. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ContainerCn. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ContainerCn. # noqa: E501 + + + :return: The uri of this ContainerCn. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ContainerCn. + + + :param uri: The uri of this ContainerCn. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerCn): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerCn): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_cn_list.py b/openapi_client_udm/models/container_cn_list.py new file mode 100644 index 0000000..9f44774 --- /dev/null +++ b/openapi_client_udm/models/container_cn_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerCnList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ContainerCnListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ContainerCnList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ContainerCnList. # noqa: E501 + + + :return: The embedded of this ContainerCnList. # noqa: E501 + :rtype: ContainerCnListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerCnList. + + + :param embedded: The embedded of this ContainerCnList. # noqa: E501 + :type embedded: ContainerCnListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerCnList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerCnList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_cn_list_embedded.py b/openapi_client_udm/models/container_cn_list_embedded.py new file mode 100644 index 0000000..95b7d65 --- /dev/null +++ b/openapi_client_udm/models/container_cn_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerCnListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ContainerCn]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ContainerCnListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ContainerCnListEmbedded. # noqa: E501 + + + :return: The udmobject of this ContainerCnListEmbedded. # noqa: E501 + :rtype: list[ContainerCn] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ContainerCnListEmbedded. + + + :param udmobject: The udmobject of this ContainerCnListEmbedded. # noqa: E501 + :type udmobject: list[ContainerCn] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerCnListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerCnListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_cn_policies.py b/openapi_client_udm/models/container_cn_policies.py new file mode 100644 index 0000000..0c56085 --- /dev/null +++ b/openapi_client_udm/models/container_cn_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerCnPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """ContainerCnPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this ContainerCnPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this ContainerCnPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this ContainerCnPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this ContainerCnPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this ContainerCnPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this ContainerCnPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this ContainerCnPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this ContainerCnPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this ContainerCnPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this ContainerCnPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this ContainerCnPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this ContainerCnPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this ContainerCnPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this ContainerCnPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this ContainerCnPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this ContainerCnPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this ContainerCnPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this ContainerCnPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this ContainerCnPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this ContainerCnPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this ContainerCnPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this ContainerCnPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this ContainerCnPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this ContainerCnPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this ContainerCnPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this ContainerCnPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this ContainerCnPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this ContainerCnPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this ContainerCnPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this ContainerCnPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this ContainerCnPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this ContainerCnPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this ContainerCnPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this ContainerCnPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this ContainerCnPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this ContainerCnPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this ContainerCnPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this ContainerCnPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this ContainerCnPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this ContainerCnPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this ContainerCnPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this ContainerCnPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this ContainerCnPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this ContainerCnPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this ContainerCnPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this ContainerCnPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this ContainerCnPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this ContainerCnPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this ContainerCnPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this ContainerCnPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this ContainerCnPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this ContainerCnPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this ContainerCnPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this ContainerCnPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this ContainerCnPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this ContainerCnPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this ContainerCnPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this ContainerCnPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this ContainerCnPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this ContainerCnPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this ContainerCnPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this ContainerCnPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this ContainerCnPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this ContainerCnPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this ContainerCnPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this ContainerCnPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this ContainerCnPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this ContainerCnPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this ContainerCnPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this ContainerCnPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this ContainerCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this ContainerCnPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this ContainerCnPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerCnPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerCnPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_cn_request.py b/openapi_client_udm/models/container_cn_request.py new file mode 100644 index 0000000..6bd7407 --- /dev/null +++ b/openapi_client_udm/models/container_cn_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerCnRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerCnPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ContainerCnRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ContainerCnRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerCnRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerCnRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerCnRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerCnRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerCnRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerCnRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerCnRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerCnRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerCnRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerCnRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerCnRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerCnRequest. # noqa: E501 + + + :return: The policies of this ContainerCnRequest. # noqa: E501 + :rtype: ContainerCnPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerCnRequest. + + + :param policies: The policies of this ContainerCnRequest. # noqa: E501 + :type policies: ContainerCnPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ContainerCnRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ContainerCnRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ContainerCnRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ContainerCnRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerCnRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerCnRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_cn_request_patch.py b/openapi_client_udm/models/container_cn_request_patch.py new file mode 100644 index 0000000..78f8ed9 --- /dev/null +++ b/openapi_client_udm/models/container_cn_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerCnRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerCnPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ContainerCnRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ContainerCnRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerCnRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerCnRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerCnRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerCnRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerCnRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerCnRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerCnRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerCnRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerCnRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerCnRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerCnRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerCnRequestPatch. # noqa: E501 + + + :return: The policies of this ContainerCnRequestPatch. # noqa: E501 + :rtype: ContainerCnPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerCnRequestPatch. + + + :param policies: The policies of this ContainerCnRequestPatch. # noqa: E501 + :type policies: ContainerCnPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerCnRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerCnRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_cn_response_mixin.py b/openapi_client_udm/models/container_cn_response_mixin.py new file mode 100644 index 0000000..ba2953a --- /dev/null +++ b/openapi_client_udm/models/container_cn_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerCnResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ContainerCnResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ContainerCnResponseMixin. # noqa: E501 + + + :return: The links of this ContainerCnResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ContainerCnResponseMixin. + + + :param links: The links of this ContainerCnResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ContainerCnResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ContainerCnResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerCnResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ContainerCnResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ContainerCnResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ContainerCnResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ContainerCnResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ContainerCnResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ContainerCnResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ContainerCnResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ContainerCnResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ContainerCnResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ContainerCnResponseMixin. # noqa: E501 + + + :return: The uri of this ContainerCnResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ContainerCnResponseMixin. + + + :param uri: The uri of this ContainerCnResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerCnResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerCnResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_dc.py b/openapi_client_udm/models/container_dc.py new file mode 100644 index 0000000..701e2b1 --- /dev/null +++ b/openapi_client_udm/models/container_dc.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerDc(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ContainerDcOptions', + 'policies': 'ContainerDcPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ContainerDc - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ContainerDc. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerDc. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerDc. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerDc. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerDc. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerDc. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerDc. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerDc. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerDc. # noqa: E501 + + + :return: The options of this ContainerDc. # noqa: E501 + :rtype: ContainerDcOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerDc. + + + :param options: The options of this ContainerDc. # noqa: E501 + :type options: ContainerDcOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerDc. # noqa: E501 + + + :return: The policies of this ContainerDc. # noqa: E501 + :rtype: ContainerDcPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerDc. + + + :param policies: The policies of this ContainerDc. # noqa: E501 + :type policies: ContainerDcPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ContainerDc. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ContainerDc. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ContainerDc. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ContainerDc. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ContainerDc. # noqa: E501 + + + :return: The links of this ContainerDc. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ContainerDc. + + + :param links: The links of this ContainerDc. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ContainerDc. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ContainerDc. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerDc. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ContainerDc. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ContainerDc. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ContainerDc. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ContainerDc. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ContainerDc. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ContainerDc. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ContainerDc. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ContainerDc. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ContainerDc. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ContainerDc. # noqa: E501 + + + :return: The uri of this ContainerDc. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ContainerDc. + + + :param uri: The uri of this ContainerDc. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerDc): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerDc): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_dc_list.py b/openapi_client_udm/models/container_dc_list.py new file mode 100644 index 0000000..b5089af --- /dev/null +++ b/openapi_client_udm/models/container_dc_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerDcList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ContainerDcListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ContainerDcList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ContainerDcList. # noqa: E501 + + + :return: The embedded of this ContainerDcList. # noqa: E501 + :rtype: ContainerDcListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerDcList. + + + :param embedded: The embedded of this ContainerDcList. # noqa: E501 + :type embedded: ContainerDcListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerDcList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerDcList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_dc_list_embedded.py b/openapi_client_udm/models/container_dc_list_embedded.py new file mode 100644 index 0000000..ef106f1 --- /dev/null +++ b/openapi_client_udm/models/container_dc_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerDcListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ContainerDc]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ContainerDcListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ContainerDcListEmbedded. # noqa: E501 + + + :return: The udmobject of this ContainerDcListEmbedded. # noqa: E501 + :rtype: list[ContainerDc] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ContainerDcListEmbedded. + + + :param udmobject: The udmobject of this ContainerDcListEmbedded. # noqa: E501 + :type udmobject: list[ContainerDc] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerDcListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerDcListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_dc_options.py b/openapi_client_udm/models/container_dc_options.py new file mode 100644 index 0000000..e426772 --- /dev/null +++ b/openapi_client_udm/models/container_dc_options.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerDcOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kerberos': 'bool', + 'samba': 'bool' + } + + attribute_map = { + 'kerberos': 'kerberos', + 'samba': 'samba' + } + + def __init__(self, kerberos=True, samba=True, local_vars_configuration=None): # noqa: E501 + """ContainerDcOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._kerberos = None + self._samba = None + self.discriminator = None + + if kerberos is not None: + self.kerberos = kerberos + if samba is not None: + self.samba = samba + + @property + def kerberos(self): + """Gets the kerberos of this ContainerDcOptions. # noqa: E501 + + Kerberos realm # noqa: E501 + + :return: The kerberos of this ContainerDcOptions. # noqa: E501 + :rtype: bool + """ + return self._kerberos + + @kerberos.setter + def kerberos(self, kerberos): + """Sets the kerberos of this ContainerDcOptions. + + Kerberos realm # noqa: E501 + + :param kerberos: The kerberos of this ContainerDcOptions. # noqa: E501 + :type kerberos: bool + """ + + self._kerberos = kerberos + + @property + def samba(self): + """Gets the samba of this ContainerDcOptions. # noqa: E501 + + Samba # noqa: E501 + + :return: The samba of this ContainerDcOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this ContainerDcOptions. + + Samba # noqa: E501 + + :param samba: The samba of this ContainerDcOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerDcOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerDcOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_dc_policies.py b/openapi_client_udm/models/container_dc_policies.py new file mode 100644 index 0000000..41ff5df --- /dev/null +++ b/openapi_client_udm/models/container_dc_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerDcPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """ContainerDcPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this ContainerDcPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this ContainerDcPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this ContainerDcPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this ContainerDcPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this ContainerDcPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this ContainerDcPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this ContainerDcPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this ContainerDcPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this ContainerDcPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this ContainerDcPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this ContainerDcPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this ContainerDcPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this ContainerDcPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this ContainerDcPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this ContainerDcPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this ContainerDcPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this ContainerDcPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this ContainerDcPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this ContainerDcPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this ContainerDcPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this ContainerDcPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this ContainerDcPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this ContainerDcPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this ContainerDcPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this ContainerDcPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this ContainerDcPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this ContainerDcPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this ContainerDcPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this ContainerDcPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this ContainerDcPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this ContainerDcPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this ContainerDcPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this ContainerDcPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this ContainerDcPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this ContainerDcPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this ContainerDcPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this ContainerDcPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this ContainerDcPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this ContainerDcPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this ContainerDcPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this ContainerDcPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this ContainerDcPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this ContainerDcPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this ContainerDcPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this ContainerDcPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this ContainerDcPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this ContainerDcPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this ContainerDcPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this ContainerDcPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this ContainerDcPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this ContainerDcPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this ContainerDcPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this ContainerDcPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this ContainerDcPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this ContainerDcPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this ContainerDcPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this ContainerDcPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this ContainerDcPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this ContainerDcPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this ContainerDcPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this ContainerDcPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this ContainerDcPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this ContainerDcPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this ContainerDcPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this ContainerDcPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this ContainerDcPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this ContainerDcPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this ContainerDcPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this ContainerDcPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this ContainerDcPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this ContainerDcPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this ContainerDcPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this ContainerDcPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerDcPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerDcPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_dc_request.py b/openapi_client_udm/models/container_dc_request.py new file mode 100644 index 0000000..8fbeeca --- /dev/null +++ b/openapi_client_udm/models/container_dc_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerDcRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ContainerDcOptions', + 'policies': 'ContainerDcPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ContainerDcRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ContainerDcRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerDcRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerDcRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerDcRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerDcRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerDcRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerDcRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerDcRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerDcRequest. # noqa: E501 + + + :return: The options of this ContainerDcRequest. # noqa: E501 + :rtype: ContainerDcOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerDcRequest. + + + :param options: The options of this ContainerDcRequest. # noqa: E501 + :type options: ContainerDcOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerDcRequest. # noqa: E501 + + + :return: The policies of this ContainerDcRequest. # noqa: E501 + :rtype: ContainerDcPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerDcRequest. + + + :param policies: The policies of this ContainerDcRequest. # noqa: E501 + :type policies: ContainerDcPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ContainerDcRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ContainerDcRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ContainerDcRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ContainerDcRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerDcRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerDcRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_dc_request_patch.py b/openapi_client_udm/models/container_dc_request_patch.py new file mode 100644 index 0000000..88d6c5b --- /dev/null +++ b/openapi_client_udm/models/container_dc_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerDcRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'ContainerDcOptions', + 'policies': 'ContainerDcPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ContainerDcRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ContainerDcRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerDcRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerDcRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerDcRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerDcRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerDcRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerDcRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerDcRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerDcRequestPatch. # noqa: E501 + + + :return: The options of this ContainerDcRequestPatch. # noqa: E501 + :rtype: ContainerDcOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerDcRequestPatch. + + + :param options: The options of this ContainerDcRequestPatch. # noqa: E501 + :type options: ContainerDcOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerDcRequestPatch. # noqa: E501 + + + :return: The policies of this ContainerDcRequestPatch. # noqa: E501 + :rtype: ContainerDcPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerDcRequestPatch. + + + :param policies: The policies of this ContainerDcRequestPatch. # noqa: E501 + :type policies: ContainerDcPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerDcRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerDcRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_dc_response_mixin.py b/openapi_client_udm/models/container_dc_response_mixin.py new file mode 100644 index 0000000..43982e7 --- /dev/null +++ b/openapi_client_udm/models/container_dc_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerDcResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ContainerDcResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ContainerDcResponseMixin. # noqa: E501 + + + :return: The links of this ContainerDcResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ContainerDcResponseMixin. + + + :param links: The links of this ContainerDcResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ContainerDcResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ContainerDcResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerDcResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ContainerDcResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ContainerDcResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ContainerDcResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ContainerDcResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ContainerDcResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ContainerDcResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ContainerDcResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ContainerDcResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ContainerDcResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ContainerDcResponseMixin. # noqa: E501 + + + :return: The uri of this ContainerDcResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ContainerDcResponseMixin. + + + :param uri: The uri of this ContainerDcResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerDcResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerDcResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_msgpo.py b/openapi_client_udm/models/container_msgpo.py new file mode 100644 index 0000000..c3beec0 --- /dev/null +++ b/openapi_client_udm/models/container_msgpo.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerMsgpo(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerMsgpoPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ContainerMsgpo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ContainerMsgpo. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerMsgpo. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerMsgpo. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerMsgpo. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerMsgpo. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerMsgpo. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerMsgpo. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerMsgpo. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerMsgpo. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerMsgpo. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerMsgpo. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerMsgpo. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerMsgpo. # noqa: E501 + + + :return: The policies of this ContainerMsgpo. # noqa: E501 + :rtype: ContainerMsgpoPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerMsgpo. + + + :param policies: The policies of this ContainerMsgpo. # noqa: E501 + :type policies: ContainerMsgpoPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ContainerMsgpo. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ContainerMsgpo. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ContainerMsgpo. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ContainerMsgpo. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ContainerMsgpo. # noqa: E501 + + + :return: The links of this ContainerMsgpo. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ContainerMsgpo. + + + :param links: The links of this ContainerMsgpo. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ContainerMsgpo. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ContainerMsgpo. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerMsgpo. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ContainerMsgpo. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ContainerMsgpo. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ContainerMsgpo. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ContainerMsgpo. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ContainerMsgpo. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ContainerMsgpo. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ContainerMsgpo. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ContainerMsgpo. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ContainerMsgpo. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ContainerMsgpo. # noqa: E501 + + + :return: The uri of this ContainerMsgpo. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ContainerMsgpo. + + + :param uri: The uri of this ContainerMsgpo. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerMsgpo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerMsgpo): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_msgpo_list.py b/openapi_client_udm/models/container_msgpo_list.py new file mode 100644 index 0000000..6ea374f --- /dev/null +++ b/openapi_client_udm/models/container_msgpo_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerMsgpoList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ContainerMsgpoListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ContainerMsgpoList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ContainerMsgpoList. # noqa: E501 + + + :return: The embedded of this ContainerMsgpoList. # noqa: E501 + :rtype: ContainerMsgpoListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerMsgpoList. + + + :param embedded: The embedded of this ContainerMsgpoList. # noqa: E501 + :type embedded: ContainerMsgpoListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerMsgpoList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerMsgpoList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_msgpo_list_embedded.py b/openapi_client_udm/models/container_msgpo_list_embedded.py new file mode 100644 index 0000000..b51546d --- /dev/null +++ b/openapi_client_udm/models/container_msgpo_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerMsgpoListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ContainerMsgpo]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ContainerMsgpoListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ContainerMsgpoListEmbedded. # noqa: E501 + + + :return: The udmobject of this ContainerMsgpoListEmbedded. # noqa: E501 + :rtype: list[ContainerMsgpo] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ContainerMsgpoListEmbedded. + + + :param udmobject: The udmobject of this ContainerMsgpoListEmbedded. # noqa: E501 + :type udmobject: list[ContainerMsgpo] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerMsgpoListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerMsgpoListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_msgpo_policies.py b/openapi_client_udm/models/container_msgpo_policies.py new file mode 100644 index 0000000..286e786 --- /dev/null +++ b/openapi_client_udm/models/container_msgpo_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerMsgpoPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """ContainerMsgpoPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this ContainerMsgpoPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this ContainerMsgpoPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this ContainerMsgpoPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this ContainerMsgpoPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this ContainerMsgpoPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this ContainerMsgpoPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this ContainerMsgpoPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this ContainerMsgpoPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this ContainerMsgpoPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this ContainerMsgpoPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this ContainerMsgpoPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this ContainerMsgpoPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this ContainerMsgpoPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this ContainerMsgpoPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this ContainerMsgpoPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this ContainerMsgpoPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this ContainerMsgpoPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this ContainerMsgpoPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this ContainerMsgpoPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this ContainerMsgpoPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this ContainerMsgpoPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this ContainerMsgpoPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this ContainerMsgpoPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this ContainerMsgpoPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this ContainerMsgpoPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this ContainerMsgpoPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this ContainerMsgpoPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerMsgpoPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerMsgpoPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_msgpo_request.py b/openapi_client_udm/models/container_msgpo_request.py new file mode 100644 index 0000000..b84617e --- /dev/null +++ b/openapi_client_udm/models/container_msgpo_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerMsgpoRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerMsgpoPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ContainerMsgpoRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ContainerMsgpoRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerMsgpoRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerMsgpoRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerMsgpoRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerMsgpoRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerMsgpoRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerMsgpoRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerMsgpoRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerMsgpoRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerMsgpoRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerMsgpoRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerMsgpoRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerMsgpoRequest. # noqa: E501 + + + :return: The policies of this ContainerMsgpoRequest. # noqa: E501 + :rtype: ContainerMsgpoPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerMsgpoRequest. + + + :param policies: The policies of this ContainerMsgpoRequest. # noqa: E501 + :type policies: ContainerMsgpoPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ContainerMsgpoRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ContainerMsgpoRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ContainerMsgpoRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ContainerMsgpoRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerMsgpoRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerMsgpoRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_msgpo_request_patch.py b/openapi_client_udm/models/container_msgpo_request_patch.py new file mode 100644 index 0000000..78755f4 --- /dev/null +++ b/openapi_client_udm/models/container_msgpo_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerMsgpoRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerMsgpoPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ContainerMsgpoRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ContainerMsgpoRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerMsgpoRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerMsgpoRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerMsgpoRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerMsgpoRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerMsgpoRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerMsgpoRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerMsgpoRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerMsgpoRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerMsgpoRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerMsgpoRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerMsgpoRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerMsgpoRequestPatch. # noqa: E501 + + + :return: The policies of this ContainerMsgpoRequestPatch. # noqa: E501 + :rtype: ContainerMsgpoPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerMsgpoRequestPatch. + + + :param policies: The policies of this ContainerMsgpoRequestPatch. # noqa: E501 + :type policies: ContainerMsgpoPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerMsgpoRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerMsgpoRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_msgpo_response_mixin.py b/openapi_client_udm/models/container_msgpo_response_mixin.py new file mode 100644 index 0000000..2bae6df --- /dev/null +++ b/openapi_client_udm/models/container_msgpo_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerMsgpoResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ContainerMsgpoResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ContainerMsgpoResponseMixin. # noqa: E501 + + + :return: The links of this ContainerMsgpoResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ContainerMsgpoResponseMixin. + + + :param links: The links of this ContainerMsgpoResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ContainerMsgpoResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ContainerMsgpoResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerMsgpoResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ContainerMsgpoResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ContainerMsgpoResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ContainerMsgpoResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ContainerMsgpoResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ContainerMsgpoResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ContainerMsgpoResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ContainerMsgpoResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ContainerMsgpoResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ContainerMsgpoResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ContainerMsgpoResponseMixin. # noqa: E501 + + + :return: The uri of this ContainerMsgpoResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ContainerMsgpoResponseMixin. + + + :param uri: The uri of this ContainerMsgpoResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerMsgpoResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerMsgpoResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_ou.py b/openapi_client_udm/models/container_ou.py new file mode 100644 index 0000000..bfba4e8 --- /dev/null +++ b/openapi_client_udm/models/container_ou.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerOu(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerOuPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ContainerOu - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this ContainerOu. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerOu. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerOu. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerOu. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerOu. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerOu. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerOu. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerOu. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerOu. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerOu. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerOu. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerOu. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerOu. # noqa: E501 + + + :return: The policies of this ContainerOu. # noqa: E501 + :rtype: ContainerOuPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerOu. + + + :param policies: The policies of this ContainerOu. # noqa: E501 + :type policies: ContainerOuPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ContainerOu. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ContainerOu. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ContainerOu. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ContainerOu. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this ContainerOu. # noqa: E501 + + + :return: The links of this ContainerOu. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ContainerOu. + + + :param links: The links of this ContainerOu. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ContainerOu. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ContainerOu. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerOu. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ContainerOu. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ContainerOu. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ContainerOu. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ContainerOu. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ContainerOu. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ContainerOu. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ContainerOu. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ContainerOu. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ContainerOu. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ContainerOu. # noqa: E501 + + + :return: The uri of this ContainerOu. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ContainerOu. + + + :param uri: The uri of this ContainerOu. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerOu): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerOu): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_ou_list.py b/openapi_client_udm/models/container_ou_list.py new file mode 100644 index 0000000..9dc0381 --- /dev/null +++ b/openapi_client_udm/models/container_ou_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerOuList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'ContainerOuListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """ContainerOuList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this ContainerOuList. # noqa: E501 + + + :return: The embedded of this ContainerOuList. # noqa: E501 + :rtype: ContainerOuListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerOuList. + + + :param embedded: The embedded of this ContainerOuList. # noqa: E501 + :type embedded: ContainerOuListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerOuList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerOuList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_ou_list_embedded.py b/openapi_client_udm/models/container_ou_list_embedded.py new file mode 100644 index 0000000..b1f0df5 --- /dev/null +++ b/openapi_client_udm/models/container_ou_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerOuListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[ContainerOu]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """ContainerOuListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this ContainerOuListEmbedded. # noqa: E501 + + + :return: The udmobject of this ContainerOuListEmbedded. # noqa: E501 + :rtype: list[ContainerOu] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this ContainerOuListEmbedded. + + + :param udmobject: The udmobject of this ContainerOuListEmbedded. # noqa: E501 + :type udmobject: list[ContainerOu] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerOuListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerOuListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_ou_policies.py b/openapi_client_udm/models/container_ou_policies.py new file mode 100644 index 0000000..5c486f7 --- /dev/null +++ b/openapi_client_udm/models/container_ou_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerOuPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """ContainerOuPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this ContainerOuPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this ContainerOuPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this ContainerOuPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this ContainerOuPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this ContainerOuPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this ContainerOuPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this ContainerOuPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this ContainerOuPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this ContainerOuPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this ContainerOuPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this ContainerOuPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this ContainerOuPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this ContainerOuPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this ContainerOuPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this ContainerOuPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this ContainerOuPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this ContainerOuPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this ContainerOuPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this ContainerOuPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this ContainerOuPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this ContainerOuPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this ContainerOuPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this ContainerOuPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this ContainerOuPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this ContainerOuPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this ContainerOuPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this ContainerOuPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this ContainerOuPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this ContainerOuPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this ContainerOuPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this ContainerOuPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this ContainerOuPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this ContainerOuPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this ContainerOuPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this ContainerOuPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this ContainerOuPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this ContainerOuPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this ContainerOuPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this ContainerOuPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this ContainerOuPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this ContainerOuPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this ContainerOuPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this ContainerOuPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this ContainerOuPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this ContainerOuPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this ContainerOuPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this ContainerOuPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this ContainerOuPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this ContainerOuPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this ContainerOuPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this ContainerOuPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this ContainerOuPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this ContainerOuPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this ContainerOuPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this ContainerOuPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this ContainerOuPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this ContainerOuPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this ContainerOuPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this ContainerOuPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this ContainerOuPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this ContainerOuPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this ContainerOuPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this ContainerOuPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this ContainerOuPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this ContainerOuPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this ContainerOuPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this ContainerOuPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this ContainerOuPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this ContainerOuPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this ContainerOuPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this ContainerOuPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this ContainerOuPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this ContainerOuPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerOuPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerOuPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_ou_request.py b/openapi_client_udm/models/container_ou_request.py new file mode 100644 index 0000000..8f0fd96 --- /dev/null +++ b/openapi_client_udm/models/container_ou_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerOuRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerOuPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """ContainerOuRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this ContainerOuRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerOuRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerOuRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerOuRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerOuRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerOuRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerOuRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerOuRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerOuRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerOuRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerOuRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerOuRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerOuRequest. # noqa: E501 + + + :return: The policies of this ContainerOuRequest. # noqa: E501 + :rtype: ContainerOuPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerOuRequest. + + + :param policies: The policies of this ContainerOuRequest. # noqa: E501 + :type policies: ContainerOuPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this ContainerOuRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this ContainerOuRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this ContainerOuRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this ContainerOuRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerOuRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerOuRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_ou_request_patch.py b/openapi_client_udm/models/container_ou_request_patch.py new file mode 100644 index 0000000..3c72564 --- /dev/null +++ b/openapi_client_udm/models/container_ou_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerOuRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'ContainerOuPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """ContainerOuRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this ContainerOuRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this ContainerOuRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this ContainerOuRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this ContainerOuRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this ContainerOuRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this ContainerOuRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ContainerOuRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this ContainerOuRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this ContainerOuRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this ContainerOuRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this ContainerOuRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this ContainerOuRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this ContainerOuRequestPatch. # noqa: E501 + + + :return: The policies of this ContainerOuRequestPatch. # noqa: E501 + :rtype: ContainerOuPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ContainerOuRequestPatch. + + + :param policies: The policies of this ContainerOuRequestPatch. # noqa: E501 + :type policies: ContainerOuPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerOuRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerOuRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/container_ou_response_mixin.py b/openapi_client_udm/models/container_ou_response_mixin.py new file mode 100644 index 0000000..0fada21 --- /dev/null +++ b/openapi_client_udm/models/container_ou_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class ContainerOuResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """ContainerOuResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this ContainerOuResponseMixin. # noqa: E501 + + + :return: The links of this ContainerOuResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this ContainerOuResponseMixin. + + + :param links: The links of this ContainerOuResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this ContainerOuResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this ContainerOuResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this ContainerOuResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this ContainerOuResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this ContainerOuResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this ContainerOuResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this ContainerOuResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this ContainerOuResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this ContainerOuResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this ContainerOuResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this ContainerOuResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this ContainerOuResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this ContainerOuResponseMixin. # noqa: E501 + + + :return: The uri of this ContainerOuResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this ContainerOuResponseMixin. + + + :param uri: The uri of this ContainerOuResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ContainerOuResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ContainerOuResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_dhcp.py b/openapi_client_udm/models/dhcp_dhcp.py new file mode 100644 index 0000000..3894613 --- /dev/null +++ b/openapi_client_udm/models/dhcp_dhcp.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpDhcp(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpDhcp - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DhcpDhcp. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpDhcp. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpDhcp. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpDhcp. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpDhcp. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpDhcp. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpDhcp. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpDhcp. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpDhcp. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DhcpDhcp. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpDhcp. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DhcpDhcp. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpDhcp. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DhcpDhcp. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpDhcp. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DhcpDhcp. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DhcpDhcp. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpDhcp. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpDhcp. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpDhcp. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DhcpDhcp. # noqa: E501 + + + :return: The links of this DhcpDhcp. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpDhcp. + + + :param links: The links of this DhcpDhcp. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpDhcp. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpDhcp. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpDhcp. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpDhcp. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpDhcp. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpDhcp. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpDhcp. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpDhcp. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpDhcp. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpDhcp. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpDhcp. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpDhcp. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpDhcp. # noqa: E501 + + + :return: The uri of this DhcpDhcp. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpDhcp. + + + :param uri: The uri of this DhcpDhcp. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpDhcp): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpDhcp): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_dhcp_list.py b/openapi_client_udm/models/dhcp_dhcp_list.py new file mode 100644 index 0000000..67cb5b5 --- /dev/null +++ b/openapi_client_udm/models/dhcp_dhcp_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpDhcpList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DhcpDhcpListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DhcpDhcpList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DhcpDhcpList. # noqa: E501 + + + :return: The embedded of this DhcpDhcpList. # noqa: E501 + :rtype: DhcpDhcpListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpDhcpList. + + + :param embedded: The embedded of this DhcpDhcpList. # noqa: E501 + :type embedded: DhcpDhcpListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpDhcpList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpDhcpList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_dhcp_list_embedded.py b/openapi_client_udm/models/dhcp_dhcp_list_embedded.py new file mode 100644 index 0000000..d451df3 --- /dev/null +++ b/openapi_client_udm/models/dhcp_dhcp_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpDhcpListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DhcpDhcp]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DhcpDhcpListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DhcpDhcpListEmbedded. # noqa: E501 + + + :return: The udmobject of this DhcpDhcpListEmbedded. # noqa: E501 + :rtype: list[DhcpDhcp] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DhcpDhcpListEmbedded. + + + :param udmobject: The udmobject of this DhcpDhcpListEmbedded. # noqa: E501 + :type udmobject: list[DhcpDhcp] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpDhcpListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpDhcpListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_dhcp_request.py b/openapi_client_udm/models/dhcp_dhcp_request.py new file mode 100644 index 0000000..f4b46a5 --- /dev/null +++ b/openapi_client_udm/models/dhcp_dhcp_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpDhcpRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """DhcpDhcpRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DhcpDhcpRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpDhcpRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpDhcpRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpDhcpRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpDhcpRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpDhcpRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpDhcpRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpDhcpRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpDhcpRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DhcpDhcpRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpDhcpRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DhcpDhcpRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpDhcpRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DhcpDhcpRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpDhcpRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DhcpDhcpRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DhcpDhcpRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpDhcpRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpDhcpRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpDhcpRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpDhcpRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpDhcpRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_dhcp_request_patch.py b/openapi_client_udm/models/dhcp_dhcp_request_patch.py new file mode 100644 index 0000000..e2d6a4c --- /dev/null +++ b/openapi_client_udm/models/dhcp_dhcp_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpDhcpRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """DhcpDhcpRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this DhcpDhcpRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpDhcpRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpDhcpRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpDhcpRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpDhcpRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpDhcpRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpDhcpRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpDhcpRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpDhcpRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DhcpDhcpRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpDhcpRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DhcpDhcpRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpDhcpRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DhcpDhcpRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpDhcpRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DhcpDhcpRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpDhcpRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpDhcpRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_dhcp_response_mixin.py b/openapi_client_udm/models/dhcp_dhcp_response_mixin.py new file mode 100644 index 0000000..33049f4 --- /dev/null +++ b/openapi_client_udm/models/dhcp_dhcp_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpDhcpResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpDhcpResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DhcpDhcpResponseMixin. # noqa: E501 + + + :return: The links of this DhcpDhcpResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpDhcpResponseMixin. + + + :param links: The links of this DhcpDhcpResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpDhcpResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpDhcpResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpDhcpResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpDhcpResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpDhcpResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpDhcpResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpDhcpResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpDhcpResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpDhcpResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpDhcpResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpDhcpResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpDhcpResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpDhcpResponseMixin. # noqa: E501 + + + :return: The uri of this DhcpDhcpResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpDhcpResponseMixin. + + + :param uri: The uri of this DhcpDhcpResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpDhcpResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpDhcpResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_host.py b/openapi_client_udm/models/dhcp_host.py new file mode 100644 index 0000000..9f8367a --- /dev/null +++ b/openapi_client_udm/models/dhcp_host.py @@ -0,0 +1,426 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpHost(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpHostOptions', + 'policies': 'DhcpHostPolicies', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpHost - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DhcpHost. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpHost. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpHost. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpHost. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpHost. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpHost. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpHost. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpHost. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpHost. # noqa: E501 + + + :return: The options of this DhcpHost. # noqa: E501 + :rtype: DhcpHostOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpHost. + + + :param options: The options of this DhcpHost. # noqa: E501 + :type options: DhcpHostOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpHost. # noqa: E501 + + + :return: The policies of this DhcpHost. # noqa: E501 + :rtype: DhcpHostPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpHost. + + + :param policies: The policies of this DhcpHost. # noqa: E501 + :type policies: DhcpHostPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpHost. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpHost. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpHost. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpHost. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpHost. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpHost. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpHost. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpHost. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DhcpHost. # noqa: E501 + + + :return: The links of this DhcpHost. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpHost. + + + :param links: The links of this DhcpHost. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpHost. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpHost. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpHost. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpHost. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpHost. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpHost. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpHost. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpHost. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpHost. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpHost. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpHost. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpHost. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpHost. # noqa: E501 + + + :return: The uri of this DhcpHost. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpHost. + + + :param uri: The uri of this DhcpHost. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpHost): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpHost): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_host_list.py b/openapi_client_udm/models/dhcp_host_list.py new file mode 100644 index 0000000..25d4141 --- /dev/null +++ b/openapi_client_udm/models/dhcp_host_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpHostList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DhcpHostListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DhcpHostList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DhcpHostList. # noqa: E501 + + + :return: The embedded of this DhcpHostList. # noqa: E501 + :rtype: DhcpHostListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpHostList. + + + :param embedded: The embedded of this DhcpHostList. # noqa: E501 + :type embedded: DhcpHostListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpHostList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpHostList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_host_list_embedded.py b/openapi_client_udm/models/dhcp_host_list_embedded.py new file mode 100644 index 0000000..47b3ea5 --- /dev/null +++ b/openapi_client_udm/models/dhcp_host_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpHostListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DhcpHost]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DhcpHostListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DhcpHostListEmbedded. # noqa: E501 + + + :return: The udmobject of this DhcpHostListEmbedded. # noqa: E501 + :rtype: list[DhcpHost] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DhcpHostListEmbedded. + + + :param udmobject: The udmobject of this DhcpHostListEmbedded. # noqa: E501 + :type udmobject: list[DhcpHost] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpHostListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpHostListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_host_options.py b/openapi_client_udm/models/dhcp_host_options.py new file mode 100644 index 0000000..99da38f --- /dev/null +++ b/openapi_client_udm/models/dhcp_host_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpHostOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'options': 'bool' + } + + attribute_map = { + 'options': 'options' + } + + def __init__(self, options=False, local_vars_configuration=None): # noqa: E501 + """DhcpHostOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._options = None + self.discriminator = None + + if options is not None: + self.options = options + + @property + def options(self): + """Gets the options of this DhcpHostOptions. # noqa: E501 + + Allow custom DHCP options # noqa: E501 + + :return: The options of this DhcpHostOptions. # noqa: E501 + :rtype: bool + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpHostOptions. + + Allow custom DHCP options # noqa: E501 + + :param options: The options of this DhcpHostOptions. # noqa: E501 + :type options: bool + """ + + self._options = options + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpHostOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpHostOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_host_policies.py b/openapi_client_udm/models/dhcp_host_policies.py new file mode 100644 index 0000000..c55d866 --- /dev/null +++ b/openapi_client_udm/models/dhcp_host_policies.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpHostPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_dhcp_dns': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]' + } + + attribute_map = { + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime' + } + + def __init__(self, policies_dhcp_dns=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_dhcp_statements=None, policies_dhcp_netbios=None, policies_dhcp_routing=None, policies_dhcp_leasetime=None, local_vars_configuration=None): # noqa: E501 + """DhcpHostPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_dhcp_dns = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_dhcp_statements = None + self._policies_dhcp_netbios = None + self._policies_dhcp_routing = None + self._policies_dhcp_leasetime = None + self.discriminator = None + + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this DhcpHostPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this DhcpHostPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this DhcpHostPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this DhcpHostPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this DhcpHostPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this DhcpHostPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this DhcpHostPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this DhcpHostPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this DhcpHostPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this DhcpHostPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this DhcpHostPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this DhcpHostPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this DhcpHostPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this DhcpHostPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this DhcpHostPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this DhcpHostPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this DhcpHostPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this DhcpHostPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this DhcpHostPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this DhcpHostPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this DhcpHostPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this DhcpHostPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this DhcpHostPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this DhcpHostPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this DhcpHostPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this DhcpHostPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this DhcpHostPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this DhcpHostPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this DhcpHostPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this DhcpHostPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this DhcpHostPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this DhcpHostPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpHostPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpHostPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_host_request.py b/openapi_client_udm/models/dhcp_host_request.py new file mode 100644 index 0000000..3e6eff8 --- /dev/null +++ b/openapi_client_udm/models/dhcp_host_request.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpHostRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpHostOptions', + 'policies': 'DhcpHostPolicies', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DhcpHostRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DhcpHostRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpHostRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpHostRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpHostRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpHostRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpHostRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpHostRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpHostRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpHostRequest. # noqa: E501 + + + :return: The options of this DhcpHostRequest. # noqa: E501 + :rtype: DhcpHostOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpHostRequest. + + + :param options: The options of this DhcpHostRequest. # noqa: E501 + :type options: DhcpHostOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpHostRequest. # noqa: E501 + + + :return: The policies of this DhcpHostRequest. # noqa: E501 + :rtype: DhcpHostPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpHostRequest. + + + :param policies: The policies of this DhcpHostRequest. # noqa: E501 + :type policies: DhcpHostPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpHostRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpHostRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpHostRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpHostRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpHostRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpHostRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpHostRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpHostRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpHostRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpHostRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_host_request_patch.py b/openapi_client_udm/models/dhcp_host_request_patch.py new file mode 100644 index 0000000..b3ca71f --- /dev/null +++ b/openapi_client_udm/models/dhcp_host_request_patch.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpHostRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpHostOptions', + 'policies': 'DhcpHostPolicies', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DhcpHostRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DhcpHostRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpHostRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpHostRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpHostRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpHostRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpHostRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpHostRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpHostRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpHostRequestPatch. # noqa: E501 + + + :return: The options of this DhcpHostRequestPatch. # noqa: E501 + :rtype: DhcpHostOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpHostRequestPatch. + + + :param options: The options of this DhcpHostRequestPatch. # noqa: E501 + :type options: DhcpHostOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpHostRequestPatch. # noqa: E501 + + + :return: The policies of this DhcpHostRequestPatch. # noqa: E501 + :rtype: DhcpHostPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpHostRequestPatch. + + + :param policies: The policies of this DhcpHostRequestPatch. # noqa: E501 + :type policies: DhcpHostPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpHostRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpHostRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpHostRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpHostRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpHostRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpHostRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_host_response_mixin.py b/openapi_client_udm/models/dhcp_host_response_mixin.py new file mode 100644 index 0000000..bb9ab06 --- /dev/null +++ b/openapi_client_udm/models/dhcp_host_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpHostResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpHostResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DhcpHostResponseMixin. # noqa: E501 + + + :return: The links of this DhcpHostResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpHostResponseMixin. + + + :param links: The links of this DhcpHostResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpHostResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpHostResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpHostResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpHostResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpHostResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpHostResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpHostResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpHostResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpHostResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpHostResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpHostResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpHostResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpHostResponseMixin. # noqa: E501 + + + :return: The uri of this DhcpHostResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpHostResponseMixin. + + + :param uri: The uri of this DhcpHostResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpHostResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpHostResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_pool.py b/openapi_client_udm/models/dhcp_pool.py new file mode 100644 index 0000000..a31d6e8 --- /dev/null +++ b/openapi_client_udm/models/dhcp_pool.py @@ -0,0 +1,426 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpPool(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpPoolOptions', + 'policies': 'DhcpPoolPolicies', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpPool - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DhcpPool. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpPool. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpPool. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpPool. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpPool. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpPool. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpPool. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpPool. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpPool. # noqa: E501 + + + :return: The options of this DhcpPool. # noqa: E501 + :rtype: DhcpPoolOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpPool. + + + :param options: The options of this DhcpPool. # noqa: E501 + :type options: DhcpPoolOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpPool. # noqa: E501 + + + :return: The policies of this DhcpPool. # noqa: E501 + :rtype: DhcpPoolPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpPool. + + + :param policies: The policies of this DhcpPool. # noqa: E501 + :type policies: DhcpPoolPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpPool. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpPool. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpPool. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpPool. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpPool. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpPool. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpPool. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpPool. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DhcpPool. # noqa: E501 + + + :return: The links of this DhcpPool. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpPool. + + + :param links: The links of this DhcpPool. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpPool. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpPool. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpPool. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpPool. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpPool. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpPool. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpPool. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpPool. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpPool. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpPool. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpPool. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpPool. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpPool. # noqa: E501 + + + :return: The uri of this DhcpPool. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpPool. + + + :param uri: The uri of this DhcpPool. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpPool): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpPool): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_pool_list.py b/openapi_client_udm/models/dhcp_pool_list.py new file mode 100644 index 0000000..8e90c7b --- /dev/null +++ b/openapi_client_udm/models/dhcp_pool_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpPoolList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DhcpPoolListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DhcpPoolList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DhcpPoolList. # noqa: E501 + + + :return: The embedded of this DhcpPoolList. # noqa: E501 + :rtype: DhcpPoolListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpPoolList. + + + :param embedded: The embedded of this DhcpPoolList. # noqa: E501 + :type embedded: DhcpPoolListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpPoolList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpPoolList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_pool_list_embedded.py b/openapi_client_udm/models/dhcp_pool_list_embedded.py new file mode 100644 index 0000000..f1acf94 --- /dev/null +++ b/openapi_client_udm/models/dhcp_pool_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpPoolListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DhcpPool]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DhcpPoolListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DhcpPoolListEmbedded. # noqa: E501 + + + :return: The udmobject of this DhcpPoolListEmbedded. # noqa: E501 + :rtype: list[DhcpPool] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DhcpPoolListEmbedded. + + + :param udmobject: The udmobject of this DhcpPoolListEmbedded. # noqa: E501 + :type udmobject: list[DhcpPool] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpPoolListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpPoolListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_pool_options.py b/openapi_client_udm/models/dhcp_pool_options.py new file mode 100644 index 0000000..57b7596 --- /dev/null +++ b/openapi_client_udm/models/dhcp_pool_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpPoolOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'options': 'bool' + } + + attribute_map = { + 'options': 'options' + } + + def __init__(self, options=False, local_vars_configuration=None): # noqa: E501 + """DhcpPoolOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._options = None + self.discriminator = None + + if options is not None: + self.options = options + + @property + def options(self): + """Gets the options of this DhcpPoolOptions. # noqa: E501 + + Allow custom DHCP options # noqa: E501 + + :return: The options of this DhcpPoolOptions. # noqa: E501 + :rtype: bool + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpPoolOptions. + + Allow custom DHCP options # noqa: E501 + + :param options: The options of this DhcpPoolOptions. # noqa: E501 + :type options: bool + """ + + self._options = options + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpPoolOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpPoolOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_pool_policies.py b/openapi_client_udm/models/dhcp_pool_policies.py new file mode 100644 index 0000000..a827d86 --- /dev/null +++ b/openapi_client_udm/models/dhcp_pool_policies.py @@ -0,0 +1,343 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpPoolPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_dhcp_dns': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]' + } + + attribute_map = { + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime' + } + + def __init__(self, policies_dhcp_dns=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_dhcp_statements=None, policies_dhcp_netbios=None, policies_dhcp_routing=None, policies_dhcp_leasetime=None, local_vars_configuration=None): # noqa: E501 + """DhcpPoolPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_dhcp_dns = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_dhcp_statements = None + self._policies_dhcp_netbios = None + self._policies_dhcp_routing = None + self._policies_dhcp_leasetime = None + self.discriminator = None + + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this DhcpPoolPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this DhcpPoolPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this DhcpPoolPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this DhcpPoolPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this DhcpPoolPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this DhcpPoolPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this DhcpPoolPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this DhcpPoolPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this DhcpPoolPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this DhcpPoolPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this DhcpPoolPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this DhcpPoolPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this DhcpPoolPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this DhcpPoolPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this DhcpPoolPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this DhcpPoolPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this DhcpPoolPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this DhcpPoolPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this DhcpPoolPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this DhcpPoolPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this DhcpPoolPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this DhcpPoolPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this DhcpPoolPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this DhcpPoolPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this DhcpPoolPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this DhcpPoolPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this DhcpPoolPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this DhcpPoolPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpPoolPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpPoolPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_pool_request.py b/openapi_client_udm/models/dhcp_pool_request.py new file mode 100644 index 0000000..cabcd4e --- /dev/null +++ b/openapi_client_udm/models/dhcp_pool_request.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpPoolRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpPoolOptions', + 'policies': 'DhcpPoolPolicies', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DhcpPoolRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DhcpPoolRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpPoolRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpPoolRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpPoolRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpPoolRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpPoolRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpPoolRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpPoolRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpPoolRequest. # noqa: E501 + + + :return: The options of this DhcpPoolRequest. # noqa: E501 + :rtype: DhcpPoolOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpPoolRequest. + + + :param options: The options of this DhcpPoolRequest. # noqa: E501 + :type options: DhcpPoolOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpPoolRequest. # noqa: E501 + + + :return: The policies of this DhcpPoolRequest. # noqa: E501 + :rtype: DhcpPoolPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpPoolRequest. + + + :param policies: The policies of this DhcpPoolRequest. # noqa: E501 + :type policies: DhcpPoolPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpPoolRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpPoolRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpPoolRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpPoolRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpPoolRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpPoolRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpPoolRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpPoolRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpPoolRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpPoolRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_pool_request_patch.py b/openapi_client_udm/models/dhcp_pool_request_patch.py new file mode 100644 index 0000000..db1942d --- /dev/null +++ b/openapi_client_udm/models/dhcp_pool_request_patch.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpPoolRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpPoolOptions', + 'policies': 'DhcpPoolPolicies', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DhcpPoolRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DhcpPoolRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpPoolRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpPoolRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpPoolRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpPoolRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpPoolRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpPoolRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpPoolRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpPoolRequestPatch. # noqa: E501 + + + :return: The options of this DhcpPoolRequestPatch. # noqa: E501 + :rtype: DhcpPoolOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpPoolRequestPatch. + + + :param options: The options of this DhcpPoolRequestPatch. # noqa: E501 + :type options: DhcpPoolOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpPoolRequestPatch. # noqa: E501 + + + :return: The policies of this DhcpPoolRequestPatch. # noqa: E501 + :rtype: DhcpPoolPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpPoolRequestPatch. + + + :param policies: The policies of this DhcpPoolRequestPatch. # noqa: E501 + :type policies: DhcpPoolPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpPoolRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpPoolRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpPoolRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpPoolRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpPoolRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpPoolRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_pool_response_mixin.py b/openapi_client_udm/models/dhcp_pool_response_mixin.py new file mode 100644 index 0000000..92e550a --- /dev/null +++ b/openapi_client_udm/models/dhcp_pool_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpPoolResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpPoolResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DhcpPoolResponseMixin. # noqa: E501 + + + :return: The links of this DhcpPoolResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpPoolResponseMixin. + + + :param links: The links of this DhcpPoolResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpPoolResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpPoolResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpPoolResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpPoolResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpPoolResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpPoolResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpPoolResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpPoolResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpPoolResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpPoolResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpPoolResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpPoolResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpPoolResponseMixin. # noqa: E501 + + + :return: The uri of this DhcpPoolResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpPoolResponseMixin. + + + :param uri: The uri of this DhcpPoolResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpPoolResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpPoolResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_server.py b/openapi_client_udm/models/dhcp_server.py new file mode 100644 index 0000000..72db7c9 --- /dev/null +++ b/openapi_client_udm/models/dhcp_server.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServer(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpServer - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DhcpServer. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpServer. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpServer. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpServer. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpServer. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpServer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpServer. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpServer. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpServer. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DhcpServer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpServer. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DhcpServer. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpServer. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DhcpServer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpServer. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DhcpServer. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpServer. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpServer. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpServer. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpServer. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpServer. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpServer. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpServer. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpServer. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DhcpServer. # noqa: E501 + + + :return: The links of this DhcpServer. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpServer. + + + :param links: The links of this DhcpServer. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpServer. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpServer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpServer. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpServer. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpServer. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpServer. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpServer. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpServer. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpServer. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpServer. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpServer. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpServer. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpServer. # noqa: E501 + + + :return: The uri of this DhcpServer. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpServer. + + + :param uri: The uri of this DhcpServer. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServer): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServer): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_server_list.py b/openapi_client_udm/models/dhcp_server_list.py new file mode 100644 index 0000000..90c1150 --- /dev/null +++ b/openapi_client_udm/models/dhcp_server_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServerList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DhcpServerListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DhcpServerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DhcpServerList. # noqa: E501 + + + :return: The embedded of this DhcpServerList. # noqa: E501 + :rtype: DhcpServerListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpServerList. + + + :param embedded: The embedded of this DhcpServerList. # noqa: E501 + :type embedded: DhcpServerListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServerList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_server_list_embedded.py b/openapi_client_udm/models/dhcp_server_list_embedded.py new file mode 100644 index 0000000..57f50fc --- /dev/null +++ b/openapi_client_udm/models/dhcp_server_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServerListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DhcpServer]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DhcpServerListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DhcpServerListEmbedded. # noqa: E501 + + + :return: The udmobject of this DhcpServerListEmbedded. # noqa: E501 + :rtype: list[DhcpServer] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DhcpServerListEmbedded. + + + :param udmobject: The udmobject of this DhcpServerListEmbedded. # noqa: E501 + :type udmobject: list[DhcpServer] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServerListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServerListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_server_request.py b/openapi_client_udm/models/dhcp_server_request.py new file mode 100644 index 0000000..194b0cd --- /dev/null +++ b/openapi_client_udm/models/dhcp_server_request.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServerRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DhcpServerRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DhcpServerRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpServerRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpServerRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpServerRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpServerRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpServerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpServerRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpServerRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpServerRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DhcpServerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpServerRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DhcpServerRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpServerRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DhcpServerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpServerRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DhcpServerRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpServerRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpServerRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpServerRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpServerRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpServerRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpServerRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpServerRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpServerRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServerRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServerRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_server_request_patch.py b/openapi_client_udm/models/dhcp_server_request_patch.py new file mode 100644 index 0000000..8327877 --- /dev/null +++ b/openapi_client_udm/models/dhcp_server_request_patch.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServerRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DhcpServerRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DhcpServerRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpServerRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpServerRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpServerRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpServerRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpServerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpServerRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpServerRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpServerRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DhcpServerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpServerRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DhcpServerRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpServerRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DhcpServerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpServerRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DhcpServerRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpServerRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpServerRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpServerRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpServerRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServerRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServerRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_server_response_mixin.py b/openapi_client_udm/models/dhcp_server_response_mixin.py new file mode 100644 index 0000000..4524e49 --- /dev/null +++ b/openapi_client_udm/models/dhcp_server_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServerResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpServerResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DhcpServerResponseMixin. # noqa: E501 + + + :return: The links of this DhcpServerResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpServerResponseMixin. + + + :param links: The links of this DhcpServerResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpServerResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpServerResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpServerResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpServerResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpServerResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpServerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpServerResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpServerResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpServerResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpServerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpServerResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpServerResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpServerResponseMixin. # noqa: E501 + + + :return: The uri of this DhcpServerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpServerResponseMixin. + + + :param uri: The uri of this DhcpServerResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServerResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServerResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_service.py b/openapi_client_udm/models/dhcp_service.py new file mode 100644 index 0000000..4e2983c --- /dev/null +++ b/openapi_client_udm/models/dhcp_service.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpServiceOptions', + 'policies': 'DhcpServicePolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpService - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DhcpService. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpService. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpService. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpService. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpService. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpService. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpService. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpService. # noqa: E501 + + + :return: The options of this DhcpService. # noqa: E501 + :rtype: DhcpServiceOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpService. + + + :param options: The options of this DhcpService. # noqa: E501 + :type options: DhcpServiceOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpService. # noqa: E501 + + + :return: The policies of this DhcpService. # noqa: E501 + :rtype: DhcpServicePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpService. + + + :param policies: The policies of this DhcpService. # noqa: E501 + :type policies: DhcpServicePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DhcpService. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpService. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpService. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpService. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DhcpService. # noqa: E501 + + + :return: The links of this DhcpService. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpService. + + + :param links: The links of this DhcpService. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpService. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpService. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpService. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpService. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpService. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpService. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpService. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpService. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpService. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpService. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpService. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpService. # noqa: E501 + + + :return: The uri of this DhcpService. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpService. + + + :param uri: The uri of this DhcpService. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpService): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpService): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_service_list.py b/openapi_client_udm/models/dhcp_service_list.py new file mode 100644 index 0000000..e46dbab --- /dev/null +++ b/openapi_client_udm/models/dhcp_service_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServiceList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DhcpServiceListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DhcpServiceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DhcpServiceList. # noqa: E501 + + + :return: The embedded of this DhcpServiceList. # noqa: E501 + :rtype: DhcpServiceListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpServiceList. + + + :param embedded: The embedded of this DhcpServiceList. # noqa: E501 + :type embedded: DhcpServiceListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServiceList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServiceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_service_list_embedded.py b/openapi_client_udm/models/dhcp_service_list_embedded.py new file mode 100644 index 0000000..ae91724 --- /dev/null +++ b/openapi_client_udm/models/dhcp_service_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServiceListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DhcpService]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DhcpServiceListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DhcpServiceListEmbedded. # noqa: E501 + + + :return: The udmobject of this DhcpServiceListEmbedded. # noqa: E501 + :rtype: list[DhcpService] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DhcpServiceListEmbedded. + + + :param udmobject: The udmobject of this DhcpServiceListEmbedded. # noqa: E501 + :type udmobject: list[DhcpService] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServiceListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServiceListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_service_options.py b/openapi_client_udm/models/dhcp_service_options.py new file mode 100644 index 0000000..01ae081 --- /dev/null +++ b/openapi_client_udm/models/dhcp_service_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServiceOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'options': 'bool' + } + + attribute_map = { + 'options': 'options' + } + + def __init__(self, options=False, local_vars_configuration=None): # noqa: E501 + """DhcpServiceOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._options = None + self.discriminator = None + + if options is not None: + self.options = options + + @property + def options(self): + """Gets the options of this DhcpServiceOptions. # noqa: E501 + + Allow custom DHCP options # noqa: E501 + + :return: The options of this DhcpServiceOptions. # noqa: E501 + :rtype: bool + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpServiceOptions. + + Allow custom DHCP options # noqa: E501 + + :param options: The options of this DhcpServiceOptions. # noqa: E501 + :type options: bool + """ + + self._options = options + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServiceOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServiceOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_service_policies.py b/openapi_client_udm/models/dhcp_service_policies.py new file mode 100644 index 0000000..ee5b3e0 --- /dev/null +++ b/openapi_client_udm/models/dhcp_service_policies.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServicePolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_dhcp_dns': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]' + } + + attribute_map = { + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime' + } + + def __init__(self, policies_dhcp_dns=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_dhcp_statements=None, policies_dhcp_netbios=None, policies_dhcp_routing=None, policies_dhcp_leasetime=None, local_vars_configuration=None): # noqa: E501 + """DhcpServicePolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_dhcp_dns = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_dhcp_statements = None + self._policies_dhcp_netbios = None + self._policies_dhcp_routing = None + self._policies_dhcp_leasetime = None + self.discriminator = None + + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this DhcpServicePolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this DhcpServicePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this DhcpServicePolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this DhcpServicePolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this DhcpServicePolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this DhcpServicePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this DhcpServicePolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this DhcpServicePolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this DhcpServicePolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this DhcpServicePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this DhcpServicePolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this DhcpServicePolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this DhcpServicePolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this DhcpServicePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this DhcpServicePolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this DhcpServicePolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this DhcpServicePolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this DhcpServicePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this DhcpServicePolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this DhcpServicePolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this DhcpServicePolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this DhcpServicePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this DhcpServicePolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this DhcpServicePolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this DhcpServicePolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this DhcpServicePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this DhcpServicePolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this DhcpServicePolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this DhcpServicePolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this DhcpServicePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this DhcpServicePolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this DhcpServicePolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServicePolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServicePolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_service_request.py b/openapi_client_udm/models/dhcp_service_request.py new file mode 100644 index 0000000..343d9d3 --- /dev/null +++ b/openapi_client_udm/models/dhcp_service_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServiceRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpServiceOptions', + 'policies': 'DhcpServicePolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """DhcpServiceRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DhcpServiceRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpServiceRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpServiceRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpServiceRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpServiceRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpServiceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpServiceRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpServiceRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpServiceRequest. # noqa: E501 + + + :return: The options of this DhcpServiceRequest. # noqa: E501 + :rtype: DhcpServiceOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpServiceRequest. + + + :param options: The options of this DhcpServiceRequest. # noqa: E501 + :type options: DhcpServiceOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpServiceRequest. # noqa: E501 + + + :return: The policies of this DhcpServiceRequest. # noqa: E501 + :rtype: DhcpServicePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpServiceRequest. + + + :param policies: The policies of this DhcpServiceRequest. # noqa: E501 + :type policies: DhcpServicePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DhcpServiceRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpServiceRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpServiceRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpServiceRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServiceRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServiceRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_service_request_patch.py b/openapi_client_udm/models/dhcp_service_request_patch.py new file mode 100644 index 0000000..2c6014f --- /dev/null +++ b/openapi_client_udm/models/dhcp_service_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServiceRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpServiceOptions', + 'policies': 'DhcpServicePolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """DhcpServiceRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this DhcpServiceRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpServiceRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpServiceRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpServiceRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpServiceRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpServiceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpServiceRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpServiceRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpServiceRequestPatch. # noqa: E501 + + + :return: The options of this DhcpServiceRequestPatch. # noqa: E501 + :rtype: DhcpServiceOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpServiceRequestPatch. + + + :param options: The options of this DhcpServiceRequestPatch. # noqa: E501 + :type options: DhcpServiceOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpServiceRequestPatch. # noqa: E501 + + + :return: The policies of this DhcpServiceRequestPatch. # noqa: E501 + :rtype: DhcpServicePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpServiceRequestPatch. + + + :param policies: The policies of this DhcpServiceRequestPatch. # noqa: E501 + :type policies: DhcpServicePolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServiceRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServiceRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_service_response_mixin.py b/openapi_client_udm/models/dhcp_service_response_mixin.py new file mode 100644 index 0000000..ff85c9e --- /dev/null +++ b/openapi_client_udm/models/dhcp_service_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpServiceResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpServiceResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DhcpServiceResponseMixin. # noqa: E501 + + + :return: The links of this DhcpServiceResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpServiceResponseMixin. + + + :param links: The links of this DhcpServiceResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpServiceResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpServiceResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpServiceResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpServiceResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpServiceResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpServiceResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpServiceResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpServiceResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpServiceResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpServiceResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpServiceResponseMixin. # noqa: E501 + + + :return: The uri of this DhcpServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpServiceResponseMixin. + + + :param uri: The uri of this DhcpServiceResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpServiceResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpServiceResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_shared.py b/openapi_client_udm/models/dhcp_shared.py new file mode 100644 index 0000000..5281cc4 --- /dev/null +++ b/openapi_client_udm/models/dhcp_shared.py @@ -0,0 +1,426 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpShared(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSharedOptions', + 'policies': 'DhcpSharedPolicies', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpShared - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DhcpShared. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpShared. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpShared. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpShared. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpShared. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpShared. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpShared. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpShared. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpShared. # noqa: E501 + + + :return: The options of this DhcpShared. # noqa: E501 + :rtype: DhcpSharedOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpShared. + + + :param options: The options of this DhcpShared. # noqa: E501 + :type options: DhcpSharedOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpShared. # noqa: E501 + + + :return: The policies of this DhcpShared. # noqa: E501 + :rtype: DhcpSharedPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpShared. + + + :param policies: The policies of this DhcpShared. # noqa: E501 + :type policies: DhcpSharedPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpShared. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpShared. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpShared. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpShared. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpShared. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpShared. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpShared. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpShared. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DhcpShared. # noqa: E501 + + + :return: The links of this DhcpShared. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpShared. + + + :param links: The links of this DhcpShared. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpShared. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpShared. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpShared. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpShared. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpShared. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpShared. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpShared. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpShared. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpShared. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpShared. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpShared. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpShared. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpShared. # noqa: E501 + + + :return: The uri of this DhcpShared. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpShared. + + + :param uri: The uri of this DhcpShared. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpShared): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpShared): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_shared_list.py b/openapi_client_udm/models/dhcp_shared_list.py new file mode 100644 index 0000000..ba8bfe0 --- /dev/null +++ b/openapi_client_udm/models/dhcp_shared_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DhcpSharedListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DhcpSharedList. # noqa: E501 + + + :return: The embedded of this DhcpSharedList. # noqa: E501 + :rtype: DhcpSharedListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpSharedList. + + + :param embedded: The embedded of this DhcpSharedList. # noqa: E501 + :type embedded: DhcpSharedListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_shared_list_embedded.py b/openapi_client_udm/models/dhcp_shared_list_embedded.py new file mode 100644 index 0000000..ec84bb1 --- /dev/null +++ b/openapi_client_udm/models/dhcp_shared_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DhcpShared]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DhcpSharedListEmbedded. # noqa: E501 + + + :return: The udmobject of this DhcpSharedListEmbedded. # noqa: E501 + :rtype: list[DhcpShared] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DhcpSharedListEmbedded. + + + :param udmobject: The udmobject of this DhcpSharedListEmbedded. # noqa: E501 + :type udmobject: list[DhcpShared] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_shared_options.py b/openapi_client_udm/models/dhcp_shared_options.py new file mode 100644 index 0000000..d517bbc --- /dev/null +++ b/openapi_client_udm/models/dhcp_shared_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'options': 'bool' + } + + attribute_map = { + 'options': 'options' + } + + def __init__(self, options=False, local_vars_configuration=None): # noqa: E501 + """DhcpSharedOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._options = None + self.discriminator = None + + if options is not None: + self.options = options + + @property + def options(self): + """Gets the options of this DhcpSharedOptions. # noqa: E501 + + Allow custom DHCP options # noqa: E501 + + :return: The options of this DhcpSharedOptions. # noqa: E501 + :rtype: bool + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSharedOptions. + + Allow custom DHCP options # noqa: E501 + + :param options: The options of this DhcpSharedOptions. # noqa: E501 + :type options: bool + """ + + self._options = options + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_shared_policies.py b/openapi_client_udm/models/dhcp_shared_policies.py new file mode 100644 index 0000000..39c3f52 --- /dev/null +++ b/openapi_client_udm/models/dhcp_shared_policies.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_dhcp_dns': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]' + } + + attribute_map = { + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime' + } + + def __init__(self, policies_dhcp_dns=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_dhcp_statements=None, policies_dhcp_netbios=None, policies_dhcp_routing=None, policies_dhcp_leasetime=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_dhcp_dns = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_dhcp_statements = None + self._policies_dhcp_netbios = None + self._policies_dhcp_routing = None + self._policies_dhcp_leasetime = None + self.discriminator = None + + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this DhcpSharedPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this DhcpSharedPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this DhcpSharedPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this DhcpSharedPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this DhcpSharedPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this DhcpSharedPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this DhcpSharedPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this DhcpSharedPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this DhcpSharedPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this DhcpSharedPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this DhcpSharedPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this DhcpSharedPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this DhcpSharedPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this DhcpSharedPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this DhcpSharedPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this DhcpSharedPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this DhcpSharedPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this DhcpSharedPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this DhcpSharedPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this DhcpSharedPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this DhcpSharedPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this DhcpSharedPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this DhcpSharedPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this DhcpSharedPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this DhcpSharedPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this DhcpSharedPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this DhcpSharedPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this DhcpSharedPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this DhcpSharedPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this DhcpSharedPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this DhcpSharedPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this DhcpSharedPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_shared_request.py b/openapi_client_udm/models/dhcp_shared_request.py new file mode 100644 index 0000000..4f072a7 --- /dev/null +++ b/openapi_client_udm/models/dhcp_shared_request.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSharedOptions', + 'policies': 'DhcpSharedPolicies', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DhcpSharedRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpSharedRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpSharedRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpSharedRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpSharedRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpSharedRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpSharedRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpSharedRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpSharedRequest. # noqa: E501 + + + :return: The options of this DhcpSharedRequest. # noqa: E501 + :rtype: DhcpSharedOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSharedRequest. + + + :param options: The options of this DhcpSharedRequest. # noqa: E501 + :type options: DhcpSharedOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpSharedRequest. # noqa: E501 + + + :return: The policies of this DhcpSharedRequest. # noqa: E501 + :rtype: DhcpSharedPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpSharedRequest. + + + :param policies: The policies of this DhcpSharedRequest. # noqa: E501 + :type policies: DhcpSharedPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpSharedRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpSharedRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpSharedRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpSharedRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpSharedRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpSharedRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpSharedRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpSharedRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_shared_request_patch.py b/openapi_client_udm/models/dhcp_shared_request_patch.py new file mode 100644 index 0000000..e65a447 --- /dev/null +++ b/openapi_client_udm/models/dhcp_shared_request_patch.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSharedOptions', + 'policies': 'DhcpSharedPolicies', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DhcpSharedRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpSharedRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpSharedRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpSharedRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpSharedRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpSharedRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpSharedRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpSharedRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpSharedRequestPatch. # noqa: E501 + + + :return: The options of this DhcpSharedRequestPatch. # noqa: E501 + :rtype: DhcpSharedOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSharedRequestPatch. + + + :param options: The options of this DhcpSharedRequestPatch. # noqa: E501 + :type options: DhcpSharedOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpSharedRequestPatch. # noqa: E501 + + + :return: The policies of this DhcpSharedRequestPatch. # noqa: E501 + :rtype: DhcpSharedPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpSharedRequestPatch. + + + :param policies: The policies of this DhcpSharedRequestPatch. # noqa: E501 + :type policies: DhcpSharedPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpSharedRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpSharedRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpSharedRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpSharedRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_shared_response_mixin.py b/openapi_client_udm/models/dhcp_shared_response_mixin.py new file mode 100644 index 0000000..2d6bf39 --- /dev/null +++ b/openapi_client_udm/models/dhcp_shared_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DhcpSharedResponseMixin. # noqa: E501 + + + :return: The links of this DhcpSharedResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpSharedResponseMixin. + + + :param links: The links of this DhcpSharedResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpSharedResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpSharedResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpSharedResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpSharedResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpSharedResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpSharedResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpSharedResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpSharedResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpSharedResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpSharedResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpSharedResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpSharedResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpSharedResponseMixin. # noqa: E501 + + + :return: The uri of this DhcpSharedResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpSharedResponseMixin. + + + :param uri: The uri of this DhcpSharedResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_sharedsubnet.py b/openapi_client_udm/models/dhcp_sharedsubnet.py new file mode 100644 index 0000000..2da1b9d --- /dev/null +++ b/openapi_client_udm/models/dhcp_sharedsubnet.py @@ -0,0 +1,426 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedsubnet(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSharedsubnetOptions', + 'policies': 'DhcpSharedsubnetPolicies', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedsubnet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DhcpSharedsubnet. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpSharedsubnet. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpSharedsubnet. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpSharedsubnet. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpSharedsubnet. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpSharedsubnet. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpSharedsubnet. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpSharedsubnet. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpSharedsubnet. # noqa: E501 + + + :return: The options of this DhcpSharedsubnet. # noqa: E501 + :rtype: DhcpSharedsubnetOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSharedsubnet. + + + :param options: The options of this DhcpSharedsubnet. # noqa: E501 + :type options: DhcpSharedsubnetOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpSharedsubnet. # noqa: E501 + + + :return: The policies of this DhcpSharedsubnet. # noqa: E501 + :rtype: DhcpSharedsubnetPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpSharedsubnet. + + + :param policies: The policies of this DhcpSharedsubnet. # noqa: E501 + :type policies: DhcpSharedsubnetPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpSharedsubnet. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpSharedsubnet. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpSharedsubnet. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpSharedsubnet. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpSharedsubnet. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpSharedsubnet. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpSharedsubnet. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpSharedsubnet. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DhcpSharedsubnet. # noqa: E501 + + + :return: The links of this DhcpSharedsubnet. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpSharedsubnet. + + + :param links: The links of this DhcpSharedsubnet. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpSharedsubnet. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpSharedsubnet. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpSharedsubnet. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpSharedsubnet. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpSharedsubnet. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpSharedsubnet. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpSharedsubnet. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpSharedsubnet. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpSharedsubnet. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpSharedsubnet. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpSharedsubnet. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpSharedsubnet. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpSharedsubnet. # noqa: E501 + + + :return: The uri of this DhcpSharedsubnet. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpSharedsubnet. + + + :param uri: The uri of this DhcpSharedsubnet. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedsubnet): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedsubnet): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_sharedsubnet_list.py b/openapi_client_udm/models/dhcp_sharedsubnet_list.py new file mode 100644 index 0000000..c7e9ab9 --- /dev/null +++ b/openapi_client_udm/models/dhcp_sharedsubnet_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedsubnetList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DhcpSharedsubnetListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedsubnetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DhcpSharedsubnetList. # noqa: E501 + + + :return: The embedded of this DhcpSharedsubnetList. # noqa: E501 + :rtype: DhcpSharedsubnetListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpSharedsubnetList. + + + :param embedded: The embedded of this DhcpSharedsubnetList. # noqa: E501 + :type embedded: DhcpSharedsubnetListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedsubnetList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedsubnetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_sharedsubnet_list_embedded.py b/openapi_client_udm/models/dhcp_sharedsubnet_list_embedded.py new file mode 100644 index 0000000..71eb78a --- /dev/null +++ b/openapi_client_udm/models/dhcp_sharedsubnet_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedsubnetListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DhcpSharedsubnet]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedsubnetListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DhcpSharedsubnetListEmbedded. # noqa: E501 + + + :return: The udmobject of this DhcpSharedsubnetListEmbedded. # noqa: E501 + :rtype: list[DhcpSharedsubnet] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DhcpSharedsubnetListEmbedded. + + + :param udmobject: The udmobject of this DhcpSharedsubnetListEmbedded. # noqa: E501 + :type udmobject: list[DhcpSharedsubnet] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedsubnetListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedsubnetListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_sharedsubnet_options.py b/openapi_client_udm/models/dhcp_sharedsubnet_options.py new file mode 100644 index 0000000..33a4b94 --- /dev/null +++ b/openapi_client_udm/models/dhcp_sharedsubnet_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedsubnetOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'options': 'bool' + } + + attribute_map = { + 'options': 'options' + } + + def __init__(self, options=False, local_vars_configuration=None): # noqa: E501 + """DhcpSharedsubnetOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._options = None + self.discriminator = None + + if options is not None: + self.options = options + + @property + def options(self): + """Gets the options of this DhcpSharedsubnetOptions. # noqa: E501 + + Allow custom DHCP options # noqa: E501 + + :return: The options of this DhcpSharedsubnetOptions. # noqa: E501 + :rtype: bool + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSharedsubnetOptions. + + Allow custom DHCP options # noqa: E501 + + :param options: The options of this DhcpSharedsubnetOptions. # noqa: E501 + :type options: bool + """ + + self._options = options + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedsubnetOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedsubnetOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_sharedsubnet_policies.py b/openapi_client_udm/models/dhcp_sharedsubnet_policies.py new file mode 100644 index 0000000..07df72f --- /dev/null +++ b/openapi_client_udm/models/dhcp_sharedsubnet_policies.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedsubnetPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_dhcp_dns': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]' + } + + attribute_map = { + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime' + } + + def __init__(self, policies_dhcp_dns=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_dhcp_statements=None, policies_dhcp_netbios=None, policies_dhcp_routing=None, policies_dhcp_leasetime=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedsubnetPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_dhcp_dns = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_dhcp_statements = None + self._policies_dhcp_netbios = None + self._policies_dhcp_routing = None + self._policies_dhcp_leasetime = None + self.discriminator = None + + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this DhcpSharedsubnetPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this DhcpSharedsubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this DhcpSharedsubnetPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this DhcpSharedsubnetPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this DhcpSharedsubnetPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this DhcpSharedsubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this DhcpSharedsubnetPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this DhcpSharedsubnetPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this DhcpSharedsubnetPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this DhcpSharedsubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this DhcpSharedsubnetPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this DhcpSharedsubnetPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this DhcpSharedsubnetPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this DhcpSharedsubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this DhcpSharedsubnetPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this DhcpSharedsubnetPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this DhcpSharedsubnetPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this DhcpSharedsubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this DhcpSharedsubnetPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this DhcpSharedsubnetPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this DhcpSharedsubnetPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this DhcpSharedsubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this DhcpSharedsubnetPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this DhcpSharedsubnetPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this DhcpSharedsubnetPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this DhcpSharedsubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this DhcpSharedsubnetPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this DhcpSharedsubnetPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this DhcpSharedsubnetPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this DhcpSharedsubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this DhcpSharedsubnetPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this DhcpSharedsubnetPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedsubnetPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedsubnetPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_sharedsubnet_request.py b/openapi_client_udm/models/dhcp_sharedsubnet_request.py new file mode 100644 index 0000000..205a633 --- /dev/null +++ b/openapi_client_udm/models/dhcp_sharedsubnet_request.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedsubnetRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSharedsubnetOptions', + 'policies': 'DhcpSharedsubnetPolicies', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedsubnetRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DhcpSharedsubnetRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpSharedsubnetRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpSharedsubnetRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpSharedsubnetRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpSharedsubnetRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpSharedsubnetRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpSharedsubnetRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpSharedsubnetRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpSharedsubnetRequest. # noqa: E501 + + + :return: The options of this DhcpSharedsubnetRequest. # noqa: E501 + :rtype: DhcpSharedsubnetOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSharedsubnetRequest. + + + :param options: The options of this DhcpSharedsubnetRequest. # noqa: E501 + :type options: DhcpSharedsubnetOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpSharedsubnetRequest. # noqa: E501 + + + :return: The policies of this DhcpSharedsubnetRequest. # noqa: E501 + :rtype: DhcpSharedsubnetPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpSharedsubnetRequest. + + + :param policies: The policies of this DhcpSharedsubnetRequest. # noqa: E501 + :type policies: DhcpSharedsubnetPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpSharedsubnetRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpSharedsubnetRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpSharedsubnetRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpSharedsubnetRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpSharedsubnetRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpSharedsubnetRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpSharedsubnetRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpSharedsubnetRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedsubnetRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedsubnetRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_sharedsubnet_request_patch.py b/openapi_client_udm/models/dhcp_sharedsubnet_request_patch.py new file mode 100644 index 0000000..de95571 --- /dev/null +++ b/openapi_client_udm/models/dhcp_sharedsubnet_request_patch.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedsubnetRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSharedsubnetOptions', + 'policies': 'DhcpSharedsubnetPolicies', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedsubnetRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DhcpSharedsubnetRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpSharedsubnetRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpSharedsubnetRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpSharedsubnetRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpSharedsubnetRequestPatch. # noqa: E501 + + + :return: The options of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :rtype: DhcpSharedsubnetOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSharedsubnetRequestPatch. + + + :param options: The options of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :type options: DhcpSharedsubnetOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpSharedsubnetRequestPatch. # noqa: E501 + + + :return: The policies of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :rtype: DhcpSharedsubnetPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpSharedsubnetRequestPatch. + + + :param policies: The policies of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :type policies: DhcpSharedsubnetPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpSharedsubnetRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpSharedsubnetRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpSharedsubnetRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedsubnetRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedsubnetRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_sharedsubnet_response_mixin.py b/openapi_client_udm/models/dhcp_sharedsubnet_response_mixin.py new file mode 100644 index 0000000..be3c91c --- /dev/null +++ b/openapi_client_udm/models/dhcp_sharedsubnet_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSharedsubnetResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpSharedsubnetResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DhcpSharedsubnetResponseMixin. # noqa: E501 + + + :return: The links of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpSharedsubnetResponseMixin. + + + :param links: The links of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpSharedsubnetResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpSharedsubnetResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpSharedsubnetResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpSharedsubnetResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpSharedsubnetResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpSharedsubnetResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpSharedsubnetResponseMixin. # noqa: E501 + + + :return: The uri of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpSharedsubnetResponseMixin. + + + :param uri: The uri of this DhcpSharedsubnetResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSharedsubnetResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSharedsubnetResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_subnet.py b/openapi_client_udm/models/dhcp_subnet.py new file mode 100644 index 0000000..162dc3d --- /dev/null +++ b/openapi_client_udm/models/dhcp_subnet.py @@ -0,0 +1,426 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSubnet(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSubnetOptions', + 'policies': 'DhcpSubnetPolicies', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpSubnet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DhcpSubnet. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpSubnet. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpSubnet. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpSubnet. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpSubnet. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpSubnet. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpSubnet. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpSubnet. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpSubnet. # noqa: E501 + + + :return: The options of this DhcpSubnet. # noqa: E501 + :rtype: DhcpSubnetOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSubnet. + + + :param options: The options of this DhcpSubnet. # noqa: E501 + :type options: DhcpSubnetOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpSubnet. # noqa: E501 + + + :return: The policies of this DhcpSubnet. # noqa: E501 + :rtype: DhcpSubnetPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpSubnet. + + + :param policies: The policies of this DhcpSubnet. # noqa: E501 + :type policies: DhcpSubnetPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpSubnet. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpSubnet. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpSubnet. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpSubnet. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpSubnet. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpSubnet. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpSubnet. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpSubnet. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DhcpSubnet. # noqa: E501 + + + :return: The links of this DhcpSubnet. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpSubnet. + + + :param links: The links of this DhcpSubnet. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpSubnet. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpSubnet. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpSubnet. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpSubnet. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpSubnet. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpSubnet. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpSubnet. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpSubnet. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpSubnet. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpSubnet. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpSubnet. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpSubnet. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpSubnet. # noqa: E501 + + + :return: The uri of this DhcpSubnet. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpSubnet. + + + :param uri: The uri of this DhcpSubnet. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSubnet): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSubnet): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_subnet_list.py b/openapi_client_udm/models/dhcp_subnet_list.py new file mode 100644 index 0000000..ec6e36a --- /dev/null +++ b/openapi_client_udm/models/dhcp_subnet_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSubnetList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DhcpSubnetListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DhcpSubnetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DhcpSubnetList. # noqa: E501 + + + :return: The embedded of this DhcpSubnetList. # noqa: E501 + :rtype: DhcpSubnetListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpSubnetList. + + + :param embedded: The embedded of this DhcpSubnetList. # noqa: E501 + :type embedded: DhcpSubnetListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSubnetList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSubnetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_subnet_list_embedded.py b/openapi_client_udm/models/dhcp_subnet_list_embedded.py new file mode 100644 index 0000000..273ee89 --- /dev/null +++ b/openapi_client_udm/models/dhcp_subnet_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSubnetListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DhcpSubnet]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DhcpSubnetListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DhcpSubnetListEmbedded. # noqa: E501 + + + :return: The udmobject of this DhcpSubnetListEmbedded. # noqa: E501 + :rtype: list[DhcpSubnet] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DhcpSubnetListEmbedded. + + + :param udmobject: The udmobject of this DhcpSubnetListEmbedded. # noqa: E501 + :type udmobject: list[DhcpSubnet] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSubnetListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSubnetListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_subnet_options.py b/openapi_client_udm/models/dhcp_subnet_options.py new file mode 100644 index 0000000..7f08bb2 --- /dev/null +++ b/openapi_client_udm/models/dhcp_subnet_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSubnetOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'options': 'bool' + } + + attribute_map = { + 'options': 'options' + } + + def __init__(self, options=False, local_vars_configuration=None): # noqa: E501 + """DhcpSubnetOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._options = None + self.discriminator = None + + if options is not None: + self.options = options + + @property + def options(self): + """Gets the options of this DhcpSubnetOptions. # noqa: E501 + + Allow custom DHCP options # noqa: E501 + + :return: The options of this DhcpSubnetOptions. # noqa: E501 + :rtype: bool + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSubnetOptions. + + Allow custom DHCP options # noqa: E501 + + :param options: The options of this DhcpSubnetOptions. # noqa: E501 + :type options: bool + """ + + self._options = options + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSubnetOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSubnetOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_subnet_policies.py b/openapi_client_udm/models/dhcp_subnet_policies.py new file mode 100644 index 0000000..d9249cf --- /dev/null +++ b/openapi_client_udm/models/dhcp_subnet_policies.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSubnetPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_dhcp_dns': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]' + } + + attribute_map = { + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime' + } + + def __init__(self, policies_dhcp_dns=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_dhcp_statements=None, policies_dhcp_netbios=None, policies_dhcp_routing=None, policies_dhcp_leasetime=None, local_vars_configuration=None): # noqa: E501 + """DhcpSubnetPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_dhcp_dns = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_dhcp_statements = None + self._policies_dhcp_netbios = None + self._policies_dhcp_routing = None + self._policies_dhcp_leasetime = None + self.discriminator = None + + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this DhcpSubnetPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this DhcpSubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this DhcpSubnetPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this DhcpSubnetPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this DhcpSubnetPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this DhcpSubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this DhcpSubnetPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this DhcpSubnetPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this DhcpSubnetPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this DhcpSubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this DhcpSubnetPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this DhcpSubnetPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this DhcpSubnetPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this DhcpSubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this DhcpSubnetPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this DhcpSubnetPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this DhcpSubnetPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this DhcpSubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this DhcpSubnetPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this DhcpSubnetPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this DhcpSubnetPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this DhcpSubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this DhcpSubnetPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this DhcpSubnetPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this DhcpSubnetPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this DhcpSubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this DhcpSubnetPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this DhcpSubnetPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this DhcpSubnetPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this DhcpSubnetPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this DhcpSubnetPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this DhcpSubnetPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSubnetPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSubnetPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_subnet_request.py b/openapi_client_udm/models/dhcp_subnet_request.py new file mode 100644 index 0000000..7ea6eae --- /dev/null +++ b/openapi_client_udm/models/dhcp_subnet_request.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSubnetRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSubnetOptions', + 'policies': 'DhcpSubnetPolicies', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DhcpSubnetRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DhcpSubnetRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpSubnetRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpSubnetRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpSubnetRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpSubnetRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpSubnetRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpSubnetRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpSubnetRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpSubnetRequest. # noqa: E501 + + + :return: The options of this DhcpSubnetRequest. # noqa: E501 + :rtype: DhcpSubnetOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSubnetRequest. + + + :param options: The options of this DhcpSubnetRequest. # noqa: E501 + :type options: DhcpSubnetOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpSubnetRequest. # noqa: E501 + + + :return: The policies of this DhcpSubnetRequest. # noqa: E501 + :rtype: DhcpSubnetPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpSubnetRequest. + + + :param policies: The policies of this DhcpSubnetRequest. # noqa: E501 + :type policies: DhcpSubnetPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpSubnetRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpSubnetRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpSubnetRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpSubnetRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DhcpSubnetRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DhcpSubnetRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DhcpSubnetRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DhcpSubnetRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSubnetRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSubnetRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_subnet_request_patch.py b/openapi_client_udm/models/dhcp_subnet_request_patch.py new file mode 100644 index 0000000..36e3754 --- /dev/null +++ b/openapi_client_udm/models/dhcp_subnet_request_patch.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSubnetRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'DhcpSubnetOptions', + 'policies': 'DhcpSubnetPolicies', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DhcpSubnetRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DhcpSubnetRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DhcpSubnetRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DhcpSubnetRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DhcpSubnetRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DhcpSubnetRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DhcpSubnetRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DhcpSubnetRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DhcpSubnetRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DhcpSubnetRequestPatch. # noqa: E501 + + + :return: The options of this DhcpSubnetRequestPatch. # noqa: E501 + :rtype: DhcpSubnetOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DhcpSubnetRequestPatch. + + + :param options: The options of this DhcpSubnetRequestPatch. # noqa: E501 + :type options: DhcpSubnetOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DhcpSubnetRequestPatch. # noqa: E501 + + + :return: The policies of this DhcpSubnetRequestPatch. # noqa: E501 + :rtype: DhcpSubnetPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DhcpSubnetRequestPatch. + + + :param policies: The policies of this DhcpSubnetRequestPatch. # noqa: E501 + :type policies: DhcpSubnetPolicies + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DhcpSubnetRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DhcpSubnetRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DhcpSubnetRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DhcpSubnetRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSubnetRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSubnetRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dhcp_subnet_response_mixin.py b/openapi_client_udm/models/dhcp_subnet_response_mixin.py new file mode 100644 index 0000000..f927238 --- /dev/null +++ b/openapi_client_udm/models/dhcp_subnet_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DhcpSubnetResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DhcpSubnetResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DhcpSubnetResponseMixin. # noqa: E501 + + + :return: The links of this DhcpSubnetResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DhcpSubnetResponseMixin. + + + :param links: The links of this DhcpSubnetResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DhcpSubnetResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DhcpSubnetResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DhcpSubnetResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DhcpSubnetResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DhcpSubnetResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DhcpSubnetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DhcpSubnetResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DhcpSubnetResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DhcpSubnetResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DhcpSubnetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DhcpSubnetResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DhcpSubnetResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DhcpSubnetResponseMixin. # noqa: E501 + + + :return: The uri of this DhcpSubnetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DhcpSubnetResponseMixin. + + + :param uri: The uri of this DhcpSubnetResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DhcpSubnetResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DhcpSubnetResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_alias.py b/openapi_client_udm/models/dns_alias.py new file mode 100644 index 0000000..ea94314 --- /dev/null +++ b/openapi_client_udm/models/dns_alias.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsAlias(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsAlias - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsAlias. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsAlias. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsAlias. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsAlias. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsAlias. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsAlias. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsAlias. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsAlias. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsAlias. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsAlias. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsAlias. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsAlias. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsAlias. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsAlias. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsAlias. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsAlias. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsAlias. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsAlias. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsAlias. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsAlias. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsAlias. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsAlias. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsAlias. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsAlias. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsAlias. # noqa: E501 + + + :return: The links of this DnsAlias. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsAlias. + + + :param links: The links of this DnsAlias. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsAlias. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsAlias. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsAlias. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsAlias. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsAlias. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsAlias. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsAlias. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsAlias. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsAlias. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsAlias. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsAlias. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsAlias. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsAlias. # noqa: E501 + + + :return: The uri of this DnsAlias. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsAlias. + + + :param uri: The uri of this DnsAlias. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsAlias): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsAlias): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_alias_list.py b/openapi_client_udm/models/dns_alias_list.py new file mode 100644 index 0000000..e878c59 --- /dev/null +++ b/openapi_client_udm/models/dns_alias_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsAliasList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsAliasListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsAliasList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsAliasList. # noqa: E501 + + + :return: The embedded of this DnsAliasList. # noqa: E501 + :rtype: DnsAliasListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsAliasList. + + + :param embedded: The embedded of this DnsAliasList. # noqa: E501 + :type embedded: DnsAliasListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsAliasList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsAliasList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_alias_list_embedded.py b/openapi_client_udm/models/dns_alias_list_embedded.py new file mode 100644 index 0000000..47c4b33 --- /dev/null +++ b/openapi_client_udm/models/dns_alias_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsAliasListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsAlias]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsAliasListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsAliasListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsAliasListEmbedded. # noqa: E501 + :rtype: list[DnsAlias] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsAliasListEmbedded. + + + :param udmobject: The udmobject of this DnsAliasListEmbedded. # noqa: E501 + :type udmobject: list[DnsAlias] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsAliasListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsAliasListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_alias_request.py b/openapi_client_udm/models/dns_alias_request.py new file mode 100644 index 0000000..3a6e32d --- /dev/null +++ b/openapi_client_udm/models/dns_alias_request.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsAliasRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsAliasRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsAliasRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsAliasRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsAliasRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsAliasRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsAliasRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsAliasRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsAliasRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsAliasRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsAliasRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsAliasRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsAliasRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsAliasRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsAliasRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsAliasRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsAliasRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsAliasRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsAliasRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsAliasRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsAliasRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsAliasRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsAliasRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsAliasRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsAliasRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsAliasRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsAliasRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsAliasRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_alias_request_patch.py b/openapi_client_udm/models/dns_alias_request_patch.py new file mode 100644 index 0000000..e2979a3 --- /dev/null +++ b/openapi_client_udm/models/dns_alias_request_patch.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsAliasRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DnsAliasRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DnsAliasRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsAliasRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsAliasRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsAliasRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsAliasRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsAliasRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsAliasRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsAliasRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsAliasRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsAliasRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsAliasRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsAliasRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsAliasRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsAliasRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsAliasRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsAliasRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsAliasRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsAliasRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsAliasRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsAliasRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsAliasRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsAliasRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_alias_response_mixin.py b/openapi_client_udm/models/dns_alias_response_mixin.py new file mode 100644 index 0000000..814cacc --- /dev/null +++ b/openapi_client_udm/models/dns_alias_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsAliasResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsAliasResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsAliasResponseMixin. # noqa: E501 + + + :return: The links of this DnsAliasResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsAliasResponseMixin. + + + :param links: The links of this DnsAliasResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsAliasResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsAliasResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsAliasResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsAliasResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsAliasResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsAliasResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsAliasResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsAliasResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsAliasResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsAliasResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsAliasResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsAliasResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsAliasResponseMixin. # noqa: E501 + + + :return: The uri of this DnsAliasResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsAliasResponseMixin. + + + :param uri: The uri of this DnsAliasResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsAliasResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsAliasResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_dns.py b/openapi_client_udm/models/dns_dns.py new file mode 100644 index 0000000..dd0afc5 --- /dev/null +++ b/openapi_client_udm/models/dns_dns.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsDns(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsDns - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsDns. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsDns. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsDns. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsDns. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsDns. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsDns. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsDns. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsDns. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsDns. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsDns. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsDns. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsDns. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsDns. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsDns. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsDns. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsDns. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DnsDns. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsDns. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsDns. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsDns. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsDns. # noqa: E501 + + + :return: The links of this DnsDns. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsDns. + + + :param links: The links of this DnsDns. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsDns. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsDns. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsDns. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsDns. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsDns. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsDns. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsDns. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsDns. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsDns. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsDns. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsDns. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsDns. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsDns. # noqa: E501 + + + :return: The uri of this DnsDns. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsDns. + + + :param uri: The uri of this DnsDns. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsDns): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsDns): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_dns_list.py b/openapi_client_udm/models/dns_dns_list.py new file mode 100644 index 0000000..b663f63 --- /dev/null +++ b/openapi_client_udm/models/dns_dns_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsDnsList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsDnsListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsDnsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsDnsList. # noqa: E501 + + + :return: The embedded of this DnsDnsList. # noqa: E501 + :rtype: DnsDnsListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsDnsList. + + + :param embedded: The embedded of this DnsDnsList. # noqa: E501 + :type embedded: DnsDnsListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsDnsList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsDnsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_dns_list_embedded.py b/openapi_client_udm/models/dns_dns_list_embedded.py new file mode 100644 index 0000000..715341e --- /dev/null +++ b/openapi_client_udm/models/dns_dns_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsDnsListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsDns]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsDnsListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsDnsListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsDnsListEmbedded. # noqa: E501 + :rtype: list[DnsDns] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsDnsListEmbedded. + + + :param udmobject: The udmobject of this DnsDnsListEmbedded. # noqa: E501 + :type udmobject: list[DnsDns] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsDnsListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsDnsListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_dns_request.py b/openapi_client_udm/models/dns_dns_request.py new file mode 100644 index 0000000..2c5be7b --- /dev/null +++ b/openapi_client_udm/models/dns_dns_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsDnsRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsDnsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsDnsRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsDnsRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsDnsRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsDnsRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsDnsRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsDnsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsDnsRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsDnsRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsDnsRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsDnsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsDnsRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsDnsRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsDnsRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsDnsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsDnsRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsDnsRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DnsDnsRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsDnsRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsDnsRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsDnsRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsDnsRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsDnsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_dns_request_patch.py b/openapi_client_udm/models/dns_dns_request_patch.py new file mode 100644 index 0000000..e69015d --- /dev/null +++ b/openapi_client_udm/models/dns_dns_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsDnsRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """DnsDnsRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this DnsDnsRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsDnsRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsDnsRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsDnsRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsDnsRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsDnsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsDnsRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsDnsRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsDnsRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsDnsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsDnsRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsDnsRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsDnsRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsDnsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsDnsRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsDnsRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsDnsRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsDnsRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_dns_response_mixin.py b/openapi_client_udm/models/dns_dns_response_mixin.py new file mode 100644 index 0000000..fa5ee34 --- /dev/null +++ b/openapi_client_udm/models/dns_dns_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsDnsResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsDnsResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsDnsResponseMixin. # noqa: E501 + + + :return: The links of this DnsDnsResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsDnsResponseMixin. + + + :param links: The links of this DnsDnsResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsDnsResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsDnsResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsDnsResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsDnsResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsDnsResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsDnsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsDnsResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsDnsResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsDnsResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsDnsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsDnsResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsDnsResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsDnsResponseMixin. # noqa: E501 + + + :return: The uri of this DnsDnsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsDnsResponseMixin. + + + :param uri: The uri of this DnsDnsResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsDnsResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsDnsResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_forward_zone.py b/openapi_client_udm/models/dns_forward_zone.py new file mode 100644 index 0000000..c0a88d8 --- /dev/null +++ b/openapi_client_udm/models/dns_forward_zone.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsForwardZone(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'DnsForwardZonePolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsForwardZone - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsForwardZone. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsForwardZone. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsForwardZone. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsForwardZone. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsForwardZone. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsForwardZone. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsForwardZone. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsForwardZone. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsForwardZone. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsForwardZone. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsForwardZone. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsForwardZone. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsForwardZone. # noqa: E501 + + + :return: The policies of this DnsForwardZone. # noqa: E501 + :rtype: DnsForwardZonePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsForwardZone. + + + :param policies: The policies of this DnsForwardZone. # noqa: E501 + :type policies: DnsForwardZonePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DnsForwardZone. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsForwardZone. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsForwardZone. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsForwardZone. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsForwardZone. # noqa: E501 + + + :return: The links of this DnsForwardZone. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsForwardZone. + + + :param links: The links of this DnsForwardZone. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsForwardZone. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsForwardZone. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsForwardZone. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsForwardZone. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsForwardZone. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsForwardZone. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsForwardZone. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsForwardZone. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsForwardZone. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsForwardZone. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsForwardZone. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsForwardZone. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsForwardZone. # noqa: E501 + + + :return: The uri of this DnsForwardZone. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsForwardZone. + + + :param uri: The uri of this DnsForwardZone. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsForwardZone): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsForwardZone): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_forward_zone_list.py b/openapi_client_udm/models/dns_forward_zone_list.py new file mode 100644 index 0000000..aec6ed6 --- /dev/null +++ b/openapi_client_udm/models/dns_forward_zone_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsForwardZoneList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsForwardZoneListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsForwardZoneList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsForwardZoneList. # noqa: E501 + + + :return: The embedded of this DnsForwardZoneList. # noqa: E501 + :rtype: DnsForwardZoneListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsForwardZoneList. + + + :param embedded: The embedded of this DnsForwardZoneList. # noqa: E501 + :type embedded: DnsForwardZoneListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsForwardZoneList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsForwardZoneList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_forward_zone_list_embedded.py b/openapi_client_udm/models/dns_forward_zone_list_embedded.py new file mode 100644 index 0000000..776ff1c --- /dev/null +++ b/openapi_client_udm/models/dns_forward_zone_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsForwardZoneListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsForwardZone]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsForwardZoneListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsForwardZoneListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsForwardZoneListEmbedded. # noqa: E501 + :rtype: list[DnsForwardZone] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsForwardZoneListEmbedded. + + + :param udmobject: The udmobject of this DnsForwardZoneListEmbedded. # noqa: E501 + :type udmobject: list[DnsForwardZone] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsForwardZoneListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsForwardZoneListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_forward_zone_policies.py b/openapi_client_udm/models/dns_forward_zone_policies.py new file mode 100644 index 0000000..434e4b9 --- /dev/null +++ b/openapi_client_udm/models/dns_forward_zone_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsForwardZonePolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """DnsForwardZonePolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this DnsForwardZonePolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this DnsForwardZonePolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this DnsForwardZonePolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this DnsForwardZonePolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this DnsForwardZonePolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this DnsForwardZonePolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this DnsForwardZonePolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this DnsForwardZonePolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this DnsForwardZonePolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this DnsForwardZonePolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this DnsForwardZonePolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this DnsForwardZonePolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this DnsForwardZonePolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this DnsForwardZonePolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this DnsForwardZonePolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this DnsForwardZonePolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this DnsForwardZonePolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this DnsForwardZonePolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this DnsForwardZonePolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this DnsForwardZonePolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this DnsForwardZonePolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this DnsForwardZonePolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this DnsForwardZonePolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this DnsForwardZonePolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this DnsForwardZonePolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this DnsForwardZonePolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this DnsForwardZonePolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this DnsForwardZonePolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this DnsForwardZonePolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this DnsForwardZonePolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this DnsForwardZonePolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this DnsForwardZonePolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this DnsForwardZonePolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this DnsForwardZonePolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this DnsForwardZonePolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this DnsForwardZonePolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this DnsForwardZonePolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this DnsForwardZonePolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this DnsForwardZonePolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this DnsForwardZonePolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this DnsForwardZonePolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this DnsForwardZonePolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this DnsForwardZonePolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this DnsForwardZonePolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this DnsForwardZonePolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this DnsForwardZonePolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this DnsForwardZonePolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this DnsForwardZonePolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this DnsForwardZonePolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this DnsForwardZonePolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this DnsForwardZonePolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this DnsForwardZonePolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this DnsForwardZonePolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this DnsForwardZonePolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this DnsForwardZonePolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this DnsForwardZonePolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this DnsForwardZonePolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this DnsForwardZonePolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this DnsForwardZonePolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this DnsForwardZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this DnsForwardZonePolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this DnsForwardZonePolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsForwardZonePolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsForwardZonePolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_forward_zone_request.py b/openapi_client_udm/models/dns_forward_zone_request.py new file mode 100644 index 0000000..ca3da1e --- /dev/null +++ b/openapi_client_udm/models/dns_forward_zone_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsForwardZoneRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'DnsForwardZonePolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsForwardZoneRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsForwardZoneRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsForwardZoneRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsForwardZoneRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsForwardZoneRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsForwardZoneRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsForwardZoneRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsForwardZoneRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsForwardZoneRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsForwardZoneRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsForwardZoneRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsForwardZoneRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsForwardZoneRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsForwardZoneRequest. # noqa: E501 + + + :return: The policies of this DnsForwardZoneRequest. # noqa: E501 + :rtype: DnsForwardZonePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsForwardZoneRequest. + + + :param policies: The policies of this DnsForwardZoneRequest. # noqa: E501 + :type policies: DnsForwardZonePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DnsForwardZoneRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsForwardZoneRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsForwardZoneRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsForwardZoneRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsForwardZoneRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsForwardZoneRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_forward_zone_request_patch.py b/openapi_client_udm/models/dns_forward_zone_request_patch.py new file mode 100644 index 0000000..3e7dbf3 --- /dev/null +++ b/openapi_client_udm/models/dns_forward_zone_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsForwardZoneRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'DnsForwardZonePolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """DnsForwardZoneRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this DnsForwardZoneRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsForwardZoneRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsForwardZoneRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsForwardZoneRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsForwardZoneRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsForwardZoneRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsForwardZoneRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsForwardZoneRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsForwardZoneRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsForwardZoneRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsForwardZoneRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsForwardZoneRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsForwardZoneRequestPatch. # noqa: E501 + + + :return: The policies of this DnsForwardZoneRequestPatch. # noqa: E501 + :rtype: DnsForwardZonePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsForwardZoneRequestPatch. + + + :param policies: The policies of this DnsForwardZoneRequestPatch. # noqa: E501 + :type policies: DnsForwardZonePolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsForwardZoneRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsForwardZoneRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_forward_zone_response_mixin.py b/openapi_client_udm/models/dns_forward_zone_response_mixin.py new file mode 100644 index 0000000..9ff8eff --- /dev/null +++ b/openapi_client_udm/models/dns_forward_zone_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsForwardZoneResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsForwardZoneResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsForwardZoneResponseMixin. # noqa: E501 + + + :return: The links of this DnsForwardZoneResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsForwardZoneResponseMixin. + + + :param links: The links of this DnsForwardZoneResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsForwardZoneResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsForwardZoneResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsForwardZoneResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsForwardZoneResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsForwardZoneResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsForwardZoneResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsForwardZoneResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsForwardZoneResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsForwardZoneResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsForwardZoneResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsForwardZoneResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsForwardZoneResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsForwardZoneResponseMixin. # noqa: E501 + + + :return: The uri of this DnsForwardZoneResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsForwardZoneResponseMixin. + + + :param uri: The uri of this DnsForwardZoneResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsForwardZoneResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsForwardZoneResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_host_record.py b/openapi_client_udm/models/dns_host_record.py new file mode 100644 index 0000000..a8dcda0 --- /dev/null +++ b/openapi_client_udm/models/dns_host_record.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsHostRecord(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsHostRecord - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsHostRecord. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsHostRecord. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsHostRecord. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsHostRecord. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsHostRecord. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsHostRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsHostRecord. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsHostRecord. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsHostRecord. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsHostRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsHostRecord. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsHostRecord. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsHostRecord. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsHostRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsHostRecord. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsHostRecord. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsHostRecord. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsHostRecord. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsHostRecord. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsHostRecord. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsHostRecord. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsHostRecord. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsHostRecord. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsHostRecord. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsHostRecord. # noqa: E501 + + + :return: The links of this DnsHostRecord. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsHostRecord. + + + :param links: The links of this DnsHostRecord. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsHostRecord. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsHostRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsHostRecord. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsHostRecord. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsHostRecord. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsHostRecord. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsHostRecord. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsHostRecord. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsHostRecord. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsHostRecord. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsHostRecord. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsHostRecord. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsHostRecord. # noqa: E501 + + + :return: The uri of this DnsHostRecord. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsHostRecord. + + + :param uri: The uri of this DnsHostRecord. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsHostRecord): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsHostRecord): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_host_record_list.py b/openapi_client_udm/models/dns_host_record_list.py new file mode 100644 index 0000000..903dcd4 --- /dev/null +++ b/openapi_client_udm/models/dns_host_record_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsHostRecordList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsHostRecordListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsHostRecordList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsHostRecordList. # noqa: E501 + + + :return: The embedded of this DnsHostRecordList. # noqa: E501 + :rtype: DnsHostRecordListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsHostRecordList. + + + :param embedded: The embedded of this DnsHostRecordList. # noqa: E501 + :type embedded: DnsHostRecordListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsHostRecordList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsHostRecordList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_host_record_list_embedded.py b/openapi_client_udm/models/dns_host_record_list_embedded.py new file mode 100644 index 0000000..0a7f42f --- /dev/null +++ b/openapi_client_udm/models/dns_host_record_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsHostRecordListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsHostRecord]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsHostRecordListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsHostRecordListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsHostRecordListEmbedded. # noqa: E501 + :rtype: list[DnsHostRecord] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsHostRecordListEmbedded. + + + :param udmobject: The udmobject of this DnsHostRecordListEmbedded. # noqa: E501 + :type udmobject: list[DnsHostRecord] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsHostRecordListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsHostRecordListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_host_record_request.py b/openapi_client_udm/models/dns_host_record_request.py new file mode 100644 index 0000000..860b539 --- /dev/null +++ b/openapi_client_udm/models/dns_host_record_request.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsHostRecordRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsHostRecordRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsHostRecordRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsHostRecordRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsHostRecordRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsHostRecordRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsHostRecordRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsHostRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsHostRecordRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsHostRecordRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsHostRecordRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsHostRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsHostRecordRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsHostRecordRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsHostRecordRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsHostRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsHostRecordRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsHostRecordRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsHostRecordRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsHostRecordRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsHostRecordRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsHostRecordRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsHostRecordRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsHostRecordRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsHostRecordRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsHostRecordRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsHostRecordRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsHostRecordRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_host_record_request_patch.py b/openapi_client_udm/models/dns_host_record_request_patch.py new file mode 100644 index 0000000..0e7c20e --- /dev/null +++ b/openapi_client_udm/models/dns_host_record_request_patch.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsHostRecordRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DnsHostRecordRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DnsHostRecordRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsHostRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsHostRecordRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsHostRecordRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsHostRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsHostRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsHostRecordRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsHostRecordRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsHostRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsHostRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsHostRecordRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsHostRecordRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsHostRecordRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsHostRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsHostRecordRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsHostRecordRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsHostRecordRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsHostRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsHostRecordRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsHostRecordRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsHostRecordRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsHostRecordRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_host_record_response_mixin.py b/openapi_client_udm/models/dns_host_record_response_mixin.py new file mode 100644 index 0000000..7b15786 --- /dev/null +++ b/openapi_client_udm/models/dns_host_record_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsHostRecordResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsHostRecordResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsHostRecordResponseMixin. # noqa: E501 + + + :return: The links of this DnsHostRecordResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsHostRecordResponseMixin. + + + :param links: The links of this DnsHostRecordResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsHostRecordResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsHostRecordResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsHostRecordResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsHostRecordResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsHostRecordResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsHostRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsHostRecordResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsHostRecordResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsHostRecordResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsHostRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsHostRecordResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsHostRecordResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsHostRecordResponseMixin. # noqa: E501 + + + :return: The uri of this DnsHostRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsHostRecordResponseMixin. + + + :param uri: The uri of this DnsHostRecordResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsHostRecordResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsHostRecordResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ns_record.py b/openapi_client_udm/models/dns_ns_record.py new file mode 100644 index 0000000..feebe2f --- /dev/null +++ b/openapi_client_udm/models/dns_ns_record.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsNsRecord(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsNsRecord - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsNsRecord. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsNsRecord. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsNsRecord. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsNsRecord. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsNsRecord. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsNsRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsNsRecord. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsNsRecord. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsNsRecord. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsNsRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsNsRecord. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsNsRecord. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsNsRecord. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsNsRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsNsRecord. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsNsRecord. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsNsRecord. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsNsRecord. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsNsRecord. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsNsRecord. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsNsRecord. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsNsRecord. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsNsRecord. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsNsRecord. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsNsRecord. # noqa: E501 + + + :return: The links of this DnsNsRecord. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsNsRecord. + + + :param links: The links of this DnsNsRecord. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsNsRecord. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsNsRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsNsRecord. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsNsRecord. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsNsRecord. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsNsRecord. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsNsRecord. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsNsRecord. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsNsRecord. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsNsRecord. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsNsRecord. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsNsRecord. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsNsRecord. # noqa: E501 + + + :return: The uri of this DnsNsRecord. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsNsRecord. + + + :param uri: The uri of this DnsNsRecord. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsNsRecord): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsNsRecord): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ns_record_list.py b/openapi_client_udm/models/dns_ns_record_list.py new file mode 100644 index 0000000..e3fe07d --- /dev/null +++ b/openapi_client_udm/models/dns_ns_record_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsNsRecordList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsNsRecordListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsNsRecordList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsNsRecordList. # noqa: E501 + + + :return: The embedded of this DnsNsRecordList. # noqa: E501 + :rtype: DnsNsRecordListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsNsRecordList. + + + :param embedded: The embedded of this DnsNsRecordList. # noqa: E501 + :type embedded: DnsNsRecordListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsNsRecordList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsNsRecordList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ns_record_list_embedded.py b/openapi_client_udm/models/dns_ns_record_list_embedded.py new file mode 100644 index 0000000..4a21575 --- /dev/null +++ b/openapi_client_udm/models/dns_ns_record_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsNsRecordListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsNsRecord]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsNsRecordListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsNsRecordListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsNsRecordListEmbedded. # noqa: E501 + :rtype: list[DnsNsRecord] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsNsRecordListEmbedded. + + + :param udmobject: The udmobject of this DnsNsRecordListEmbedded. # noqa: E501 + :type udmobject: list[DnsNsRecord] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsNsRecordListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsNsRecordListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ns_record_request.py b/openapi_client_udm/models/dns_ns_record_request.py new file mode 100644 index 0000000..bac5f3f --- /dev/null +++ b/openapi_client_udm/models/dns_ns_record_request.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsNsRecordRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsNsRecordRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsNsRecordRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsNsRecordRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsNsRecordRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsNsRecordRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsNsRecordRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsNsRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsNsRecordRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsNsRecordRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsNsRecordRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsNsRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsNsRecordRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsNsRecordRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsNsRecordRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsNsRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsNsRecordRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsNsRecordRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsNsRecordRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsNsRecordRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsNsRecordRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsNsRecordRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsNsRecordRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsNsRecordRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsNsRecordRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsNsRecordRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsNsRecordRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsNsRecordRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ns_record_request_patch.py b/openapi_client_udm/models/dns_ns_record_request_patch.py new file mode 100644 index 0000000..c18a31a --- /dev/null +++ b/openapi_client_udm/models/dns_ns_record_request_patch.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsNsRecordRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DnsNsRecordRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DnsNsRecordRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsNsRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsNsRecordRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsNsRecordRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsNsRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsNsRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsNsRecordRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsNsRecordRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsNsRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsNsRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsNsRecordRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsNsRecordRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsNsRecordRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsNsRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsNsRecordRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsNsRecordRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsNsRecordRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsNsRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsNsRecordRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsNsRecordRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsNsRecordRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsNsRecordRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ns_record_response_mixin.py b/openapi_client_udm/models/dns_ns_record_response_mixin.py new file mode 100644 index 0000000..e9116f0 --- /dev/null +++ b/openapi_client_udm/models/dns_ns_record_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsNsRecordResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsNsRecordResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsNsRecordResponseMixin. # noqa: E501 + + + :return: The links of this DnsNsRecordResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsNsRecordResponseMixin. + + + :param links: The links of this DnsNsRecordResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsNsRecordResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsNsRecordResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsNsRecordResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsNsRecordResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsNsRecordResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsNsRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsNsRecordResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsNsRecordResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsNsRecordResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsNsRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsNsRecordResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsNsRecordResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsNsRecordResponseMixin. # noqa: E501 + + + :return: The uri of this DnsNsRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsNsRecordResponseMixin. + + + :param uri: The uri of this DnsNsRecordResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsNsRecordResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsNsRecordResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ptr_record.py b/openapi_client_udm/models/dns_ptr_record.py new file mode 100644 index 0000000..b1b36c6 --- /dev/null +++ b/openapi_client_udm/models/dns_ptr_record.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsPtrRecord(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsPtrRecord - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsPtrRecord. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsPtrRecord. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsPtrRecord. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsPtrRecord. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsPtrRecord. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsPtrRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsPtrRecord. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsPtrRecord. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsPtrRecord. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsPtrRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsPtrRecord. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsPtrRecord. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsPtrRecord. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsPtrRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsPtrRecord. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsPtrRecord. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsPtrRecord. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsPtrRecord. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsPtrRecord. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsPtrRecord. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsPtrRecord. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsPtrRecord. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsPtrRecord. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsPtrRecord. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsPtrRecord. # noqa: E501 + + + :return: The links of this DnsPtrRecord. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsPtrRecord. + + + :param links: The links of this DnsPtrRecord. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsPtrRecord. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsPtrRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsPtrRecord. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsPtrRecord. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsPtrRecord. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsPtrRecord. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsPtrRecord. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsPtrRecord. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsPtrRecord. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsPtrRecord. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsPtrRecord. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsPtrRecord. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsPtrRecord. # noqa: E501 + + + :return: The uri of this DnsPtrRecord. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsPtrRecord. + + + :param uri: The uri of this DnsPtrRecord. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsPtrRecord): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsPtrRecord): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ptr_record_list.py b/openapi_client_udm/models/dns_ptr_record_list.py new file mode 100644 index 0000000..c1b2476 --- /dev/null +++ b/openapi_client_udm/models/dns_ptr_record_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsPtrRecordList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsPtrRecordListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsPtrRecordList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsPtrRecordList. # noqa: E501 + + + :return: The embedded of this DnsPtrRecordList. # noqa: E501 + :rtype: DnsPtrRecordListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsPtrRecordList. + + + :param embedded: The embedded of this DnsPtrRecordList. # noqa: E501 + :type embedded: DnsPtrRecordListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsPtrRecordList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsPtrRecordList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ptr_record_list_embedded.py b/openapi_client_udm/models/dns_ptr_record_list_embedded.py new file mode 100644 index 0000000..41c3f84 --- /dev/null +++ b/openapi_client_udm/models/dns_ptr_record_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsPtrRecordListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsPtrRecord]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsPtrRecordListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsPtrRecordListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsPtrRecordListEmbedded. # noqa: E501 + :rtype: list[DnsPtrRecord] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsPtrRecordListEmbedded. + + + :param udmobject: The udmobject of this DnsPtrRecordListEmbedded. # noqa: E501 + :type udmobject: list[DnsPtrRecord] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsPtrRecordListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsPtrRecordListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ptr_record_request.py b/openapi_client_udm/models/dns_ptr_record_request.py new file mode 100644 index 0000000..8263c5f --- /dev/null +++ b/openapi_client_udm/models/dns_ptr_record_request.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsPtrRecordRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsPtrRecordRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsPtrRecordRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsPtrRecordRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsPtrRecordRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsPtrRecordRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsPtrRecordRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsPtrRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsPtrRecordRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsPtrRecordRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsPtrRecordRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsPtrRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsPtrRecordRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsPtrRecordRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsPtrRecordRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsPtrRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsPtrRecordRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsPtrRecordRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsPtrRecordRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsPtrRecordRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsPtrRecordRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsPtrRecordRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsPtrRecordRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsPtrRecordRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsPtrRecordRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsPtrRecordRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsPtrRecordRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsPtrRecordRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ptr_record_request_patch.py b/openapi_client_udm/models/dns_ptr_record_request_patch.py new file mode 100644 index 0000000..1233828 --- /dev/null +++ b/openapi_client_udm/models/dns_ptr_record_request_patch.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsPtrRecordRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DnsPtrRecordRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DnsPtrRecordRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsPtrRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsPtrRecordRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsPtrRecordRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsPtrRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsPtrRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsPtrRecordRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsPtrRecordRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsPtrRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsPtrRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsPtrRecordRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsPtrRecordRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsPtrRecordRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsPtrRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsPtrRecordRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsPtrRecordRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsPtrRecordRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsPtrRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsPtrRecordRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsPtrRecordRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsPtrRecordRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsPtrRecordRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_ptr_record_response_mixin.py b/openapi_client_udm/models/dns_ptr_record_response_mixin.py new file mode 100644 index 0000000..ad65ddd --- /dev/null +++ b/openapi_client_udm/models/dns_ptr_record_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsPtrRecordResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsPtrRecordResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsPtrRecordResponseMixin. # noqa: E501 + + + :return: The links of this DnsPtrRecordResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsPtrRecordResponseMixin. + + + :param links: The links of this DnsPtrRecordResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsPtrRecordResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsPtrRecordResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsPtrRecordResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsPtrRecordResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsPtrRecordResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsPtrRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsPtrRecordResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsPtrRecordResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsPtrRecordResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsPtrRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsPtrRecordResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsPtrRecordResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsPtrRecordResponseMixin. # noqa: E501 + + + :return: The uri of this DnsPtrRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsPtrRecordResponseMixin. + + + :param uri: The uri of this DnsPtrRecordResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsPtrRecordResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsPtrRecordResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_reverse_zone.py b/openapi_client_udm/models/dns_reverse_zone.py new file mode 100644 index 0000000..8395bbe --- /dev/null +++ b/openapi_client_udm/models/dns_reverse_zone.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsReverseZone(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'DnsReverseZonePolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsReverseZone - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsReverseZone. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsReverseZone. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsReverseZone. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsReverseZone. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsReverseZone. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsReverseZone. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsReverseZone. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsReverseZone. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsReverseZone. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsReverseZone. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsReverseZone. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsReverseZone. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsReverseZone. # noqa: E501 + + + :return: The policies of this DnsReverseZone. # noqa: E501 + :rtype: DnsReverseZonePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsReverseZone. + + + :param policies: The policies of this DnsReverseZone. # noqa: E501 + :type policies: DnsReverseZonePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DnsReverseZone. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsReverseZone. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsReverseZone. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsReverseZone. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsReverseZone. # noqa: E501 + + + :return: The links of this DnsReverseZone. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsReverseZone. + + + :param links: The links of this DnsReverseZone. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsReverseZone. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsReverseZone. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsReverseZone. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsReverseZone. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsReverseZone. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsReverseZone. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsReverseZone. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsReverseZone. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsReverseZone. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsReverseZone. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsReverseZone. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsReverseZone. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsReverseZone. # noqa: E501 + + + :return: The uri of this DnsReverseZone. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsReverseZone. + + + :param uri: The uri of this DnsReverseZone. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsReverseZone): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsReverseZone): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_reverse_zone_list.py b/openapi_client_udm/models/dns_reverse_zone_list.py new file mode 100644 index 0000000..e8f28ce --- /dev/null +++ b/openapi_client_udm/models/dns_reverse_zone_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsReverseZoneList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsReverseZoneListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsReverseZoneList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsReverseZoneList. # noqa: E501 + + + :return: The embedded of this DnsReverseZoneList. # noqa: E501 + :rtype: DnsReverseZoneListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsReverseZoneList. + + + :param embedded: The embedded of this DnsReverseZoneList. # noqa: E501 + :type embedded: DnsReverseZoneListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsReverseZoneList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsReverseZoneList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_reverse_zone_list_embedded.py b/openapi_client_udm/models/dns_reverse_zone_list_embedded.py new file mode 100644 index 0000000..ea70a01 --- /dev/null +++ b/openapi_client_udm/models/dns_reverse_zone_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsReverseZoneListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsReverseZone]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsReverseZoneListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsReverseZoneListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsReverseZoneListEmbedded. # noqa: E501 + :rtype: list[DnsReverseZone] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsReverseZoneListEmbedded. + + + :param udmobject: The udmobject of this DnsReverseZoneListEmbedded. # noqa: E501 + :type udmobject: list[DnsReverseZone] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsReverseZoneListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsReverseZoneListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_reverse_zone_policies.py b/openapi_client_udm/models/dns_reverse_zone_policies.py new file mode 100644 index 0000000..8aa0b68 --- /dev/null +++ b/openapi_client_udm/models/dns_reverse_zone_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsReverseZonePolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """DnsReverseZonePolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this DnsReverseZonePolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this DnsReverseZonePolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this DnsReverseZonePolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this DnsReverseZonePolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this DnsReverseZonePolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this DnsReverseZonePolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this DnsReverseZonePolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this DnsReverseZonePolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this DnsReverseZonePolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this DnsReverseZonePolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this DnsReverseZonePolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this DnsReverseZonePolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this DnsReverseZonePolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this DnsReverseZonePolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this DnsReverseZonePolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this DnsReverseZonePolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this DnsReverseZonePolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this DnsReverseZonePolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this DnsReverseZonePolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this DnsReverseZonePolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this DnsReverseZonePolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this DnsReverseZonePolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this DnsReverseZonePolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this DnsReverseZonePolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this DnsReverseZonePolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this DnsReverseZonePolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this DnsReverseZonePolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this DnsReverseZonePolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this DnsReverseZonePolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this DnsReverseZonePolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this DnsReverseZonePolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this DnsReverseZonePolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this DnsReverseZonePolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this DnsReverseZonePolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this DnsReverseZonePolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this DnsReverseZonePolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this DnsReverseZonePolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this DnsReverseZonePolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this DnsReverseZonePolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this DnsReverseZonePolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this DnsReverseZonePolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this DnsReverseZonePolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this DnsReverseZonePolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this DnsReverseZonePolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this DnsReverseZonePolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this DnsReverseZonePolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this DnsReverseZonePolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this DnsReverseZonePolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this DnsReverseZonePolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this DnsReverseZonePolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this DnsReverseZonePolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this DnsReverseZonePolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this DnsReverseZonePolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this DnsReverseZonePolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this DnsReverseZonePolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this DnsReverseZonePolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this DnsReverseZonePolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this DnsReverseZonePolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this DnsReverseZonePolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this DnsReverseZonePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this DnsReverseZonePolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this DnsReverseZonePolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsReverseZonePolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsReverseZonePolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_reverse_zone_request.py b/openapi_client_udm/models/dns_reverse_zone_request.py new file mode 100644 index 0000000..32e5c69 --- /dev/null +++ b/openapi_client_udm/models/dns_reverse_zone_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsReverseZoneRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'DnsReverseZonePolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsReverseZoneRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsReverseZoneRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsReverseZoneRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsReverseZoneRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsReverseZoneRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsReverseZoneRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsReverseZoneRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsReverseZoneRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsReverseZoneRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsReverseZoneRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsReverseZoneRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsReverseZoneRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsReverseZoneRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsReverseZoneRequest. # noqa: E501 + + + :return: The policies of this DnsReverseZoneRequest. # noqa: E501 + :rtype: DnsReverseZonePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsReverseZoneRequest. + + + :param policies: The policies of this DnsReverseZoneRequest. # noqa: E501 + :type policies: DnsReverseZonePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this DnsReverseZoneRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsReverseZoneRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsReverseZoneRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsReverseZoneRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsReverseZoneRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsReverseZoneRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_reverse_zone_request_patch.py b/openapi_client_udm/models/dns_reverse_zone_request_patch.py new file mode 100644 index 0000000..3d1b91b --- /dev/null +++ b/openapi_client_udm/models/dns_reverse_zone_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsReverseZoneRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'DnsReverseZonePolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """DnsReverseZoneRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this DnsReverseZoneRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsReverseZoneRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsReverseZoneRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsReverseZoneRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsReverseZoneRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsReverseZoneRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsReverseZoneRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsReverseZoneRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsReverseZoneRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsReverseZoneRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsReverseZoneRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsReverseZoneRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsReverseZoneRequestPatch. # noqa: E501 + + + :return: The policies of this DnsReverseZoneRequestPatch. # noqa: E501 + :rtype: DnsReverseZonePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsReverseZoneRequestPatch. + + + :param policies: The policies of this DnsReverseZoneRequestPatch. # noqa: E501 + :type policies: DnsReverseZonePolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsReverseZoneRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsReverseZoneRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_reverse_zone_response_mixin.py b/openapi_client_udm/models/dns_reverse_zone_response_mixin.py new file mode 100644 index 0000000..df4562d --- /dev/null +++ b/openapi_client_udm/models/dns_reverse_zone_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsReverseZoneResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsReverseZoneResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsReverseZoneResponseMixin. # noqa: E501 + + + :return: The links of this DnsReverseZoneResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsReverseZoneResponseMixin. + + + :param links: The links of this DnsReverseZoneResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsReverseZoneResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsReverseZoneResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsReverseZoneResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsReverseZoneResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsReverseZoneResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsReverseZoneResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsReverseZoneResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsReverseZoneResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsReverseZoneResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsReverseZoneResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsReverseZoneResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsReverseZoneResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsReverseZoneResponseMixin. # noqa: E501 + + + :return: The uri of this DnsReverseZoneResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsReverseZoneResponseMixin. + + + :param uri: The uri of this DnsReverseZoneResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsReverseZoneResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsReverseZoneResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_srv_record.py b/openapi_client_udm/models/dns_srv_record.py new file mode 100644 index 0000000..eec7f60 --- /dev/null +++ b/openapi_client_udm/models/dns_srv_record.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsSrvRecord(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsSrvRecord - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsSrvRecord. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsSrvRecord. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsSrvRecord. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsSrvRecord. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsSrvRecord. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsSrvRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsSrvRecord. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsSrvRecord. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsSrvRecord. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsSrvRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsSrvRecord. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsSrvRecord. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsSrvRecord. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsSrvRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsSrvRecord. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsSrvRecord. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsSrvRecord. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsSrvRecord. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsSrvRecord. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsSrvRecord. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsSrvRecord. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsSrvRecord. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsSrvRecord. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsSrvRecord. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsSrvRecord. # noqa: E501 + + + :return: The links of this DnsSrvRecord. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsSrvRecord. + + + :param links: The links of this DnsSrvRecord. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsSrvRecord. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsSrvRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsSrvRecord. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsSrvRecord. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsSrvRecord. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsSrvRecord. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsSrvRecord. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsSrvRecord. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsSrvRecord. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsSrvRecord. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsSrvRecord. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsSrvRecord. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsSrvRecord. # noqa: E501 + + + :return: The uri of this DnsSrvRecord. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsSrvRecord. + + + :param uri: The uri of this DnsSrvRecord. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsSrvRecord): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsSrvRecord): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_srv_record_list.py b/openapi_client_udm/models/dns_srv_record_list.py new file mode 100644 index 0000000..54f63ec --- /dev/null +++ b/openapi_client_udm/models/dns_srv_record_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsSrvRecordList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsSrvRecordListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsSrvRecordList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsSrvRecordList. # noqa: E501 + + + :return: The embedded of this DnsSrvRecordList. # noqa: E501 + :rtype: DnsSrvRecordListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsSrvRecordList. + + + :param embedded: The embedded of this DnsSrvRecordList. # noqa: E501 + :type embedded: DnsSrvRecordListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsSrvRecordList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsSrvRecordList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_srv_record_list_embedded.py b/openapi_client_udm/models/dns_srv_record_list_embedded.py new file mode 100644 index 0000000..7826e1d --- /dev/null +++ b/openapi_client_udm/models/dns_srv_record_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsSrvRecordListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsSrvRecord]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsSrvRecordListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsSrvRecordListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsSrvRecordListEmbedded. # noqa: E501 + :rtype: list[DnsSrvRecord] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsSrvRecordListEmbedded. + + + :param udmobject: The udmobject of this DnsSrvRecordListEmbedded. # noqa: E501 + :type udmobject: list[DnsSrvRecord] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsSrvRecordListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsSrvRecordListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_srv_record_request.py b/openapi_client_udm/models/dns_srv_record_request.py new file mode 100644 index 0000000..ab1fea8 --- /dev/null +++ b/openapi_client_udm/models/dns_srv_record_request.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsSrvRecordRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsSrvRecordRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsSrvRecordRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsSrvRecordRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsSrvRecordRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsSrvRecordRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsSrvRecordRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsSrvRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsSrvRecordRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsSrvRecordRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsSrvRecordRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsSrvRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsSrvRecordRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsSrvRecordRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsSrvRecordRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsSrvRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsSrvRecordRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsSrvRecordRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsSrvRecordRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsSrvRecordRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsSrvRecordRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsSrvRecordRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsSrvRecordRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsSrvRecordRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsSrvRecordRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsSrvRecordRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsSrvRecordRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsSrvRecordRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_srv_record_request_patch.py b/openapi_client_udm/models/dns_srv_record_request_patch.py new file mode 100644 index 0000000..e7dfa1c --- /dev/null +++ b/openapi_client_udm/models/dns_srv_record_request_patch.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsSrvRecordRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DnsSrvRecordRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DnsSrvRecordRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsSrvRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsSrvRecordRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsSrvRecordRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsSrvRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsSrvRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsSrvRecordRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsSrvRecordRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsSrvRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsSrvRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsSrvRecordRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsSrvRecordRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsSrvRecordRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsSrvRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsSrvRecordRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsSrvRecordRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsSrvRecordRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsSrvRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsSrvRecordRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsSrvRecordRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsSrvRecordRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsSrvRecordRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_srv_record_response_mixin.py b/openapi_client_udm/models/dns_srv_record_response_mixin.py new file mode 100644 index 0000000..d660485 --- /dev/null +++ b/openapi_client_udm/models/dns_srv_record_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsSrvRecordResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsSrvRecordResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsSrvRecordResponseMixin. # noqa: E501 + + + :return: The links of this DnsSrvRecordResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsSrvRecordResponseMixin. + + + :param links: The links of this DnsSrvRecordResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsSrvRecordResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsSrvRecordResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsSrvRecordResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsSrvRecordResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsSrvRecordResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsSrvRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsSrvRecordResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsSrvRecordResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsSrvRecordResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsSrvRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsSrvRecordResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsSrvRecordResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsSrvRecordResponseMixin. # noqa: E501 + + + :return: The uri of this DnsSrvRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsSrvRecordResponseMixin. + + + :param uri: The uri of this DnsSrvRecordResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsSrvRecordResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsSrvRecordResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_txt_record.py b/openapi_client_udm/models/dns_txt_record.py new file mode 100644 index 0000000..fe94bfa --- /dev/null +++ b/openapi_client_udm/models/dns_txt_record.py @@ -0,0 +1,430 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsTxtRecord(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsTxtRecord - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this DnsTxtRecord. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsTxtRecord. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsTxtRecord. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsTxtRecord. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsTxtRecord. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsTxtRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsTxtRecord. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsTxtRecord. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsTxtRecord. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsTxtRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsTxtRecord. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsTxtRecord. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsTxtRecord. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsTxtRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsTxtRecord. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsTxtRecord. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsTxtRecord. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsTxtRecord. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsTxtRecord. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsTxtRecord. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsTxtRecord. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsTxtRecord. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsTxtRecord. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsTxtRecord. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this DnsTxtRecord. # noqa: E501 + + + :return: The links of this DnsTxtRecord. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsTxtRecord. + + + :param links: The links of this DnsTxtRecord. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsTxtRecord. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsTxtRecord. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsTxtRecord. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsTxtRecord. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsTxtRecord. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsTxtRecord. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsTxtRecord. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsTxtRecord. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsTxtRecord. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsTxtRecord. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsTxtRecord. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsTxtRecord. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsTxtRecord. # noqa: E501 + + + :return: The uri of this DnsTxtRecord. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsTxtRecord. + + + :param uri: The uri of this DnsTxtRecord. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsTxtRecord): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsTxtRecord): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_txt_record_list.py b/openapi_client_udm/models/dns_txt_record_list.py new file mode 100644 index 0000000..39feccc --- /dev/null +++ b/openapi_client_udm/models/dns_txt_record_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsTxtRecordList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'DnsTxtRecordListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """DnsTxtRecordList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this DnsTxtRecordList. # noqa: E501 + + + :return: The embedded of this DnsTxtRecordList. # noqa: E501 + :rtype: DnsTxtRecordListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsTxtRecordList. + + + :param embedded: The embedded of this DnsTxtRecordList. # noqa: E501 + :type embedded: DnsTxtRecordListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsTxtRecordList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsTxtRecordList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_txt_record_list_embedded.py b/openapi_client_udm/models/dns_txt_record_list_embedded.py new file mode 100644 index 0000000..a3f7d30 --- /dev/null +++ b/openapi_client_udm/models/dns_txt_record_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsTxtRecordListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[DnsTxtRecord]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """DnsTxtRecordListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this DnsTxtRecordListEmbedded. # noqa: E501 + + + :return: The udmobject of this DnsTxtRecordListEmbedded. # noqa: E501 + :rtype: list[DnsTxtRecord] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this DnsTxtRecordListEmbedded. + + + :param udmobject: The udmobject of this DnsTxtRecordListEmbedded. # noqa: E501 + :type udmobject: list[DnsTxtRecord] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsTxtRecordListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsTxtRecordListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_txt_record_request.py b/openapi_client_udm/models/dns_txt_record_request.py new file mode 100644 index 0000000..601a522 --- /dev/null +++ b/openapi_client_udm/models/dns_txt_record_request.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsTxtRecordRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, position=None, local_vars_configuration=None): # noqa: E501 + """DnsTxtRecordRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this DnsTxtRecordRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsTxtRecordRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsTxtRecordRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsTxtRecordRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsTxtRecordRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsTxtRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsTxtRecordRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsTxtRecordRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsTxtRecordRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsTxtRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsTxtRecordRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsTxtRecordRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsTxtRecordRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsTxtRecordRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsTxtRecordRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsTxtRecordRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsTxtRecordRequest. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsTxtRecordRequest. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsTxtRecordRequest. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsTxtRecordRequest. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + @property + def position(self): + """Gets the position of this DnsTxtRecordRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this DnsTxtRecordRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this DnsTxtRecordRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this DnsTxtRecordRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsTxtRecordRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsTxtRecordRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_txt_record_request_patch.py b/openapi_client_udm/models/dns_txt_record_request_patch.py new file mode 100644 index 0000000..4f93ac0 --- /dev/null +++ b/openapi_client_udm/models/dns_txt_record_request_patch.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsTxtRecordRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'superordinate': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'superordinate': 'superordinate' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, superordinate=None, local_vars_configuration=None): # noqa: E501 + """DnsTxtRecordRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._superordinate = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if superordinate is not None: + self.superordinate = superordinate + + @property + def dn(self): + """Gets the dn of this DnsTxtRecordRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this DnsTxtRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this DnsTxtRecordRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this DnsTxtRecordRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this DnsTxtRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this DnsTxtRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this DnsTxtRecordRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this DnsTxtRecordRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this DnsTxtRecordRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this DnsTxtRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this DnsTxtRecordRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this DnsTxtRecordRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this DnsTxtRecordRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this DnsTxtRecordRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this DnsTxtRecordRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this DnsTxtRecordRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def superordinate(self): + """Gets the superordinate of this DnsTxtRecordRequestPatch. # noqa: E501 + + The superordinate DN of the object. # noqa: E501 + + :return: The superordinate of this DnsTxtRecordRequestPatch. # noqa: E501 + :rtype: str + """ + return self._superordinate + + @superordinate.setter + def superordinate(self, superordinate): + """Sets the superordinate of this DnsTxtRecordRequestPatch. + + The superordinate DN of the object. # noqa: E501 + + :param superordinate: The superordinate of this DnsTxtRecordRequestPatch. # noqa: E501 + :type superordinate: str + """ + + self._superordinate = superordinate + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsTxtRecordRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsTxtRecordRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/dns_txt_record_response_mixin.py b/openapi_client_udm/models/dns_txt_record_response_mixin.py new file mode 100644 index 0000000..1e858c4 --- /dev/null +++ b/openapi_client_udm/models/dns_txt_record_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class DnsTxtRecordResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """DnsTxtRecordResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this DnsTxtRecordResponseMixin. # noqa: E501 + + + :return: The links of this DnsTxtRecordResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this DnsTxtRecordResponseMixin. + + + :param links: The links of this DnsTxtRecordResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this DnsTxtRecordResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this DnsTxtRecordResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this DnsTxtRecordResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this DnsTxtRecordResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this DnsTxtRecordResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this DnsTxtRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this DnsTxtRecordResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this DnsTxtRecordResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this DnsTxtRecordResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this DnsTxtRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this DnsTxtRecordResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this DnsTxtRecordResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this DnsTxtRecordResponseMixin. # noqa: E501 + + + :return: The uri of this DnsTxtRecordResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this DnsTxtRecordResponseMixin. + + + :param uri: The uri of this DnsTxtRecordResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DnsTxtRecordResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DnsTxtRecordResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/embedded_error.py b/openapi_client_udm/models/embedded_error.py new file mode 100644 index 0000000..fb731d2 --- /dev/null +++ b/openapi_client_udm/models/embedded_error.py @@ -0,0 +1,248 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class EmbeddedError(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'dict(str, object)', + 'code': 'int', + 'message': 'str', + 'title': 'str', + 'traceback': 'str' + } + + attribute_map = { + 'embedded': '_embedded', + 'code': 'code', + 'message': 'message', + 'title': 'title', + 'traceback': 'traceback' + } + + def __init__(self, embedded=None, code=None, message=None, title=None, traceback=None, local_vars_configuration=None): # noqa: E501 + """EmbeddedError - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self._code = None + self._message = None + self._title = None + self._traceback = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + if code is not None: + self.code = code + if message is not None: + self.message = message + if title is not None: + self.title = title + self.traceback = traceback + + @property + def embedded(self): + """Gets the embedded of this EmbeddedError. # noqa: E501 + + + :return: The embedded of this EmbeddedError. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this EmbeddedError. + + + :param embedded: The embedded of this EmbeddedError. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def code(self): + """Gets the code of this EmbeddedError. # noqa: E501 + + HTTP status code equivalent. # noqa: E501 + + :return: The code of this EmbeddedError. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this EmbeddedError. + + HTTP status code equivalent. # noqa: E501 + + :param code: The code of this EmbeddedError. # noqa: E501 + :type code: int + """ + if (self.local_vars_configuration.client_side_validation and + code is not None and code > 599): # noqa: E501 + raise ValueError("Invalid value for `code`, must be a value less than or equal to `599`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + code is not None and code < 400): # noqa: E501 + raise ValueError("Invalid value for `code`, must be a value greater than or equal to `400`") # noqa: E501 + + self._code = code + + @property + def message(self): + """Gets the message of this EmbeddedError. # noqa: E501 + + A human readable error message. # noqa: E501 + + :return: The message of this EmbeddedError. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this EmbeddedError. + + A human readable error message. # noqa: E501 + + :param message: The message of this EmbeddedError. # noqa: E501 + :type message: str + """ + + self._message = message + + @property + def title(self): + """Gets the title of this EmbeddedError. # noqa: E501 + + short title for the error. # noqa: E501 + + :return: The title of this EmbeddedError. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this EmbeddedError. + + short title for the error. # noqa: E501 + + :param title: The title of this EmbeddedError. # noqa: E501 + :type title: str + """ + + self._title = title + + @property + def traceback(self): + """Gets the traceback of this EmbeddedError. # noqa: E501 + + A stacktrace (if enabled and server error). # noqa: E501 + + :return: The traceback of this EmbeddedError. # noqa: E501 + :rtype: str + """ + return self._traceback + + @traceback.setter + def traceback(self, traceback): + """Sets the traceback of this EmbeddedError. + + A stacktrace (if enabled and server error). # noqa: E501 + + :param traceback: The traceback of this EmbeddedError. # noqa: E501 + :type traceback: str + """ + + self._traceback = traceback + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EmbeddedError): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, EmbeddedError): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/groups_group.py b/openapi_client_udm/models/groups_group.py new file mode 100644 index 0000000..4b18caa --- /dev/null +++ b/openapi_client_udm/models/groups_group.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class GroupsGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'GroupsGroupOptions', + 'policies': 'GroupsGroupPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """GroupsGroup - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this GroupsGroup. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this GroupsGroup. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this GroupsGroup. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this GroupsGroup. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this GroupsGroup. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this GroupsGroup. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this GroupsGroup. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this GroupsGroup. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this GroupsGroup. # noqa: E501 + + + :return: The options of this GroupsGroup. # noqa: E501 + :rtype: GroupsGroupOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this GroupsGroup. + + + :param options: The options of this GroupsGroup. # noqa: E501 + :type options: GroupsGroupOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this GroupsGroup. # noqa: E501 + + + :return: The policies of this GroupsGroup. # noqa: E501 + :rtype: GroupsGroupPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this GroupsGroup. + + + :param policies: The policies of this GroupsGroup. # noqa: E501 + :type policies: GroupsGroupPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this GroupsGroup. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this GroupsGroup. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this GroupsGroup. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this GroupsGroup. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this GroupsGroup. # noqa: E501 + + + :return: The links of this GroupsGroup. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this GroupsGroup. + + + :param links: The links of this GroupsGroup. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this GroupsGroup. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this GroupsGroup. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this GroupsGroup. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this GroupsGroup. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this GroupsGroup. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this GroupsGroup. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this GroupsGroup. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this GroupsGroup. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this GroupsGroup. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this GroupsGroup. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this GroupsGroup. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this GroupsGroup. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this GroupsGroup. # noqa: E501 + + + :return: The uri of this GroupsGroup. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this GroupsGroup. + + + :param uri: The uri of this GroupsGroup. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupsGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupsGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/groups_group_list.py b/openapi_client_udm/models/groups_group_list.py new file mode 100644 index 0000000..70c7bff --- /dev/null +++ b/openapi_client_udm/models/groups_group_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class GroupsGroupList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'GroupsGroupListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """GroupsGroupList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this GroupsGroupList. # noqa: E501 + + + :return: The embedded of this GroupsGroupList. # noqa: E501 + :rtype: GroupsGroupListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this GroupsGroupList. + + + :param embedded: The embedded of this GroupsGroupList. # noqa: E501 + :type embedded: GroupsGroupListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupsGroupList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupsGroupList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/groups_group_list_embedded.py b/openapi_client_udm/models/groups_group_list_embedded.py new file mode 100644 index 0000000..28ca2a7 --- /dev/null +++ b/openapi_client_udm/models/groups_group_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class GroupsGroupListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[GroupsGroup]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """GroupsGroupListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this GroupsGroupListEmbedded. # noqa: E501 + + + :return: The udmobject of this GroupsGroupListEmbedded. # noqa: E501 + :rtype: list[GroupsGroup] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this GroupsGroupListEmbedded. + + + :param udmobject: The udmobject of this GroupsGroupListEmbedded. # noqa: E501 + :type udmobject: list[GroupsGroup] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupsGroupListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupsGroupListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/groups_group_options.py b/openapi_client_udm/models/groups_group_options.py new file mode 100644 index 0000000..6c45d48 --- /dev/null +++ b/openapi_client_udm/models/groups_group_options.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class GroupsGroupOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'posix': 'bool', + 'samba': 'bool' + } + + attribute_map = { + 'posix': 'posix', + 'samba': 'samba' + } + + def __init__(self, posix=True, samba=True, local_vars_configuration=None): # noqa: E501 + """GroupsGroupOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._posix = None + self._samba = None + self.discriminator = None + + if posix is not None: + self.posix = posix + if samba is not None: + self.samba = samba + + @property + def posix(self): + """Gets the posix of this GroupsGroupOptions. # noqa: E501 + + Posix group # noqa: E501 + + :return: The posix of this GroupsGroupOptions. # noqa: E501 + :rtype: bool + """ + return self._posix + + @posix.setter + def posix(self, posix): + """Sets the posix of this GroupsGroupOptions. + + Posix group # noqa: E501 + + :param posix: The posix of this GroupsGroupOptions. # noqa: E501 + :type posix: bool + """ + + self._posix = posix + + @property + def samba(self): + """Gets the samba of this GroupsGroupOptions. # noqa: E501 + + Samba group # noqa: E501 + + :return: The samba of this GroupsGroupOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this GroupsGroupOptions. + + Samba group # noqa: E501 + + :param samba: The samba of this GroupsGroupOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupsGroupOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupsGroupOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/groups_group_policies.py b/openapi_client_udm/models/groups_group_policies.py new file mode 100644 index 0000000..63d5921 --- /dev/null +++ b/openapi_client_udm/models/groups_group_policies.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class GroupsGroupPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_umc': 'list[str]' + } + + attribute_map = { + 'policies_umc': 'policies/umc' + } + + def __init__(self, policies_umc=None, local_vars_configuration=None): # noqa: E501 + """GroupsGroupPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_umc = None + self.discriminator = None + + if policies_umc is not None: + self.policies_umc = policies_umc + + @property + def policies_umc(self): + """Gets the policies_umc of this GroupsGroupPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this GroupsGroupPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this GroupsGroupPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this GroupsGroupPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupsGroupPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupsGroupPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/groups_group_request.py b/openapi_client_udm/models/groups_group_request.py new file mode 100644 index 0000000..bc96184 --- /dev/null +++ b/openapi_client_udm/models/groups_group_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class GroupsGroupRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'GroupsGroupOptions', + 'policies': 'GroupsGroupPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """GroupsGroupRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this GroupsGroupRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this GroupsGroupRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this GroupsGroupRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this GroupsGroupRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this GroupsGroupRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this GroupsGroupRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this GroupsGroupRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this GroupsGroupRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this GroupsGroupRequest. # noqa: E501 + + + :return: The options of this GroupsGroupRequest. # noqa: E501 + :rtype: GroupsGroupOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this GroupsGroupRequest. + + + :param options: The options of this GroupsGroupRequest. # noqa: E501 + :type options: GroupsGroupOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this GroupsGroupRequest. # noqa: E501 + + + :return: The policies of this GroupsGroupRequest. # noqa: E501 + :rtype: GroupsGroupPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this GroupsGroupRequest. + + + :param policies: The policies of this GroupsGroupRequest. # noqa: E501 + :type policies: GroupsGroupPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this GroupsGroupRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this GroupsGroupRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this GroupsGroupRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this GroupsGroupRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupsGroupRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupsGroupRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/groups_group_request_patch.py b/openapi_client_udm/models/groups_group_request_patch.py new file mode 100644 index 0000000..ff85d7c --- /dev/null +++ b/openapi_client_udm/models/groups_group_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class GroupsGroupRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'GroupsGroupOptions', + 'policies': 'GroupsGroupPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """GroupsGroupRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this GroupsGroupRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this GroupsGroupRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this GroupsGroupRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this GroupsGroupRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this GroupsGroupRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this GroupsGroupRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this GroupsGroupRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this GroupsGroupRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this GroupsGroupRequestPatch. # noqa: E501 + + + :return: The options of this GroupsGroupRequestPatch. # noqa: E501 + :rtype: GroupsGroupOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this GroupsGroupRequestPatch. + + + :param options: The options of this GroupsGroupRequestPatch. # noqa: E501 + :type options: GroupsGroupOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this GroupsGroupRequestPatch. # noqa: E501 + + + :return: The policies of this GroupsGroupRequestPatch. # noqa: E501 + :rtype: GroupsGroupPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this GroupsGroupRequestPatch. + + + :param policies: The policies of this GroupsGroupRequestPatch. # noqa: E501 + :type policies: GroupsGroupPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupsGroupRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupsGroupRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/groups_group_response_mixin.py b/openapi_client_udm/models/groups_group_response_mixin.py new file mode 100644 index 0000000..95f1689 --- /dev/null +++ b/openapi_client_udm/models/groups_group_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class GroupsGroupResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """GroupsGroupResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this GroupsGroupResponseMixin. # noqa: E501 + + + :return: The links of this GroupsGroupResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this GroupsGroupResponseMixin. + + + :param links: The links of this GroupsGroupResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this GroupsGroupResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this GroupsGroupResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this GroupsGroupResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this GroupsGroupResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this GroupsGroupResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this GroupsGroupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this GroupsGroupResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this GroupsGroupResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this GroupsGroupResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this GroupsGroupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this GroupsGroupResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this GroupsGroupResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this GroupsGroupResponseMixin. # noqa: E501 + + + :return: The uri of this GroupsGroupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this GroupsGroupResponseMixin. + + + :param uri: The uri of this GroupsGroupResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GroupsGroupResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GroupsGroupResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/inline_response201.py b/openapi_client_udm/models/inline_response201.py new file mode 100644 index 0000000..57cf373 --- /dev/null +++ b/openapi_client_udm/models/inline_response201.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class InlineResponse201(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'uuid': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'uuid': 'uuid' + } + + def __init__(self, dn=None, uuid=None, local_vars_configuration=None): # noqa: E501 + """InlineResponse201 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._uuid = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if uuid is not None: + self.uuid = uuid + + @property + def dn(self): + """Gets the dn of this InlineResponse201. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this InlineResponse201. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this InlineResponse201. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this InlineResponse201. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def uuid(self): + """Gets the uuid of this InlineResponse201. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this InlineResponse201. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this InlineResponse201. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this InlineResponse201. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse201): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, InlineResponse201): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/kerberos_kdcentry.py b/openapi_client_udm/models/kerberos_kdcentry.py new file mode 100644 index 0000000..582a29c --- /dev/null +++ b/openapi_client_udm/models/kerberos_kdcentry.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class KerberosKdcentry(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """KerberosKdcentry - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this KerberosKdcentry. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this KerberosKdcentry. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this KerberosKdcentry. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this KerberosKdcentry. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this KerberosKdcentry. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this KerberosKdcentry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this KerberosKdcentry. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this KerberosKdcentry. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this KerberosKdcentry. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this KerberosKdcentry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this KerberosKdcentry. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this KerberosKdcentry. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this KerberosKdcentry. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this KerberosKdcentry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this KerberosKdcentry. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this KerberosKdcentry. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this KerberosKdcentry. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this KerberosKdcentry. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this KerberosKdcentry. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this KerberosKdcentry. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this KerberosKdcentry. # noqa: E501 + + + :return: The links of this KerberosKdcentry. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this KerberosKdcentry. + + + :param links: The links of this KerberosKdcentry. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this KerberosKdcentry. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this KerberosKdcentry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this KerberosKdcentry. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this KerberosKdcentry. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this KerberosKdcentry. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this KerberosKdcentry. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this KerberosKdcentry. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this KerberosKdcentry. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this KerberosKdcentry. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this KerberosKdcentry. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this KerberosKdcentry. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this KerberosKdcentry. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this KerberosKdcentry. # noqa: E501 + + + :return: The uri of this KerberosKdcentry. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this KerberosKdcentry. + + + :param uri: The uri of this KerberosKdcentry. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KerberosKdcentry): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, KerberosKdcentry): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/kerberos_kdcentry_list.py b/openapi_client_udm/models/kerberos_kdcentry_list.py new file mode 100644 index 0000000..cc94cec --- /dev/null +++ b/openapi_client_udm/models/kerberos_kdcentry_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class KerberosKdcentryList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'KerberosKdcentryListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """KerberosKdcentryList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this KerberosKdcentryList. # noqa: E501 + + + :return: The embedded of this KerberosKdcentryList. # noqa: E501 + :rtype: KerberosKdcentryListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this KerberosKdcentryList. + + + :param embedded: The embedded of this KerberosKdcentryList. # noqa: E501 + :type embedded: KerberosKdcentryListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KerberosKdcentryList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, KerberosKdcentryList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/kerberos_kdcentry_list_embedded.py b/openapi_client_udm/models/kerberos_kdcentry_list_embedded.py new file mode 100644 index 0000000..59be15b --- /dev/null +++ b/openapi_client_udm/models/kerberos_kdcentry_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class KerberosKdcentryListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[KerberosKdcentry]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """KerberosKdcentryListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this KerberosKdcentryListEmbedded. # noqa: E501 + + + :return: The udmobject of this KerberosKdcentryListEmbedded. # noqa: E501 + :rtype: list[KerberosKdcentry] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this KerberosKdcentryListEmbedded. + + + :param udmobject: The udmobject of this KerberosKdcentryListEmbedded. # noqa: E501 + :type udmobject: list[KerberosKdcentry] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KerberosKdcentryListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, KerberosKdcentryListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/kerberos_kdcentry_request.py b/openapi_client_udm/models/kerberos_kdcentry_request.py new file mode 100644 index 0000000..71e907a --- /dev/null +++ b/openapi_client_udm/models/kerberos_kdcentry_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class KerberosKdcentryRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """KerberosKdcentryRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this KerberosKdcentryRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this KerberosKdcentryRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this KerberosKdcentryRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this KerberosKdcentryRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this KerberosKdcentryRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this KerberosKdcentryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this KerberosKdcentryRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this KerberosKdcentryRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this KerberosKdcentryRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this KerberosKdcentryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this KerberosKdcentryRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this KerberosKdcentryRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this KerberosKdcentryRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this KerberosKdcentryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this KerberosKdcentryRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this KerberosKdcentryRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this KerberosKdcentryRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this KerberosKdcentryRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this KerberosKdcentryRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this KerberosKdcentryRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KerberosKdcentryRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, KerberosKdcentryRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/kerberos_kdcentry_request_patch.py b/openapi_client_udm/models/kerberos_kdcentry_request_patch.py new file mode 100644 index 0000000..494ae89 --- /dev/null +++ b/openapi_client_udm/models/kerberos_kdcentry_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class KerberosKdcentryRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """KerberosKdcentryRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this KerberosKdcentryRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this KerberosKdcentryRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this KerberosKdcentryRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this KerberosKdcentryRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this KerberosKdcentryRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this KerberosKdcentryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this KerberosKdcentryRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this KerberosKdcentryRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this KerberosKdcentryRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this KerberosKdcentryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this KerberosKdcentryRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this KerberosKdcentryRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this KerberosKdcentryRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this KerberosKdcentryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this KerberosKdcentryRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this KerberosKdcentryRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KerberosKdcentryRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, KerberosKdcentryRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/kerberos_kdcentry_response_mixin.py b/openapi_client_udm/models/kerberos_kdcentry_response_mixin.py new file mode 100644 index 0000000..ea1f3b7 --- /dev/null +++ b/openapi_client_udm/models/kerberos_kdcentry_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class KerberosKdcentryResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """KerberosKdcentryResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this KerberosKdcentryResponseMixin. # noqa: E501 + + + :return: The links of this KerberosKdcentryResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this KerberosKdcentryResponseMixin. + + + :param links: The links of this KerberosKdcentryResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this KerberosKdcentryResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this KerberosKdcentryResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this KerberosKdcentryResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this KerberosKdcentryResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this KerberosKdcentryResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this KerberosKdcentryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this KerberosKdcentryResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this KerberosKdcentryResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this KerberosKdcentryResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this KerberosKdcentryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this KerberosKdcentryResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this KerberosKdcentryResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this KerberosKdcentryResponseMixin. # noqa: E501 + + + :return: The uri of this KerberosKdcentryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this KerberosKdcentryResponseMixin. + + + :param uri: The uri of this KerberosKdcentryResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KerberosKdcentryResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, KerberosKdcentryResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/links.py b/openapi_client_udm/models/links.py new file mode 100644 index 0000000..af524a7 --- /dev/null +++ b/openapi_client_udm/models/links.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class Links(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + '_self': 'list[dict(str, object)]' + } + + attribute_map = { + '_self': 'self' + } + + def __init__(self, _self=None, local_vars_configuration=None): # noqa: E501 + """Links - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self.__self = None + self.discriminator = None + + if _self is not None: + self._self = _self + + @property + def _self(self): + """Gets the _self of this Links. # noqa: E501 + + + :return: The _self of this Links. # noqa: E501 + :rtype: list[dict(str, object)] + """ + return self.__self + + @_self.setter + def _self(self, _self): + """Sets the _self of this Links. + + + :param _self: The _self of this Links. # noqa: E501 + :type _self: list[dict(str, object)] + """ + if (self.local_vars_configuration.client_side_validation and + _self is not None and len(_self) < 0): + raise ValueError("Invalid value for `_self`, number of items must be greater than or equal to `0`") # noqa: E501 + + self.__self = _self + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Links): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Links): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_domain.py b/openapi_client_udm/models/mail_domain.py new file mode 100644 index 0000000..a317d2d --- /dev/null +++ b/openapi_client_udm/models/mail_domain.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailDomain(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MailDomain - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MailDomain. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailDomain. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailDomain. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailDomain. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailDomain. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailDomain. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailDomain. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailDomain. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailDomain. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailDomain. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailDomain. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailDomain. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailDomain. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailDomain. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailDomain. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailDomain. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MailDomain. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MailDomain. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MailDomain. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MailDomain. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MailDomain. # noqa: E501 + + + :return: The links of this MailDomain. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MailDomain. + + + :param links: The links of this MailDomain. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MailDomain. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MailDomain. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailDomain. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MailDomain. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MailDomain. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MailDomain. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MailDomain. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MailDomain. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MailDomain. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MailDomain. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MailDomain. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MailDomain. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MailDomain. # noqa: E501 + + + :return: The uri of this MailDomain. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MailDomain. + + + :param uri: The uri of this MailDomain. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailDomain): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailDomain): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_domain_list.py b/openapi_client_udm/models/mail_domain_list.py new file mode 100644 index 0000000..38fab79 --- /dev/null +++ b/openapi_client_udm/models/mail_domain_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailDomainList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MailDomainListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MailDomainList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MailDomainList. # noqa: E501 + + + :return: The embedded of this MailDomainList. # noqa: E501 + :rtype: MailDomainListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailDomainList. + + + :param embedded: The embedded of this MailDomainList. # noqa: E501 + :type embedded: MailDomainListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailDomainList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailDomainList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_domain_list_embedded.py b/openapi_client_udm/models/mail_domain_list_embedded.py new file mode 100644 index 0000000..8ea9413 --- /dev/null +++ b/openapi_client_udm/models/mail_domain_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailDomainListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MailDomain]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MailDomainListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MailDomainListEmbedded. # noqa: E501 + + + :return: The udmobject of this MailDomainListEmbedded. # noqa: E501 + :rtype: list[MailDomain] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MailDomainListEmbedded. + + + :param udmobject: The udmobject of this MailDomainListEmbedded. # noqa: E501 + :type udmobject: list[MailDomain] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailDomainListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailDomainListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_domain_request.py b/openapi_client_udm/models/mail_domain_request.py new file mode 100644 index 0000000..bfab311 --- /dev/null +++ b/openapi_client_udm/models/mail_domain_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailDomainRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MailDomainRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MailDomainRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailDomainRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailDomainRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailDomainRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailDomainRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailDomainRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailDomainRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailDomainRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailDomainRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailDomainRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailDomainRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailDomainRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailDomainRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailDomainRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailDomainRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailDomainRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MailDomainRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MailDomainRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MailDomainRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MailDomainRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailDomainRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailDomainRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_domain_request_patch.py b/openapi_client_udm/models/mail_domain_request_patch.py new file mode 100644 index 0000000..996d1c3 --- /dev/null +++ b/openapi_client_udm/models/mail_domain_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailDomainRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MailDomainRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MailDomainRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailDomainRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailDomainRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailDomainRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailDomainRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailDomainRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailDomainRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailDomainRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailDomainRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailDomainRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailDomainRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailDomainRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailDomainRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailDomainRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailDomainRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailDomainRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailDomainRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailDomainRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_domain_response_mixin.py b/openapi_client_udm/models/mail_domain_response_mixin.py new file mode 100644 index 0000000..d150252 --- /dev/null +++ b/openapi_client_udm/models/mail_domain_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailDomainResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MailDomainResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MailDomainResponseMixin. # noqa: E501 + + + :return: The links of this MailDomainResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MailDomainResponseMixin. + + + :param links: The links of this MailDomainResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MailDomainResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MailDomainResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailDomainResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MailDomainResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MailDomainResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MailDomainResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MailDomainResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MailDomainResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MailDomainResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MailDomainResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MailDomainResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MailDomainResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MailDomainResponseMixin. # noqa: E501 + + + :return: The uri of this MailDomainResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MailDomainResponseMixin. + + + :param uri: The uri of this MailDomainResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailDomainResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailDomainResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_folder.py b/openapi_client_udm/models/mail_folder.py new file mode 100644 index 0000000..3feb774 --- /dev/null +++ b/openapi_client_udm/models/mail_folder.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailFolder(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MailFolder - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MailFolder. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailFolder. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailFolder. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailFolder. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailFolder. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailFolder. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailFolder. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailFolder. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailFolder. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailFolder. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailFolder. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailFolder. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailFolder. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailFolder. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailFolder. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailFolder. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MailFolder. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MailFolder. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MailFolder. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MailFolder. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MailFolder. # noqa: E501 + + + :return: The links of this MailFolder. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MailFolder. + + + :param links: The links of this MailFolder. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MailFolder. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MailFolder. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailFolder. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MailFolder. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MailFolder. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MailFolder. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MailFolder. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MailFolder. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MailFolder. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MailFolder. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MailFolder. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MailFolder. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MailFolder. # noqa: E501 + + + :return: The uri of this MailFolder. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MailFolder. + + + :param uri: The uri of this MailFolder. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailFolder): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailFolder): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_folder_list.py b/openapi_client_udm/models/mail_folder_list.py new file mode 100644 index 0000000..aefd878 --- /dev/null +++ b/openapi_client_udm/models/mail_folder_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailFolderList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MailFolderListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MailFolderList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MailFolderList. # noqa: E501 + + + :return: The embedded of this MailFolderList. # noqa: E501 + :rtype: MailFolderListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailFolderList. + + + :param embedded: The embedded of this MailFolderList. # noqa: E501 + :type embedded: MailFolderListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailFolderList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailFolderList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_folder_list_embedded.py b/openapi_client_udm/models/mail_folder_list_embedded.py new file mode 100644 index 0000000..76a8c14 --- /dev/null +++ b/openapi_client_udm/models/mail_folder_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailFolderListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MailFolder]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MailFolderListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MailFolderListEmbedded. # noqa: E501 + + + :return: The udmobject of this MailFolderListEmbedded. # noqa: E501 + :rtype: list[MailFolder] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MailFolderListEmbedded. + + + :param udmobject: The udmobject of this MailFolderListEmbedded. # noqa: E501 + :type udmobject: list[MailFolder] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailFolderListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailFolderListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_folder_request.py b/openapi_client_udm/models/mail_folder_request.py new file mode 100644 index 0000000..cf2666e --- /dev/null +++ b/openapi_client_udm/models/mail_folder_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailFolderRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MailFolderRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MailFolderRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailFolderRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailFolderRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailFolderRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailFolderRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailFolderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailFolderRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailFolderRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailFolderRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailFolderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailFolderRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailFolderRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailFolderRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailFolderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailFolderRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailFolderRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MailFolderRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MailFolderRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MailFolderRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MailFolderRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailFolderRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailFolderRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_folder_request_patch.py b/openapi_client_udm/models/mail_folder_request_patch.py new file mode 100644 index 0000000..152c424 --- /dev/null +++ b/openapi_client_udm/models/mail_folder_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailFolderRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MailFolderRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MailFolderRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailFolderRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailFolderRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailFolderRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailFolderRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailFolderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailFolderRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailFolderRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailFolderRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailFolderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailFolderRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailFolderRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailFolderRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailFolderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailFolderRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailFolderRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailFolderRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailFolderRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_folder_response_mixin.py b/openapi_client_udm/models/mail_folder_response_mixin.py new file mode 100644 index 0000000..890ad26 --- /dev/null +++ b/openapi_client_udm/models/mail_folder_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailFolderResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MailFolderResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MailFolderResponseMixin. # noqa: E501 + + + :return: The links of this MailFolderResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MailFolderResponseMixin. + + + :param links: The links of this MailFolderResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MailFolderResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MailFolderResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailFolderResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MailFolderResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MailFolderResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MailFolderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MailFolderResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MailFolderResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MailFolderResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MailFolderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MailFolderResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MailFolderResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MailFolderResponseMixin. # noqa: E501 + + + :return: The uri of this MailFolderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MailFolderResponseMixin. + + + :param uri: The uri of this MailFolderResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailFolderResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailFolderResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_lists.py b/openapi_client_udm/models/mail_lists.py new file mode 100644 index 0000000..e632fc1 --- /dev/null +++ b/openapi_client_udm/models/mail_lists.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailLists(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MailLists - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MailLists. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailLists. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailLists. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailLists. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailLists. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailLists. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailLists. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailLists. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailLists. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailLists. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailLists. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailLists. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailLists. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailLists. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailLists. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailLists. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MailLists. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MailLists. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MailLists. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MailLists. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MailLists. # noqa: E501 + + + :return: The links of this MailLists. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MailLists. + + + :param links: The links of this MailLists. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MailLists. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MailLists. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailLists. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MailLists. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MailLists. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MailLists. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MailLists. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MailLists. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MailLists. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MailLists. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MailLists. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MailLists. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MailLists. # noqa: E501 + + + :return: The uri of this MailLists. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MailLists. + + + :param uri: The uri of this MailLists. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailLists): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailLists): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_lists_list.py b/openapi_client_udm/models/mail_lists_list.py new file mode 100644 index 0000000..9c04933 --- /dev/null +++ b/openapi_client_udm/models/mail_lists_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailListsList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MailListsListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MailListsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MailListsList. # noqa: E501 + + + :return: The embedded of this MailListsList. # noqa: E501 + :rtype: MailListsListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailListsList. + + + :param embedded: The embedded of this MailListsList. # noqa: E501 + :type embedded: MailListsListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailListsList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailListsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_lists_list_embedded.py b/openapi_client_udm/models/mail_lists_list_embedded.py new file mode 100644 index 0000000..281647a --- /dev/null +++ b/openapi_client_udm/models/mail_lists_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailListsListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MailLists]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MailListsListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MailListsListEmbedded. # noqa: E501 + + + :return: The udmobject of this MailListsListEmbedded. # noqa: E501 + :rtype: list[MailLists] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MailListsListEmbedded. + + + :param udmobject: The udmobject of this MailListsListEmbedded. # noqa: E501 + :type udmobject: list[MailLists] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailListsListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailListsListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_lists_request.py b/openapi_client_udm/models/mail_lists_request.py new file mode 100644 index 0000000..1b0d04c --- /dev/null +++ b/openapi_client_udm/models/mail_lists_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailListsRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MailListsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MailListsRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailListsRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailListsRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailListsRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailListsRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailListsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailListsRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailListsRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailListsRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailListsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailListsRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailListsRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailListsRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailListsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailListsRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailListsRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MailListsRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MailListsRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MailListsRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MailListsRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailListsRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailListsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_lists_request_patch.py b/openapi_client_udm/models/mail_lists_request_patch.py new file mode 100644 index 0000000..425ac60 --- /dev/null +++ b/openapi_client_udm/models/mail_lists_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailListsRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MailListsRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MailListsRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailListsRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailListsRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailListsRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailListsRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailListsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailListsRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailListsRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailListsRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailListsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailListsRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailListsRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailListsRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailListsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailListsRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailListsRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailListsRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailListsRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_lists_response_mixin.py b/openapi_client_udm/models/mail_lists_response_mixin.py new file mode 100644 index 0000000..a2923c3 --- /dev/null +++ b/openapi_client_udm/models/mail_lists_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailListsResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MailListsResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MailListsResponseMixin. # noqa: E501 + + + :return: The links of this MailListsResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MailListsResponseMixin. + + + :param links: The links of this MailListsResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MailListsResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MailListsResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailListsResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MailListsResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MailListsResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MailListsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MailListsResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MailListsResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MailListsResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MailListsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MailListsResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MailListsResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MailListsResponseMixin. # noqa: E501 + + + :return: The uri of this MailListsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MailListsResponseMixin. + + + :param uri: The uri of this MailListsResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailListsResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailListsResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_mail.py b/openapi_client_udm/models/mail_mail.py new file mode 100644 index 0000000..96d409b --- /dev/null +++ b/openapi_client_udm/models/mail_mail.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailMail(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MailMail - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MailMail. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailMail. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailMail. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailMail. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailMail. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailMail. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailMail. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailMail. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailMail. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailMail. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailMail. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailMail. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailMail. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailMail. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailMail. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailMail. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MailMail. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MailMail. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MailMail. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MailMail. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MailMail. # noqa: E501 + + + :return: The links of this MailMail. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MailMail. + + + :param links: The links of this MailMail. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MailMail. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MailMail. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailMail. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MailMail. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MailMail. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MailMail. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MailMail. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MailMail. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MailMail. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MailMail. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MailMail. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MailMail. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MailMail. # noqa: E501 + + + :return: The uri of this MailMail. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MailMail. + + + :param uri: The uri of this MailMail. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailMail): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailMail): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_mail_list.py b/openapi_client_udm/models/mail_mail_list.py new file mode 100644 index 0000000..2572cf2 --- /dev/null +++ b/openapi_client_udm/models/mail_mail_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailMailList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MailMailListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MailMailList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MailMailList. # noqa: E501 + + + :return: The embedded of this MailMailList. # noqa: E501 + :rtype: MailMailListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailMailList. + + + :param embedded: The embedded of this MailMailList. # noqa: E501 + :type embedded: MailMailListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailMailList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailMailList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_mail_list_embedded.py b/openapi_client_udm/models/mail_mail_list_embedded.py new file mode 100644 index 0000000..d83903d --- /dev/null +++ b/openapi_client_udm/models/mail_mail_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailMailListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MailMail]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MailMailListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MailMailListEmbedded. # noqa: E501 + + + :return: The udmobject of this MailMailListEmbedded. # noqa: E501 + :rtype: list[MailMail] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MailMailListEmbedded. + + + :param udmobject: The udmobject of this MailMailListEmbedded. # noqa: E501 + :type udmobject: list[MailMail] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailMailListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailMailListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_mail_request.py b/openapi_client_udm/models/mail_mail_request.py new file mode 100644 index 0000000..181faba --- /dev/null +++ b/openapi_client_udm/models/mail_mail_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailMailRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MailMailRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MailMailRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailMailRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailMailRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailMailRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailMailRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailMailRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailMailRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailMailRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailMailRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailMailRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailMailRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailMailRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailMailRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailMailRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailMailRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailMailRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MailMailRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MailMailRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MailMailRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MailMailRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailMailRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailMailRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_mail_request_patch.py b/openapi_client_udm/models/mail_mail_request_patch.py new file mode 100644 index 0000000..988c6c1 --- /dev/null +++ b/openapi_client_udm/models/mail_mail_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailMailRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MailMailRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MailMailRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MailMailRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MailMailRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MailMailRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MailMailRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MailMailRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MailMailRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MailMailRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MailMailRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MailMailRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MailMailRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MailMailRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MailMailRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MailMailRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MailMailRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MailMailRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailMailRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailMailRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/mail_mail_response_mixin.py b/openapi_client_udm/models/mail_mail_response_mixin.py new file mode 100644 index 0000000..a4e2ae4 --- /dev/null +++ b/openapi_client_udm/models/mail_mail_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MailMailResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MailMailResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MailMailResponseMixin. # noqa: E501 + + + :return: The links of this MailMailResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MailMailResponseMixin. + + + :param links: The links of this MailMailResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MailMailResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MailMailResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MailMailResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MailMailResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MailMailResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MailMailResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MailMailResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MailMailResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MailMailResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MailMailResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MailMailResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MailMailResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MailMailResponseMixin. # noqa: E501 + + + :return: The uri of this MailMailResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MailMailResponseMixin. + + + :param uri: The uri of this MailMailResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MailMailResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MailMailResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/monitoring_alert.py b/openapi_client_udm/models/monitoring_alert.py new file mode 100644 index 0000000..a7ddd20 --- /dev/null +++ b/openapi_client_udm/models/monitoring_alert.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MonitoringAlert(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MonitoringAlert - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MonitoringAlert. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MonitoringAlert. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MonitoringAlert. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MonitoringAlert. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MonitoringAlert. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MonitoringAlert. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MonitoringAlert. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MonitoringAlert. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MonitoringAlert. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MonitoringAlert. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MonitoringAlert. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MonitoringAlert. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MonitoringAlert. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MonitoringAlert. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MonitoringAlert. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MonitoringAlert. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MonitoringAlert. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MonitoringAlert. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MonitoringAlert. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MonitoringAlert. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MonitoringAlert. # noqa: E501 + + + :return: The links of this MonitoringAlert. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MonitoringAlert. + + + :param links: The links of this MonitoringAlert. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MonitoringAlert. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MonitoringAlert. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MonitoringAlert. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MonitoringAlert. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MonitoringAlert. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MonitoringAlert. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MonitoringAlert. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MonitoringAlert. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MonitoringAlert. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MonitoringAlert. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MonitoringAlert. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MonitoringAlert. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MonitoringAlert. # noqa: E501 + + + :return: The uri of this MonitoringAlert. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MonitoringAlert. + + + :param uri: The uri of this MonitoringAlert. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringAlert): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringAlert): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/monitoring_alert_list.py b/openapi_client_udm/models/monitoring_alert_list.py new file mode 100644 index 0000000..0bbda94 --- /dev/null +++ b/openapi_client_udm/models/monitoring_alert_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MonitoringAlertList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MonitoringAlertListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MonitoringAlertList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MonitoringAlertList. # noqa: E501 + + + :return: The embedded of this MonitoringAlertList. # noqa: E501 + :rtype: MonitoringAlertListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MonitoringAlertList. + + + :param embedded: The embedded of this MonitoringAlertList. # noqa: E501 + :type embedded: MonitoringAlertListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringAlertList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringAlertList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/monitoring_alert_list_embedded.py b/openapi_client_udm/models/monitoring_alert_list_embedded.py new file mode 100644 index 0000000..fecaa81 --- /dev/null +++ b/openapi_client_udm/models/monitoring_alert_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MonitoringAlertListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MonitoringAlert]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MonitoringAlertListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MonitoringAlertListEmbedded. # noqa: E501 + + + :return: The udmobject of this MonitoringAlertListEmbedded. # noqa: E501 + :rtype: list[MonitoringAlert] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MonitoringAlertListEmbedded. + + + :param udmobject: The udmobject of this MonitoringAlertListEmbedded. # noqa: E501 + :type udmobject: list[MonitoringAlert] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringAlertListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringAlertListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/monitoring_alert_request.py b/openapi_client_udm/models/monitoring_alert_request.py new file mode 100644 index 0000000..b79cc30 --- /dev/null +++ b/openapi_client_udm/models/monitoring_alert_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MonitoringAlertRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MonitoringAlertRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MonitoringAlertRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MonitoringAlertRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MonitoringAlertRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MonitoringAlertRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MonitoringAlertRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MonitoringAlertRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MonitoringAlertRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MonitoringAlertRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MonitoringAlertRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MonitoringAlertRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MonitoringAlertRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MonitoringAlertRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MonitoringAlertRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MonitoringAlertRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MonitoringAlertRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MonitoringAlertRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MonitoringAlertRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MonitoringAlertRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MonitoringAlertRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MonitoringAlertRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringAlertRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringAlertRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/monitoring_alert_request_patch.py b/openapi_client_udm/models/monitoring_alert_request_patch.py new file mode 100644 index 0000000..c1c7ddd --- /dev/null +++ b/openapi_client_udm/models/monitoring_alert_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MonitoringAlertRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MonitoringAlertRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MonitoringAlertRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MonitoringAlertRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MonitoringAlertRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MonitoringAlertRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MonitoringAlertRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MonitoringAlertRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MonitoringAlertRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MonitoringAlertRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MonitoringAlertRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MonitoringAlertRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MonitoringAlertRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MonitoringAlertRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MonitoringAlertRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this MonitoringAlertRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MonitoringAlertRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this MonitoringAlertRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringAlertRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringAlertRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/monitoring_alert_response_mixin.py b/openapi_client_udm/models/monitoring_alert_response_mixin.py new file mode 100644 index 0000000..0e95d2f --- /dev/null +++ b/openapi_client_udm/models/monitoring_alert_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MonitoringAlertResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MonitoringAlertResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MonitoringAlertResponseMixin. # noqa: E501 + + + :return: The links of this MonitoringAlertResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MonitoringAlertResponseMixin. + + + :param links: The links of this MonitoringAlertResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MonitoringAlertResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MonitoringAlertResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MonitoringAlertResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MonitoringAlertResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MonitoringAlertResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MonitoringAlertResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MonitoringAlertResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MonitoringAlertResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MonitoringAlertResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MonitoringAlertResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MonitoringAlertResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MonitoringAlertResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MonitoringAlertResponseMixin. # noqa: E501 + + + :return: The uri of this MonitoringAlertResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MonitoringAlertResponseMixin. + + + :param uri: The uri of this MonitoringAlertResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MonitoringAlertResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MonitoringAlertResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_domainpolicy.py b/openapi_client_udm/models/ms_domainpolicy.py new file mode 100644 index 0000000..78c3747 --- /dev/null +++ b/openapi_client_udm/models/ms_domainpolicy.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsDomainpolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsDomainpolicyPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsDomainpolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsDomainpolicy. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsDomainpolicy. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsDomainpolicy. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsDomainpolicy. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsDomainpolicy. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsDomainpolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsDomainpolicy. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsDomainpolicy. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsDomainpolicy. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsDomainpolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsDomainpolicy. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsDomainpolicy. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsDomainpolicy. # noqa: E501 + + + :return: The policies of this MsDomainpolicy. # noqa: E501 + :rtype: MsDomainpolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsDomainpolicy. + + + :param policies: The policies of this MsDomainpolicy. # noqa: E501 + :type policies: MsDomainpolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsDomainpolicy. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsDomainpolicy. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsDomainpolicy. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsDomainpolicy. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsDomainpolicy. # noqa: E501 + + + :return: The links of this MsDomainpolicy. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsDomainpolicy. + + + :param links: The links of this MsDomainpolicy. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsDomainpolicy. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsDomainpolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsDomainpolicy. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsDomainpolicy. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsDomainpolicy. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsDomainpolicy. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsDomainpolicy. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsDomainpolicy. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsDomainpolicy. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsDomainpolicy. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsDomainpolicy. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsDomainpolicy. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsDomainpolicy. # noqa: E501 + + + :return: The uri of this MsDomainpolicy. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsDomainpolicy. + + + :param uri: The uri of this MsDomainpolicy. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsDomainpolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsDomainpolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_domainpolicy_list.py b/openapi_client_udm/models/ms_domainpolicy_list.py new file mode 100644 index 0000000..bc946d3 --- /dev/null +++ b/openapi_client_udm/models/ms_domainpolicy_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsDomainpolicyList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsDomainpolicyListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsDomainpolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsDomainpolicyList. # noqa: E501 + + + :return: The embedded of this MsDomainpolicyList. # noqa: E501 + :rtype: MsDomainpolicyListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsDomainpolicyList. + + + :param embedded: The embedded of this MsDomainpolicyList. # noqa: E501 + :type embedded: MsDomainpolicyListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsDomainpolicyList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsDomainpolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_domainpolicy_list_embedded.py b/openapi_client_udm/models/ms_domainpolicy_list_embedded.py new file mode 100644 index 0000000..9814359 --- /dev/null +++ b/openapi_client_udm/models/ms_domainpolicy_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsDomainpolicyListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsDomainpolicy]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsDomainpolicyListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsDomainpolicyListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsDomainpolicyListEmbedded. # noqa: E501 + :rtype: list[MsDomainpolicy] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsDomainpolicyListEmbedded. + + + :param udmobject: The udmobject of this MsDomainpolicyListEmbedded. # noqa: E501 + :type udmobject: list[MsDomainpolicy] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsDomainpolicyListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsDomainpolicyListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_domainpolicy_policies.py b/openapi_client_udm/models/ms_domainpolicy_policies.py new file mode 100644 index 0000000..b85e525 --- /dev/null +++ b/openapi_client_udm/models/ms_domainpolicy_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsDomainpolicyPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsDomainpolicyPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsDomainpolicyPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsDomainpolicyPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsDomainpolicyPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsDomainpolicyPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsDomainpolicyPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsDomainpolicyPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsDomainpolicyPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsDomainpolicyPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsDomainpolicyPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsDomainpolicyPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsDomainpolicyPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsDomainpolicyPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsDomainpolicyPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsDomainpolicyPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsDomainpolicyPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsDomainpolicyPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsDomainpolicyPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsDomainpolicyPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsDomainpolicyPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsDomainpolicyPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsDomainpolicyPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsDomainpolicyPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsDomainpolicyPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsDomainpolicyPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsDomainpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsDomainpolicyPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsDomainpolicyPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsDomainpolicyPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsDomainpolicyPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_domainpolicy_request.py b/openapi_client_udm/models/ms_domainpolicy_request.py new file mode 100644 index 0000000..7e1e4a5 --- /dev/null +++ b/openapi_client_udm/models/ms_domainpolicy_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsDomainpolicyRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsDomainpolicyPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsDomainpolicyRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsDomainpolicyRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsDomainpolicyRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsDomainpolicyRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsDomainpolicyRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsDomainpolicyRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsDomainpolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsDomainpolicyRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsDomainpolicyRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsDomainpolicyRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsDomainpolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsDomainpolicyRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsDomainpolicyRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsDomainpolicyRequest. # noqa: E501 + + + :return: The policies of this MsDomainpolicyRequest. # noqa: E501 + :rtype: MsDomainpolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsDomainpolicyRequest. + + + :param policies: The policies of this MsDomainpolicyRequest. # noqa: E501 + :type policies: MsDomainpolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsDomainpolicyRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsDomainpolicyRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsDomainpolicyRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsDomainpolicyRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsDomainpolicyRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsDomainpolicyRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_domainpolicy_request_patch.py b/openapi_client_udm/models/ms_domainpolicy_request_patch.py new file mode 100644 index 0000000..6d51539 --- /dev/null +++ b/openapi_client_udm/models/ms_domainpolicy_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsDomainpolicyRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsDomainpolicyPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsDomainpolicyRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsDomainpolicyRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsDomainpolicyRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsDomainpolicyRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsDomainpolicyRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsDomainpolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsDomainpolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsDomainpolicyRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsDomainpolicyRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsDomainpolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsDomainpolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsDomainpolicyRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsDomainpolicyRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsDomainpolicyRequestPatch. # noqa: E501 + + + :return: The policies of this MsDomainpolicyRequestPatch. # noqa: E501 + :rtype: MsDomainpolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsDomainpolicyRequestPatch. + + + :param policies: The policies of this MsDomainpolicyRequestPatch. # noqa: E501 + :type policies: MsDomainpolicyPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsDomainpolicyRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsDomainpolicyRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_domainpolicy_response_mixin.py b/openapi_client_udm/models/ms_domainpolicy_response_mixin.py new file mode 100644 index 0000000..be5df5c --- /dev/null +++ b/openapi_client_udm/models/ms_domainpolicy_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsDomainpolicyResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsDomainpolicyResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsDomainpolicyResponseMixin. # noqa: E501 + + + :return: The links of this MsDomainpolicyResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsDomainpolicyResponseMixin. + + + :param links: The links of this MsDomainpolicyResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsDomainpolicyResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsDomainpolicyResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsDomainpolicyResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsDomainpolicyResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsDomainpolicyResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsDomainpolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsDomainpolicyResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsDomainpolicyResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsDomainpolicyResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsDomainpolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsDomainpolicyResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsDomainpolicyResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsDomainpolicyResponseMixin. # noqa: E501 + + + :return: The uri of this MsDomainpolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsDomainpolicyResponseMixin. + + + :param uri: The uri of this MsDomainpolicyResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsDomainpolicyResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsDomainpolicyResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_filter.py b/openapi_client_udm/models/ms_gpipsec_filter.py new file mode 100644 index 0000000..b33281f --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_filter.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecFilter(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecFilterPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecFilter - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpipsecFilter. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecFilter. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecFilter. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecFilter. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecFilter. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecFilter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecFilter. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecFilter. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecFilter. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecFilter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecFilter. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecFilter. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecFilter. # noqa: E501 + + + :return: The policies of this MsGpipsecFilter. # noqa: E501 + :rtype: MsGpipsecFilterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecFilter. + + + :param policies: The policies of this MsGpipsecFilter. # noqa: E501 + :type policies: MsGpipsecFilterPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecFilter. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecFilter. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecFilter. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecFilter. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpipsecFilter. # noqa: E501 + + + :return: The links of this MsGpipsecFilter. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecFilter. + + + :param links: The links of this MsGpipsecFilter. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecFilter. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecFilter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecFilter. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecFilter. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecFilter. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecFilter. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecFilter. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecFilter. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecFilter. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecFilter. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecFilter. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecFilter. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecFilter. # noqa: E501 + + + :return: The uri of this MsGpipsecFilter. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecFilter. + + + :param uri: The uri of this MsGpipsecFilter. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecFilter): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecFilter): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_filter_list.py b/openapi_client_udm/models/ms_gpipsec_filter_list.py new file mode 100644 index 0000000..d370c36 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_filter_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecFilterList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpipsecFilterListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecFilterList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecFilterList. # noqa: E501 + + + :return: The embedded of this MsGpipsecFilterList. # noqa: E501 + :rtype: MsGpipsecFilterListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecFilterList. + + + :param embedded: The embedded of this MsGpipsecFilterList. # noqa: E501 + :type embedded: MsGpipsecFilterListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecFilterList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecFilterList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_filter_list_embedded.py b/openapi_client_udm/models/ms_gpipsec_filter_list_embedded.py new file mode 100644 index 0000000..d95da05 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_filter_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecFilterListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpipsecFilter]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecFilterListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpipsecFilterListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpipsecFilterListEmbedded. # noqa: E501 + :rtype: list[MsGpipsecFilter] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpipsecFilterListEmbedded. + + + :param udmobject: The udmobject of this MsGpipsecFilterListEmbedded. # noqa: E501 + :type udmobject: list[MsGpipsecFilter] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecFilterListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecFilterListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_filter_policies.py b/openapi_client_udm/models/ms_gpipsec_filter_policies.py new file mode 100644 index 0000000..d5caa14 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_filter_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecFilterPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecFilterPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpipsecFilterPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpipsecFilterPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpipsecFilterPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpipsecFilterPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpipsecFilterPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpipsecFilterPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpipsecFilterPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpipsecFilterPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpipsecFilterPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpipsecFilterPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpipsecFilterPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpipsecFilterPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpipsecFilterPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpipsecFilterPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpipsecFilterPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpipsecFilterPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpipsecFilterPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpipsecFilterPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpipsecFilterPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpipsecFilterPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpipsecFilterPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpipsecFilterPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpipsecFilterPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpipsecFilterPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpipsecFilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpipsecFilterPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpipsecFilterPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecFilterPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecFilterPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_filter_request.py b/openapi_client_udm/models/ms_gpipsec_filter_request.py new file mode 100644 index 0000000..0db1b39 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_filter_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecFilterRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecFilterPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecFilterRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpipsecFilterRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecFilterRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecFilterRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecFilterRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecFilterRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecFilterRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecFilterRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecFilterRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecFilterRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecFilterRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecFilterRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecFilterRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecFilterRequest. # noqa: E501 + + + :return: The policies of this MsGpipsecFilterRequest. # noqa: E501 + :rtype: MsGpipsecFilterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecFilterRequest. + + + :param policies: The policies of this MsGpipsecFilterRequest. # noqa: E501 + :type policies: MsGpipsecFilterPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecFilterRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecFilterRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecFilterRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecFilterRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecFilterRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecFilterRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_filter_request_patch.py b/openapi_client_udm/models/ms_gpipsec_filter_request_patch.py new file mode 100644 index 0000000..470a73f --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_filter_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecFilterRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecFilterPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecFilterRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpipsecFilterRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecFilterRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecFilterRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecFilterRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecFilterRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecFilterRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecFilterRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecFilterRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecFilterRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecFilterRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecFilterRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecFilterRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecFilterRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpipsecFilterRequestPatch. # noqa: E501 + :rtype: MsGpipsecFilterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecFilterRequestPatch. + + + :param policies: The policies of this MsGpipsecFilterRequestPatch. # noqa: E501 + :type policies: MsGpipsecFilterPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecFilterRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecFilterRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_filter_response_mixin.py b/openapi_client_udm/models/ms_gpipsec_filter_response_mixin.py new file mode 100644 index 0000000..30d2a4c --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_filter_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecFilterResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecFilterResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpipsecFilterResponseMixin. # noqa: E501 + + + :return: The links of this MsGpipsecFilterResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecFilterResponseMixin. + + + :param links: The links of this MsGpipsecFilterResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecFilterResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecFilterResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecFilterResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecFilterResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecFilterResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecFilterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecFilterResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecFilterResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecFilterResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecFilterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecFilterResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecFilterResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecFilterResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpipsecFilterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecFilterResponseMixin. + + + :param uri: The uri of this MsGpipsecFilterResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecFilterResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecFilterResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_isakmp_policy.py b/openapi_client_udm/models/ms_gpipsec_isakmp_policy.py new file mode 100644 index 0000000..6f8d630 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_isakmp_policy.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecIsakmpPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecIsakmpPolicyPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecIsakmpPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpipsecIsakmpPolicy. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecIsakmpPolicy. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecIsakmpPolicy. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecIsakmpPolicy. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecIsakmpPolicy. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecIsakmpPolicy. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecIsakmpPolicy. # noqa: E501 + + + :return: The policies of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: MsGpipsecIsakmpPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecIsakmpPolicy. + + + :param policies: The policies of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type policies: MsGpipsecIsakmpPolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecIsakmpPolicy. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecIsakmpPolicy. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpipsecIsakmpPolicy. # noqa: E501 + + + :return: The links of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecIsakmpPolicy. + + + :param links: The links of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecIsakmpPolicy. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecIsakmpPolicy. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecIsakmpPolicy. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecIsakmpPolicy. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecIsakmpPolicy. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecIsakmpPolicy. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecIsakmpPolicy. # noqa: E501 + + + :return: The uri of this MsGpipsecIsakmpPolicy. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecIsakmpPolicy. + + + :param uri: The uri of this MsGpipsecIsakmpPolicy. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecIsakmpPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecIsakmpPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_isakmp_policy_list.py b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_list.py new file mode 100644 index 0000000..207c371 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecIsakmpPolicyList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpipsecIsakmpPolicyListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecIsakmpPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecIsakmpPolicyList. # noqa: E501 + + + :return: The embedded of this MsGpipsecIsakmpPolicyList. # noqa: E501 + :rtype: MsGpipsecIsakmpPolicyListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecIsakmpPolicyList. + + + :param embedded: The embedded of this MsGpipsecIsakmpPolicyList. # noqa: E501 + :type embedded: MsGpipsecIsakmpPolicyListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_isakmp_policy_list_embedded.py b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_list_embedded.py new file mode 100644 index 0000000..52f966a --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecIsakmpPolicyListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpipsecIsakmpPolicy]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecIsakmpPolicyListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpipsecIsakmpPolicyListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpipsecIsakmpPolicyListEmbedded. # noqa: E501 + :rtype: list[MsGpipsecIsakmpPolicy] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpipsecIsakmpPolicyListEmbedded. + + + :param udmobject: The udmobject of this MsGpipsecIsakmpPolicyListEmbedded. # noqa: E501 + :type udmobject: list[MsGpipsecIsakmpPolicy] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_isakmp_policy_policies.py b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_policies.py new file mode 100644 index 0000000..aa043d4 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecIsakmpPolicyPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecIsakmpPolicyPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpipsecIsakmpPolicyPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpipsecIsakmpPolicyPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpipsecIsakmpPolicyPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpipsecIsakmpPolicyPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpipsecIsakmpPolicyPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpipsecIsakmpPolicyPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpipsecIsakmpPolicyPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpipsecIsakmpPolicyPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpipsecIsakmpPolicyPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpipsecIsakmpPolicyPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpipsecIsakmpPolicyPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpipsecIsakmpPolicyPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpipsecIsakmpPolicyPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpipsecIsakmpPolicyPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_isakmp_policy_request.py b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_request.py new file mode 100644 index 0000000..1a6abb4 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecIsakmpPolicyRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecIsakmpPolicyPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecIsakmpPolicyRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecIsakmpPolicyRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecIsakmpPolicyRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecIsakmpPolicyRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + + + :return: The policies of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :rtype: MsGpipsecIsakmpPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecIsakmpPolicyRequest. + + + :param policies: The policies of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :type policies: MsGpipsecIsakmpPolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecIsakmpPolicyRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecIsakmpPolicyRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_isakmp_policy_request_patch.py b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_request_patch.py new file mode 100644 index 0000000..7fd20c5 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecIsakmpPolicyRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecIsakmpPolicyPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecIsakmpPolicyRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecIsakmpPolicyRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecIsakmpPolicyRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecIsakmpPolicyRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + :rtype: MsGpipsecIsakmpPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecIsakmpPolicyRequestPatch. + + + :param policies: The policies of this MsGpipsecIsakmpPolicyRequestPatch. # noqa: E501 + :type policies: MsGpipsecIsakmpPolicyPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_isakmp_policy_response_mixin.py b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_response_mixin.py new file mode 100644 index 0000000..515483f --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_isakmp_policy_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecIsakmpPolicyResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecIsakmpPolicyResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + + + :return: The links of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecIsakmpPolicyResponseMixin. + + + :param links: The links of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecIsakmpPolicyResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecIsakmpPolicyResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecIsakmpPolicyResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecIsakmpPolicyResponseMixin. + + + :param uri: The uri of this MsGpipsecIsakmpPolicyResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecIsakmpPolicyResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_negotiation_policy.py b/openapi_client_udm/models/ms_gpipsec_negotiation_policy.py new file mode 100644 index 0000000..9139c2d --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_negotiation_policy.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNegotiationPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecNegotiationPolicyPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNegotiationPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpipsecNegotiationPolicy. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecNegotiationPolicy. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecNegotiationPolicy. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecNegotiationPolicy. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecNegotiationPolicy. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecNegotiationPolicy. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecNegotiationPolicy. # noqa: E501 + + + :return: The policies of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: MsGpipsecNegotiationPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecNegotiationPolicy. + + + :param policies: The policies of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type policies: MsGpipsecNegotiationPolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecNegotiationPolicy. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecNegotiationPolicy. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpipsecNegotiationPolicy. # noqa: E501 + + + :return: The links of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecNegotiationPolicy. + + + :param links: The links of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecNegotiationPolicy. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecNegotiationPolicy. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecNegotiationPolicy. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecNegotiationPolicy. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecNegotiationPolicy. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecNegotiationPolicy. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecNegotiationPolicy. # noqa: E501 + + + :return: The uri of this MsGpipsecNegotiationPolicy. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecNegotiationPolicy. + + + :param uri: The uri of this MsGpipsecNegotiationPolicy. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNegotiationPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNegotiationPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_negotiation_policy_list.py b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_list.py new file mode 100644 index 0000000..5d3c814 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNegotiationPolicyList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpipsecNegotiationPolicyListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNegotiationPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecNegotiationPolicyList. # noqa: E501 + + + :return: The embedded of this MsGpipsecNegotiationPolicyList. # noqa: E501 + :rtype: MsGpipsecNegotiationPolicyListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecNegotiationPolicyList. + + + :param embedded: The embedded of this MsGpipsecNegotiationPolicyList. # noqa: E501 + :type embedded: MsGpipsecNegotiationPolicyListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_negotiation_policy_list_embedded.py b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_list_embedded.py new file mode 100644 index 0000000..b4df223 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNegotiationPolicyListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpipsecNegotiationPolicy]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNegotiationPolicyListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpipsecNegotiationPolicyListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpipsecNegotiationPolicyListEmbedded. # noqa: E501 + :rtype: list[MsGpipsecNegotiationPolicy] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpipsecNegotiationPolicyListEmbedded. + + + :param udmobject: The udmobject of this MsGpipsecNegotiationPolicyListEmbedded. # noqa: E501 + :type udmobject: list[MsGpipsecNegotiationPolicy] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_negotiation_policy_policies.py b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_policies.py new file mode 100644 index 0000000..d976de8 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNegotiationPolicyPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNegotiationPolicyPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpipsecNegotiationPolicyPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpipsecNegotiationPolicyPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpipsecNegotiationPolicyPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpipsecNegotiationPolicyPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpipsecNegotiationPolicyPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpipsecNegotiationPolicyPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpipsecNegotiationPolicyPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpipsecNegotiationPolicyPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpipsecNegotiationPolicyPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpipsecNegotiationPolicyPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpipsecNegotiationPolicyPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpipsecNegotiationPolicyPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpipsecNegotiationPolicyPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpipsecNegotiationPolicyPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_negotiation_policy_request.py b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_request.py new file mode 100644 index 0000000..abdc2ba --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNegotiationPolicyRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecNegotiationPolicyPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNegotiationPolicyRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecNegotiationPolicyRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecNegotiationPolicyRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecNegotiationPolicyRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + + + :return: The policies of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :rtype: MsGpipsecNegotiationPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecNegotiationPolicyRequest. + + + :param policies: The policies of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :type policies: MsGpipsecNegotiationPolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecNegotiationPolicyRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecNegotiationPolicyRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_negotiation_policy_request_patch.py b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_request_patch.py new file mode 100644 index 0000000..346bf09 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNegotiationPolicyRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecNegotiationPolicyPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNegotiationPolicyRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecNegotiationPolicyRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecNegotiationPolicyRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecNegotiationPolicyRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + :rtype: MsGpipsecNegotiationPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecNegotiationPolicyRequestPatch. + + + :param policies: The policies of this MsGpipsecNegotiationPolicyRequestPatch. # noqa: E501 + :type policies: MsGpipsecNegotiationPolicyPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_negotiation_policy_response_mixin.py b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_response_mixin.py new file mode 100644 index 0000000..212264a --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_negotiation_policy_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNegotiationPolicyResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNegotiationPolicyResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + + + :return: The links of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecNegotiationPolicyResponseMixin. + + + :param links: The links of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecNegotiationPolicyResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecNegotiationPolicyResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecNegotiationPolicyResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecNegotiationPolicyResponseMixin. + + + :param uri: The uri of this MsGpipsecNegotiationPolicyResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNegotiationPolicyResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_nfa.py b/openapi_client_udm/models/ms_gpipsec_nfa.py new file mode 100644 index 0000000..ae82d72 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_nfa.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNfa(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecNfaPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNfa - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpipsecNfa. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecNfa. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecNfa. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecNfa. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecNfa. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecNfa. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecNfa. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecNfa. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecNfa. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecNfa. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecNfa. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecNfa. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecNfa. # noqa: E501 + + + :return: The policies of this MsGpipsecNfa. # noqa: E501 + :rtype: MsGpipsecNfaPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecNfa. + + + :param policies: The policies of this MsGpipsecNfa. # noqa: E501 + :type policies: MsGpipsecNfaPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecNfa. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecNfa. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecNfa. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecNfa. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpipsecNfa. # noqa: E501 + + + :return: The links of this MsGpipsecNfa. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecNfa. + + + :param links: The links of this MsGpipsecNfa. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecNfa. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecNfa. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecNfa. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecNfa. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecNfa. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecNfa. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecNfa. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecNfa. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecNfa. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecNfa. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecNfa. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecNfa. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecNfa. # noqa: E501 + + + :return: The uri of this MsGpipsecNfa. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecNfa. + + + :param uri: The uri of this MsGpipsecNfa. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNfa): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNfa): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_nfa_list.py b/openapi_client_udm/models/ms_gpipsec_nfa_list.py new file mode 100644 index 0000000..94f6cfb --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_nfa_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNfaList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpipsecNfaListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNfaList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecNfaList. # noqa: E501 + + + :return: The embedded of this MsGpipsecNfaList. # noqa: E501 + :rtype: MsGpipsecNfaListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecNfaList. + + + :param embedded: The embedded of this MsGpipsecNfaList. # noqa: E501 + :type embedded: MsGpipsecNfaListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNfaList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNfaList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_nfa_list_embedded.py b/openapi_client_udm/models/ms_gpipsec_nfa_list_embedded.py new file mode 100644 index 0000000..cb761a4 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_nfa_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNfaListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpipsecNfa]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNfaListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpipsecNfaListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpipsecNfaListEmbedded. # noqa: E501 + :rtype: list[MsGpipsecNfa] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpipsecNfaListEmbedded. + + + :param udmobject: The udmobject of this MsGpipsecNfaListEmbedded. # noqa: E501 + :type udmobject: list[MsGpipsecNfa] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNfaListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNfaListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_nfa_policies.py b/openapi_client_udm/models/ms_gpipsec_nfa_policies.py new file mode 100644 index 0000000..360e24b --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_nfa_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNfaPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNfaPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpipsecNfaPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpipsecNfaPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpipsecNfaPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpipsecNfaPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpipsecNfaPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpipsecNfaPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpipsecNfaPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpipsecNfaPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpipsecNfaPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpipsecNfaPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpipsecNfaPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpipsecNfaPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpipsecNfaPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpipsecNfaPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpipsecNfaPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpipsecNfaPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpipsecNfaPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpipsecNfaPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpipsecNfaPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpipsecNfaPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpipsecNfaPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpipsecNfaPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpipsecNfaPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpipsecNfaPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpipsecNfaPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpipsecNfaPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpipsecNfaPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNfaPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNfaPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_nfa_request.py b/openapi_client_udm/models/ms_gpipsec_nfa_request.py new file mode 100644 index 0000000..5b954f9 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_nfa_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNfaRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecNfaPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNfaRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpipsecNfaRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecNfaRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecNfaRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecNfaRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecNfaRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecNfaRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecNfaRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecNfaRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecNfaRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecNfaRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecNfaRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecNfaRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecNfaRequest. # noqa: E501 + + + :return: The policies of this MsGpipsecNfaRequest. # noqa: E501 + :rtype: MsGpipsecNfaPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecNfaRequest. + + + :param policies: The policies of this MsGpipsecNfaRequest. # noqa: E501 + :type policies: MsGpipsecNfaPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecNfaRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecNfaRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecNfaRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecNfaRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNfaRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNfaRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_nfa_request_patch.py b/openapi_client_udm/models/ms_gpipsec_nfa_request_patch.py new file mode 100644 index 0000000..85a6a46 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_nfa_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNfaRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecNfaPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNfaRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpipsecNfaRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecNfaRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecNfaRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecNfaRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecNfaRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecNfaRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecNfaRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecNfaRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecNfaRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecNfaRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecNfaRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecNfaRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecNfaRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpipsecNfaRequestPatch. # noqa: E501 + :rtype: MsGpipsecNfaPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecNfaRequestPatch. + + + :param policies: The policies of this MsGpipsecNfaRequestPatch. # noqa: E501 + :type policies: MsGpipsecNfaPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNfaRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNfaRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_nfa_response_mixin.py b/openapi_client_udm/models/ms_gpipsec_nfa_response_mixin.py new file mode 100644 index 0000000..381287a --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_nfa_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecNfaResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecNfaResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpipsecNfaResponseMixin. # noqa: E501 + + + :return: The links of this MsGpipsecNfaResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecNfaResponseMixin. + + + :param links: The links of this MsGpipsecNfaResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecNfaResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecNfaResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecNfaResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecNfaResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecNfaResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecNfaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecNfaResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecNfaResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecNfaResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecNfaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecNfaResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecNfaResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecNfaResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpipsecNfaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecNfaResponseMixin. + + + :param uri: The uri of this MsGpipsecNfaResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecNfaResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecNfaResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_policy.py b/openapi_client_udm/models/ms_gpipsec_policy.py new file mode 100644 index 0000000..c9c3ac9 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_policy.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecPolicyPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpipsecPolicy. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecPolicy. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecPolicy. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecPolicy. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecPolicy. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecPolicy. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecPolicy. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecPolicy. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecPolicy. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecPolicy. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecPolicy. # noqa: E501 + + + :return: The policies of this MsGpipsecPolicy. # noqa: E501 + :rtype: MsGpipsecPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecPolicy. + + + :param policies: The policies of this MsGpipsecPolicy. # noqa: E501 + :type policies: MsGpipsecPolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecPolicy. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecPolicy. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecPolicy. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecPolicy. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpipsecPolicy. # noqa: E501 + + + :return: The links of this MsGpipsecPolicy. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecPolicy. + + + :param links: The links of this MsGpipsecPolicy. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecPolicy. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecPolicy. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecPolicy. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecPolicy. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecPolicy. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecPolicy. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecPolicy. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecPolicy. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecPolicy. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecPolicy. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecPolicy. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecPolicy. # noqa: E501 + + + :return: The uri of this MsGpipsecPolicy. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecPolicy. + + + :param uri: The uri of this MsGpipsecPolicy. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_policy_list.py b/openapi_client_udm/models/ms_gpipsec_policy_list.py new file mode 100644 index 0000000..ca564f2 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_policy_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecPolicyList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpipsecPolicyListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecPolicyList. # noqa: E501 + + + :return: The embedded of this MsGpipsecPolicyList. # noqa: E501 + :rtype: MsGpipsecPolicyListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecPolicyList. + + + :param embedded: The embedded of this MsGpipsecPolicyList. # noqa: E501 + :type embedded: MsGpipsecPolicyListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecPolicyList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_policy_list_embedded.py b/openapi_client_udm/models/ms_gpipsec_policy_list_embedded.py new file mode 100644 index 0000000..4da3ba9 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_policy_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecPolicyListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpipsecPolicy]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecPolicyListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpipsecPolicyListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpipsecPolicyListEmbedded. # noqa: E501 + :rtype: list[MsGpipsecPolicy] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpipsecPolicyListEmbedded. + + + :param udmobject: The udmobject of this MsGpipsecPolicyListEmbedded. # noqa: E501 + :type udmobject: list[MsGpipsecPolicy] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecPolicyListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecPolicyListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_policy_policies.py b/openapi_client_udm/models/ms_gpipsec_policy_policies.py new file mode 100644 index 0000000..23d1da5 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_policy_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecPolicyPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecPolicyPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpipsecPolicyPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpipsecPolicyPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpipsecPolicyPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpipsecPolicyPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpipsecPolicyPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpipsecPolicyPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpipsecPolicyPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpipsecPolicyPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpipsecPolicyPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpipsecPolicyPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpipsecPolicyPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpipsecPolicyPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpipsecPolicyPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpipsecPolicyPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpipsecPolicyPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpipsecPolicyPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpipsecPolicyPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpipsecPolicyPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpipsecPolicyPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpipsecPolicyPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpipsecPolicyPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpipsecPolicyPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpipsecPolicyPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpipsecPolicyPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpipsecPolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpipsecPolicyPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpipsecPolicyPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecPolicyPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecPolicyPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_policy_request.py b/openapi_client_udm/models/ms_gpipsec_policy_request.py new file mode 100644 index 0000000..c972952 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_policy_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecPolicyRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecPolicyPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecPolicyRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpipsecPolicyRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecPolicyRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecPolicyRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecPolicyRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecPolicyRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecPolicyRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecPolicyRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecPolicyRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecPolicyRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecPolicyRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecPolicyRequest. # noqa: E501 + + + :return: The policies of this MsGpipsecPolicyRequest. # noqa: E501 + :rtype: MsGpipsecPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecPolicyRequest. + + + :param policies: The policies of this MsGpipsecPolicyRequest. # noqa: E501 + :type policies: MsGpipsecPolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpipsecPolicyRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpipsecPolicyRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpipsecPolicyRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpipsecPolicyRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecPolicyRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecPolicyRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_policy_request_patch.py b/openapi_client_udm/models/ms_gpipsec_policy_request_patch.py new file mode 100644 index 0000000..846e026 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_policy_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecPolicyRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpipsecPolicyPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecPolicyRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpipsecPolicyRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpipsecPolicyRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpipsecPolicyRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpipsecPolicyRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpipsecPolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpipsecPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpipsecPolicyRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpipsecPolicyRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpipsecPolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpipsecPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpipsecPolicyRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpipsecPolicyRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpipsecPolicyRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpipsecPolicyRequestPatch. # noqa: E501 + :rtype: MsGpipsecPolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpipsecPolicyRequestPatch. + + + :param policies: The policies of this MsGpipsecPolicyRequestPatch. # noqa: E501 + :type policies: MsGpipsecPolicyPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecPolicyRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecPolicyRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpipsec_policy_response_mixin.py b/openapi_client_udm/models/ms_gpipsec_policy_response_mixin.py new file mode 100644 index 0000000..bd2cbb6 --- /dev/null +++ b/openapi_client_udm/models/ms_gpipsec_policy_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpipsecPolicyResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpipsecPolicyResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpipsecPolicyResponseMixin. # noqa: E501 + + + :return: The links of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpipsecPolicyResponseMixin. + + + :param links: The links of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpipsecPolicyResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpipsecPolicyResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpipsecPolicyResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpipsecPolicyResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpipsecPolicyResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpipsecPolicyResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpipsecPolicyResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpipsecPolicyResponseMixin. + + + :param uri: The uri of this MsGpipsecPolicyResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpipsecPolicyResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpipsecPolicyResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_category_registration.py b/openapi_client_udm/models/ms_gpsi_category_registration.py new file mode 100644 index 0000000..ed94748 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_category_registration.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiCategoryRegistration(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiCategoryRegistrationPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiCategoryRegistration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpsiCategoryRegistration. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiCategoryRegistration. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiCategoryRegistration. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiCategoryRegistration. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiCategoryRegistration. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiCategoryRegistration. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiCategoryRegistration. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiCategoryRegistration. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiCategoryRegistration. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiCategoryRegistration. # noqa: E501 + + + :return: The policies of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: MsGpsiCategoryRegistrationPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiCategoryRegistration. + + + :param policies: The policies of this MsGpsiCategoryRegistration. # noqa: E501 + :type policies: MsGpsiCategoryRegistrationPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpsiCategoryRegistration. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpsiCategoryRegistration. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpsiCategoryRegistration. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpsiCategoryRegistration. # noqa: E501 + + + :return: The links of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpsiCategoryRegistration. + + + :param links: The links of this MsGpsiCategoryRegistration. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpsiCategoryRegistration. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiCategoryRegistration. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpsiCategoryRegistration. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpsiCategoryRegistration. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpsiCategoryRegistration. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpsiCategoryRegistration. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpsiCategoryRegistration. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpsiCategoryRegistration. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpsiCategoryRegistration. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpsiCategoryRegistration. # noqa: E501 + + + :return: The uri of this MsGpsiCategoryRegistration. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpsiCategoryRegistration. + + + :param uri: The uri of this MsGpsiCategoryRegistration. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiCategoryRegistration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiCategoryRegistration): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_category_registration_list.py b/openapi_client_udm/models/ms_gpsi_category_registration_list.py new file mode 100644 index 0000000..0a29d9b --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_category_registration_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiCategoryRegistrationList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpsiCategoryRegistrationListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiCategoryRegistrationList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpsiCategoryRegistrationList. # noqa: E501 + + + :return: The embedded of this MsGpsiCategoryRegistrationList. # noqa: E501 + :rtype: MsGpsiCategoryRegistrationListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiCategoryRegistrationList. + + + :param embedded: The embedded of this MsGpsiCategoryRegistrationList. # noqa: E501 + :type embedded: MsGpsiCategoryRegistrationListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiCategoryRegistrationList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiCategoryRegistrationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_category_registration_list_embedded.py b/openapi_client_udm/models/ms_gpsi_category_registration_list_embedded.py new file mode 100644 index 0000000..c12d5c3 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_category_registration_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiCategoryRegistrationListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpsiCategoryRegistration]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiCategoryRegistrationListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpsiCategoryRegistrationListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpsiCategoryRegistrationListEmbedded. # noqa: E501 + :rtype: list[MsGpsiCategoryRegistration] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpsiCategoryRegistrationListEmbedded. + + + :param udmobject: The udmobject of this MsGpsiCategoryRegistrationListEmbedded. # noqa: E501 + :type udmobject: list[MsGpsiCategoryRegistration] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiCategoryRegistrationListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiCategoryRegistrationListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_category_registration_policies.py b/openapi_client_udm/models/ms_gpsi_category_registration_policies.py new file mode 100644 index 0000000..44d6204 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_category_registration_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiCategoryRegistrationPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiCategoryRegistrationPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpsiCategoryRegistrationPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpsiCategoryRegistrationPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpsiCategoryRegistrationPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpsiCategoryRegistrationPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpsiCategoryRegistrationPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpsiCategoryRegistrationPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpsiCategoryRegistrationPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpsiCategoryRegistrationPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpsiCategoryRegistrationPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpsiCategoryRegistrationPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpsiCategoryRegistrationPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpsiCategoryRegistrationPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpsiCategoryRegistrationPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpsiCategoryRegistrationPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpsiCategoryRegistrationPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpsiCategoryRegistrationPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpsiCategoryRegistrationPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpsiCategoryRegistrationPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpsiCategoryRegistrationPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpsiCategoryRegistrationPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpsiCategoryRegistrationPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpsiCategoryRegistrationPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpsiCategoryRegistrationPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpsiCategoryRegistrationPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpsiCategoryRegistrationPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiCategoryRegistrationPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiCategoryRegistrationPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_category_registration_request.py b/openapi_client_udm/models/ms_gpsi_category_registration_request.py new file mode 100644 index 0000000..f58cfe5 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_category_registration_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiCategoryRegistrationRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiCategoryRegistrationPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiCategoryRegistrationRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiCategoryRegistrationRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiCategoryRegistrationRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiCategoryRegistrationRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + + + :return: The policies of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :rtype: MsGpsiCategoryRegistrationPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiCategoryRegistrationRequest. + + + :param policies: The policies of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :type policies: MsGpsiCategoryRegistrationPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpsiCategoryRegistrationRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpsiCategoryRegistrationRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiCategoryRegistrationRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiCategoryRegistrationRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_category_registration_request_patch.py b/openapi_client_udm/models/ms_gpsi_category_registration_request_patch.py new file mode 100644 index 0000000..438523c --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_category_registration_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiCategoryRegistrationRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiCategoryRegistrationPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiCategoryRegistrationRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiCategoryRegistrationRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiCategoryRegistrationRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiCategoryRegistrationRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + :rtype: MsGpsiCategoryRegistrationPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiCategoryRegistrationRequestPatch. + + + :param policies: The policies of this MsGpsiCategoryRegistrationRequestPatch. # noqa: E501 + :type policies: MsGpsiCategoryRegistrationPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiCategoryRegistrationRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiCategoryRegistrationRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_category_registration_response_mixin.py b/openapi_client_udm/models/ms_gpsi_category_registration_response_mixin.py new file mode 100644 index 0000000..cd7f8fe --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_category_registration_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiCategoryRegistrationResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiCategoryRegistrationResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + + + :return: The links of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpsiCategoryRegistrationResponseMixin. + + + :param links: The links of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiCategoryRegistrationResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpsiCategoryRegistrationResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpsiCategoryRegistrationResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpsiCategoryRegistrationResponseMixin. + + + :param uri: The uri of this MsGpsiCategoryRegistrationResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiCategoryRegistrationResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiCategoryRegistrationResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_class_store.py b/openapi_client_udm/models/ms_gpsi_class_store.py new file mode 100644 index 0000000..1647172 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_class_store.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiClassStore(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiClassStorePolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiClassStore - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpsiClassStore. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiClassStore. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiClassStore. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiClassStore. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiClassStore. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiClassStore. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiClassStore. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiClassStore. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiClassStore. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiClassStore. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiClassStore. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiClassStore. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiClassStore. # noqa: E501 + + + :return: The policies of this MsGpsiClassStore. # noqa: E501 + :rtype: MsGpsiClassStorePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiClassStore. + + + :param policies: The policies of this MsGpsiClassStore. # noqa: E501 + :type policies: MsGpsiClassStorePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpsiClassStore. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpsiClassStore. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpsiClassStore. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpsiClassStore. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpsiClassStore. # noqa: E501 + + + :return: The links of this MsGpsiClassStore. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpsiClassStore. + + + :param links: The links of this MsGpsiClassStore. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpsiClassStore. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpsiClassStore. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiClassStore. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpsiClassStore. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpsiClassStore. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpsiClassStore. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpsiClassStore. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpsiClassStore. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpsiClassStore. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpsiClassStore. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpsiClassStore. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpsiClassStore. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpsiClassStore. # noqa: E501 + + + :return: The uri of this MsGpsiClassStore. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpsiClassStore. + + + :param uri: The uri of this MsGpsiClassStore. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiClassStore): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiClassStore): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_class_store_list.py b/openapi_client_udm/models/ms_gpsi_class_store_list.py new file mode 100644 index 0000000..7d0cf65 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_class_store_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiClassStoreList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpsiClassStoreListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiClassStoreList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpsiClassStoreList. # noqa: E501 + + + :return: The embedded of this MsGpsiClassStoreList. # noqa: E501 + :rtype: MsGpsiClassStoreListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiClassStoreList. + + + :param embedded: The embedded of this MsGpsiClassStoreList. # noqa: E501 + :type embedded: MsGpsiClassStoreListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiClassStoreList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiClassStoreList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_class_store_list_embedded.py b/openapi_client_udm/models/ms_gpsi_class_store_list_embedded.py new file mode 100644 index 0000000..4361bf9 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_class_store_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiClassStoreListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpsiClassStore]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiClassStoreListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpsiClassStoreListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpsiClassStoreListEmbedded. # noqa: E501 + :rtype: list[MsGpsiClassStore] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpsiClassStoreListEmbedded. + + + :param udmobject: The udmobject of this MsGpsiClassStoreListEmbedded. # noqa: E501 + :type udmobject: list[MsGpsiClassStore] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiClassStoreListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiClassStoreListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_class_store_policies.py b/openapi_client_udm/models/ms_gpsi_class_store_policies.py new file mode 100644 index 0000000..a658442 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_class_store_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiClassStorePolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiClassStorePolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpsiClassStorePolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpsiClassStorePolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpsiClassStorePolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpsiClassStorePolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpsiClassStorePolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpsiClassStorePolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpsiClassStorePolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpsiClassStorePolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpsiClassStorePolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpsiClassStorePolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpsiClassStorePolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpsiClassStorePolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpsiClassStorePolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpsiClassStorePolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpsiClassStorePolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpsiClassStorePolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpsiClassStorePolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpsiClassStorePolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpsiClassStorePolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpsiClassStorePolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpsiClassStorePolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpsiClassStorePolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpsiClassStorePolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpsiClassStorePolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpsiClassStorePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpsiClassStorePolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpsiClassStorePolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiClassStorePolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiClassStorePolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_class_store_request.py b/openapi_client_udm/models/ms_gpsi_class_store_request.py new file mode 100644 index 0000000..1a37351 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_class_store_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiClassStoreRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiClassStorePolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiClassStoreRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpsiClassStoreRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiClassStoreRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiClassStoreRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiClassStoreRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiClassStoreRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiClassStoreRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiClassStoreRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiClassStoreRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiClassStoreRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiClassStoreRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiClassStoreRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiClassStoreRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiClassStoreRequest. # noqa: E501 + + + :return: The policies of this MsGpsiClassStoreRequest. # noqa: E501 + :rtype: MsGpsiClassStorePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiClassStoreRequest. + + + :param policies: The policies of this MsGpsiClassStoreRequest. # noqa: E501 + :type policies: MsGpsiClassStorePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpsiClassStoreRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpsiClassStoreRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpsiClassStoreRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpsiClassStoreRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiClassStoreRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiClassStoreRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_class_store_request_patch.py b/openapi_client_udm/models/ms_gpsi_class_store_request_patch.py new file mode 100644 index 0000000..5338591 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_class_store_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiClassStoreRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiClassStorePolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiClassStoreRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpsiClassStoreRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiClassStoreRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiClassStoreRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiClassStoreRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiClassStoreRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiClassStoreRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiClassStoreRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiClassStoreRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiClassStoreRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiClassStoreRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiClassStoreRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiClassStoreRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiClassStoreRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpsiClassStoreRequestPatch. # noqa: E501 + :rtype: MsGpsiClassStorePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiClassStoreRequestPatch. + + + :param policies: The policies of this MsGpsiClassStoreRequestPatch. # noqa: E501 + :type policies: MsGpsiClassStorePolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiClassStoreRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiClassStoreRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_class_store_response_mixin.py b/openapi_client_udm/models/ms_gpsi_class_store_response_mixin.py new file mode 100644 index 0000000..518ce2d --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_class_store_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiClassStoreResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiClassStoreResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpsiClassStoreResponseMixin. # noqa: E501 + + + :return: The links of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpsiClassStoreResponseMixin. + + + :param links: The links of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpsiClassStoreResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiClassStoreResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpsiClassStoreResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpsiClassStoreResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpsiClassStoreResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpsiClassStoreResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpsiClassStoreResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpsiClassStoreResponseMixin. + + + :param uri: The uri of this MsGpsiClassStoreResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiClassStoreResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiClassStoreResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_package_registration.py b/openapi_client_udm/models/ms_gpsi_package_registration.py new file mode 100644 index 0000000..299d111 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_package_registration.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiPackageRegistration(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiPackageRegistrationPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiPackageRegistration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpsiPackageRegistration. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiPackageRegistration. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiPackageRegistration. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiPackageRegistration. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiPackageRegistration. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiPackageRegistration. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiPackageRegistration. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiPackageRegistration. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiPackageRegistration. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiPackageRegistration. # noqa: E501 + + + :return: The policies of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: MsGpsiPackageRegistrationPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiPackageRegistration. + + + :param policies: The policies of this MsGpsiPackageRegistration. # noqa: E501 + :type policies: MsGpsiPackageRegistrationPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpsiPackageRegistration. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpsiPackageRegistration. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpsiPackageRegistration. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpsiPackageRegistration. # noqa: E501 + + + :return: The links of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpsiPackageRegistration. + + + :param links: The links of this MsGpsiPackageRegistration. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpsiPackageRegistration. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiPackageRegistration. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpsiPackageRegistration. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpsiPackageRegistration. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpsiPackageRegistration. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpsiPackageRegistration. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpsiPackageRegistration. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpsiPackageRegistration. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpsiPackageRegistration. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpsiPackageRegistration. # noqa: E501 + + + :return: The uri of this MsGpsiPackageRegistration. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpsiPackageRegistration. + + + :param uri: The uri of this MsGpsiPackageRegistration. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiPackageRegistration): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiPackageRegistration): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_package_registration_list.py b/openapi_client_udm/models/ms_gpsi_package_registration_list.py new file mode 100644 index 0000000..d3c4bc1 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_package_registration_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiPackageRegistrationList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpsiPackageRegistrationListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiPackageRegistrationList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpsiPackageRegistrationList. # noqa: E501 + + + :return: The embedded of this MsGpsiPackageRegistrationList. # noqa: E501 + :rtype: MsGpsiPackageRegistrationListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiPackageRegistrationList. + + + :param embedded: The embedded of this MsGpsiPackageRegistrationList. # noqa: E501 + :type embedded: MsGpsiPackageRegistrationListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiPackageRegistrationList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiPackageRegistrationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_package_registration_list_embedded.py b/openapi_client_udm/models/ms_gpsi_package_registration_list_embedded.py new file mode 100644 index 0000000..a3e8c78 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_package_registration_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiPackageRegistrationListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpsiPackageRegistration]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiPackageRegistrationListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpsiPackageRegistrationListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpsiPackageRegistrationListEmbedded. # noqa: E501 + :rtype: list[MsGpsiPackageRegistration] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpsiPackageRegistrationListEmbedded. + + + :param udmobject: The udmobject of this MsGpsiPackageRegistrationListEmbedded. # noqa: E501 + :type udmobject: list[MsGpsiPackageRegistration] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiPackageRegistrationListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiPackageRegistrationListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_package_registration_policies.py b/openapi_client_udm/models/ms_gpsi_package_registration_policies.py new file mode 100644 index 0000000..93b243b --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_package_registration_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiPackageRegistrationPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiPackageRegistrationPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpsiPackageRegistrationPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpsiPackageRegistrationPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpsiPackageRegistrationPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpsiPackageRegistrationPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpsiPackageRegistrationPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpsiPackageRegistrationPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpsiPackageRegistrationPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpsiPackageRegistrationPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpsiPackageRegistrationPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpsiPackageRegistrationPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpsiPackageRegistrationPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpsiPackageRegistrationPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpsiPackageRegistrationPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpsiPackageRegistrationPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpsiPackageRegistrationPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpsiPackageRegistrationPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpsiPackageRegistrationPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpsiPackageRegistrationPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpsiPackageRegistrationPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpsiPackageRegistrationPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpsiPackageRegistrationPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpsiPackageRegistrationPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpsiPackageRegistrationPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpsiPackageRegistrationPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpsiPackageRegistrationPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiPackageRegistrationPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiPackageRegistrationPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_package_registration_request.py b/openapi_client_udm/models/ms_gpsi_package_registration_request.py new file mode 100644 index 0000000..dd3364e --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_package_registration_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiPackageRegistrationRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiPackageRegistrationPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiPackageRegistrationRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpsiPackageRegistrationRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiPackageRegistrationRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiPackageRegistrationRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiPackageRegistrationRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiPackageRegistrationRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiPackageRegistrationRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiPackageRegistrationRequest. # noqa: E501 + + + :return: The policies of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :rtype: MsGpsiPackageRegistrationPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiPackageRegistrationRequest. + + + :param policies: The policies of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :type policies: MsGpsiPackageRegistrationPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpsiPackageRegistrationRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpsiPackageRegistrationRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpsiPackageRegistrationRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiPackageRegistrationRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiPackageRegistrationRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_package_registration_request_patch.py b/openapi_client_udm/models/ms_gpsi_package_registration_request_patch.py new file mode 100644 index 0000000..20a8216 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_package_registration_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiPackageRegistrationRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpsiPackageRegistrationPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiPackageRegistrationRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpsiPackageRegistrationRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpsiPackageRegistrationRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpsiPackageRegistrationRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + :rtype: MsGpsiPackageRegistrationPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpsiPackageRegistrationRequestPatch. + + + :param policies: The policies of this MsGpsiPackageRegistrationRequestPatch. # noqa: E501 + :type policies: MsGpsiPackageRegistrationPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiPackageRegistrationRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiPackageRegistrationRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpsi_package_registration_response_mixin.py b/openapi_client_udm/models/ms_gpsi_package_registration_response_mixin.py new file mode 100644 index 0000000..99b4806 --- /dev/null +++ b/openapi_client_udm/models/ms_gpsi_package_registration_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpsiPackageRegistrationResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpsiPackageRegistrationResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + + + :return: The links of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpsiPackageRegistrationResponseMixin. + + + :param links: The links of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpsiPackageRegistrationResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpsiPackageRegistrationResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpsiPackageRegistrationResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpsiPackageRegistrationResponseMixin. + + + :param uri: The uri of this MsGpsiPackageRegistrationResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpsiPackageRegistrationResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpsiPackageRegistrationResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wired.py b/openapi_client_udm/models/ms_gpwl_wired.py new file mode 100644 index 0000000..46f50f9 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wired.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWired(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWiredPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWired - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpwlWired. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWired. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWired. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWired. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWired. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWired. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWired. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWired. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWired. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWired. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWired. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWired. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWired. # noqa: E501 + + + :return: The policies of this MsGpwlWired. # noqa: E501 + :rtype: MsGpwlWiredPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWired. + + + :param policies: The policies of this MsGpwlWired. # noqa: E501 + :type policies: MsGpwlWiredPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpwlWired. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpwlWired. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpwlWired. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpwlWired. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpwlWired. # noqa: E501 + + + :return: The links of this MsGpwlWired. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpwlWired. + + + :param links: The links of this MsGpwlWired. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWired. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpwlWired. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWired. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpwlWired. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpwlWired. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpwlWired. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpwlWired. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpwlWired. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpwlWired. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpwlWired. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpwlWired. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpwlWired. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpwlWired. # noqa: E501 + + + :return: The uri of this MsGpwlWired. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpwlWired. + + + :param uri: The uri of this MsGpwlWired. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWired): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWired): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wired_list.py b/openapi_client_udm/models/ms_gpwl_wired_list.py new file mode 100644 index 0000000..9517217 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wired_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWiredList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpwlWiredListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWiredList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWiredList. # noqa: E501 + + + :return: The embedded of this MsGpwlWiredList. # noqa: E501 + :rtype: MsGpwlWiredListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWiredList. + + + :param embedded: The embedded of this MsGpwlWiredList. # noqa: E501 + :type embedded: MsGpwlWiredListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWiredList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWiredList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wired_list_embedded.py b/openapi_client_udm/models/ms_gpwl_wired_list_embedded.py new file mode 100644 index 0000000..59c3b81 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wired_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWiredListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpwlWired]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWiredListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpwlWiredListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpwlWiredListEmbedded. # noqa: E501 + :rtype: list[MsGpwlWired] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpwlWiredListEmbedded. + + + :param udmobject: The udmobject of this MsGpwlWiredListEmbedded. # noqa: E501 + :type udmobject: list[MsGpwlWired] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWiredListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWiredListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wired_policies.py b/openapi_client_udm/models/ms_gpwl_wired_policies.py new file mode 100644 index 0000000..5dca618 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wired_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWiredPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWiredPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpwlWiredPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpwlWiredPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpwlWiredPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpwlWiredPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpwlWiredPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpwlWiredPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpwlWiredPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpwlWiredPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpwlWiredPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpwlWiredPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpwlWiredPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpwlWiredPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpwlWiredPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpwlWiredPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpwlWiredPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpwlWiredPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpwlWiredPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpwlWiredPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpwlWiredPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpwlWiredPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpwlWiredPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpwlWiredPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpwlWiredPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpwlWiredPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpwlWiredPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpwlWiredPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpwlWiredPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWiredPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWiredPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wired_request.py b/openapi_client_udm/models/ms_gpwl_wired_request.py new file mode 100644 index 0000000..2275b1d --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wired_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWiredRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWiredPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWiredRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpwlWiredRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWiredRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWiredRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWiredRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWiredRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWiredRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWiredRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWiredRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWiredRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWiredRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWiredRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWiredRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWiredRequest. # noqa: E501 + + + :return: The policies of this MsGpwlWiredRequest. # noqa: E501 + :rtype: MsGpwlWiredPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWiredRequest. + + + :param policies: The policies of this MsGpwlWiredRequest. # noqa: E501 + :type policies: MsGpwlWiredPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpwlWiredRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpwlWiredRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpwlWiredRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpwlWiredRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWiredRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWiredRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wired_request_patch.py b/openapi_client_udm/models/ms_gpwl_wired_request_patch.py new file mode 100644 index 0000000..a4ff376 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wired_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWiredRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWiredPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWiredRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpwlWiredRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWiredRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWiredRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWiredRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWiredRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWiredRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWiredRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWiredRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWiredRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWiredRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWiredRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWiredRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWiredRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpwlWiredRequestPatch. # noqa: E501 + :rtype: MsGpwlWiredPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWiredRequestPatch. + + + :param policies: The policies of this MsGpwlWiredRequestPatch. # noqa: E501 + :type policies: MsGpwlWiredPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWiredRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWiredRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wired_response_mixin.py b/openapi_client_udm/models/ms_gpwl_wired_response_mixin.py new file mode 100644 index 0000000..01ed309 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wired_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWiredResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWiredResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpwlWiredResponseMixin. # noqa: E501 + + + :return: The links of this MsGpwlWiredResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpwlWiredResponseMixin. + + + :param links: The links of this MsGpwlWiredResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWiredResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpwlWiredResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWiredResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpwlWiredResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpwlWiredResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpwlWiredResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpwlWiredResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpwlWiredResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpwlWiredResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpwlWiredResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpwlWiredResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpwlWiredResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpwlWiredResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpwlWiredResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpwlWiredResponseMixin. + + + :param uri: The uri of this MsGpwlWiredResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWiredResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWiredResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless.py b/openapi_client_udm/models/ms_gpwl_wireless.py new file mode 100644 index 0000000..cdff735 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWireless(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWirelessPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWireless - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpwlWireless. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWireless. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWireless. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWireless. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWireless. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWireless. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWireless. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWireless. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWireless. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWireless. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWireless. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWireless. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWireless. # noqa: E501 + + + :return: The policies of this MsGpwlWireless. # noqa: E501 + :rtype: MsGpwlWirelessPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWireless. + + + :param policies: The policies of this MsGpwlWireless. # noqa: E501 + :type policies: MsGpwlWirelessPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpwlWireless. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpwlWireless. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpwlWireless. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpwlWireless. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpwlWireless. # noqa: E501 + + + :return: The links of this MsGpwlWireless. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpwlWireless. + + + :param links: The links of this MsGpwlWireless. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWireless. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpwlWireless. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWireless. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpwlWireless. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpwlWireless. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpwlWireless. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpwlWireless. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpwlWireless. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpwlWireless. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpwlWireless. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpwlWireless. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpwlWireless. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpwlWireless. # noqa: E501 + + + :return: The uri of this MsGpwlWireless. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpwlWireless. + + + :param uri: The uri of this MsGpwlWireless. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWireless): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWireless): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_blob.py b/openapi_client_udm/models/ms_gpwl_wireless_blob.py new file mode 100644 index 0000000..efce82b --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_blob.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessBlob(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWirelessBlobPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessBlob - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this MsGpwlWirelessBlob. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWirelessBlob. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWirelessBlob. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWirelessBlob. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWirelessBlob. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWirelessBlob. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWirelessBlob. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWirelessBlob. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWirelessBlob. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWirelessBlob. # noqa: E501 + + + :return: The policies of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: MsGpwlWirelessBlobPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWirelessBlob. + + + :param policies: The policies of this MsGpwlWirelessBlob. # noqa: E501 + :type policies: MsGpwlWirelessBlobPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpwlWirelessBlob. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpwlWirelessBlob. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpwlWirelessBlob. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this MsGpwlWirelessBlob. # noqa: E501 + + + :return: The links of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpwlWirelessBlob. + + + :param links: The links of this MsGpwlWirelessBlob. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWirelessBlob. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWirelessBlob. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpwlWirelessBlob. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpwlWirelessBlob. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpwlWirelessBlob. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpwlWirelessBlob. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpwlWirelessBlob. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpwlWirelessBlob. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpwlWirelessBlob. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpwlWirelessBlob. # noqa: E501 + + + :return: The uri of this MsGpwlWirelessBlob. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpwlWirelessBlob. + + + :param uri: The uri of this MsGpwlWirelessBlob. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessBlob): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessBlob): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_blob_list.py b/openapi_client_udm/models/ms_gpwl_wireless_blob_list.py new file mode 100644 index 0000000..227d53a --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_blob_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessBlobList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpwlWirelessBlobListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessBlobList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWirelessBlobList. # noqa: E501 + + + :return: The embedded of this MsGpwlWirelessBlobList. # noqa: E501 + :rtype: MsGpwlWirelessBlobListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWirelessBlobList. + + + :param embedded: The embedded of this MsGpwlWirelessBlobList. # noqa: E501 + :type embedded: MsGpwlWirelessBlobListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessBlobList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessBlobList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_blob_list_embedded.py b/openapi_client_udm/models/ms_gpwl_wireless_blob_list_embedded.py new file mode 100644 index 0000000..43b0e93 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_blob_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessBlobListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpwlWirelessBlob]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessBlobListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpwlWirelessBlobListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpwlWirelessBlobListEmbedded. # noqa: E501 + :rtype: list[MsGpwlWirelessBlob] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpwlWirelessBlobListEmbedded. + + + :param udmobject: The udmobject of this MsGpwlWirelessBlobListEmbedded. # noqa: E501 + :type udmobject: list[MsGpwlWirelessBlob] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessBlobListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessBlobListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_blob_policies.py b/openapi_client_udm/models/ms_gpwl_wireless_blob_policies.py new file mode 100644 index 0000000..bf02c3a --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_blob_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessBlobPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessBlobPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpwlWirelessBlobPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpwlWirelessBlobPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpwlWirelessBlobPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpwlWirelessBlobPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpwlWirelessBlobPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpwlWirelessBlobPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpwlWirelessBlobPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpwlWirelessBlobPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpwlWirelessBlobPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpwlWirelessBlobPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpwlWirelessBlobPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpwlWirelessBlobPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpwlWirelessBlobPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpwlWirelessBlobPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpwlWirelessBlobPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpwlWirelessBlobPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpwlWirelessBlobPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpwlWirelessBlobPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpwlWirelessBlobPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpwlWirelessBlobPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpwlWirelessBlobPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpwlWirelessBlobPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpwlWirelessBlobPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpwlWirelessBlobPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpwlWirelessBlobPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessBlobPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessBlobPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_blob_request.py b/openapi_client_udm/models/ms_gpwl_wireless_blob_request.py new file mode 100644 index 0000000..c761530 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_blob_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessBlobRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWirelessBlobPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessBlobRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpwlWirelessBlobRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWirelessBlobRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWirelessBlobRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWirelessBlobRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWirelessBlobRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWirelessBlobRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWirelessBlobRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWirelessBlobRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWirelessBlobRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWirelessBlobRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWirelessBlobRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWirelessBlobRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWirelessBlobRequest. # noqa: E501 + + + :return: The policies of this MsGpwlWirelessBlobRequest. # noqa: E501 + :rtype: MsGpwlWirelessBlobPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWirelessBlobRequest. + + + :param policies: The policies of this MsGpwlWirelessBlobRequest. # noqa: E501 + :type policies: MsGpwlWirelessBlobPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpwlWirelessBlobRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpwlWirelessBlobRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpwlWirelessBlobRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpwlWirelessBlobRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessBlobRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessBlobRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_blob_request_patch.py b/openapi_client_udm/models/ms_gpwl_wireless_blob_request_patch.py new file mode 100644 index 0000000..2e99e87 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_blob_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessBlobRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWirelessBlobPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessBlobRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWirelessBlobRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWirelessBlobRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWirelessBlobRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + :rtype: MsGpwlWirelessBlobPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWirelessBlobRequestPatch. + + + :param policies: The policies of this MsGpwlWirelessBlobRequestPatch. # noqa: E501 + :type policies: MsGpwlWirelessBlobPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessBlobRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessBlobRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_blob_response_mixin.py b/openapi_client_udm/models/ms_gpwl_wireless_blob_response_mixin.py new file mode 100644 index 0000000..378c023 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_blob_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessBlobResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessBlobResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + + + :return: The links of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpwlWirelessBlobResponseMixin. + + + :param links: The links of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWirelessBlobResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpwlWirelessBlobResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpwlWirelessBlobResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpwlWirelessBlobResponseMixin. + + + :param uri: The uri of this MsGpwlWirelessBlobResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessBlobResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessBlobResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_list.py b/openapi_client_udm/models/ms_gpwl_wireless_list.py new file mode 100644 index 0000000..e578ab0 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'MsGpwlWirelessListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWirelessList. # noqa: E501 + + + :return: The embedded of this MsGpwlWirelessList. # noqa: E501 + :rtype: MsGpwlWirelessListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWirelessList. + + + :param embedded: The embedded of this MsGpwlWirelessList. # noqa: E501 + :type embedded: MsGpwlWirelessListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_list_embedded.py b/openapi_client_udm/models/ms_gpwl_wireless_list_embedded.py new file mode 100644 index 0000000..d6a4d81 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[MsGpwlWireless]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this MsGpwlWirelessListEmbedded. # noqa: E501 + + + :return: The udmobject of this MsGpwlWirelessListEmbedded. # noqa: E501 + :rtype: list[MsGpwlWireless] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this MsGpwlWirelessListEmbedded. + + + :param udmobject: The udmobject of this MsGpwlWirelessListEmbedded. # noqa: E501 + :type udmobject: list[MsGpwlWireless] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_policies.py b/openapi_client_udm/models/ms_gpwl_wireless_policies.py new file mode 100644 index 0000000..c76fd8d --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this MsGpwlWirelessPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this MsGpwlWirelessPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this MsGpwlWirelessPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this MsGpwlWirelessPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this MsGpwlWirelessPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this MsGpwlWirelessPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this MsGpwlWirelessPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this MsGpwlWirelessPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this MsGpwlWirelessPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this MsGpwlWirelessPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this MsGpwlWirelessPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this MsGpwlWirelessPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this MsGpwlWirelessPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this MsGpwlWirelessPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this MsGpwlWirelessPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this MsGpwlWirelessPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this MsGpwlWirelessPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this MsGpwlWirelessPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this MsGpwlWirelessPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this MsGpwlWirelessPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this MsGpwlWirelessPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this MsGpwlWirelessPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this MsGpwlWirelessPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this MsGpwlWirelessPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this MsGpwlWirelessPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this MsGpwlWirelessPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this MsGpwlWirelessPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_request.py b/openapi_client_udm/models/ms_gpwl_wireless_request.py new file mode 100644 index 0000000..7116528 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWirelessPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this MsGpwlWirelessRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWirelessRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWirelessRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWirelessRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWirelessRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWirelessRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWirelessRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWirelessRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWirelessRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWirelessRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWirelessRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWirelessRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWirelessRequest. # noqa: E501 + + + :return: The policies of this MsGpwlWirelessRequest. # noqa: E501 + :rtype: MsGpwlWirelessPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWirelessRequest. + + + :param policies: The policies of this MsGpwlWirelessRequest. # noqa: E501 + :type policies: MsGpwlWirelessPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this MsGpwlWirelessRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this MsGpwlWirelessRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this MsGpwlWirelessRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this MsGpwlWirelessRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_request_patch.py b/openapi_client_udm/models/ms_gpwl_wireless_request_patch.py new file mode 100644 index 0000000..a91a14d --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'MsGpwlWirelessPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this MsGpwlWirelessRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this MsGpwlWirelessRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this MsGpwlWirelessRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this MsGpwlWirelessRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this MsGpwlWirelessRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this MsGpwlWirelessRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this MsGpwlWirelessRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this MsGpwlWirelessRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this MsGpwlWirelessRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this MsGpwlWirelessRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this MsGpwlWirelessRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this MsGpwlWirelessRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this MsGpwlWirelessRequestPatch. # noqa: E501 + + + :return: The policies of this MsGpwlWirelessRequestPatch. # noqa: E501 + :rtype: MsGpwlWirelessPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this MsGpwlWirelessRequestPatch. + + + :param policies: The policies of this MsGpwlWirelessRequestPatch. # noqa: E501 + :type policies: MsGpwlWirelessPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/ms_gpwl_wireless_response_mixin.py b/openapi_client_udm/models/ms_gpwl_wireless_response_mixin.py new file mode 100644 index 0000000..d8bb445 --- /dev/null +++ b/openapi_client_udm/models/ms_gpwl_wireless_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class MsGpwlWirelessResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """MsGpwlWirelessResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this MsGpwlWirelessResponseMixin. # noqa: E501 + + + :return: The links of this MsGpwlWirelessResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this MsGpwlWirelessResponseMixin. + + + :param links: The links of this MsGpwlWirelessResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this MsGpwlWirelessResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this MsGpwlWirelessResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this MsGpwlWirelessResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this MsGpwlWirelessResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this MsGpwlWirelessResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this MsGpwlWirelessResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this MsGpwlWirelessResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this MsGpwlWirelessResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this MsGpwlWirelessResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this MsGpwlWirelessResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this MsGpwlWirelessResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this MsGpwlWirelessResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this MsGpwlWirelessResponseMixin. # noqa: E501 + + + :return: The uri of this MsGpwlWirelessResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this MsGpwlWirelessResponseMixin. + + + :param uri: The uri of this MsGpwlWirelessResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MsGpwlWirelessResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, MsGpwlWirelessResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_nagios.py b/openapi_client_udm/models/nagios_nagios.py new file mode 100644 index 0000000..b0d05a3 --- /dev/null +++ b/openapi_client_udm/models/nagios_nagios.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosNagios(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """NagiosNagios - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this NagiosNagios. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosNagios. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosNagios. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosNagios. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosNagios. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosNagios. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosNagios. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosNagios. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosNagios. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosNagios. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosNagios. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosNagios. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosNagios. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosNagios. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosNagios. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosNagios. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this NagiosNagios. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this NagiosNagios. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this NagiosNagios. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this NagiosNagios. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this NagiosNagios. # noqa: E501 + + + :return: The links of this NagiosNagios. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this NagiosNagios. + + + :param links: The links of this NagiosNagios. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this NagiosNagios. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this NagiosNagios. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosNagios. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this NagiosNagios. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this NagiosNagios. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this NagiosNagios. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this NagiosNagios. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this NagiosNagios. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this NagiosNagios. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this NagiosNagios. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this NagiosNagios. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this NagiosNagios. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this NagiosNagios. # noqa: E501 + + + :return: The uri of this NagiosNagios. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this NagiosNagios. + + + :param uri: The uri of this NagiosNagios. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosNagios): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosNagios): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_nagios_list.py b/openapi_client_udm/models/nagios_nagios_list.py new file mode 100644 index 0000000..168a81c --- /dev/null +++ b/openapi_client_udm/models/nagios_nagios_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosNagiosList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'NagiosNagiosListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """NagiosNagiosList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this NagiosNagiosList. # noqa: E501 + + + :return: The embedded of this NagiosNagiosList. # noqa: E501 + :rtype: NagiosNagiosListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosNagiosList. + + + :param embedded: The embedded of this NagiosNagiosList. # noqa: E501 + :type embedded: NagiosNagiosListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosNagiosList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosNagiosList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_nagios_list_embedded.py b/openapi_client_udm/models/nagios_nagios_list_embedded.py new file mode 100644 index 0000000..1b1eb25 --- /dev/null +++ b/openapi_client_udm/models/nagios_nagios_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosNagiosListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[NagiosNagios]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """NagiosNagiosListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this NagiosNagiosListEmbedded. # noqa: E501 + + + :return: The udmobject of this NagiosNagiosListEmbedded. # noqa: E501 + :rtype: list[NagiosNagios] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this NagiosNagiosListEmbedded. + + + :param udmobject: The udmobject of this NagiosNagiosListEmbedded. # noqa: E501 + :type udmobject: list[NagiosNagios] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosNagiosListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosNagiosListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_nagios_request.py b/openapi_client_udm/models/nagios_nagios_request.py new file mode 100644 index 0000000..c38eb77 --- /dev/null +++ b/openapi_client_udm/models/nagios_nagios_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosNagiosRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """NagiosNagiosRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this NagiosNagiosRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosNagiosRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosNagiosRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosNagiosRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosNagiosRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosNagiosRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosNagiosRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosNagiosRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosNagiosRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosNagiosRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosNagiosRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosNagiosRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosNagiosRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosNagiosRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosNagiosRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosNagiosRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this NagiosNagiosRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this NagiosNagiosRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this NagiosNagiosRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this NagiosNagiosRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosNagiosRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosNagiosRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_nagios_request_patch.py b/openapi_client_udm/models/nagios_nagios_request_patch.py new file mode 100644 index 0000000..5483856 --- /dev/null +++ b/openapi_client_udm/models/nagios_nagios_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosNagiosRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """NagiosNagiosRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this NagiosNagiosRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosNagiosRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosNagiosRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosNagiosRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosNagiosRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosNagiosRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosNagiosRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosNagiosRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosNagiosRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosNagiosRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosNagiosRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosNagiosRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosNagiosRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosNagiosRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosNagiosRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosNagiosRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosNagiosRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosNagiosRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_nagios_response_mixin.py b/openapi_client_udm/models/nagios_nagios_response_mixin.py new file mode 100644 index 0000000..901c09e --- /dev/null +++ b/openapi_client_udm/models/nagios_nagios_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosNagiosResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """NagiosNagiosResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this NagiosNagiosResponseMixin. # noqa: E501 + + + :return: The links of this NagiosNagiosResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this NagiosNagiosResponseMixin. + + + :param links: The links of this NagiosNagiosResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this NagiosNagiosResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this NagiosNagiosResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosNagiosResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this NagiosNagiosResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this NagiosNagiosResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this NagiosNagiosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this NagiosNagiosResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this NagiosNagiosResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this NagiosNagiosResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this NagiosNagiosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this NagiosNagiosResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this NagiosNagiosResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this NagiosNagiosResponseMixin. # noqa: E501 + + + :return: The uri of this NagiosNagiosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this NagiosNagiosResponseMixin. + + + :param uri: The uri of this NagiosNagiosResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosNagiosResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosNagiosResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_service.py b/openapi_client_udm/models/nagios_service.py new file mode 100644 index 0000000..6d2787c --- /dev/null +++ b/openapi_client_udm/models/nagios_service.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """NagiosService - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this NagiosService. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosService. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosService. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosService. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosService. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosService. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosService. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosService. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosService. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosService. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosService. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosService. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosService. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this NagiosService. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this NagiosService. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this NagiosService. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this NagiosService. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this NagiosService. # noqa: E501 + + + :return: The links of this NagiosService. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this NagiosService. + + + :param links: The links of this NagiosService. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this NagiosService. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this NagiosService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosService. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this NagiosService. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this NagiosService. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this NagiosService. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this NagiosService. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this NagiosService. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this NagiosService. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this NagiosService. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this NagiosService. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this NagiosService. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this NagiosService. # noqa: E501 + + + :return: The uri of this NagiosService. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this NagiosService. + + + :param uri: The uri of this NagiosService. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosService): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosService): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_service_list.py b/openapi_client_udm/models/nagios_service_list.py new file mode 100644 index 0000000..28ba970 --- /dev/null +++ b/openapi_client_udm/models/nagios_service_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosServiceList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'NagiosServiceListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """NagiosServiceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this NagiosServiceList. # noqa: E501 + + + :return: The embedded of this NagiosServiceList. # noqa: E501 + :rtype: NagiosServiceListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosServiceList. + + + :param embedded: The embedded of this NagiosServiceList. # noqa: E501 + :type embedded: NagiosServiceListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosServiceList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosServiceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_service_list_embedded.py b/openapi_client_udm/models/nagios_service_list_embedded.py new file mode 100644 index 0000000..36d7e56 --- /dev/null +++ b/openapi_client_udm/models/nagios_service_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosServiceListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[NagiosService]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """NagiosServiceListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this NagiosServiceListEmbedded. # noqa: E501 + + + :return: The udmobject of this NagiosServiceListEmbedded. # noqa: E501 + :rtype: list[NagiosService] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this NagiosServiceListEmbedded. + + + :param udmobject: The udmobject of this NagiosServiceListEmbedded. # noqa: E501 + :type udmobject: list[NagiosService] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosServiceListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosServiceListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_service_request.py b/openapi_client_udm/models/nagios_service_request.py new file mode 100644 index 0000000..b79aa62 --- /dev/null +++ b/openapi_client_udm/models/nagios_service_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosServiceRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """NagiosServiceRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this NagiosServiceRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosServiceRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosServiceRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosServiceRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosServiceRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosServiceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosServiceRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosServiceRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosServiceRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosServiceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosServiceRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosServiceRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosServiceRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosServiceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosServiceRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosServiceRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this NagiosServiceRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this NagiosServiceRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this NagiosServiceRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this NagiosServiceRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosServiceRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosServiceRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_service_request_patch.py b/openapi_client_udm/models/nagios_service_request_patch.py new file mode 100644 index 0000000..528e2e8 --- /dev/null +++ b/openapi_client_udm/models/nagios_service_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosServiceRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """NagiosServiceRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this NagiosServiceRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosServiceRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosServiceRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosServiceRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosServiceRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosServiceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosServiceRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosServiceRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosServiceRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosServiceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosServiceRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosServiceRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosServiceRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosServiceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosServiceRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosServiceRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosServiceRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosServiceRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_service_response_mixin.py b/openapi_client_udm/models/nagios_service_response_mixin.py new file mode 100644 index 0000000..d3c7ada --- /dev/null +++ b/openapi_client_udm/models/nagios_service_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosServiceResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """NagiosServiceResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this NagiosServiceResponseMixin. # noqa: E501 + + + :return: The links of this NagiosServiceResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this NagiosServiceResponseMixin. + + + :param links: The links of this NagiosServiceResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this NagiosServiceResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this NagiosServiceResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosServiceResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this NagiosServiceResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this NagiosServiceResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this NagiosServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this NagiosServiceResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this NagiosServiceResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this NagiosServiceResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this NagiosServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this NagiosServiceResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this NagiosServiceResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this NagiosServiceResponseMixin. # noqa: E501 + + + :return: The uri of this NagiosServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this NagiosServiceResponseMixin. + + + :param uri: The uri of this NagiosServiceResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosServiceResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosServiceResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_timeperiod.py b/openapi_client_udm/models/nagios_timeperiod.py new file mode 100644 index 0000000..3efda28 --- /dev/null +++ b/openapi_client_udm/models/nagios_timeperiod.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosTimeperiod(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """NagiosTimeperiod - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this NagiosTimeperiod. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosTimeperiod. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosTimeperiod. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosTimeperiod. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosTimeperiod. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosTimeperiod. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosTimeperiod. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosTimeperiod. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosTimeperiod. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosTimeperiod. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosTimeperiod. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosTimeperiod. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosTimeperiod. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosTimeperiod. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosTimeperiod. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosTimeperiod. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this NagiosTimeperiod. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this NagiosTimeperiod. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this NagiosTimeperiod. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this NagiosTimeperiod. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this NagiosTimeperiod. # noqa: E501 + + + :return: The links of this NagiosTimeperiod. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this NagiosTimeperiod. + + + :param links: The links of this NagiosTimeperiod. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this NagiosTimeperiod. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this NagiosTimeperiod. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosTimeperiod. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this NagiosTimeperiod. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this NagiosTimeperiod. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this NagiosTimeperiod. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this NagiosTimeperiod. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this NagiosTimeperiod. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this NagiosTimeperiod. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this NagiosTimeperiod. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this NagiosTimeperiod. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this NagiosTimeperiod. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this NagiosTimeperiod. # noqa: E501 + + + :return: The uri of this NagiosTimeperiod. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this NagiosTimeperiod. + + + :param uri: The uri of this NagiosTimeperiod. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosTimeperiod): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosTimeperiod): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_timeperiod_list.py b/openapi_client_udm/models/nagios_timeperiod_list.py new file mode 100644 index 0000000..9d64c72 --- /dev/null +++ b/openapi_client_udm/models/nagios_timeperiod_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosTimeperiodList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'NagiosTimeperiodListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """NagiosTimeperiodList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this NagiosTimeperiodList. # noqa: E501 + + + :return: The embedded of this NagiosTimeperiodList. # noqa: E501 + :rtype: NagiosTimeperiodListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosTimeperiodList. + + + :param embedded: The embedded of this NagiosTimeperiodList. # noqa: E501 + :type embedded: NagiosTimeperiodListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosTimeperiodList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosTimeperiodList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_timeperiod_list_embedded.py b/openapi_client_udm/models/nagios_timeperiod_list_embedded.py new file mode 100644 index 0000000..1e57c91 --- /dev/null +++ b/openapi_client_udm/models/nagios_timeperiod_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosTimeperiodListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[NagiosTimeperiod]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """NagiosTimeperiodListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this NagiosTimeperiodListEmbedded. # noqa: E501 + + + :return: The udmobject of this NagiosTimeperiodListEmbedded. # noqa: E501 + :rtype: list[NagiosTimeperiod] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this NagiosTimeperiodListEmbedded. + + + :param udmobject: The udmobject of this NagiosTimeperiodListEmbedded. # noqa: E501 + :type udmobject: list[NagiosTimeperiod] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosTimeperiodListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosTimeperiodListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_timeperiod_request.py b/openapi_client_udm/models/nagios_timeperiod_request.py new file mode 100644 index 0000000..e3a9cc2 --- /dev/null +++ b/openapi_client_udm/models/nagios_timeperiod_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosTimeperiodRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """NagiosTimeperiodRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this NagiosTimeperiodRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosTimeperiodRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosTimeperiodRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosTimeperiodRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosTimeperiodRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosTimeperiodRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosTimeperiodRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosTimeperiodRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosTimeperiodRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosTimeperiodRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosTimeperiodRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosTimeperiodRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosTimeperiodRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosTimeperiodRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosTimeperiodRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosTimeperiodRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this NagiosTimeperiodRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this NagiosTimeperiodRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this NagiosTimeperiodRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this NagiosTimeperiodRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosTimeperiodRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosTimeperiodRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_timeperiod_request_patch.py b/openapi_client_udm/models/nagios_timeperiod_request_patch.py new file mode 100644 index 0000000..e2e7b19 --- /dev/null +++ b/openapi_client_udm/models/nagios_timeperiod_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosTimeperiodRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """NagiosTimeperiodRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this NagiosTimeperiodRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NagiosTimeperiodRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NagiosTimeperiodRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NagiosTimeperiodRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NagiosTimeperiodRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NagiosTimeperiodRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NagiosTimeperiodRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NagiosTimeperiodRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NagiosTimeperiodRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NagiosTimeperiodRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NagiosTimeperiodRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NagiosTimeperiodRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NagiosTimeperiodRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NagiosTimeperiodRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NagiosTimeperiodRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NagiosTimeperiodRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosTimeperiodRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosTimeperiodRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/nagios_timeperiod_response_mixin.py b/openapi_client_udm/models/nagios_timeperiod_response_mixin.py new file mode 100644 index 0000000..b0fc9b4 --- /dev/null +++ b/openapi_client_udm/models/nagios_timeperiod_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NagiosTimeperiodResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """NagiosTimeperiodResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this NagiosTimeperiodResponseMixin. # noqa: E501 + + + :return: The links of this NagiosTimeperiodResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this NagiosTimeperiodResponseMixin. + + + :param links: The links of this NagiosTimeperiodResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this NagiosTimeperiodResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this NagiosTimeperiodResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NagiosTimeperiodResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this NagiosTimeperiodResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this NagiosTimeperiodResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this NagiosTimeperiodResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this NagiosTimeperiodResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this NagiosTimeperiodResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this NagiosTimeperiodResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this NagiosTimeperiodResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this NagiosTimeperiodResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this NagiosTimeperiodResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this NagiosTimeperiodResponseMixin. # noqa: E501 + + + :return: The uri of this NagiosTimeperiodResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this NagiosTimeperiodResponseMixin. + + + :param uri: The uri of this NagiosTimeperiodResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NagiosTimeperiodResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NagiosTimeperiodResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/networks_network.py b/openapi_client_udm/models/networks_network.py new file mode 100644 index 0000000..ba78b46 --- /dev/null +++ b/openapi_client_udm/models/networks_network.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NetworksNetwork(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """NetworksNetwork - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this NetworksNetwork. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NetworksNetwork. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NetworksNetwork. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NetworksNetwork. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NetworksNetwork. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NetworksNetwork. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NetworksNetwork. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NetworksNetwork. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NetworksNetwork. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NetworksNetwork. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NetworksNetwork. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NetworksNetwork. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NetworksNetwork. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NetworksNetwork. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NetworksNetwork. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NetworksNetwork. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this NetworksNetwork. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this NetworksNetwork. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this NetworksNetwork. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this NetworksNetwork. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this NetworksNetwork. # noqa: E501 + + + :return: The links of this NetworksNetwork. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this NetworksNetwork. + + + :param links: The links of this NetworksNetwork. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this NetworksNetwork. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this NetworksNetwork. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NetworksNetwork. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this NetworksNetwork. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this NetworksNetwork. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this NetworksNetwork. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this NetworksNetwork. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this NetworksNetwork. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this NetworksNetwork. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this NetworksNetwork. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this NetworksNetwork. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this NetworksNetwork. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this NetworksNetwork. # noqa: E501 + + + :return: The uri of this NetworksNetwork. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this NetworksNetwork. + + + :param uri: The uri of this NetworksNetwork. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworksNetwork): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NetworksNetwork): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/networks_network_list.py b/openapi_client_udm/models/networks_network_list.py new file mode 100644 index 0000000..ef68883 --- /dev/null +++ b/openapi_client_udm/models/networks_network_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NetworksNetworkList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'NetworksNetworkListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """NetworksNetworkList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this NetworksNetworkList. # noqa: E501 + + + :return: The embedded of this NetworksNetworkList. # noqa: E501 + :rtype: NetworksNetworkListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NetworksNetworkList. + + + :param embedded: The embedded of this NetworksNetworkList. # noqa: E501 + :type embedded: NetworksNetworkListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworksNetworkList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NetworksNetworkList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/networks_network_list_embedded.py b/openapi_client_udm/models/networks_network_list_embedded.py new file mode 100644 index 0000000..efe0e29 --- /dev/null +++ b/openapi_client_udm/models/networks_network_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NetworksNetworkListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[NetworksNetwork]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """NetworksNetworkListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this NetworksNetworkListEmbedded. # noqa: E501 + + + :return: The udmobject of this NetworksNetworkListEmbedded. # noqa: E501 + :rtype: list[NetworksNetwork] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this NetworksNetworkListEmbedded. + + + :param udmobject: The udmobject of this NetworksNetworkListEmbedded. # noqa: E501 + :type udmobject: list[NetworksNetwork] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworksNetworkListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NetworksNetworkListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/networks_network_request.py b/openapi_client_udm/models/networks_network_request.py new file mode 100644 index 0000000..7fdeb02 --- /dev/null +++ b/openapi_client_udm/models/networks_network_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NetworksNetworkRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """NetworksNetworkRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this NetworksNetworkRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NetworksNetworkRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NetworksNetworkRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NetworksNetworkRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NetworksNetworkRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NetworksNetworkRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NetworksNetworkRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NetworksNetworkRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NetworksNetworkRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NetworksNetworkRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NetworksNetworkRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NetworksNetworkRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NetworksNetworkRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NetworksNetworkRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NetworksNetworkRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NetworksNetworkRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this NetworksNetworkRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this NetworksNetworkRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this NetworksNetworkRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this NetworksNetworkRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworksNetworkRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NetworksNetworkRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/networks_network_request_patch.py b/openapi_client_udm/models/networks_network_request_patch.py new file mode 100644 index 0000000..ee081b7 --- /dev/null +++ b/openapi_client_udm/models/networks_network_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NetworksNetworkRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """NetworksNetworkRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this NetworksNetworkRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this NetworksNetworkRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this NetworksNetworkRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this NetworksNetworkRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this NetworksNetworkRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this NetworksNetworkRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this NetworksNetworkRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this NetworksNetworkRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this NetworksNetworkRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this NetworksNetworkRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this NetworksNetworkRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this NetworksNetworkRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this NetworksNetworkRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this NetworksNetworkRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this NetworksNetworkRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this NetworksNetworkRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworksNetworkRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NetworksNetworkRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/networks_network_response_mixin.py b/openapi_client_udm/models/networks_network_response_mixin.py new file mode 100644 index 0000000..23ee3f3 --- /dev/null +++ b/openapi_client_udm/models/networks_network_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class NetworksNetworkResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """NetworksNetworkResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this NetworksNetworkResponseMixin. # noqa: E501 + + + :return: The links of this NetworksNetworkResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this NetworksNetworkResponseMixin. + + + :param links: The links of this NetworksNetworkResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this NetworksNetworkResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this NetworksNetworkResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this NetworksNetworkResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this NetworksNetworkResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this NetworksNetworkResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this NetworksNetworkResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this NetworksNetworkResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this NetworksNetworkResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this NetworksNetworkResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this NetworksNetworkResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this NetworksNetworkResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this NetworksNetworkResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this NetworksNetworkResponseMixin. # noqa: E501 + + + :return: The uri of this NetworksNetworkResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this NetworksNetworkResponseMixin. + + + :param uri: The uri of this NetworksNetworkResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworksNetworkResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NetworksNetworkResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_admin_container.py b/openapi_client_udm/models/policies_admin_container.py new file mode 100644 index 0000000..13f402c --- /dev/null +++ b/openapi_client_udm/models/policies_admin_container.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesAdminContainer(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesAdminContainer - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesAdminContainer. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesAdminContainer. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesAdminContainer. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesAdminContainer. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesAdminContainer. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesAdminContainer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesAdminContainer. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesAdminContainer. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesAdminContainer. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesAdminContainer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesAdminContainer. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesAdminContainer. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesAdminContainer. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesAdminContainer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesAdminContainer. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesAdminContainer. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesAdminContainer. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesAdminContainer. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesAdminContainer. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesAdminContainer. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesAdminContainer. # noqa: E501 + + + :return: The links of this PoliciesAdminContainer. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesAdminContainer. + + + :param links: The links of this PoliciesAdminContainer. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesAdminContainer. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesAdminContainer. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesAdminContainer. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesAdminContainer. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesAdminContainer. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesAdminContainer. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesAdminContainer. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesAdminContainer. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesAdminContainer. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesAdminContainer. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesAdminContainer. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesAdminContainer. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesAdminContainer. # noqa: E501 + + + :return: The uri of this PoliciesAdminContainer. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesAdminContainer. + + + :param uri: The uri of this PoliciesAdminContainer. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesAdminContainer): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesAdminContainer): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_admin_container_list.py b/openapi_client_udm/models/policies_admin_container_list.py new file mode 100644 index 0000000..d0af497 --- /dev/null +++ b/openapi_client_udm/models/policies_admin_container_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesAdminContainerList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesAdminContainerListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesAdminContainerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesAdminContainerList. # noqa: E501 + + + :return: The embedded of this PoliciesAdminContainerList. # noqa: E501 + :rtype: PoliciesAdminContainerListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesAdminContainerList. + + + :param embedded: The embedded of this PoliciesAdminContainerList. # noqa: E501 + :type embedded: PoliciesAdminContainerListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesAdminContainerList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesAdminContainerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_admin_container_list_embedded.py b/openapi_client_udm/models/policies_admin_container_list_embedded.py new file mode 100644 index 0000000..726c4d0 --- /dev/null +++ b/openapi_client_udm/models/policies_admin_container_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesAdminContainerListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesAdminContainer]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesAdminContainerListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesAdminContainerListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesAdminContainerListEmbedded. # noqa: E501 + :rtype: list[PoliciesAdminContainer] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesAdminContainerListEmbedded. + + + :param udmobject: The udmobject of this PoliciesAdminContainerListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesAdminContainer] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesAdminContainerListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesAdminContainerListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_admin_container_request.py b/openapi_client_udm/models/policies_admin_container_request.py new file mode 100644 index 0000000..bf0e02e --- /dev/null +++ b/openapi_client_udm/models/policies_admin_container_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesAdminContainerRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesAdminContainerRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesAdminContainerRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesAdminContainerRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesAdminContainerRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesAdminContainerRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesAdminContainerRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesAdminContainerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesAdminContainerRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesAdminContainerRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesAdminContainerRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesAdminContainerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesAdminContainerRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesAdminContainerRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesAdminContainerRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesAdminContainerRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesAdminContainerRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesAdminContainerRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesAdminContainerRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesAdminContainerRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesAdminContainerRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesAdminContainerRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesAdminContainerRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesAdminContainerRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_admin_container_request_patch.py b/openapi_client_udm/models/policies_admin_container_request_patch.py new file mode 100644 index 0000000..a16a978 --- /dev/null +++ b/openapi_client_udm/models/policies_admin_container_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesAdminContainerRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesAdminContainerRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesAdminContainerRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesAdminContainerRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesAdminContainerRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesAdminContainerRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesAdminContainerRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesAdminContainerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesAdminContainerRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesAdminContainerRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesAdminContainerRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesAdminContainerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesAdminContainerRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesAdminContainerRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesAdminContainerRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesAdminContainerRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesAdminContainerRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesAdminContainerRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesAdminContainerRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesAdminContainerRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_admin_container_response_mixin.py b/openapi_client_udm/models/policies_admin_container_response_mixin.py new file mode 100644 index 0000000..63996c2 --- /dev/null +++ b/openapi_client_udm/models/policies_admin_container_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesAdminContainerResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesAdminContainerResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesAdminContainerResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesAdminContainerResponseMixin. + + + :param links: The links of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesAdminContainerResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesAdminContainerResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesAdminContainerResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesAdminContainerResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesAdminContainerResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesAdminContainerResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesAdminContainerResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesAdminContainerResponseMixin. + + + :param uri: The uri of this PoliciesAdminContainerResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesAdminContainerResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesAdminContainerResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_desktop.py b/openapi_client_udm/models/policies_desktop.py new file mode 100644 index 0000000..70fb7aa --- /dev/null +++ b/openapi_client_udm/models/policies_desktop.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDesktop(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDesktop - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDesktop. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDesktop. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDesktop. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDesktop. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDesktop. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDesktop. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDesktop. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDesktop. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDesktop. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDesktop. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDesktop. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDesktop. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDesktop. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDesktop. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDesktop. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDesktop. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDesktop. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDesktop. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDesktop. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDesktop. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDesktop. # noqa: E501 + + + :return: The links of this PoliciesDesktop. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDesktop. + + + :param links: The links of this PoliciesDesktop. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDesktop. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDesktop. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDesktop. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDesktop. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDesktop. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDesktop. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDesktop. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDesktop. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDesktop. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDesktop. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDesktop. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDesktop. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDesktop. # noqa: E501 + + + :return: The uri of this PoliciesDesktop. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDesktop. + + + :param uri: The uri of this PoliciesDesktop. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDesktop): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDesktop): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_desktop_list.py b/openapi_client_udm/models/policies_desktop_list.py new file mode 100644 index 0000000..308c072 --- /dev/null +++ b/openapi_client_udm/models/policies_desktop_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDesktopList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDesktopListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDesktopList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDesktopList. # noqa: E501 + + + :return: The embedded of this PoliciesDesktopList. # noqa: E501 + :rtype: PoliciesDesktopListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDesktopList. + + + :param embedded: The embedded of this PoliciesDesktopList. # noqa: E501 + :type embedded: PoliciesDesktopListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDesktopList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDesktopList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_desktop_list_embedded.py b/openapi_client_udm/models/policies_desktop_list_embedded.py new file mode 100644 index 0000000..2d1175d --- /dev/null +++ b/openapi_client_udm/models/policies_desktop_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDesktopListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDesktop]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDesktopListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDesktopListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDesktopListEmbedded. # noqa: E501 + :rtype: list[PoliciesDesktop] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDesktopListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDesktopListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDesktop] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDesktopListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDesktopListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_desktop_request.py b/openapi_client_udm/models/policies_desktop_request.py new file mode 100644 index 0000000..e1c1128 --- /dev/null +++ b/openapi_client_udm/models/policies_desktop_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDesktopRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDesktopRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDesktopRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDesktopRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDesktopRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDesktopRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDesktopRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDesktopRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDesktopRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDesktopRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDesktopRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDesktopRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDesktopRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDesktopRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDesktopRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDesktopRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDesktopRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDesktopRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDesktopRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDesktopRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDesktopRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDesktopRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDesktopRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDesktopRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_desktop_request_patch.py b/openapi_client_udm/models/policies_desktop_request_patch.py new file mode 100644 index 0000000..5b64ece --- /dev/null +++ b/openapi_client_udm/models/policies_desktop_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDesktopRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDesktopRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDesktopRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDesktopRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDesktopRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDesktopRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDesktopRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDesktopRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDesktopRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDesktopRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDesktopRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDesktopRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDesktopRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDesktopRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDesktopRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDesktopRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDesktopRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDesktopRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDesktopRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDesktopRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_desktop_response_mixin.py b/openapi_client_udm/models/policies_desktop_response_mixin.py new file mode 100644 index 0000000..ca885c8 --- /dev/null +++ b/openapi_client_udm/models/policies_desktop_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDesktopResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDesktopResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDesktopResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDesktopResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDesktopResponseMixin. + + + :param links: The links of this PoliciesDesktopResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDesktopResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDesktopResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDesktopResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDesktopResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDesktopResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDesktopResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDesktopResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDesktopResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDesktopResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDesktopResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDesktopResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDesktopResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDesktopResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDesktopResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDesktopResponseMixin. + + + :param uri: The uri of this PoliciesDesktopResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDesktopResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDesktopResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_boot.py b/openapi_client_udm/models/policies_dhcp_boot.py new file mode 100644 index 0000000..f0d392f --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_boot.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpBoot(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpBoot - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpBoot. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpBoot. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpBoot. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpBoot. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpBoot. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpBoot. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpBoot. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpBoot. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpBoot. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpBoot. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpBoot. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpBoot. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpBoot. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpBoot. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpBoot. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpBoot. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpBoot. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpBoot. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpBoot. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpBoot. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDhcpBoot. # noqa: E501 + + + :return: The links of this PoliciesDhcpBoot. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpBoot. + + + :param links: The links of this PoliciesDhcpBoot. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpBoot. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpBoot. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpBoot. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpBoot. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpBoot. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpBoot. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpBoot. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpBoot. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpBoot. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpBoot. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpBoot. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpBoot. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpBoot. # noqa: E501 + + + :return: The uri of this PoliciesDhcpBoot. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpBoot. + + + :param uri: The uri of this PoliciesDhcpBoot. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpBoot): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpBoot): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_boot_list.py b/openapi_client_udm/models/policies_dhcp_boot_list.py new file mode 100644 index 0000000..88be6a8 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_boot_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpBootList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDhcpBootListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpBootList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpBootList. # noqa: E501 + + + :return: The embedded of this PoliciesDhcpBootList. # noqa: E501 + :rtype: PoliciesDhcpBootListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpBootList. + + + :param embedded: The embedded of this PoliciesDhcpBootList. # noqa: E501 + :type embedded: PoliciesDhcpBootListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpBootList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpBootList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_boot_list_embedded.py b/openapi_client_udm/models/policies_dhcp_boot_list_embedded.py new file mode 100644 index 0000000..ed128dd --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_boot_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpBootListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDhcpBoot]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpBootListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDhcpBootListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDhcpBootListEmbedded. # noqa: E501 + :rtype: list[PoliciesDhcpBoot] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDhcpBootListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDhcpBootListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDhcpBoot] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpBootListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpBootListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_boot_request.py b/openapi_client_udm/models/policies_dhcp_boot_request.py new file mode 100644 index 0000000..ac10bbe --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_boot_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpBootRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpBootRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpBootRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpBootRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpBootRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpBootRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpBootRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpBootRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpBootRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpBootRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpBootRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpBootRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpBootRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpBootRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpBootRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpBootRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpBootRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpBootRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpBootRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpBootRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpBootRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpBootRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpBootRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpBootRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_boot_request_patch.py b/openapi_client_udm/models/policies_dhcp_boot_request_patch.py new file mode 100644 index 0000000..5a5415d --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_boot_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpBootRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpBootRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpBootRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpBootRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpBootRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpBootRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpBootRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpBootRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpBootRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpBootRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpBootRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpBootRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpBootRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpBootRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpBootRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpBootRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpBootRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpBootRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpBootRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpBootRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_boot_response_mixin.py b/openapi_client_udm/models/policies_dhcp_boot_response_mixin.py new file mode 100644 index 0000000..5488a58 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_boot_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpBootResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpBootResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDhcpBootResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpBootResponseMixin. + + + :param links: The links of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpBootResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpBootResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpBootResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpBootResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpBootResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpBootResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpBootResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpBootResponseMixin. + + + :param uri: The uri of this PoliciesDhcpBootResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpBootResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpBootResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dns.py b/openapi_client_udm/models/policies_dhcp_dns.py new file mode 100644 index 0000000..b586d20 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dns.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDns(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDns - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpDns. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpDns. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpDns. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpDns. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpDns. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpDns. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpDns. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpDns. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpDns. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpDns. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpDns. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpDns. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpDns. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpDns. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpDns. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpDns. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpDns. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpDns. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpDns. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpDns. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDhcpDns. # noqa: E501 + + + :return: The links of this PoliciesDhcpDns. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpDns. + + + :param links: The links of this PoliciesDhcpDns. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpDns. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpDns. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpDns. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpDns. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpDns. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpDns. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpDns. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpDns. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpDns. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpDns. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpDns. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpDns. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpDns. # noqa: E501 + + + :return: The uri of this PoliciesDhcpDns. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpDns. + + + :param uri: The uri of this PoliciesDhcpDns. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDns): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDns): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dns_list.py b/openapi_client_udm/models/policies_dhcp_dns_list.py new file mode 100644 index 0000000..38b8dc9 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dns_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDhcpDnsListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpDnsList. # noqa: E501 + + + :return: The embedded of this PoliciesDhcpDnsList. # noqa: E501 + :rtype: PoliciesDhcpDnsListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpDnsList. + + + :param embedded: The embedded of this PoliciesDhcpDnsList. # noqa: E501 + :type embedded: PoliciesDhcpDnsListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dns_list_embedded.py b/openapi_client_udm/models/policies_dhcp_dns_list_embedded.py new file mode 100644 index 0000000..10b0f8e --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dns_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDhcpDns]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDhcpDnsListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDhcpDnsListEmbedded. # noqa: E501 + :rtype: list[PoliciesDhcpDns] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDhcpDnsListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDhcpDnsListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDhcpDns] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dns_request.py b/openapi_client_udm/models/policies_dhcp_dns_request.py new file mode 100644 index 0000000..26ad460 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dns_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpDnsRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpDnsRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpDnsRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpDnsRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpDnsRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpDnsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpDnsRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpDnsRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpDnsRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpDnsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpDnsRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpDnsRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpDnsRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpDnsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpDnsRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpDnsRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpDnsRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpDnsRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpDnsRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpDnsRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dns_request_patch.py b/openapi_client_udm/models/policies_dhcp_dns_request_patch.py new file mode 100644 index 0000000..67c8faa --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dns_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpDnsRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpDnsRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpDnsRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpDnsRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpDnsRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dns_response_mixin.py b/openapi_client_udm/models/policies_dhcp_dns_response_mixin.py new file mode 100644 index 0000000..2db5174 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dns_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpDnsResponseMixin. + + + :param links: The links of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpDnsResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpDnsResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpDnsResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpDnsResponseMixin. + + + :param uri: The uri of this PoliciesDhcpDnsResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dnsupdate.py b/openapi_client_udm/models/policies_dhcp_dnsupdate.py new file mode 100644 index 0000000..d8c600d --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dnsupdate.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsupdate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsupdate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpDnsupdate. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpDnsupdate. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpDnsupdate. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpDnsupdate. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpDnsupdate. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpDnsupdate. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpDnsupdate. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpDnsupdate. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpDnsupdate. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpDnsupdate. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpDnsupdate. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpDnsupdate. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpDnsupdate. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpDnsupdate. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpDnsupdate. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDhcpDnsupdate. # noqa: E501 + + + :return: The links of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpDnsupdate. + + + :param links: The links of this PoliciesDhcpDnsupdate. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpDnsupdate. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpDnsupdate. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpDnsupdate. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpDnsupdate. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpDnsupdate. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpDnsupdate. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpDnsupdate. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpDnsupdate. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpDnsupdate. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpDnsupdate. # noqa: E501 + + + :return: The uri of this PoliciesDhcpDnsupdate. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpDnsupdate. + + + :param uri: The uri of this PoliciesDhcpDnsupdate. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsupdate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsupdate): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dnsupdate_list.py b/openapi_client_udm/models/policies_dhcp_dnsupdate_list.py new file mode 100644 index 0000000..f9bbece --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dnsupdate_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsupdateList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDhcpDnsupdateListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsupdateList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpDnsupdateList. # noqa: E501 + + + :return: The embedded of this PoliciesDhcpDnsupdateList. # noqa: E501 + :rtype: PoliciesDhcpDnsupdateListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpDnsupdateList. + + + :param embedded: The embedded of this PoliciesDhcpDnsupdateList. # noqa: E501 + :type embedded: PoliciesDhcpDnsupdateListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsupdateList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsupdateList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dnsupdate_list_embedded.py b/openapi_client_udm/models/policies_dhcp_dnsupdate_list_embedded.py new file mode 100644 index 0000000..abc0015 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dnsupdate_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsupdateListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDhcpDnsupdate]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsupdateListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDhcpDnsupdateListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDhcpDnsupdateListEmbedded. # noqa: E501 + :rtype: list[PoliciesDhcpDnsupdate] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDhcpDnsupdateListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDhcpDnsupdateListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDhcpDnsupdate] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsupdateListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsupdateListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dnsupdate_request.py b/openapi_client_udm/models/policies_dhcp_dnsupdate_request.py new file mode 100644 index 0000000..a4b20b4 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dnsupdate_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsupdateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsupdateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpDnsupdateRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpDnsupdateRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpDnsupdateRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpDnsupdateRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpDnsupdateRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpDnsupdateRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsupdateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsupdateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dnsupdate_request_patch.py b/openapi_client_udm/models/policies_dhcp_dnsupdate_request_patch.py new file mode 100644 index 0000000..867e316 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dnsupdate_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsupdateRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsupdateRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpDnsupdateRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpDnsupdateRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpDnsupdateRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpDnsupdateRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpDnsupdateRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsupdateRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsupdateRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_dnsupdate_response_mixin.py b/openapi_client_udm/models/policies_dhcp_dnsupdate_response_mixin.py new file mode 100644 index 0000000..eec4270 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_dnsupdate_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpDnsupdateResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpDnsupdateResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpDnsupdateResponseMixin. + + + :param links: The links of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpDnsupdateResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpDnsupdateResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpDnsupdateResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpDnsupdateResponseMixin. + + + :param uri: The uri of this PoliciesDhcpDnsupdateResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpDnsupdateResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpDnsupdateResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_leasetime.py b/openapi_client_udm/models/policies_dhcp_leasetime.py new file mode 100644 index 0000000..0c8ca84 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_leasetime.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpLeasetime(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpLeasetime - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpLeasetime. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpLeasetime. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpLeasetime. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpLeasetime. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpLeasetime. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpLeasetime. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpLeasetime. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpLeasetime. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpLeasetime. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpLeasetime. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpLeasetime. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpLeasetime. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpLeasetime. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpLeasetime. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpLeasetime. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDhcpLeasetime. # noqa: E501 + + + :return: The links of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpLeasetime. + + + :param links: The links of this PoliciesDhcpLeasetime. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpLeasetime. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpLeasetime. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpLeasetime. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpLeasetime. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpLeasetime. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpLeasetime. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpLeasetime. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpLeasetime. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpLeasetime. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpLeasetime. # noqa: E501 + + + :return: The uri of this PoliciesDhcpLeasetime. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpLeasetime. + + + :param uri: The uri of this PoliciesDhcpLeasetime. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpLeasetime): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpLeasetime): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_leasetime_list.py b/openapi_client_udm/models/policies_dhcp_leasetime_list.py new file mode 100644 index 0000000..0cb71db --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_leasetime_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpLeasetimeList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDhcpLeasetimeListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpLeasetimeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpLeasetimeList. # noqa: E501 + + + :return: The embedded of this PoliciesDhcpLeasetimeList. # noqa: E501 + :rtype: PoliciesDhcpLeasetimeListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpLeasetimeList. + + + :param embedded: The embedded of this PoliciesDhcpLeasetimeList. # noqa: E501 + :type embedded: PoliciesDhcpLeasetimeListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpLeasetimeList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpLeasetimeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_leasetime_list_embedded.py b/openapi_client_udm/models/policies_dhcp_leasetime_list_embedded.py new file mode 100644 index 0000000..1426c71 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_leasetime_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpLeasetimeListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDhcpLeasetime]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpLeasetimeListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDhcpLeasetimeListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDhcpLeasetimeListEmbedded. # noqa: E501 + :rtype: list[PoliciesDhcpLeasetime] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDhcpLeasetimeListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDhcpLeasetimeListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDhcpLeasetime] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpLeasetimeListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpLeasetimeListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_leasetime_request.py b/openapi_client_udm/models/policies_dhcp_leasetime_request.py new file mode 100644 index 0000000..44d244a --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_leasetime_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpLeasetimeRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpLeasetimeRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpLeasetimeRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpLeasetimeRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpLeasetimeRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpLeasetimeRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpLeasetimeRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpLeasetimeRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpLeasetimeRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpLeasetimeRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_leasetime_request_patch.py b/openapi_client_udm/models/policies_dhcp_leasetime_request_patch.py new file mode 100644 index 0000000..2e9a65a --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_leasetime_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpLeasetimeRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpLeasetimeRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpLeasetimeRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpLeasetimeRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpLeasetimeRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpLeasetimeRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpLeasetimeRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpLeasetimeRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpLeasetimeRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_leasetime_response_mixin.py b/openapi_client_udm/models/policies_dhcp_leasetime_response_mixin.py new file mode 100644 index 0000000..ec46f0f --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_leasetime_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpLeasetimeResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpLeasetimeResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpLeasetimeResponseMixin. + + + :param links: The links of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpLeasetimeResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpLeasetimeResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpLeasetimeResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpLeasetimeResponseMixin. + + + :param uri: The uri of this PoliciesDhcpLeasetimeResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpLeasetimeResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpLeasetimeResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_netbios.py b/openapi_client_udm/models/policies_dhcp_netbios.py new file mode 100644 index 0000000..62de247 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_netbios.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpNetbios(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpNetbios - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpNetbios. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpNetbios. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpNetbios. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpNetbios. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpNetbios. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpNetbios. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpNetbios. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpNetbios. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpNetbios. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpNetbios. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpNetbios. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpNetbios. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpNetbios. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpNetbios. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpNetbios. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDhcpNetbios. # noqa: E501 + + + :return: The links of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpNetbios. + + + :param links: The links of this PoliciesDhcpNetbios. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpNetbios. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpNetbios. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpNetbios. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpNetbios. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpNetbios. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpNetbios. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpNetbios. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpNetbios. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpNetbios. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpNetbios. # noqa: E501 + + + :return: The uri of this PoliciesDhcpNetbios. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpNetbios. + + + :param uri: The uri of this PoliciesDhcpNetbios. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpNetbios): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpNetbios): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_netbios_list.py b/openapi_client_udm/models/policies_dhcp_netbios_list.py new file mode 100644 index 0000000..38d5b2b --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_netbios_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpNetbiosList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDhcpNetbiosListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpNetbiosList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpNetbiosList. # noqa: E501 + + + :return: The embedded of this PoliciesDhcpNetbiosList. # noqa: E501 + :rtype: PoliciesDhcpNetbiosListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpNetbiosList. + + + :param embedded: The embedded of this PoliciesDhcpNetbiosList. # noqa: E501 + :type embedded: PoliciesDhcpNetbiosListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpNetbiosList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpNetbiosList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_netbios_list_embedded.py b/openapi_client_udm/models/policies_dhcp_netbios_list_embedded.py new file mode 100644 index 0000000..75c8514 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_netbios_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpNetbiosListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDhcpNetbios]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpNetbiosListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDhcpNetbiosListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDhcpNetbiosListEmbedded. # noqa: E501 + :rtype: list[PoliciesDhcpNetbios] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDhcpNetbiosListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDhcpNetbiosListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDhcpNetbios] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpNetbiosListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpNetbiosListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_netbios_request.py b/openapi_client_udm/models/policies_dhcp_netbios_request.py new file mode 100644 index 0000000..e508ecd --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_netbios_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpNetbiosRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpNetbiosRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpNetbiosRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpNetbiosRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpNetbiosRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpNetbiosRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpNetbiosRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpNetbiosRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpNetbiosRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpNetbiosRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpNetbiosRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpNetbiosRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpNetbiosRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpNetbiosRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpNetbiosRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_netbios_request_patch.py b/openapi_client_udm/models/policies_dhcp_netbios_request_patch.py new file mode 100644 index 0000000..431b582 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_netbios_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpNetbiosRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpNetbiosRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpNetbiosRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpNetbiosRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpNetbiosRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpNetbiosRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpNetbiosRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpNetbiosRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpNetbiosRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_netbios_response_mixin.py b/openapi_client_udm/models/policies_dhcp_netbios_response_mixin.py new file mode 100644 index 0000000..e388516 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_netbios_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpNetbiosResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpNetbiosResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpNetbiosResponseMixin. + + + :param links: The links of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpNetbiosResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpNetbiosResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpNetbiosResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpNetbiosResponseMixin. + + + :param uri: The uri of this PoliciesDhcpNetbiosResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpNetbiosResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpNetbiosResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_routing.py b/openapi_client_udm/models/policies_dhcp_routing.py new file mode 100644 index 0000000..3378bf4 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_routing.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpRouting(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpRouting - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpRouting. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpRouting. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpRouting. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpRouting. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpRouting. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpRouting. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpRouting. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpRouting. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpRouting. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpRouting. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpRouting. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpRouting. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpRouting. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpRouting. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpRouting. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpRouting. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpRouting. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpRouting. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpRouting. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpRouting. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDhcpRouting. # noqa: E501 + + + :return: The links of this PoliciesDhcpRouting. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpRouting. + + + :param links: The links of this PoliciesDhcpRouting. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpRouting. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpRouting. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpRouting. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpRouting. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpRouting. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpRouting. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpRouting. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpRouting. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpRouting. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpRouting. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpRouting. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpRouting. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpRouting. # noqa: E501 + + + :return: The uri of this PoliciesDhcpRouting. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpRouting. + + + :param uri: The uri of this PoliciesDhcpRouting. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpRouting): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpRouting): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_routing_list.py b/openapi_client_udm/models/policies_dhcp_routing_list.py new file mode 100644 index 0000000..05e4871 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_routing_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpRoutingList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDhcpRoutingListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpRoutingList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpRoutingList. # noqa: E501 + + + :return: The embedded of this PoliciesDhcpRoutingList. # noqa: E501 + :rtype: PoliciesDhcpRoutingListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpRoutingList. + + + :param embedded: The embedded of this PoliciesDhcpRoutingList. # noqa: E501 + :type embedded: PoliciesDhcpRoutingListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpRoutingList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpRoutingList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_routing_list_embedded.py b/openapi_client_udm/models/policies_dhcp_routing_list_embedded.py new file mode 100644 index 0000000..c075d1e --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_routing_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpRoutingListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDhcpRouting]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpRoutingListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDhcpRoutingListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDhcpRoutingListEmbedded. # noqa: E501 + :rtype: list[PoliciesDhcpRouting] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDhcpRoutingListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDhcpRoutingListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDhcpRouting] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpRoutingListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpRoutingListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_routing_request.py b/openapi_client_udm/models/policies_dhcp_routing_request.py new file mode 100644 index 0000000..4705680 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_routing_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpRoutingRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpRoutingRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpRoutingRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpRoutingRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpRoutingRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpRoutingRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpRoutingRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpRoutingRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpRoutingRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpRoutingRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpRoutingRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpRoutingRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpRoutingRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpRoutingRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpRoutingRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpRoutingRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpRoutingRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpRoutingRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpRoutingRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpRoutingRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpRoutingRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpRoutingRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpRoutingRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpRoutingRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_routing_request_patch.py b/openapi_client_udm/models/policies_dhcp_routing_request_patch.py new file mode 100644 index 0000000..c7cbd8a --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_routing_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpRoutingRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpRoutingRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpRoutingRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpRoutingRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpRoutingRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpRoutingRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpRoutingRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpRoutingRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpRoutingRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_routing_response_mixin.py b/openapi_client_udm/models/policies_dhcp_routing_response_mixin.py new file mode 100644 index 0000000..bdc7ff6 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_routing_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpRoutingResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpRoutingResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpRoutingResponseMixin. + + + :param links: The links of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpRoutingResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpRoutingResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpRoutingResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpRoutingResponseMixin. + + + :param uri: The uri of this PoliciesDhcpRoutingResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpRoutingResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpRoutingResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_scope.py b/openapi_client_udm/models/policies_dhcp_scope.py new file mode 100644 index 0000000..74af378 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_scope.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpScope(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpScope - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpScope. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpScope. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpScope. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpScope. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpScope. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpScope. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpScope. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpScope. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpScope. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpScope. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpScope. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpScope. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpScope. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpScope. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpScope. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpScope. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpScope. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpScope. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpScope. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpScope. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDhcpScope. # noqa: E501 + + + :return: The links of this PoliciesDhcpScope. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpScope. + + + :param links: The links of this PoliciesDhcpScope. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpScope. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpScope. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpScope. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpScope. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpScope. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpScope. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpScope. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpScope. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpScope. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpScope. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpScope. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpScope. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpScope. # noqa: E501 + + + :return: The uri of this PoliciesDhcpScope. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpScope. + + + :param uri: The uri of this PoliciesDhcpScope. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpScope): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpScope): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_scope_list.py b/openapi_client_udm/models/policies_dhcp_scope_list.py new file mode 100644 index 0000000..ed2ef7d --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_scope_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpScopeList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDhcpScopeListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpScopeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpScopeList. # noqa: E501 + + + :return: The embedded of this PoliciesDhcpScopeList. # noqa: E501 + :rtype: PoliciesDhcpScopeListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpScopeList. + + + :param embedded: The embedded of this PoliciesDhcpScopeList. # noqa: E501 + :type embedded: PoliciesDhcpScopeListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpScopeList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpScopeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_scope_list_embedded.py b/openapi_client_udm/models/policies_dhcp_scope_list_embedded.py new file mode 100644 index 0000000..15c351c --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_scope_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpScopeListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDhcpScope]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpScopeListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDhcpScopeListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDhcpScopeListEmbedded. # noqa: E501 + :rtype: list[PoliciesDhcpScope] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDhcpScopeListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDhcpScopeListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDhcpScope] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpScopeListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpScopeListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_scope_request.py b/openapi_client_udm/models/policies_dhcp_scope_request.py new file mode 100644 index 0000000..b8c01e4 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_scope_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpScopeRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpScopeRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpScopeRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpScopeRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpScopeRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpScopeRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpScopeRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpScopeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpScopeRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpScopeRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpScopeRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpScopeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpScopeRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpScopeRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpScopeRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpScopeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpScopeRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpScopeRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpScopeRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpScopeRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpScopeRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpScopeRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpScopeRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpScopeRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_scope_request_patch.py b/openapi_client_udm/models/policies_dhcp_scope_request_patch.py new file mode 100644 index 0000000..2316dbd --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_scope_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpScopeRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpScopeRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpScopeRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpScopeRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpScopeRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpScopeRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpScopeRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpScopeRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpScopeRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_scope_response_mixin.py b/openapi_client_udm/models/policies_dhcp_scope_response_mixin.py new file mode 100644 index 0000000..ad743f7 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_scope_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpScopeResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpScopeResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpScopeResponseMixin. + + + :param links: The links of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpScopeResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpScopeResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpScopeResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpScopeResponseMixin. + + + :param uri: The uri of this PoliciesDhcpScopeResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpScopeResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpScopeResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_statements.py b/openapi_client_udm/models/policies_dhcp_statements.py new file mode 100644 index 0000000..9091748 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_statements.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpStatements(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpStatements - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpStatements. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpStatements. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpStatements. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpStatements. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpStatements. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpStatements. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpStatements. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpStatements. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpStatements. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpStatements. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpStatements. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpStatements. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpStatements. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpStatements. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpStatements. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpStatements. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpStatements. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpStatements. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpStatements. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpStatements. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesDhcpStatements. # noqa: E501 + + + :return: The links of this PoliciesDhcpStatements. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpStatements. + + + :param links: The links of this PoliciesDhcpStatements. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpStatements. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpStatements. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpStatements. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpStatements. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpStatements. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpStatements. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpStatements. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpStatements. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpStatements. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpStatements. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpStatements. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpStatements. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpStatements. # noqa: E501 + + + :return: The uri of this PoliciesDhcpStatements. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpStatements. + + + :param uri: The uri of this PoliciesDhcpStatements. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpStatements): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpStatements): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_statements_list.py b/openapi_client_udm/models/policies_dhcp_statements_list.py new file mode 100644 index 0000000..a7928d1 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_statements_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpStatementsList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesDhcpStatementsListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpStatementsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpStatementsList. # noqa: E501 + + + :return: The embedded of this PoliciesDhcpStatementsList. # noqa: E501 + :rtype: PoliciesDhcpStatementsListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpStatementsList. + + + :param embedded: The embedded of this PoliciesDhcpStatementsList. # noqa: E501 + :type embedded: PoliciesDhcpStatementsListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpStatementsList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpStatementsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_statements_list_embedded.py b/openapi_client_udm/models/policies_dhcp_statements_list_embedded.py new file mode 100644 index 0000000..7d0a4c2 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_statements_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpStatementsListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesDhcpStatements]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpStatementsListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesDhcpStatementsListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesDhcpStatementsListEmbedded. # noqa: E501 + :rtype: list[PoliciesDhcpStatements] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesDhcpStatementsListEmbedded. + + + :param udmobject: The udmobject of this PoliciesDhcpStatementsListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesDhcpStatements] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpStatementsListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpStatementsListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_statements_request.py b/openapi_client_udm/models/policies_dhcp_statements_request.py new file mode 100644 index 0000000..5127722 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_statements_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpStatementsRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpStatementsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpStatementsRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpStatementsRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpStatementsRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpStatementsRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpStatementsRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpStatementsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpStatementsRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpStatementsRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpStatementsRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpStatementsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpStatementsRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpStatementsRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpStatementsRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpStatementsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpStatementsRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpStatementsRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesDhcpStatementsRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesDhcpStatementsRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesDhcpStatementsRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesDhcpStatementsRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpStatementsRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpStatementsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_statements_request_patch.py b/openapi_client_udm/models/policies_dhcp_statements_request_patch.py new file mode 100644 index 0000000..2798620 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_statements_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpStatementsRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpStatementsRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesDhcpStatementsRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesDhcpStatementsRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesDhcpStatementsRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesDhcpStatementsRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesDhcpStatementsRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpStatementsRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpStatementsRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_dhcp_statements_response_mixin.py b/openapi_client_udm/models/policies_dhcp_statements_response_mixin.py new file mode 100644 index 0000000..ea3e442 --- /dev/null +++ b/openapi_client_udm/models/policies_dhcp_statements_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesDhcpStatementsResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesDhcpStatementsResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesDhcpStatementsResponseMixin. + + + :param links: The links of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesDhcpStatementsResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesDhcpStatementsResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesDhcpStatementsResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesDhcpStatementsResponseMixin. + + + :param uri: The uri of this PoliciesDhcpStatementsResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesDhcpStatementsResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesDhcpStatementsResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_ldapserver.py b/openapi_client_udm/models/policies_ldapserver.py new file mode 100644 index 0000000..ab8384c --- /dev/null +++ b/openapi_client_udm/models/policies_ldapserver.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesLdapserver(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesLdapserver - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesLdapserver. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesLdapserver. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesLdapserver. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesLdapserver. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesLdapserver. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesLdapserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesLdapserver. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesLdapserver. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesLdapserver. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesLdapserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesLdapserver. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesLdapserver. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesLdapserver. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesLdapserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesLdapserver. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesLdapserver. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesLdapserver. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesLdapserver. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesLdapserver. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesLdapserver. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesLdapserver. # noqa: E501 + + + :return: The links of this PoliciesLdapserver. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesLdapserver. + + + :param links: The links of this PoliciesLdapserver. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesLdapserver. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesLdapserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesLdapserver. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesLdapserver. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesLdapserver. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesLdapserver. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesLdapserver. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesLdapserver. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesLdapserver. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesLdapserver. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesLdapserver. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesLdapserver. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesLdapserver. # noqa: E501 + + + :return: The uri of this PoliciesLdapserver. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesLdapserver. + + + :param uri: The uri of this PoliciesLdapserver. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesLdapserver): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesLdapserver): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_ldapserver_list.py b/openapi_client_udm/models/policies_ldapserver_list.py new file mode 100644 index 0000000..5465025 --- /dev/null +++ b/openapi_client_udm/models/policies_ldapserver_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesLdapserverList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesLdapserverListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesLdapserverList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesLdapserverList. # noqa: E501 + + + :return: The embedded of this PoliciesLdapserverList. # noqa: E501 + :rtype: PoliciesLdapserverListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesLdapserverList. + + + :param embedded: The embedded of this PoliciesLdapserverList. # noqa: E501 + :type embedded: PoliciesLdapserverListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesLdapserverList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesLdapserverList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_ldapserver_list_embedded.py b/openapi_client_udm/models/policies_ldapserver_list_embedded.py new file mode 100644 index 0000000..a5fd95b --- /dev/null +++ b/openapi_client_udm/models/policies_ldapserver_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesLdapserverListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesLdapserver]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesLdapserverListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesLdapserverListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesLdapserverListEmbedded. # noqa: E501 + :rtype: list[PoliciesLdapserver] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesLdapserverListEmbedded. + + + :param udmobject: The udmobject of this PoliciesLdapserverListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesLdapserver] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesLdapserverListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesLdapserverListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_ldapserver_request.py b/openapi_client_udm/models/policies_ldapserver_request.py new file mode 100644 index 0000000..28ada7e --- /dev/null +++ b/openapi_client_udm/models/policies_ldapserver_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesLdapserverRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesLdapserverRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesLdapserverRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesLdapserverRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesLdapserverRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesLdapserverRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesLdapserverRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesLdapserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesLdapserverRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesLdapserverRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesLdapserverRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesLdapserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesLdapserverRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesLdapserverRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesLdapserverRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesLdapserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesLdapserverRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesLdapserverRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesLdapserverRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesLdapserverRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesLdapserverRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesLdapserverRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesLdapserverRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesLdapserverRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_ldapserver_request_patch.py b/openapi_client_udm/models/policies_ldapserver_request_patch.py new file mode 100644 index 0000000..1c0eafb --- /dev/null +++ b/openapi_client_udm/models/policies_ldapserver_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesLdapserverRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesLdapserverRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesLdapserverRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesLdapserverRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesLdapserverRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesLdapserverRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesLdapserverRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesLdapserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesLdapserverRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesLdapserverRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesLdapserverRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesLdapserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesLdapserverRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesLdapserverRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesLdapserverRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesLdapserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesLdapserverRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesLdapserverRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesLdapserverRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesLdapserverRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_ldapserver_response_mixin.py b/openapi_client_udm/models/policies_ldapserver_response_mixin.py new file mode 100644 index 0000000..509895b --- /dev/null +++ b/openapi_client_udm/models/policies_ldapserver_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesLdapserverResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesLdapserverResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesLdapserverResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesLdapserverResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesLdapserverResponseMixin. + + + :param links: The links of this PoliciesLdapserverResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesLdapserverResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesLdapserverResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesLdapserverResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesLdapserverResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesLdapserverResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesLdapserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesLdapserverResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesLdapserverResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesLdapserverResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesLdapserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesLdapserverResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesLdapserverResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesLdapserverResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesLdapserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesLdapserverResponseMixin. + + + :param uri: The uri of this PoliciesLdapserverResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesLdapserverResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesLdapserverResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_maintenance.py b/openapi_client_udm/models/policies_maintenance.py new file mode 100644 index 0000000..4f27113 --- /dev/null +++ b/openapi_client_udm/models/policies_maintenance.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMaintenance(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMaintenance - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesMaintenance. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMaintenance. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMaintenance. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMaintenance. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMaintenance. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMaintenance. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMaintenance. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMaintenance. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMaintenance. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMaintenance. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMaintenance. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMaintenance. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMaintenance. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMaintenance. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMaintenance. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMaintenance. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesMaintenance. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesMaintenance. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesMaintenance. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesMaintenance. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesMaintenance. # noqa: E501 + + + :return: The links of this PoliciesMaintenance. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesMaintenance. + + + :param links: The links of this PoliciesMaintenance. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesMaintenance. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesMaintenance. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMaintenance. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesMaintenance. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesMaintenance. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesMaintenance. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesMaintenance. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesMaintenance. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesMaintenance. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesMaintenance. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesMaintenance. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesMaintenance. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesMaintenance. # noqa: E501 + + + :return: The uri of this PoliciesMaintenance. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesMaintenance. + + + :param uri: The uri of this PoliciesMaintenance. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMaintenance): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMaintenance): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_maintenance_list.py b/openapi_client_udm/models/policies_maintenance_list.py new file mode 100644 index 0000000..e5ee2ca --- /dev/null +++ b/openapi_client_udm/models/policies_maintenance_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMaintenanceList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesMaintenanceListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMaintenanceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesMaintenanceList. # noqa: E501 + + + :return: The embedded of this PoliciesMaintenanceList. # noqa: E501 + :rtype: PoliciesMaintenanceListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMaintenanceList. + + + :param embedded: The embedded of this PoliciesMaintenanceList. # noqa: E501 + :type embedded: PoliciesMaintenanceListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMaintenanceList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMaintenanceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_maintenance_list_embedded.py b/openapi_client_udm/models/policies_maintenance_list_embedded.py new file mode 100644 index 0000000..438d77e --- /dev/null +++ b/openapi_client_udm/models/policies_maintenance_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMaintenanceListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesMaintenance]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMaintenanceListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesMaintenanceListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesMaintenanceListEmbedded. # noqa: E501 + :rtype: list[PoliciesMaintenance] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesMaintenanceListEmbedded. + + + :param udmobject: The udmobject of this PoliciesMaintenanceListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesMaintenance] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMaintenanceListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMaintenanceListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_maintenance_request.py b/openapi_client_udm/models/policies_maintenance_request.py new file mode 100644 index 0000000..8fe279a --- /dev/null +++ b/openapi_client_udm/models/policies_maintenance_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMaintenanceRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMaintenanceRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesMaintenanceRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMaintenanceRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMaintenanceRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMaintenanceRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMaintenanceRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMaintenanceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMaintenanceRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMaintenanceRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMaintenanceRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMaintenanceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMaintenanceRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMaintenanceRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMaintenanceRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMaintenanceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMaintenanceRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMaintenanceRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesMaintenanceRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesMaintenanceRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesMaintenanceRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesMaintenanceRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMaintenanceRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMaintenanceRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_maintenance_request_patch.py b/openapi_client_udm/models/policies_maintenance_request_patch.py new file mode 100644 index 0000000..1f580c9 --- /dev/null +++ b/openapi_client_udm/models/policies_maintenance_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMaintenanceRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMaintenanceRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesMaintenanceRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMaintenanceRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMaintenanceRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMaintenanceRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMaintenanceRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMaintenanceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMaintenanceRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMaintenanceRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMaintenanceRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMaintenanceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMaintenanceRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMaintenanceRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMaintenanceRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMaintenanceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMaintenanceRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMaintenanceRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMaintenanceRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMaintenanceRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_maintenance_response_mixin.py b/openapi_client_udm/models/policies_maintenance_response_mixin.py new file mode 100644 index 0000000..ec3da46 --- /dev/null +++ b/openapi_client_udm/models/policies_maintenance_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMaintenanceResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMaintenanceResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesMaintenanceResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesMaintenanceResponseMixin. + + + :param links: The links of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesMaintenanceResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMaintenanceResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesMaintenanceResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesMaintenanceResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesMaintenanceResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesMaintenanceResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesMaintenanceResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesMaintenanceResponseMixin. + + + :param uri: The uri of this PoliciesMaintenanceResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMaintenanceResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMaintenanceResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_masterpackages.py b/openapi_client_udm/models/policies_masterpackages.py new file mode 100644 index 0000000..3477460 --- /dev/null +++ b/openapi_client_udm/models/policies_masterpackages.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMasterpackages(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMasterpackages - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesMasterpackages. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMasterpackages. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMasterpackages. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMasterpackages. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMasterpackages. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMasterpackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMasterpackages. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMasterpackages. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMasterpackages. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMasterpackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMasterpackages. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMasterpackages. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMasterpackages. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMasterpackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMasterpackages. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMasterpackages. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesMasterpackages. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesMasterpackages. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesMasterpackages. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesMasterpackages. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesMasterpackages. # noqa: E501 + + + :return: The links of this PoliciesMasterpackages. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesMasterpackages. + + + :param links: The links of this PoliciesMasterpackages. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesMasterpackages. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesMasterpackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMasterpackages. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesMasterpackages. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesMasterpackages. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesMasterpackages. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesMasterpackages. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesMasterpackages. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesMasterpackages. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesMasterpackages. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesMasterpackages. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesMasterpackages. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesMasterpackages. # noqa: E501 + + + :return: The uri of this PoliciesMasterpackages. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesMasterpackages. + + + :param uri: The uri of this PoliciesMasterpackages. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMasterpackages): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMasterpackages): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_masterpackages_list.py b/openapi_client_udm/models/policies_masterpackages_list.py new file mode 100644 index 0000000..f54cadc --- /dev/null +++ b/openapi_client_udm/models/policies_masterpackages_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMasterpackagesList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesMasterpackagesListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMasterpackagesList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesMasterpackagesList. # noqa: E501 + + + :return: The embedded of this PoliciesMasterpackagesList. # noqa: E501 + :rtype: PoliciesMasterpackagesListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMasterpackagesList. + + + :param embedded: The embedded of this PoliciesMasterpackagesList. # noqa: E501 + :type embedded: PoliciesMasterpackagesListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMasterpackagesList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMasterpackagesList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_masterpackages_list_embedded.py b/openapi_client_udm/models/policies_masterpackages_list_embedded.py new file mode 100644 index 0000000..a5d844d --- /dev/null +++ b/openapi_client_udm/models/policies_masterpackages_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMasterpackagesListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesMasterpackages]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMasterpackagesListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesMasterpackagesListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesMasterpackagesListEmbedded. # noqa: E501 + :rtype: list[PoliciesMasterpackages] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesMasterpackagesListEmbedded. + + + :param udmobject: The udmobject of this PoliciesMasterpackagesListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesMasterpackages] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMasterpackagesListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMasterpackagesListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_masterpackages_request.py b/openapi_client_udm/models/policies_masterpackages_request.py new file mode 100644 index 0000000..0de47ba --- /dev/null +++ b/openapi_client_udm/models/policies_masterpackages_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMasterpackagesRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMasterpackagesRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesMasterpackagesRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMasterpackagesRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMasterpackagesRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMasterpackagesRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMasterpackagesRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMasterpackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMasterpackagesRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMasterpackagesRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMasterpackagesRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMasterpackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMasterpackagesRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMasterpackagesRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMasterpackagesRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMasterpackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMasterpackagesRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMasterpackagesRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesMasterpackagesRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesMasterpackagesRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesMasterpackagesRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesMasterpackagesRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMasterpackagesRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMasterpackagesRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_masterpackages_request_patch.py b/openapi_client_udm/models/policies_masterpackages_request_patch.py new file mode 100644 index 0000000..bcffb12 --- /dev/null +++ b/openapi_client_udm/models/policies_masterpackages_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMasterpackagesRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMasterpackagesRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMasterpackagesRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMasterpackagesRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMasterpackagesRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMasterpackagesRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMasterpackagesRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMasterpackagesRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMasterpackagesRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_masterpackages_response_mixin.py b/openapi_client_udm/models/policies_masterpackages_response_mixin.py new file mode 100644 index 0000000..530b865 --- /dev/null +++ b/openapi_client_udm/models/policies_masterpackages_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMasterpackagesResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMasterpackagesResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesMasterpackagesResponseMixin. + + + :param links: The links of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMasterpackagesResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesMasterpackagesResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesMasterpackagesResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesMasterpackagesResponseMixin. + + + :param uri: The uri of this PoliciesMasterpackagesResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMasterpackagesResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMasterpackagesResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_memberpackages.py b/openapi_client_udm/models/policies_memberpackages.py new file mode 100644 index 0000000..62137d5 --- /dev/null +++ b/openapi_client_udm/models/policies_memberpackages.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMemberpackages(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMemberpackages - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesMemberpackages. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMemberpackages. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMemberpackages. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMemberpackages. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMemberpackages. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMemberpackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMemberpackages. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMemberpackages. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMemberpackages. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMemberpackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMemberpackages. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMemberpackages. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMemberpackages. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMemberpackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMemberpackages. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMemberpackages. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesMemberpackages. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesMemberpackages. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesMemberpackages. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesMemberpackages. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesMemberpackages. # noqa: E501 + + + :return: The links of this PoliciesMemberpackages. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesMemberpackages. + + + :param links: The links of this PoliciesMemberpackages. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesMemberpackages. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesMemberpackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMemberpackages. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesMemberpackages. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesMemberpackages. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesMemberpackages. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesMemberpackages. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesMemberpackages. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesMemberpackages. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesMemberpackages. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesMemberpackages. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesMemberpackages. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesMemberpackages. # noqa: E501 + + + :return: The uri of this PoliciesMemberpackages. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesMemberpackages. + + + :param uri: The uri of this PoliciesMemberpackages. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMemberpackages): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMemberpackages): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_memberpackages_list.py b/openapi_client_udm/models/policies_memberpackages_list.py new file mode 100644 index 0000000..5cd508e --- /dev/null +++ b/openapi_client_udm/models/policies_memberpackages_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMemberpackagesList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesMemberpackagesListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMemberpackagesList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesMemberpackagesList. # noqa: E501 + + + :return: The embedded of this PoliciesMemberpackagesList. # noqa: E501 + :rtype: PoliciesMemberpackagesListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMemberpackagesList. + + + :param embedded: The embedded of this PoliciesMemberpackagesList. # noqa: E501 + :type embedded: PoliciesMemberpackagesListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMemberpackagesList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMemberpackagesList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_memberpackages_list_embedded.py b/openapi_client_udm/models/policies_memberpackages_list_embedded.py new file mode 100644 index 0000000..6676a23 --- /dev/null +++ b/openapi_client_udm/models/policies_memberpackages_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMemberpackagesListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesMemberpackages]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMemberpackagesListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesMemberpackagesListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesMemberpackagesListEmbedded. # noqa: E501 + :rtype: list[PoliciesMemberpackages] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesMemberpackagesListEmbedded. + + + :param udmobject: The udmobject of this PoliciesMemberpackagesListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesMemberpackages] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMemberpackagesListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMemberpackagesListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_memberpackages_request.py b/openapi_client_udm/models/policies_memberpackages_request.py new file mode 100644 index 0000000..39251cb --- /dev/null +++ b/openapi_client_udm/models/policies_memberpackages_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMemberpackagesRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMemberpackagesRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesMemberpackagesRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMemberpackagesRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMemberpackagesRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMemberpackagesRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMemberpackagesRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMemberpackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMemberpackagesRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMemberpackagesRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMemberpackagesRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMemberpackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMemberpackagesRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMemberpackagesRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMemberpackagesRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMemberpackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMemberpackagesRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMemberpackagesRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesMemberpackagesRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesMemberpackagesRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesMemberpackagesRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesMemberpackagesRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMemberpackagesRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMemberpackagesRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_memberpackages_request_patch.py b/openapi_client_udm/models/policies_memberpackages_request_patch.py new file mode 100644 index 0000000..371dd2d --- /dev/null +++ b/openapi_client_udm/models/policies_memberpackages_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMemberpackagesRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMemberpackagesRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesMemberpackagesRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesMemberpackagesRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesMemberpackagesRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesMemberpackagesRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesMemberpackagesRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMemberpackagesRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMemberpackagesRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_memberpackages_response_mixin.py b/openapi_client_udm/models/policies_memberpackages_response_mixin.py new file mode 100644 index 0000000..00709d4 --- /dev/null +++ b/openapi_client_udm/models/policies_memberpackages_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesMemberpackagesResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesMemberpackagesResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesMemberpackagesResponseMixin. + + + :param links: The links of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesMemberpackagesResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesMemberpackagesResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesMemberpackagesResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesMemberpackagesResponseMixin. + + + :param uri: The uri of this PoliciesMemberpackagesResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesMemberpackagesResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesMemberpackagesResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_nfsmounts.py b/openapi_client_udm/models/policies_nfsmounts.py new file mode 100644 index 0000000..9bb2036 --- /dev/null +++ b/openapi_client_udm/models/policies_nfsmounts.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesNfsmounts(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesNfsmounts - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesNfsmounts. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesNfsmounts. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesNfsmounts. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesNfsmounts. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesNfsmounts. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesNfsmounts. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesNfsmounts. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesNfsmounts. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesNfsmounts. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesNfsmounts. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesNfsmounts. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesNfsmounts. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesNfsmounts. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesNfsmounts. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesNfsmounts. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesNfsmounts. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesNfsmounts. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesNfsmounts. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesNfsmounts. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesNfsmounts. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesNfsmounts. # noqa: E501 + + + :return: The links of this PoliciesNfsmounts. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesNfsmounts. + + + :param links: The links of this PoliciesNfsmounts. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesNfsmounts. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesNfsmounts. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesNfsmounts. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesNfsmounts. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesNfsmounts. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesNfsmounts. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesNfsmounts. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesNfsmounts. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesNfsmounts. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesNfsmounts. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesNfsmounts. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesNfsmounts. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesNfsmounts. # noqa: E501 + + + :return: The uri of this PoliciesNfsmounts. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesNfsmounts. + + + :param uri: The uri of this PoliciesNfsmounts. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesNfsmounts): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesNfsmounts): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_nfsmounts_list.py b/openapi_client_udm/models/policies_nfsmounts_list.py new file mode 100644 index 0000000..cc13744 --- /dev/null +++ b/openapi_client_udm/models/policies_nfsmounts_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesNfsmountsList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesNfsmountsListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesNfsmountsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesNfsmountsList. # noqa: E501 + + + :return: The embedded of this PoliciesNfsmountsList. # noqa: E501 + :rtype: PoliciesNfsmountsListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesNfsmountsList. + + + :param embedded: The embedded of this PoliciesNfsmountsList. # noqa: E501 + :type embedded: PoliciesNfsmountsListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesNfsmountsList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesNfsmountsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_nfsmounts_list_embedded.py b/openapi_client_udm/models/policies_nfsmounts_list_embedded.py new file mode 100644 index 0000000..5e8874a --- /dev/null +++ b/openapi_client_udm/models/policies_nfsmounts_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesNfsmountsListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesNfsmounts]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesNfsmountsListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesNfsmountsListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesNfsmountsListEmbedded. # noqa: E501 + :rtype: list[PoliciesNfsmounts] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesNfsmountsListEmbedded. + + + :param udmobject: The udmobject of this PoliciesNfsmountsListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesNfsmounts] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesNfsmountsListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesNfsmountsListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_nfsmounts_request.py b/openapi_client_udm/models/policies_nfsmounts_request.py new file mode 100644 index 0000000..337f2be --- /dev/null +++ b/openapi_client_udm/models/policies_nfsmounts_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesNfsmountsRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesNfsmountsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesNfsmountsRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesNfsmountsRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesNfsmountsRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesNfsmountsRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesNfsmountsRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesNfsmountsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesNfsmountsRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesNfsmountsRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesNfsmountsRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesNfsmountsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesNfsmountsRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesNfsmountsRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesNfsmountsRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesNfsmountsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesNfsmountsRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesNfsmountsRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesNfsmountsRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesNfsmountsRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesNfsmountsRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesNfsmountsRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesNfsmountsRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesNfsmountsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_nfsmounts_request_patch.py b/openapi_client_udm/models/policies_nfsmounts_request_patch.py new file mode 100644 index 0000000..28d5474 --- /dev/null +++ b/openapi_client_udm/models/policies_nfsmounts_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesNfsmountsRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesNfsmountsRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesNfsmountsRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesNfsmountsRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesNfsmountsRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesNfsmountsRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesNfsmountsRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesNfsmountsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesNfsmountsRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesNfsmountsRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesNfsmountsRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesNfsmountsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesNfsmountsRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesNfsmountsRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesNfsmountsRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesNfsmountsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesNfsmountsRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesNfsmountsRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesNfsmountsRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesNfsmountsRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_nfsmounts_response_mixin.py b/openapi_client_udm/models/policies_nfsmounts_response_mixin.py new file mode 100644 index 0000000..22815a6 --- /dev/null +++ b/openapi_client_udm/models/policies_nfsmounts_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesNfsmountsResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesNfsmountsResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesNfsmountsResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesNfsmountsResponseMixin. + + + :param links: The links of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesNfsmountsResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesNfsmountsResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesNfsmountsResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesNfsmountsResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesNfsmountsResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesNfsmountsResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesNfsmountsResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesNfsmountsResponseMixin. + + + :param uri: The uri of this PoliciesNfsmountsResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesNfsmountsResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesNfsmountsResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_policy.py b/openapi_client_udm/models/policies_policy.py new file mode 100644 index 0000000..5377c98 --- /dev/null +++ b/openapi_client_udm/models/policies_policy.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesPolicy. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPolicy. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPolicy. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPolicy. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPolicy. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPolicy. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPolicy. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPolicy. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPolicy. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPolicy. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPolicy. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPolicy. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPolicy. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesPolicy. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesPolicy. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesPolicy. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesPolicy. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesPolicy. # noqa: E501 + + + :return: The links of this PoliciesPolicy. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesPolicy. + + + :param links: The links of this PoliciesPolicy. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesPolicy. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesPolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPolicy. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesPolicy. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesPolicy. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesPolicy. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesPolicy. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesPolicy. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesPolicy. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesPolicy. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesPolicy. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesPolicy. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesPolicy. # noqa: E501 + + + :return: The uri of this PoliciesPolicy. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesPolicy. + + + :param uri: The uri of this PoliciesPolicy. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_policy_list.py b/openapi_client_udm/models/policies_policy_list.py new file mode 100644 index 0000000..863723a --- /dev/null +++ b/openapi_client_udm/models/policies_policy_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPolicyList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesPolicyListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesPolicyList. # noqa: E501 + + + :return: The embedded of this PoliciesPolicyList. # noqa: E501 + :rtype: PoliciesPolicyListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPolicyList. + + + :param embedded: The embedded of this PoliciesPolicyList. # noqa: E501 + :type embedded: PoliciesPolicyListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPolicyList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_policy_list_embedded.py b/openapi_client_udm/models/policies_policy_list_embedded.py new file mode 100644 index 0000000..ce6cc1e --- /dev/null +++ b/openapi_client_udm/models/policies_policy_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPolicyListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesPolicy]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPolicyListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesPolicyListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesPolicyListEmbedded. # noqa: E501 + :rtype: list[PoliciesPolicy] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesPolicyListEmbedded. + + + :param udmobject: The udmobject of this PoliciesPolicyListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesPolicy] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPolicyListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPolicyListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_policy_request.py b/openapi_client_udm/models/policies_policy_request.py new file mode 100644 index 0000000..199c913 --- /dev/null +++ b/openapi_client_udm/models/policies_policy_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPolicyRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPolicyRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesPolicyRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPolicyRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPolicyRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPolicyRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPolicyRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPolicyRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPolicyRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPolicyRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPolicyRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPolicyRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPolicyRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPolicyRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPolicyRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesPolicyRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesPolicyRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesPolicyRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesPolicyRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPolicyRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPolicyRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_policy_request_patch.py b/openapi_client_udm/models/policies_policy_request_patch.py new file mode 100644 index 0000000..af6a4a8 --- /dev/null +++ b/openapi_client_udm/models/policies_policy_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPolicyRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPolicyRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesPolicyRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPolicyRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPolicyRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPolicyRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPolicyRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPolicyRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPolicyRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPolicyRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPolicyRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPolicyRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPolicyRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPolicyRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPolicyRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_policy_response_mixin.py b/openapi_client_udm/models/policies_policy_response_mixin.py new file mode 100644 index 0000000..421c5a7 --- /dev/null +++ b/openapi_client_udm/models/policies_policy_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPolicyResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPolicyResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesPolicyResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesPolicyResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesPolicyResponseMixin. + + + :param links: The links of this PoliciesPolicyResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesPolicyResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesPolicyResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPolicyResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesPolicyResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesPolicyResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesPolicyResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesPolicyResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesPolicyResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesPolicyResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesPolicyResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesPolicyResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesPolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesPolicyResponseMixin. + + + :param uri: The uri of this PoliciesPolicyResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPolicyResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPolicyResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_printserver.py b/openapi_client_udm/models/policies_printserver.py new file mode 100644 index 0000000..114a00b --- /dev/null +++ b/openapi_client_udm/models/policies_printserver.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPrintserver(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPrintserver - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesPrintserver. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPrintserver. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPrintserver. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPrintserver. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPrintserver. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPrintserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPrintserver. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPrintserver. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPrintserver. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPrintserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPrintserver. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPrintserver. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPrintserver. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPrintserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPrintserver. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPrintserver. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesPrintserver. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesPrintserver. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesPrintserver. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesPrintserver. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesPrintserver. # noqa: E501 + + + :return: The links of this PoliciesPrintserver. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesPrintserver. + + + :param links: The links of this PoliciesPrintserver. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesPrintserver. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesPrintserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPrintserver. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesPrintserver. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesPrintserver. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesPrintserver. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesPrintserver. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesPrintserver. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesPrintserver. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesPrintserver. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesPrintserver. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesPrintserver. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesPrintserver. # noqa: E501 + + + :return: The uri of this PoliciesPrintserver. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesPrintserver. + + + :param uri: The uri of this PoliciesPrintserver. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPrintserver): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPrintserver): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_printserver_list.py b/openapi_client_udm/models/policies_printserver_list.py new file mode 100644 index 0000000..cf94fe5 --- /dev/null +++ b/openapi_client_udm/models/policies_printserver_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPrintserverList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesPrintserverListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPrintserverList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesPrintserverList. # noqa: E501 + + + :return: The embedded of this PoliciesPrintserverList. # noqa: E501 + :rtype: PoliciesPrintserverListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPrintserverList. + + + :param embedded: The embedded of this PoliciesPrintserverList. # noqa: E501 + :type embedded: PoliciesPrintserverListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPrintserverList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPrintserverList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_printserver_list_embedded.py b/openapi_client_udm/models/policies_printserver_list_embedded.py new file mode 100644 index 0000000..9d95118 --- /dev/null +++ b/openapi_client_udm/models/policies_printserver_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPrintserverListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesPrintserver]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPrintserverListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesPrintserverListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesPrintserverListEmbedded. # noqa: E501 + :rtype: list[PoliciesPrintserver] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesPrintserverListEmbedded. + + + :param udmobject: The udmobject of this PoliciesPrintserverListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesPrintserver] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPrintserverListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPrintserverListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_printserver_request.py b/openapi_client_udm/models/policies_printserver_request.py new file mode 100644 index 0000000..feddec5 --- /dev/null +++ b/openapi_client_udm/models/policies_printserver_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPrintserverRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPrintserverRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesPrintserverRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPrintserverRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPrintserverRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPrintserverRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPrintserverRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPrintserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPrintserverRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPrintserverRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPrintserverRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPrintserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPrintserverRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPrintserverRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPrintserverRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPrintserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPrintserverRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPrintserverRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesPrintserverRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesPrintserverRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesPrintserverRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesPrintserverRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPrintserverRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPrintserverRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_printserver_request_patch.py b/openapi_client_udm/models/policies_printserver_request_patch.py new file mode 100644 index 0000000..1de34bc --- /dev/null +++ b/openapi_client_udm/models/policies_printserver_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPrintserverRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPrintserverRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesPrintserverRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPrintserverRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPrintserverRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPrintserverRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPrintserverRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPrintserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPrintserverRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPrintserverRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPrintserverRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPrintserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPrintserverRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPrintserverRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPrintserverRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPrintserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPrintserverRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPrintserverRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPrintserverRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPrintserverRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_printserver_response_mixin.py b/openapi_client_udm/models/policies_printserver_response_mixin.py new file mode 100644 index 0000000..af0e276 --- /dev/null +++ b/openapi_client_udm/models/policies_printserver_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPrintserverResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPrintserverResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesPrintserverResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesPrintserverResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesPrintserverResponseMixin. + + + :param links: The links of this PoliciesPrintserverResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesPrintserverResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesPrintserverResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPrintserverResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesPrintserverResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesPrintserverResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesPrintserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesPrintserverResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesPrintserverResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesPrintserverResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesPrintserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesPrintserverResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesPrintserverResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesPrintserverResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesPrintserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesPrintserverResponseMixin. + + + :param uri: The uri of this PoliciesPrintserverResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPrintserverResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPrintserverResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_pwhistory.py b/openapi_client_udm/models/policies_pwhistory.py new file mode 100644 index 0000000..4739893 --- /dev/null +++ b/openapi_client_udm/models/policies_pwhistory.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPwhistory(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPwhistory - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesPwhistory. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPwhistory. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPwhistory. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPwhistory. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPwhistory. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPwhistory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPwhistory. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPwhistory. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPwhistory. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPwhistory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPwhistory. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPwhistory. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPwhistory. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPwhistory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPwhistory. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPwhistory. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesPwhistory. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesPwhistory. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesPwhistory. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesPwhistory. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesPwhistory. # noqa: E501 + + + :return: The links of this PoliciesPwhistory. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesPwhistory. + + + :param links: The links of this PoliciesPwhistory. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesPwhistory. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesPwhistory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPwhistory. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesPwhistory. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesPwhistory. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesPwhistory. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesPwhistory. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesPwhistory. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesPwhistory. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesPwhistory. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesPwhistory. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesPwhistory. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesPwhistory. # noqa: E501 + + + :return: The uri of this PoliciesPwhistory. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesPwhistory. + + + :param uri: The uri of this PoliciesPwhistory. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPwhistory): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPwhistory): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_pwhistory_list.py b/openapi_client_udm/models/policies_pwhistory_list.py new file mode 100644 index 0000000..70bd538 --- /dev/null +++ b/openapi_client_udm/models/policies_pwhistory_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPwhistoryList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesPwhistoryListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPwhistoryList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesPwhistoryList. # noqa: E501 + + + :return: The embedded of this PoliciesPwhistoryList. # noqa: E501 + :rtype: PoliciesPwhistoryListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPwhistoryList. + + + :param embedded: The embedded of this PoliciesPwhistoryList. # noqa: E501 + :type embedded: PoliciesPwhistoryListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPwhistoryList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPwhistoryList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_pwhistory_list_embedded.py b/openapi_client_udm/models/policies_pwhistory_list_embedded.py new file mode 100644 index 0000000..cfaefd4 --- /dev/null +++ b/openapi_client_udm/models/policies_pwhistory_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPwhistoryListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesPwhistory]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPwhistoryListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesPwhistoryListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesPwhistoryListEmbedded. # noqa: E501 + :rtype: list[PoliciesPwhistory] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesPwhistoryListEmbedded. + + + :param udmobject: The udmobject of this PoliciesPwhistoryListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesPwhistory] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPwhistoryListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPwhistoryListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_pwhistory_request.py b/openapi_client_udm/models/policies_pwhistory_request.py new file mode 100644 index 0000000..e712734 --- /dev/null +++ b/openapi_client_udm/models/policies_pwhistory_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPwhistoryRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPwhistoryRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesPwhistoryRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPwhistoryRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPwhistoryRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPwhistoryRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPwhistoryRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPwhistoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPwhistoryRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPwhistoryRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPwhistoryRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPwhistoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPwhistoryRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPwhistoryRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPwhistoryRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPwhistoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPwhistoryRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPwhistoryRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesPwhistoryRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesPwhistoryRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesPwhistoryRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesPwhistoryRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPwhistoryRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPwhistoryRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_pwhistory_request_patch.py b/openapi_client_udm/models/policies_pwhistory_request_patch.py new file mode 100644 index 0000000..91016f8 --- /dev/null +++ b/openapi_client_udm/models/policies_pwhistory_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPwhistoryRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPwhistoryRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesPwhistoryRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesPwhistoryRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesPwhistoryRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesPwhistoryRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesPwhistoryRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesPwhistoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesPwhistoryRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesPwhistoryRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesPwhistoryRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesPwhistoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesPwhistoryRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesPwhistoryRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesPwhistoryRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesPwhistoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesPwhistoryRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesPwhistoryRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPwhistoryRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPwhistoryRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_pwhistory_response_mixin.py b/openapi_client_udm/models/policies_pwhistory_response_mixin.py new file mode 100644 index 0000000..892559f --- /dev/null +++ b/openapi_client_udm/models/policies_pwhistory_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesPwhistoryResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesPwhistoryResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesPwhistoryResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesPwhistoryResponseMixin. + + + :param links: The links of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesPwhistoryResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesPwhistoryResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesPwhistoryResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesPwhistoryResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesPwhistoryResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesPwhistoryResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesPwhistoryResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesPwhistoryResponseMixin. + + + :param uri: The uri of this PoliciesPwhistoryResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesPwhistoryResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesPwhistoryResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_registry.py b/openapi_client_udm/models/policies_registry.py new file mode 100644 index 0000000..f5c4394 --- /dev/null +++ b/openapi_client_udm/models/policies_registry.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRegistry(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRegistry - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesRegistry. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRegistry. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRegistry. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRegistry. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRegistry. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRegistry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRegistry. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRegistry. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRegistry. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRegistry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRegistry. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRegistry. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRegistry. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRegistry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRegistry. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRegistry. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesRegistry. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesRegistry. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesRegistry. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesRegistry. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesRegistry. # noqa: E501 + + + :return: The links of this PoliciesRegistry. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesRegistry. + + + :param links: The links of this PoliciesRegistry. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesRegistry. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesRegistry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRegistry. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesRegistry. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesRegistry. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesRegistry. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesRegistry. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesRegistry. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesRegistry. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesRegistry. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesRegistry. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesRegistry. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesRegistry. # noqa: E501 + + + :return: The uri of this PoliciesRegistry. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesRegistry. + + + :param uri: The uri of this PoliciesRegistry. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRegistry): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRegistry): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_registry_list.py b/openapi_client_udm/models/policies_registry_list.py new file mode 100644 index 0000000..b3f6df2 --- /dev/null +++ b/openapi_client_udm/models/policies_registry_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRegistryList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesRegistryListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRegistryList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesRegistryList. # noqa: E501 + + + :return: The embedded of this PoliciesRegistryList. # noqa: E501 + :rtype: PoliciesRegistryListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRegistryList. + + + :param embedded: The embedded of this PoliciesRegistryList. # noqa: E501 + :type embedded: PoliciesRegistryListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRegistryList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRegistryList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_registry_list_embedded.py b/openapi_client_udm/models/policies_registry_list_embedded.py new file mode 100644 index 0000000..1999f09 --- /dev/null +++ b/openapi_client_udm/models/policies_registry_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRegistryListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesRegistry]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRegistryListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesRegistryListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesRegistryListEmbedded. # noqa: E501 + :rtype: list[PoliciesRegistry] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesRegistryListEmbedded. + + + :param udmobject: The udmobject of this PoliciesRegistryListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesRegistry] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRegistryListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRegistryListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_registry_request.py b/openapi_client_udm/models/policies_registry_request.py new file mode 100644 index 0000000..2ba3785 --- /dev/null +++ b/openapi_client_udm/models/policies_registry_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRegistryRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRegistryRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesRegistryRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRegistryRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRegistryRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRegistryRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRegistryRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRegistryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRegistryRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRegistryRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRegistryRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRegistryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRegistryRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRegistryRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRegistryRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRegistryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRegistryRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRegistryRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesRegistryRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesRegistryRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesRegistryRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesRegistryRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRegistryRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRegistryRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_registry_request_patch.py b/openapi_client_udm/models/policies_registry_request_patch.py new file mode 100644 index 0000000..4c7267a --- /dev/null +++ b/openapi_client_udm/models/policies_registry_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRegistryRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRegistryRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesRegistryRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRegistryRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRegistryRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRegistryRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRegistryRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRegistryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRegistryRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRegistryRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRegistryRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRegistryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRegistryRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRegistryRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRegistryRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRegistryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRegistryRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRegistryRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRegistryRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRegistryRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_registry_response_mixin.py b/openapi_client_udm/models/policies_registry_response_mixin.py new file mode 100644 index 0000000..7f34404 --- /dev/null +++ b/openapi_client_udm/models/policies_registry_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRegistryResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRegistryResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesRegistryResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesRegistryResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesRegistryResponseMixin. + + + :param links: The links of this PoliciesRegistryResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesRegistryResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesRegistryResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRegistryResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesRegistryResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesRegistryResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesRegistryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesRegistryResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesRegistryResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesRegistryResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesRegistryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesRegistryResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesRegistryResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesRegistryResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesRegistryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesRegistryResponseMixin. + + + :param uri: The uri of this PoliciesRegistryResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRegistryResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRegistryResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_release.py b/openapi_client_udm/models/policies_release.py new file mode 100644 index 0000000..e5a82d3 --- /dev/null +++ b/openapi_client_udm/models/policies_release.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRelease(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRelease - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesRelease. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRelease. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRelease. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRelease. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRelease. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRelease. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRelease. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRelease. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRelease. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRelease. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRelease. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRelease. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRelease. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRelease. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRelease. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRelease. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesRelease. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesRelease. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesRelease. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesRelease. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesRelease. # noqa: E501 + + + :return: The links of this PoliciesRelease. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesRelease. + + + :param links: The links of this PoliciesRelease. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesRelease. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesRelease. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRelease. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesRelease. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesRelease. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesRelease. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesRelease. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesRelease. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesRelease. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesRelease. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesRelease. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesRelease. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesRelease. # noqa: E501 + + + :return: The uri of this PoliciesRelease. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesRelease. + + + :param uri: The uri of this PoliciesRelease. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRelease): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRelease): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_release_list.py b/openapi_client_udm/models/policies_release_list.py new file mode 100644 index 0000000..aa06c81 --- /dev/null +++ b/openapi_client_udm/models/policies_release_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesReleaseList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesReleaseListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesReleaseList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesReleaseList. # noqa: E501 + + + :return: The embedded of this PoliciesReleaseList. # noqa: E501 + :rtype: PoliciesReleaseListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesReleaseList. + + + :param embedded: The embedded of this PoliciesReleaseList. # noqa: E501 + :type embedded: PoliciesReleaseListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesReleaseList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesReleaseList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_release_list_embedded.py b/openapi_client_udm/models/policies_release_list_embedded.py new file mode 100644 index 0000000..ab5d75b --- /dev/null +++ b/openapi_client_udm/models/policies_release_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesReleaseListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesRelease]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesReleaseListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesReleaseListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesReleaseListEmbedded. # noqa: E501 + :rtype: list[PoliciesRelease] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesReleaseListEmbedded. + + + :param udmobject: The udmobject of this PoliciesReleaseListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesRelease] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesReleaseListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesReleaseListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_release_request.py b/openapi_client_udm/models/policies_release_request.py new file mode 100644 index 0000000..dcb7355 --- /dev/null +++ b/openapi_client_udm/models/policies_release_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesReleaseRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesReleaseRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesReleaseRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesReleaseRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesReleaseRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesReleaseRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesReleaseRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesReleaseRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesReleaseRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesReleaseRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesReleaseRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesReleaseRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesReleaseRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesReleaseRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesReleaseRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesReleaseRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesReleaseRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesReleaseRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesReleaseRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesReleaseRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesReleaseRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesReleaseRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesReleaseRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesReleaseRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_release_request_patch.py b/openapi_client_udm/models/policies_release_request_patch.py new file mode 100644 index 0000000..cb935f4 --- /dev/null +++ b/openapi_client_udm/models/policies_release_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesReleaseRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesReleaseRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesReleaseRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesReleaseRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesReleaseRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesReleaseRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesReleaseRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesReleaseRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesReleaseRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesReleaseRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesReleaseRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesReleaseRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesReleaseRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesReleaseRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesReleaseRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesReleaseRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesReleaseRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesReleaseRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesReleaseRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesReleaseRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_release_response_mixin.py b/openapi_client_udm/models/policies_release_response_mixin.py new file mode 100644 index 0000000..80423d1 --- /dev/null +++ b/openapi_client_udm/models/policies_release_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesReleaseResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesReleaseResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesReleaseResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesReleaseResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesReleaseResponseMixin. + + + :param links: The links of this PoliciesReleaseResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesReleaseResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesReleaseResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesReleaseResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesReleaseResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesReleaseResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesReleaseResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesReleaseResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesReleaseResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesReleaseResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesReleaseResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesReleaseResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesReleaseResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesReleaseResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesReleaseResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesReleaseResponseMixin. + + + :param uri: The uri of this PoliciesReleaseResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesReleaseResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesReleaseResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositoryserver.py b/openapi_client_udm/models/policies_repositoryserver.py new file mode 100644 index 0000000..bccfd7f --- /dev/null +++ b/openapi_client_udm/models/policies_repositoryserver.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositoryserver(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositoryserver - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesRepositoryserver. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRepositoryserver. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRepositoryserver. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRepositoryserver. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRepositoryserver. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRepositoryserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRepositoryserver. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRepositoryserver. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRepositoryserver. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRepositoryserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRepositoryserver. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRepositoryserver. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRepositoryserver. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRepositoryserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRepositoryserver. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRepositoryserver. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesRepositoryserver. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesRepositoryserver. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesRepositoryserver. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesRepositoryserver. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesRepositoryserver. # noqa: E501 + + + :return: The links of this PoliciesRepositoryserver. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesRepositoryserver. + + + :param links: The links of this PoliciesRepositoryserver. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesRepositoryserver. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesRepositoryserver. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRepositoryserver. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesRepositoryserver. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesRepositoryserver. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesRepositoryserver. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesRepositoryserver. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesRepositoryserver. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesRepositoryserver. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesRepositoryserver. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesRepositoryserver. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesRepositoryserver. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesRepositoryserver. # noqa: E501 + + + :return: The uri of this PoliciesRepositoryserver. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesRepositoryserver. + + + :param uri: The uri of this PoliciesRepositoryserver. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositoryserver): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositoryserver): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositoryserver_list.py b/openapi_client_udm/models/policies_repositoryserver_list.py new file mode 100644 index 0000000..fcdfb4c --- /dev/null +++ b/openapi_client_udm/models/policies_repositoryserver_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositoryserverList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesRepositoryserverListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositoryserverList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesRepositoryserverList. # noqa: E501 + + + :return: The embedded of this PoliciesRepositoryserverList. # noqa: E501 + :rtype: PoliciesRepositoryserverListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRepositoryserverList. + + + :param embedded: The embedded of this PoliciesRepositoryserverList. # noqa: E501 + :type embedded: PoliciesRepositoryserverListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositoryserverList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositoryserverList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositoryserver_list_embedded.py b/openapi_client_udm/models/policies_repositoryserver_list_embedded.py new file mode 100644 index 0000000..763e42a --- /dev/null +++ b/openapi_client_udm/models/policies_repositoryserver_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositoryserverListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesRepositoryserver]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositoryserverListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesRepositoryserverListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesRepositoryserverListEmbedded. # noqa: E501 + :rtype: list[PoliciesRepositoryserver] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesRepositoryserverListEmbedded. + + + :param udmobject: The udmobject of this PoliciesRepositoryserverListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesRepositoryserver] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositoryserverListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositoryserverListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositoryserver_request.py b/openapi_client_udm/models/policies_repositoryserver_request.py new file mode 100644 index 0000000..125635d --- /dev/null +++ b/openapi_client_udm/models/policies_repositoryserver_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositoryserverRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositoryserverRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesRepositoryserverRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRepositoryserverRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRepositoryserverRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRepositoryserverRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRepositoryserverRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRepositoryserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRepositoryserverRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRepositoryserverRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRepositoryserverRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRepositoryserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRepositoryserverRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRepositoryserverRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRepositoryserverRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRepositoryserverRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRepositoryserverRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRepositoryserverRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesRepositoryserverRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesRepositoryserverRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesRepositoryserverRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesRepositoryserverRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositoryserverRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositoryserverRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositoryserver_request_patch.py b/openapi_client_udm/models/policies_repositoryserver_request_patch.py new file mode 100644 index 0000000..a800e54 --- /dev/null +++ b/openapi_client_udm/models/policies_repositoryserver_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositoryserverRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositoryserverRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRepositoryserverRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRepositoryserverRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRepositoryserverRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRepositoryserverRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRepositoryserverRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositoryserverRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositoryserverRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositoryserver_response_mixin.py b/openapi_client_udm/models/policies_repositoryserver_response_mixin.py new file mode 100644 index 0000000..8695e9b --- /dev/null +++ b/openapi_client_udm/models/policies_repositoryserver_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositoryserverResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositoryserverResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesRepositoryserverResponseMixin. + + + :param links: The links of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRepositoryserverResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesRepositoryserverResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesRepositoryserverResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesRepositoryserverResponseMixin. + + + :param uri: The uri of this PoliciesRepositoryserverResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositoryserverResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositoryserverResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositorysync.py b/openapi_client_udm/models/policies_repositorysync.py new file mode 100644 index 0000000..2120859 --- /dev/null +++ b/openapi_client_udm/models/policies_repositorysync.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositorysync(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositorysync - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesRepositorysync. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRepositorysync. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRepositorysync. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRepositorysync. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRepositorysync. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRepositorysync. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRepositorysync. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRepositorysync. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRepositorysync. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRepositorysync. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRepositorysync. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRepositorysync. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRepositorysync. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRepositorysync. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRepositorysync. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRepositorysync. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesRepositorysync. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesRepositorysync. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesRepositorysync. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesRepositorysync. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesRepositorysync. # noqa: E501 + + + :return: The links of this PoliciesRepositorysync. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesRepositorysync. + + + :param links: The links of this PoliciesRepositorysync. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesRepositorysync. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesRepositorysync. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRepositorysync. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesRepositorysync. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesRepositorysync. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesRepositorysync. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesRepositorysync. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesRepositorysync. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesRepositorysync. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesRepositorysync. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesRepositorysync. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesRepositorysync. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesRepositorysync. # noqa: E501 + + + :return: The uri of this PoliciesRepositorysync. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesRepositorysync. + + + :param uri: The uri of this PoliciesRepositorysync. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositorysync): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositorysync): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositorysync_list.py b/openapi_client_udm/models/policies_repositorysync_list.py new file mode 100644 index 0000000..c669988 --- /dev/null +++ b/openapi_client_udm/models/policies_repositorysync_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositorysyncList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesRepositorysyncListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositorysyncList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesRepositorysyncList. # noqa: E501 + + + :return: The embedded of this PoliciesRepositorysyncList. # noqa: E501 + :rtype: PoliciesRepositorysyncListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRepositorysyncList. + + + :param embedded: The embedded of this PoliciesRepositorysyncList. # noqa: E501 + :type embedded: PoliciesRepositorysyncListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositorysyncList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositorysyncList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositorysync_list_embedded.py b/openapi_client_udm/models/policies_repositorysync_list_embedded.py new file mode 100644 index 0000000..ff2aeab --- /dev/null +++ b/openapi_client_udm/models/policies_repositorysync_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositorysyncListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesRepositorysync]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositorysyncListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesRepositorysyncListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesRepositorysyncListEmbedded. # noqa: E501 + :rtype: list[PoliciesRepositorysync] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesRepositorysyncListEmbedded. + + + :param udmobject: The udmobject of this PoliciesRepositorysyncListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesRepositorysync] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositorysyncListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositorysyncListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositorysync_request.py b/openapi_client_udm/models/policies_repositorysync_request.py new file mode 100644 index 0000000..d53f4c9 --- /dev/null +++ b/openapi_client_udm/models/policies_repositorysync_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositorysyncRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositorysyncRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesRepositorysyncRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRepositorysyncRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRepositorysyncRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRepositorysyncRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRepositorysyncRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRepositorysyncRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRepositorysyncRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRepositorysyncRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRepositorysyncRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRepositorysyncRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRepositorysyncRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRepositorysyncRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRepositorysyncRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRepositorysyncRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRepositorysyncRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRepositorysyncRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesRepositorysyncRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesRepositorysyncRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesRepositorysyncRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesRepositorysyncRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositorysyncRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositorysyncRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositorysync_request_patch.py b/openapi_client_udm/models/policies_repositorysync_request_patch.py new file mode 100644 index 0000000..b645f51 --- /dev/null +++ b/openapi_client_udm/models/policies_repositorysync_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositorysyncRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositorysyncRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesRepositorysyncRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesRepositorysyncRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesRepositorysyncRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesRepositorysyncRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesRepositorysyncRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositorysyncRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositorysyncRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_repositorysync_response_mixin.py b/openapi_client_udm/models/policies_repositorysync_response_mixin.py new file mode 100644 index 0000000..bfccc91 --- /dev/null +++ b/openapi_client_udm/models/policies_repositorysync_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesRepositorysyncResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesRepositorysyncResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesRepositorysyncResponseMixin. + + + :param links: The links of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesRepositorysyncResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesRepositorysyncResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesRepositorysyncResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesRepositorysyncResponseMixin. + + + :param uri: The uri of this PoliciesRepositorysyncResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesRepositorysyncResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesRepositorysyncResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_share_userquota.py b/openapi_client_udm/models/policies_share_userquota.py new file mode 100644 index 0000000..7a2a88e --- /dev/null +++ b/openapi_client_udm/models/policies_share_userquota.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesShareUserquota(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesShareUserquota - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesShareUserquota. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesShareUserquota. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesShareUserquota. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesShareUserquota. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesShareUserquota. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesShareUserquota. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesShareUserquota. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesShareUserquota. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesShareUserquota. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesShareUserquota. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesShareUserquota. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesShareUserquota. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesShareUserquota. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesShareUserquota. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesShareUserquota. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesShareUserquota. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesShareUserquota. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesShareUserquota. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesShareUserquota. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesShareUserquota. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesShareUserquota. # noqa: E501 + + + :return: The links of this PoliciesShareUserquota. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesShareUserquota. + + + :param links: The links of this PoliciesShareUserquota. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesShareUserquota. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesShareUserquota. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesShareUserquota. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesShareUserquota. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesShareUserquota. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesShareUserquota. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesShareUserquota. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesShareUserquota. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesShareUserquota. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesShareUserquota. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesShareUserquota. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesShareUserquota. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesShareUserquota. # noqa: E501 + + + :return: The uri of this PoliciesShareUserquota. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesShareUserquota. + + + :param uri: The uri of this PoliciesShareUserquota. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesShareUserquota): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesShareUserquota): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_share_userquota_list.py b/openapi_client_udm/models/policies_share_userquota_list.py new file mode 100644 index 0000000..0cff398 --- /dev/null +++ b/openapi_client_udm/models/policies_share_userquota_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesShareUserquotaList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesShareUserquotaListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesShareUserquotaList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesShareUserquotaList. # noqa: E501 + + + :return: The embedded of this PoliciesShareUserquotaList. # noqa: E501 + :rtype: PoliciesShareUserquotaListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesShareUserquotaList. + + + :param embedded: The embedded of this PoliciesShareUserquotaList. # noqa: E501 + :type embedded: PoliciesShareUserquotaListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesShareUserquotaList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesShareUserquotaList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_share_userquota_list_embedded.py b/openapi_client_udm/models/policies_share_userquota_list_embedded.py new file mode 100644 index 0000000..a191d48 --- /dev/null +++ b/openapi_client_udm/models/policies_share_userquota_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesShareUserquotaListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesShareUserquota]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesShareUserquotaListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesShareUserquotaListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesShareUserquotaListEmbedded. # noqa: E501 + :rtype: list[PoliciesShareUserquota] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesShareUserquotaListEmbedded. + + + :param udmobject: The udmobject of this PoliciesShareUserquotaListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesShareUserquota] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesShareUserquotaListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesShareUserquotaListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_share_userquota_request.py b/openapi_client_udm/models/policies_share_userquota_request.py new file mode 100644 index 0000000..44caa3c --- /dev/null +++ b/openapi_client_udm/models/policies_share_userquota_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesShareUserquotaRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesShareUserquotaRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesShareUserquotaRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesShareUserquotaRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesShareUserquotaRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesShareUserquotaRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesShareUserquotaRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesShareUserquotaRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesShareUserquotaRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesShareUserquotaRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesShareUserquotaRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesShareUserquotaRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesShareUserquotaRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesShareUserquotaRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesShareUserquotaRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesShareUserquotaRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesShareUserquotaRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesShareUserquotaRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesShareUserquotaRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesShareUserquotaRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesShareUserquotaRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesShareUserquotaRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesShareUserquotaRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesShareUserquotaRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_share_userquota_request_patch.py b/openapi_client_udm/models/policies_share_userquota_request_patch.py new file mode 100644 index 0000000..69b1b4a --- /dev/null +++ b/openapi_client_udm/models/policies_share_userquota_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesShareUserquotaRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesShareUserquotaRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesShareUserquotaRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesShareUserquotaRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesShareUserquotaRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesShareUserquotaRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesShareUserquotaRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesShareUserquotaRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesShareUserquotaRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_share_userquota_response_mixin.py b/openapi_client_udm/models/policies_share_userquota_response_mixin.py new file mode 100644 index 0000000..95b5db1 --- /dev/null +++ b/openapi_client_udm/models/policies_share_userquota_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesShareUserquotaResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesShareUserquotaResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesShareUserquotaResponseMixin. + + + :param links: The links of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesShareUserquotaResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesShareUserquotaResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesShareUserquotaResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesShareUserquotaResponseMixin. + + + :param uri: The uri of this PoliciesShareUserquotaResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesShareUserquotaResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesShareUserquotaResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_slavepackages.py b/openapi_client_udm/models/policies_slavepackages.py new file mode 100644 index 0000000..5a9dfd0 --- /dev/null +++ b/openapi_client_udm/models/policies_slavepackages.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesSlavepackages(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesSlavepackages - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesSlavepackages. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesSlavepackages. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesSlavepackages. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesSlavepackages. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesSlavepackages. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesSlavepackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesSlavepackages. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesSlavepackages. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesSlavepackages. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesSlavepackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesSlavepackages. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesSlavepackages. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesSlavepackages. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesSlavepackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesSlavepackages. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesSlavepackages. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesSlavepackages. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesSlavepackages. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesSlavepackages. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesSlavepackages. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesSlavepackages. # noqa: E501 + + + :return: The links of this PoliciesSlavepackages. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesSlavepackages. + + + :param links: The links of this PoliciesSlavepackages. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesSlavepackages. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesSlavepackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesSlavepackages. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesSlavepackages. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesSlavepackages. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesSlavepackages. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesSlavepackages. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesSlavepackages. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesSlavepackages. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesSlavepackages. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesSlavepackages. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesSlavepackages. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesSlavepackages. # noqa: E501 + + + :return: The uri of this PoliciesSlavepackages. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesSlavepackages. + + + :param uri: The uri of this PoliciesSlavepackages. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesSlavepackages): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesSlavepackages): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_slavepackages_list.py b/openapi_client_udm/models/policies_slavepackages_list.py new file mode 100644 index 0000000..c38db64 --- /dev/null +++ b/openapi_client_udm/models/policies_slavepackages_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesSlavepackagesList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesSlavepackagesListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesSlavepackagesList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesSlavepackagesList. # noqa: E501 + + + :return: The embedded of this PoliciesSlavepackagesList. # noqa: E501 + :rtype: PoliciesSlavepackagesListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesSlavepackagesList. + + + :param embedded: The embedded of this PoliciesSlavepackagesList. # noqa: E501 + :type embedded: PoliciesSlavepackagesListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesSlavepackagesList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesSlavepackagesList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_slavepackages_list_embedded.py b/openapi_client_udm/models/policies_slavepackages_list_embedded.py new file mode 100644 index 0000000..ad974e9 --- /dev/null +++ b/openapi_client_udm/models/policies_slavepackages_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesSlavepackagesListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesSlavepackages]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesSlavepackagesListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesSlavepackagesListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesSlavepackagesListEmbedded. # noqa: E501 + :rtype: list[PoliciesSlavepackages] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesSlavepackagesListEmbedded. + + + :param udmobject: The udmobject of this PoliciesSlavepackagesListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesSlavepackages] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesSlavepackagesListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesSlavepackagesListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_slavepackages_request.py b/openapi_client_udm/models/policies_slavepackages_request.py new file mode 100644 index 0000000..1d58b37 --- /dev/null +++ b/openapi_client_udm/models/policies_slavepackages_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesSlavepackagesRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesSlavepackagesRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesSlavepackagesRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesSlavepackagesRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesSlavepackagesRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesSlavepackagesRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesSlavepackagesRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesSlavepackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesSlavepackagesRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesSlavepackagesRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesSlavepackagesRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesSlavepackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesSlavepackagesRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesSlavepackagesRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesSlavepackagesRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesSlavepackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesSlavepackagesRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesSlavepackagesRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesSlavepackagesRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesSlavepackagesRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesSlavepackagesRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesSlavepackagesRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesSlavepackagesRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesSlavepackagesRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_slavepackages_request_patch.py b/openapi_client_udm/models/policies_slavepackages_request_patch.py new file mode 100644 index 0000000..d3e0dca --- /dev/null +++ b/openapi_client_udm/models/policies_slavepackages_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesSlavepackagesRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesSlavepackagesRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesSlavepackagesRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesSlavepackagesRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesSlavepackagesRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesSlavepackagesRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesSlavepackagesRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesSlavepackagesRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesSlavepackagesRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_slavepackages_response_mixin.py b/openapi_client_udm/models/policies_slavepackages_response_mixin.py new file mode 100644 index 0000000..d7390df --- /dev/null +++ b/openapi_client_udm/models/policies_slavepackages_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesSlavepackagesResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesSlavepackagesResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesSlavepackagesResponseMixin. + + + :param links: The links of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesSlavepackagesResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesSlavepackagesResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesSlavepackagesResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesSlavepackagesResponseMixin. + + + :param uri: The uri of this PoliciesSlavepackagesResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesSlavepackagesResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesSlavepackagesResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_umc.py b/openapi_client_udm/models/policies_umc.py new file mode 100644 index 0000000..6957fa0 --- /dev/null +++ b/openapi_client_udm/models/policies_umc.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesUmc(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesUmc - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PoliciesUmc. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesUmc. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesUmc. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesUmc. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesUmc. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesUmc. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesUmc. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesUmc. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesUmc. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesUmc. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesUmc. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesUmc. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesUmc. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesUmc. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesUmc. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesUmc. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesUmc. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesUmc. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesUmc. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesUmc. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PoliciesUmc. # noqa: E501 + + + :return: The links of this PoliciesUmc. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesUmc. + + + :param links: The links of this PoliciesUmc. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesUmc. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesUmc. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesUmc. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesUmc. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesUmc. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesUmc. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesUmc. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesUmc. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesUmc. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesUmc. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesUmc. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesUmc. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesUmc. # noqa: E501 + + + :return: The uri of this PoliciesUmc. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesUmc. + + + :param uri: The uri of this PoliciesUmc. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesUmc): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesUmc): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_umc_list.py b/openapi_client_udm/models/policies_umc_list.py new file mode 100644 index 0000000..39b8121 --- /dev/null +++ b/openapi_client_udm/models/policies_umc_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesUmcList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PoliciesUmcListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PoliciesUmcList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PoliciesUmcList. # noqa: E501 + + + :return: The embedded of this PoliciesUmcList. # noqa: E501 + :rtype: PoliciesUmcListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesUmcList. + + + :param embedded: The embedded of this PoliciesUmcList. # noqa: E501 + :type embedded: PoliciesUmcListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesUmcList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesUmcList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_umc_list_embedded.py b/openapi_client_udm/models/policies_umc_list_embedded.py new file mode 100644 index 0000000..83e70cc --- /dev/null +++ b/openapi_client_udm/models/policies_umc_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesUmcListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PoliciesUmc]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PoliciesUmcListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PoliciesUmcListEmbedded. # noqa: E501 + + + :return: The udmobject of this PoliciesUmcListEmbedded. # noqa: E501 + :rtype: list[PoliciesUmc] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PoliciesUmcListEmbedded. + + + :param udmobject: The udmobject of this PoliciesUmcListEmbedded. # noqa: E501 + :type udmobject: list[PoliciesUmc] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesUmcListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesUmcListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_umc_request.py b/openapi_client_udm/models/policies_umc_request.py new file mode 100644 index 0000000..0ae18c2 --- /dev/null +++ b/openapi_client_udm/models/policies_umc_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesUmcRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PoliciesUmcRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PoliciesUmcRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesUmcRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesUmcRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesUmcRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesUmcRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesUmcRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesUmcRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesUmcRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesUmcRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesUmcRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesUmcRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesUmcRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesUmcRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesUmcRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesUmcRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesUmcRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PoliciesUmcRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PoliciesUmcRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PoliciesUmcRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PoliciesUmcRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesUmcRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesUmcRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_umc_request_patch.py b/openapi_client_udm/models/policies_umc_request_patch.py new file mode 100644 index 0000000..3700c38 --- /dev/null +++ b/openapi_client_udm/models/policies_umc_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesUmcRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PoliciesUmcRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PoliciesUmcRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PoliciesUmcRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PoliciesUmcRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PoliciesUmcRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PoliciesUmcRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PoliciesUmcRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PoliciesUmcRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PoliciesUmcRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PoliciesUmcRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PoliciesUmcRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PoliciesUmcRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PoliciesUmcRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PoliciesUmcRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PoliciesUmcRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PoliciesUmcRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PoliciesUmcRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesUmcRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesUmcRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/policies_umc_response_mixin.py b/openapi_client_udm/models/policies_umc_response_mixin.py new file mode 100644 index 0000000..56b0eaf --- /dev/null +++ b/openapi_client_udm/models/policies_umc_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PoliciesUmcResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PoliciesUmcResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PoliciesUmcResponseMixin. # noqa: E501 + + + :return: The links of this PoliciesUmcResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PoliciesUmcResponseMixin. + + + :param links: The links of this PoliciesUmcResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PoliciesUmcResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PoliciesUmcResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PoliciesUmcResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PoliciesUmcResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PoliciesUmcResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PoliciesUmcResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PoliciesUmcResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PoliciesUmcResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PoliciesUmcResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PoliciesUmcResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PoliciesUmcResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PoliciesUmcResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PoliciesUmcResponseMixin. # noqa: E501 + + + :return: The uri of this PoliciesUmcResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PoliciesUmcResponseMixin. + + + :param uri: The uri of this PoliciesUmcResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PoliciesUmcResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PoliciesUmcResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_all.py b/openapi_client_udm/models/portals_all.py new file mode 100644 index 0000000..c9a7be1 --- /dev/null +++ b/openapi_client_udm/models/portals_all.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAll(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsAll - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PortalsAll. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsAll. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsAll. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsAll. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsAll. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsAll. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsAll. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsAll. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsAll. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsAll. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsAll. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsAll. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsAll. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsAll. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsAll. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsAll. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsAll. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsAll. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsAll. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsAll. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PortalsAll. # noqa: E501 + + + :return: The links of this PortalsAll. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsAll. + + + :param links: The links of this PortalsAll. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsAll. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsAll. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsAll. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsAll. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsAll. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsAll. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsAll. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsAll. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsAll. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsAll. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsAll. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsAll. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsAll. # noqa: E501 + + + :return: The uri of this PortalsAll. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsAll. + + + :param uri: The uri of this PortalsAll. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAll): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAll): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_all_list.py b/openapi_client_udm/models/portals_all_list.py new file mode 100644 index 0000000..f5a9583 --- /dev/null +++ b/openapi_client_udm/models/portals_all_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAllList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PortalsAllListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PortalsAllList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PortalsAllList. # noqa: E501 + + + :return: The embedded of this PortalsAllList. # noqa: E501 + :rtype: PortalsAllListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsAllList. + + + :param embedded: The embedded of this PortalsAllList. # noqa: E501 + :type embedded: PortalsAllListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAllList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAllList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_all_list_embedded.py b/openapi_client_udm/models/portals_all_list_embedded.py new file mode 100644 index 0000000..7c909c7 --- /dev/null +++ b/openapi_client_udm/models/portals_all_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAllListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PortalsAll]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PortalsAllListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PortalsAllListEmbedded. # noqa: E501 + + + :return: The udmobject of this PortalsAllListEmbedded. # noqa: E501 + :rtype: list[PortalsAll] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PortalsAllListEmbedded. + + + :param udmobject: The udmobject of this PortalsAllListEmbedded. # noqa: E501 + :type udmobject: list[PortalsAll] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAllListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAllListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_all_request.py b/openapi_client_udm/models/portals_all_request.py new file mode 100644 index 0000000..c7a0504 --- /dev/null +++ b/openapi_client_udm/models/portals_all_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAllRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PortalsAllRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PortalsAllRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsAllRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsAllRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsAllRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsAllRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsAllRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsAllRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsAllRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsAllRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsAllRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsAllRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsAllRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsAllRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsAllRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsAllRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsAllRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsAllRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsAllRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsAllRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsAllRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAllRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAllRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_all_request_patch.py b/openapi_client_udm/models/portals_all_request_patch.py new file mode 100644 index 0000000..cc4de5a --- /dev/null +++ b/openapi_client_udm/models/portals_all_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAllRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PortalsAllRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PortalsAllRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsAllRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsAllRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsAllRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsAllRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsAllRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsAllRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsAllRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsAllRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsAllRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsAllRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsAllRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsAllRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsAllRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsAllRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsAllRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAllRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAllRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_all_response_mixin.py b/openapi_client_udm/models/portals_all_response_mixin.py new file mode 100644 index 0000000..ab59e22 --- /dev/null +++ b/openapi_client_udm/models/portals_all_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAllResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsAllResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PortalsAllResponseMixin. # noqa: E501 + + + :return: The links of this PortalsAllResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsAllResponseMixin. + + + :param links: The links of this PortalsAllResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsAllResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsAllResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsAllResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsAllResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsAllResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsAllResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsAllResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsAllResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsAllResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsAllResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsAllResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsAllResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsAllResponseMixin. # noqa: E501 + + + :return: The uri of this PortalsAllResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsAllResponseMixin. + + + :param uri: The uri of this PortalsAllResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAllResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAllResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_announcement.py b/openapi_client_udm/models/portals_announcement.py new file mode 100644 index 0000000..fe23ea5 --- /dev/null +++ b/openapi_client_udm/models/portals_announcement.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAnnouncement(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsAnnouncement - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PortalsAnnouncement. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsAnnouncement. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsAnnouncement. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsAnnouncement. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsAnnouncement. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsAnnouncement. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsAnnouncement. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsAnnouncement. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsAnnouncement. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsAnnouncement. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsAnnouncement. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsAnnouncement. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsAnnouncement. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsAnnouncement. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsAnnouncement. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsAnnouncement. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsAnnouncement. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsAnnouncement. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsAnnouncement. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsAnnouncement. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PortalsAnnouncement. # noqa: E501 + + + :return: The links of this PortalsAnnouncement. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsAnnouncement. + + + :param links: The links of this PortalsAnnouncement. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsAnnouncement. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsAnnouncement. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsAnnouncement. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsAnnouncement. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsAnnouncement. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsAnnouncement. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsAnnouncement. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsAnnouncement. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsAnnouncement. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsAnnouncement. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsAnnouncement. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsAnnouncement. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsAnnouncement. # noqa: E501 + + + :return: The uri of this PortalsAnnouncement. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsAnnouncement. + + + :param uri: The uri of this PortalsAnnouncement. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAnnouncement): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAnnouncement): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_announcement_list.py b/openapi_client_udm/models/portals_announcement_list.py new file mode 100644 index 0000000..6949105 --- /dev/null +++ b/openapi_client_udm/models/portals_announcement_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAnnouncementList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PortalsAnnouncementListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PortalsAnnouncementList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PortalsAnnouncementList. # noqa: E501 + + + :return: The embedded of this PortalsAnnouncementList. # noqa: E501 + :rtype: PortalsAnnouncementListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsAnnouncementList. + + + :param embedded: The embedded of this PortalsAnnouncementList. # noqa: E501 + :type embedded: PortalsAnnouncementListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAnnouncementList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAnnouncementList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_announcement_list_embedded.py b/openapi_client_udm/models/portals_announcement_list_embedded.py new file mode 100644 index 0000000..90a8773 --- /dev/null +++ b/openapi_client_udm/models/portals_announcement_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAnnouncementListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PortalsAnnouncement]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PortalsAnnouncementListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PortalsAnnouncementListEmbedded. # noqa: E501 + + + :return: The udmobject of this PortalsAnnouncementListEmbedded. # noqa: E501 + :rtype: list[PortalsAnnouncement] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PortalsAnnouncementListEmbedded. + + + :param udmobject: The udmobject of this PortalsAnnouncementListEmbedded. # noqa: E501 + :type udmobject: list[PortalsAnnouncement] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAnnouncementListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAnnouncementListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_announcement_request.py b/openapi_client_udm/models/portals_announcement_request.py new file mode 100644 index 0000000..ff77ed8 --- /dev/null +++ b/openapi_client_udm/models/portals_announcement_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAnnouncementRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PortalsAnnouncementRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PortalsAnnouncementRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsAnnouncementRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsAnnouncementRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsAnnouncementRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsAnnouncementRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsAnnouncementRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsAnnouncementRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsAnnouncementRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsAnnouncementRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsAnnouncementRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsAnnouncementRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsAnnouncementRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsAnnouncementRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsAnnouncementRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsAnnouncementRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsAnnouncementRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsAnnouncementRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsAnnouncementRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsAnnouncementRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsAnnouncementRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAnnouncementRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAnnouncementRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_announcement_request_patch.py b/openapi_client_udm/models/portals_announcement_request_patch.py new file mode 100644 index 0000000..02b11bc --- /dev/null +++ b/openapi_client_udm/models/portals_announcement_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAnnouncementRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PortalsAnnouncementRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PortalsAnnouncementRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsAnnouncementRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsAnnouncementRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsAnnouncementRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsAnnouncementRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsAnnouncementRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsAnnouncementRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsAnnouncementRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsAnnouncementRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsAnnouncementRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsAnnouncementRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsAnnouncementRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsAnnouncementRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsAnnouncementRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsAnnouncementRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsAnnouncementRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAnnouncementRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAnnouncementRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_announcement_response_mixin.py b/openapi_client_udm/models/portals_announcement_response_mixin.py new file mode 100644 index 0000000..634135b --- /dev/null +++ b/openapi_client_udm/models/portals_announcement_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsAnnouncementResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsAnnouncementResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PortalsAnnouncementResponseMixin. # noqa: E501 + + + :return: The links of this PortalsAnnouncementResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsAnnouncementResponseMixin. + + + :param links: The links of this PortalsAnnouncementResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsAnnouncementResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsAnnouncementResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsAnnouncementResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsAnnouncementResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsAnnouncementResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsAnnouncementResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsAnnouncementResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsAnnouncementResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsAnnouncementResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsAnnouncementResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsAnnouncementResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsAnnouncementResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsAnnouncementResponseMixin. # noqa: E501 + + + :return: The uri of this PortalsAnnouncementResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsAnnouncementResponseMixin. + + + :param uri: The uri of this PortalsAnnouncementResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsAnnouncementResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsAnnouncementResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_category.py b/openapi_client_udm/models/portals_category.py new file mode 100644 index 0000000..d9ba3d4 --- /dev/null +++ b/openapi_client_udm/models/portals_category.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsCategory(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsCategory - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PortalsCategory. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsCategory. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsCategory. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsCategory. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsCategory. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsCategory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsCategory. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsCategory. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsCategory. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsCategory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsCategory. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsCategory. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsCategory. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsCategory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsCategory. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsCategory. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsCategory. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsCategory. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsCategory. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsCategory. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PortalsCategory. # noqa: E501 + + + :return: The links of this PortalsCategory. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsCategory. + + + :param links: The links of this PortalsCategory. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsCategory. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsCategory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsCategory. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsCategory. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsCategory. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsCategory. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsCategory. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsCategory. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsCategory. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsCategory. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsCategory. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsCategory. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsCategory. # noqa: E501 + + + :return: The uri of this PortalsCategory. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsCategory. + + + :param uri: The uri of this PortalsCategory. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsCategory): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsCategory): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_category_list.py b/openapi_client_udm/models/portals_category_list.py new file mode 100644 index 0000000..a00e98a --- /dev/null +++ b/openapi_client_udm/models/portals_category_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsCategoryList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PortalsCategoryListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PortalsCategoryList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PortalsCategoryList. # noqa: E501 + + + :return: The embedded of this PortalsCategoryList. # noqa: E501 + :rtype: PortalsCategoryListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsCategoryList. + + + :param embedded: The embedded of this PortalsCategoryList. # noqa: E501 + :type embedded: PortalsCategoryListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsCategoryList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsCategoryList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_category_list_embedded.py b/openapi_client_udm/models/portals_category_list_embedded.py new file mode 100644 index 0000000..6047ed8 --- /dev/null +++ b/openapi_client_udm/models/portals_category_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsCategoryListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PortalsCategory]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PortalsCategoryListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PortalsCategoryListEmbedded. # noqa: E501 + + + :return: The udmobject of this PortalsCategoryListEmbedded. # noqa: E501 + :rtype: list[PortalsCategory] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PortalsCategoryListEmbedded. + + + :param udmobject: The udmobject of this PortalsCategoryListEmbedded. # noqa: E501 + :type udmobject: list[PortalsCategory] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsCategoryListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsCategoryListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_category_request.py b/openapi_client_udm/models/portals_category_request.py new file mode 100644 index 0000000..1f3fec6 --- /dev/null +++ b/openapi_client_udm/models/portals_category_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsCategoryRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PortalsCategoryRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PortalsCategoryRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsCategoryRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsCategoryRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsCategoryRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsCategoryRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsCategoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsCategoryRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsCategoryRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsCategoryRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsCategoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsCategoryRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsCategoryRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsCategoryRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsCategoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsCategoryRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsCategoryRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsCategoryRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsCategoryRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsCategoryRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsCategoryRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsCategoryRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsCategoryRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_category_request_patch.py b/openapi_client_udm/models/portals_category_request_patch.py new file mode 100644 index 0000000..6510644 --- /dev/null +++ b/openapi_client_udm/models/portals_category_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsCategoryRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PortalsCategoryRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PortalsCategoryRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsCategoryRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsCategoryRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsCategoryRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsCategoryRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsCategoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsCategoryRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsCategoryRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsCategoryRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsCategoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsCategoryRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsCategoryRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsCategoryRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsCategoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsCategoryRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsCategoryRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsCategoryRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsCategoryRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_category_response_mixin.py b/openapi_client_udm/models/portals_category_response_mixin.py new file mode 100644 index 0000000..7570eb4 --- /dev/null +++ b/openapi_client_udm/models/portals_category_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsCategoryResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsCategoryResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PortalsCategoryResponseMixin. # noqa: E501 + + + :return: The links of this PortalsCategoryResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsCategoryResponseMixin. + + + :param links: The links of this PortalsCategoryResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsCategoryResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsCategoryResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsCategoryResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsCategoryResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsCategoryResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsCategoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsCategoryResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsCategoryResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsCategoryResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsCategoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsCategoryResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsCategoryResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsCategoryResponseMixin. # noqa: E501 + + + :return: The uri of this PortalsCategoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsCategoryResponseMixin. + + + :param uri: The uri of this PortalsCategoryResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsCategoryResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsCategoryResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_entry.py b/openapi_client_udm/models/portals_entry.py new file mode 100644 index 0000000..0494f7e --- /dev/null +++ b/openapi_client_udm/models/portals_entry.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsEntry(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsEntry - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PortalsEntry. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsEntry. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsEntry. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsEntry. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsEntry. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsEntry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsEntry. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsEntry. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsEntry. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsEntry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsEntry. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsEntry. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsEntry. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsEntry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsEntry. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsEntry. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsEntry. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsEntry. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsEntry. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsEntry. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PortalsEntry. # noqa: E501 + + + :return: The links of this PortalsEntry. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsEntry. + + + :param links: The links of this PortalsEntry. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsEntry. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsEntry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsEntry. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsEntry. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsEntry. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsEntry. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsEntry. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsEntry. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsEntry. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsEntry. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsEntry. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsEntry. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsEntry. # noqa: E501 + + + :return: The uri of this PortalsEntry. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsEntry. + + + :param uri: The uri of this PortalsEntry. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsEntry): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsEntry): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_entry_list.py b/openapi_client_udm/models/portals_entry_list.py new file mode 100644 index 0000000..6b28ff3 --- /dev/null +++ b/openapi_client_udm/models/portals_entry_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsEntryList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PortalsEntryListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PortalsEntryList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PortalsEntryList. # noqa: E501 + + + :return: The embedded of this PortalsEntryList. # noqa: E501 + :rtype: PortalsEntryListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsEntryList. + + + :param embedded: The embedded of this PortalsEntryList. # noqa: E501 + :type embedded: PortalsEntryListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsEntryList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsEntryList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_entry_list_embedded.py b/openapi_client_udm/models/portals_entry_list_embedded.py new file mode 100644 index 0000000..74965f4 --- /dev/null +++ b/openapi_client_udm/models/portals_entry_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsEntryListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PortalsEntry]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PortalsEntryListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PortalsEntryListEmbedded. # noqa: E501 + + + :return: The udmobject of this PortalsEntryListEmbedded. # noqa: E501 + :rtype: list[PortalsEntry] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PortalsEntryListEmbedded. + + + :param udmobject: The udmobject of this PortalsEntryListEmbedded. # noqa: E501 + :type udmobject: list[PortalsEntry] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsEntryListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsEntryListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_entry_request.py b/openapi_client_udm/models/portals_entry_request.py new file mode 100644 index 0000000..d671e33 --- /dev/null +++ b/openapi_client_udm/models/portals_entry_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsEntryRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PortalsEntryRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PortalsEntryRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsEntryRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsEntryRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsEntryRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsEntryRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsEntryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsEntryRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsEntryRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsEntryRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsEntryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsEntryRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsEntryRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsEntryRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsEntryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsEntryRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsEntryRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsEntryRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsEntryRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsEntryRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsEntryRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsEntryRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsEntryRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_entry_request_patch.py b/openapi_client_udm/models/portals_entry_request_patch.py new file mode 100644 index 0000000..d66391a --- /dev/null +++ b/openapi_client_udm/models/portals_entry_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsEntryRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PortalsEntryRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PortalsEntryRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsEntryRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsEntryRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsEntryRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsEntryRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsEntryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsEntryRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsEntryRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsEntryRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsEntryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsEntryRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsEntryRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsEntryRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsEntryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsEntryRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsEntryRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsEntryRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsEntryRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_entry_response_mixin.py b/openapi_client_udm/models/portals_entry_response_mixin.py new file mode 100644 index 0000000..8e598d6 --- /dev/null +++ b/openapi_client_udm/models/portals_entry_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsEntryResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsEntryResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PortalsEntryResponseMixin. # noqa: E501 + + + :return: The links of this PortalsEntryResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsEntryResponseMixin. + + + :param links: The links of this PortalsEntryResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsEntryResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsEntryResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsEntryResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsEntryResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsEntryResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsEntryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsEntryResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsEntryResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsEntryResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsEntryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsEntryResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsEntryResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsEntryResponseMixin. # noqa: E501 + + + :return: The uri of this PortalsEntryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsEntryResponseMixin. + + + :param uri: The uri of this PortalsEntryResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsEntryResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsEntryResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_folder.py b/openapi_client_udm/models/portals_folder.py new file mode 100644 index 0000000..1b6069c --- /dev/null +++ b/openapi_client_udm/models/portals_folder.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsFolder(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsFolder - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PortalsFolder. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsFolder. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsFolder. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsFolder. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsFolder. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsFolder. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsFolder. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsFolder. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsFolder. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsFolder. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsFolder. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsFolder. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsFolder. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsFolder. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsFolder. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsFolder. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsFolder. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsFolder. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsFolder. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsFolder. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PortalsFolder. # noqa: E501 + + + :return: The links of this PortalsFolder. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsFolder. + + + :param links: The links of this PortalsFolder. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsFolder. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsFolder. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsFolder. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsFolder. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsFolder. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsFolder. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsFolder. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsFolder. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsFolder. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsFolder. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsFolder. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsFolder. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsFolder. # noqa: E501 + + + :return: The uri of this PortalsFolder. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsFolder. + + + :param uri: The uri of this PortalsFolder. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsFolder): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsFolder): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_folder_list.py b/openapi_client_udm/models/portals_folder_list.py new file mode 100644 index 0000000..04480f3 --- /dev/null +++ b/openapi_client_udm/models/portals_folder_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsFolderList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PortalsFolderListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PortalsFolderList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PortalsFolderList. # noqa: E501 + + + :return: The embedded of this PortalsFolderList. # noqa: E501 + :rtype: PortalsFolderListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsFolderList. + + + :param embedded: The embedded of this PortalsFolderList. # noqa: E501 + :type embedded: PortalsFolderListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsFolderList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsFolderList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_folder_list_embedded.py b/openapi_client_udm/models/portals_folder_list_embedded.py new file mode 100644 index 0000000..ef3b279 --- /dev/null +++ b/openapi_client_udm/models/portals_folder_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsFolderListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PortalsFolder]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PortalsFolderListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PortalsFolderListEmbedded. # noqa: E501 + + + :return: The udmobject of this PortalsFolderListEmbedded. # noqa: E501 + :rtype: list[PortalsFolder] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PortalsFolderListEmbedded. + + + :param udmobject: The udmobject of this PortalsFolderListEmbedded. # noqa: E501 + :type udmobject: list[PortalsFolder] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsFolderListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsFolderListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_folder_request.py b/openapi_client_udm/models/portals_folder_request.py new file mode 100644 index 0000000..7673e99 --- /dev/null +++ b/openapi_client_udm/models/portals_folder_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsFolderRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PortalsFolderRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PortalsFolderRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsFolderRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsFolderRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsFolderRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsFolderRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsFolderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsFolderRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsFolderRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsFolderRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsFolderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsFolderRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsFolderRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsFolderRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsFolderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsFolderRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsFolderRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsFolderRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsFolderRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsFolderRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsFolderRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsFolderRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsFolderRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_folder_request_patch.py b/openapi_client_udm/models/portals_folder_request_patch.py new file mode 100644 index 0000000..966f1e2 --- /dev/null +++ b/openapi_client_udm/models/portals_folder_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsFolderRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PortalsFolderRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PortalsFolderRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsFolderRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsFolderRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsFolderRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsFolderRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsFolderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsFolderRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsFolderRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsFolderRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsFolderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsFolderRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsFolderRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsFolderRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsFolderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsFolderRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsFolderRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsFolderRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsFolderRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_folder_response_mixin.py b/openapi_client_udm/models/portals_folder_response_mixin.py new file mode 100644 index 0000000..d7d178c --- /dev/null +++ b/openapi_client_udm/models/portals_folder_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsFolderResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsFolderResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PortalsFolderResponseMixin. # noqa: E501 + + + :return: The links of this PortalsFolderResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsFolderResponseMixin. + + + :param links: The links of this PortalsFolderResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsFolderResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsFolderResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsFolderResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsFolderResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsFolderResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsFolderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsFolderResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsFolderResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsFolderResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsFolderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsFolderResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsFolderResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsFolderResponseMixin. # noqa: E501 + + + :return: The uri of this PortalsFolderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsFolderResponseMixin. + + + :param uri: The uri of this PortalsFolderResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsFolderResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsFolderResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_portal.py b/openapi_client_udm/models/portals_portal.py new file mode 100644 index 0000000..8929b7a --- /dev/null +++ b/openapi_client_udm/models/portals_portal.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsPortal(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsPortal - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this PortalsPortal. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsPortal. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsPortal. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsPortal. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsPortal. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsPortal. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsPortal. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsPortal. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsPortal. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsPortal. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsPortal. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsPortal. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsPortal. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsPortal. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsPortal. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsPortal. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsPortal. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsPortal. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsPortal. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsPortal. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this PortalsPortal. # noqa: E501 + + + :return: The links of this PortalsPortal. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsPortal. + + + :param links: The links of this PortalsPortal. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsPortal. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsPortal. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsPortal. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsPortal. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsPortal. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsPortal. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsPortal. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsPortal. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsPortal. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsPortal. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsPortal. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsPortal. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsPortal. # noqa: E501 + + + :return: The uri of this PortalsPortal. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsPortal. + + + :param uri: The uri of this PortalsPortal. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsPortal): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsPortal): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_portal_list.py b/openapi_client_udm/models/portals_portal_list.py new file mode 100644 index 0000000..07c0203 --- /dev/null +++ b/openapi_client_udm/models/portals_portal_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsPortalList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'PortalsPortalListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """PortalsPortalList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this PortalsPortalList. # noqa: E501 + + + :return: The embedded of this PortalsPortalList. # noqa: E501 + :rtype: PortalsPortalListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsPortalList. + + + :param embedded: The embedded of this PortalsPortalList. # noqa: E501 + :type embedded: PortalsPortalListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsPortalList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsPortalList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_portal_list_embedded.py b/openapi_client_udm/models/portals_portal_list_embedded.py new file mode 100644 index 0000000..3a34a3d --- /dev/null +++ b/openapi_client_udm/models/portals_portal_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsPortalListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[PortalsPortal]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """PortalsPortalListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this PortalsPortalListEmbedded. # noqa: E501 + + + :return: The udmobject of this PortalsPortalListEmbedded. # noqa: E501 + :rtype: list[PortalsPortal] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this PortalsPortalListEmbedded. + + + :param udmobject: The udmobject of this PortalsPortalListEmbedded. # noqa: E501 + :type udmobject: list[PortalsPortal] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsPortalListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsPortalListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_portal_request.py b/openapi_client_udm/models/portals_portal_request.py new file mode 100644 index 0000000..b87e9d9 --- /dev/null +++ b/openapi_client_udm/models/portals_portal_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsPortalRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """PortalsPortalRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this PortalsPortalRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsPortalRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsPortalRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsPortalRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsPortalRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsPortalRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsPortalRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsPortalRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsPortalRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsPortalRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsPortalRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsPortalRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsPortalRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsPortalRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsPortalRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsPortalRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this PortalsPortalRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this PortalsPortalRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this PortalsPortalRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this PortalsPortalRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsPortalRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsPortalRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_portal_request_patch.py b/openapi_client_udm/models/portals_portal_request_patch.py new file mode 100644 index 0000000..4eda0e5 --- /dev/null +++ b/openapi_client_udm/models/portals_portal_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsPortalRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """PortalsPortalRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this PortalsPortalRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this PortalsPortalRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this PortalsPortalRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this PortalsPortalRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this PortalsPortalRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this PortalsPortalRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PortalsPortalRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this PortalsPortalRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this PortalsPortalRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this PortalsPortalRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this PortalsPortalRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this PortalsPortalRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this PortalsPortalRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this PortalsPortalRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this PortalsPortalRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this PortalsPortalRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsPortalRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsPortalRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/portals_portal_response_mixin.py b/openapi_client_udm/models/portals_portal_response_mixin.py new file mode 100644 index 0000000..463e793 --- /dev/null +++ b/openapi_client_udm/models/portals_portal_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class PortalsPortalResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """PortalsPortalResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this PortalsPortalResponseMixin. # noqa: E501 + + + :return: The links of this PortalsPortalResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this PortalsPortalResponseMixin. + + + :param links: The links of this PortalsPortalResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this PortalsPortalResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this PortalsPortalResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this PortalsPortalResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this PortalsPortalResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this PortalsPortalResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this PortalsPortalResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this PortalsPortalResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this PortalsPortalResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this PortalsPortalResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this PortalsPortalResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this PortalsPortalResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this PortalsPortalResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this PortalsPortalResponseMixin. # noqa: E501 + + + :return: The uri of this PortalsPortalResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this PortalsPortalResponseMixin. + + + :param uri: The uri of this PortalsPortalResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PortalsPortalResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PortalsPortalResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_idpconfig.py b/openapi_client_udm/models/saml_idpconfig.py new file mode 100644 index 0000000..8995ecf --- /dev/null +++ b/openapi_client_udm/models/saml_idpconfig.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlIdpconfig(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SamlIdpconfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SamlIdpconfig. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SamlIdpconfig. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SamlIdpconfig. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SamlIdpconfig. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SamlIdpconfig. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SamlIdpconfig. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SamlIdpconfig. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SamlIdpconfig. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SamlIdpconfig. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SamlIdpconfig. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SamlIdpconfig. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SamlIdpconfig. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SamlIdpconfig. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SamlIdpconfig. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SamlIdpconfig. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SamlIdpconfig. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SamlIdpconfig. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SamlIdpconfig. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SamlIdpconfig. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SamlIdpconfig. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SamlIdpconfig. # noqa: E501 + + + :return: The links of this SamlIdpconfig. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SamlIdpconfig. + + + :param links: The links of this SamlIdpconfig. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SamlIdpconfig. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SamlIdpconfig. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SamlIdpconfig. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SamlIdpconfig. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SamlIdpconfig. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SamlIdpconfig. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SamlIdpconfig. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SamlIdpconfig. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SamlIdpconfig. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SamlIdpconfig. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SamlIdpconfig. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SamlIdpconfig. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SamlIdpconfig. # noqa: E501 + + + :return: The uri of this SamlIdpconfig. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SamlIdpconfig. + + + :param uri: The uri of this SamlIdpconfig. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlIdpconfig): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlIdpconfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_idpconfig_list.py b/openapi_client_udm/models/saml_idpconfig_list.py new file mode 100644 index 0000000..905778a --- /dev/null +++ b/openapi_client_udm/models/saml_idpconfig_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlIdpconfigList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SamlIdpconfigListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SamlIdpconfigList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SamlIdpconfigList. # noqa: E501 + + + :return: The embedded of this SamlIdpconfigList. # noqa: E501 + :rtype: SamlIdpconfigListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SamlIdpconfigList. + + + :param embedded: The embedded of this SamlIdpconfigList. # noqa: E501 + :type embedded: SamlIdpconfigListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlIdpconfigList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlIdpconfigList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_idpconfig_list_embedded.py b/openapi_client_udm/models/saml_idpconfig_list_embedded.py new file mode 100644 index 0000000..bdaeb96 --- /dev/null +++ b/openapi_client_udm/models/saml_idpconfig_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlIdpconfigListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SamlIdpconfig]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SamlIdpconfigListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SamlIdpconfigListEmbedded. # noqa: E501 + + + :return: The udmobject of this SamlIdpconfigListEmbedded. # noqa: E501 + :rtype: list[SamlIdpconfig] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SamlIdpconfigListEmbedded. + + + :param udmobject: The udmobject of this SamlIdpconfigListEmbedded. # noqa: E501 + :type udmobject: list[SamlIdpconfig] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlIdpconfigListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlIdpconfigListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_idpconfig_request.py b/openapi_client_udm/models/saml_idpconfig_request.py new file mode 100644 index 0000000..9f96d54 --- /dev/null +++ b/openapi_client_udm/models/saml_idpconfig_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlIdpconfigRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SamlIdpconfigRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SamlIdpconfigRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SamlIdpconfigRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SamlIdpconfigRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SamlIdpconfigRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SamlIdpconfigRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SamlIdpconfigRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SamlIdpconfigRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SamlIdpconfigRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SamlIdpconfigRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SamlIdpconfigRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SamlIdpconfigRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SamlIdpconfigRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SamlIdpconfigRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SamlIdpconfigRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SamlIdpconfigRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SamlIdpconfigRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SamlIdpconfigRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SamlIdpconfigRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SamlIdpconfigRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SamlIdpconfigRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlIdpconfigRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlIdpconfigRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_idpconfig_request_patch.py b/openapi_client_udm/models/saml_idpconfig_request_patch.py new file mode 100644 index 0000000..f0407b5 --- /dev/null +++ b/openapi_client_udm/models/saml_idpconfig_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlIdpconfigRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SamlIdpconfigRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SamlIdpconfigRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SamlIdpconfigRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SamlIdpconfigRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SamlIdpconfigRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SamlIdpconfigRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SamlIdpconfigRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SamlIdpconfigRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SamlIdpconfigRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SamlIdpconfigRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SamlIdpconfigRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SamlIdpconfigRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SamlIdpconfigRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SamlIdpconfigRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SamlIdpconfigRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SamlIdpconfigRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SamlIdpconfigRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlIdpconfigRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlIdpconfigRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_idpconfig_response_mixin.py b/openapi_client_udm/models/saml_idpconfig_response_mixin.py new file mode 100644 index 0000000..4e797d7 --- /dev/null +++ b/openapi_client_udm/models/saml_idpconfig_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlIdpconfigResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SamlIdpconfigResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SamlIdpconfigResponseMixin. # noqa: E501 + + + :return: The links of this SamlIdpconfigResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SamlIdpconfigResponseMixin. + + + :param links: The links of this SamlIdpconfigResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SamlIdpconfigResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SamlIdpconfigResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SamlIdpconfigResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SamlIdpconfigResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SamlIdpconfigResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SamlIdpconfigResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SamlIdpconfigResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SamlIdpconfigResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SamlIdpconfigResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SamlIdpconfigResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SamlIdpconfigResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SamlIdpconfigResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SamlIdpconfigResponseMixin. # noqa: E501 + + + :return: The uri of this SamlIdpconfigResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SamlIdpconfigResponseMixin. + + + :param uri: The uri of this SamlIdpconfigResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlIdpconfigResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlIdpconfigResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_serviceprovider.py b/openapi_client_udm/models/saml_serviceprovider.py new file mode 100644 index 0000000..c0807b8 --- /dev/null +++ b/openapi_client_udm/models/saml_serviceprovider.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlServiceprovider(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SamlServiceprovider - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SamlServiceprovider. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SamlServiceprovider. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SamlServiceprovider. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SamlServiceprovider. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SamlServiceprovider. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SamlServiceprovider. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SamlServiceprovider. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SamlServiceprovider. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SamlServiceprovider. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SamlServiceprovider. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SamlServiceprovider. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SamlServiceprovider. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SamlServiceprovider. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SamlServiceprovider. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SamlServiceprovider. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SamlServiceprovider. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SamlServiceprovider. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SamlServiceprovider. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SamlServiceprovider. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SamlServiceprovider. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SamlServiceprovider. # noqa: E501 + + + :return: The links of this SamlServiceprovider. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SamlServiceprovider. + + + :param links: The links of this SamlServiceprovider. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SamlServiceprovider. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SamlServiceprovider. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SamlServiceprovider. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SamlServiceprovider. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SamlServiceprovider. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SamlServiceprovider. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SamlServiceprovider. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SamlServiceprovider. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SamlServiceprovider. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SamlServiceprovider. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SamlServiceprovider. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SamlServiceprovider. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SamlServiceprovider. # noqa: E501 + + + :return: The uri of this SamlServiceprovider. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SamlServiceprovider. + + + :param uri: The uri of this SamlServiceprovider. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlServiceprovider): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlServiceprovider): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_serviceprovider_list.py b/openapi_client_udm/models/saml_serviceprovider_list.py new file mode 100644 index 0000000..51ce88d --- /dev/null +++ b/openapi_client_udm/models/saml_serviceprovider_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlServiceproviderList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SamlServiceproviderListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SamlServiceproviderList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SamlServiceproviderList. # noqa: E501 + + + :return: The embedded of this SamlServiceproviderList. # noqa: E501 + :rtype: SamlServiceproviderListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SamlServiceproviderList. + + + :param embedded: The embedded of this SamlServiceproviderList. # noqa: E501 + :type embedded: SamlServiceproviderListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlServiceproviderList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlServiceproviderList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_serviceprovider_list_embedded.py b/openapi_client_udm/models/saml_serviceprovider_list_embedded.py new file mode 100644 index 0000000..e911da5 --- /dev/null +++ b/openapi_client_udm/models/saml_serviceprovider_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlServiceproviderListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SamlServiceprovider]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SamlServiceproviderListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SamlServiceproviderListEmbedded. # noqa: E501 + + + :return: The udmobject of this SamlServiceproviderListEmbedded. # noqa: E501 + :rtype: list[SamlServiceprovider] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SamlServiceproviderListEmbedded. + + + :param udmobject: The udmobject of this SamlServiceproviderListEmbedded. # noqa: E501 + :type udmobject: list[SamlServiceprovider] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlServiceproviderListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlServiceproviderListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_serviceprovider_request.py b/openapi_client_udm/models/saml_serviceprovider_request.py new file mode 100644 index 0000000..13022b2 --- /dev/null +++ b/openapi_client_udm/models/saml_serviceprovider_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlServiceproviderRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SamlServiceproviderRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SamlServiceproviderRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SamlServiceproviderRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SamlServiceproviderRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SamlServiceproviderRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SamlServiceproviderRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SamlServiceproviderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SamlServiceproviderRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SamlServiceproviderRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SamlServiceproviderRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SamlServiceproviderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SamlServiceproviderRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SamlServiceproviderRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SamlServiceproviderRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SamlServiceproviderRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SamlServiceproviderRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SamlServiceproviderRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SamlServiceproviderRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SamlServiceproviderRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SamlServiceproviderRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SamlServiceproviderRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlServiceproviderRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlServiceproviderRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_serviceprovider_request_patch.py b/openapi_client_udm/models/saml_serviceprovider_request_patch.py new file mode 100644 index 0000000..28a73ed --- /dev/null +++ b/openapi_client_udm/models/saml_serviceprovider_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlServiceproviderRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SamlServiceproviderRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SamlServiceproviderRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SamlServiceproviderRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SamlServiceproviderRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SamlServiceproviderRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SamlServiceproviderRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SamlServiceproviderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SamlServiceproviderRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SamlServiceproviderRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SamlServiceproviderRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SamlServiceproviderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SamlServiceproviderRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SamlServiceproviderRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SamlServiceproviderRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SamlServiceproviderRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SamlServiceproviderRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SamlServiceproviderRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlServiceproviderRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlServiceproviderRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/saml_serviceprovider_response_mixin.py b/openapi_client_udm/models/saml_serviceprovider_response_mixin.py new file mode 100644 index 0000000..5fdb64d --- /dev/null +++ b/openapi_client_udm/models/saml_serviceprovider_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SamlServiceproviderResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SamlServiceproviderResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SamlServiceproviderResponseMixin. # noqa: E501 + + + :return: The links of this SamlServiceproviderResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SamlServiceproviderResponseMixin. + + + :param links: The links of this SamlServiceproviderResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SamlServiceproviderResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SamlServiceproviderResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SamlServiceproviderResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SamlServiceproviderResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SamlServiceproviderResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SamlServiceproviderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SamlServiceproviderResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SamlServiceproviderResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SamlServiceproviderResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SamlServiceproviderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SamlServiceproviderResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SamlServiceproviderResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SamlServiceproviderResponseMixin. # noqa: E501 + + + :return: The uri of this SamlServiceproviderResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SamlServiceproviderResponseMixin. + + + :param uri: The uri of this SamlServiceproviderResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SamlServiceproviderResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SamlServiceproviderResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_cn.py b/openapi_client_udm/models/settings_cn.py new file mode 100644 index 0000000..370e2a0 --- /dev/null +++ b/openapi_client_udm/models/settings_cn.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsCn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsCnPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsCn - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsCn. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsCn. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsCn. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsCn. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsCn. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsCn. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsCn. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsCn. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsCn. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsCn. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsCn. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsCn. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsCn. # noqa: E501 + + + :return: The policies of this SettingsCn. # noqa: E501 + :rtype: SettingsCnPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsCn. + + + :param policies: The policies of this SettingsCn. # noqa: E501 + :type policies: SettingsCnPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsCn. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsCn. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsCn. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsCn. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsCn. # noqa: E501 + + + :return: The links of this SettingsCn. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsCn. + + + :param links: The links of this SettingsCn. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsCn. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsCn. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsCn. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsCn. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsCn. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsCn. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsCn. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsCn. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsCn. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsCn. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsCn. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsCn. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsCn. # noqa: E501 + + + :return: The uri of this SettingsCn. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsCn. + + + :param uri: The uri of this SettingsCn. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsCn): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsCn): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_cn_list.py b/openapi_client_udm/models/settings_cn_list.py new file mode 100644 index 0000000..b10cb65 --- /dev/null +++ b/openapi_client_udm/models/settings_cn_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsCnList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsCnListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsCnList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsCnList. # noqa: E501 + + + :return: The embedded of this SettingsCnList. # noqa: E501 + :rtype: SettingsCnListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsCnList. + + + :param embedded: The embedded of this SettingsCnList. # noqa: E501 + :type embedded: SettingsCnListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsCnList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsCnList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_cn_list_embedded.py b/openapi_client_udm/models/settings_cn_list_embedded.py new file mode 100644 index 0000000..36eb077 --- /dev/null +++ b/openapi_client_udm/models/settings_cn_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsCnListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsCn]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsCnListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsCnListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsCnListEmbedded. # noqa: E501 + :rtype: list[SettingsCn] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsCnListEmbedded. + + + :param udmobject: The udmobject of this SettingsCnListEmbedded. # noqa: E501 + :type udmobject: list[SettingsCn] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsCnListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsCnListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_cn_policies.py b/openapi_client_udm/models/settings_cn_policies.py new file mode 100644 index 0000000..bd48948 --- /dev/null +++ b/openapi_client_udm/models/settings_cn_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsCnPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """SettingsCnPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this SettingsCnPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this SettingsCnPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this SettingsCnPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this SettingsCnPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this SettingsCnPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this SettingsCnPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this SettingsCnPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this SettingsCnPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this SettingsCnPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this SettingsCnPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this SettingsCnPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this SettingsCnPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this SettingsCnPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this SettingsCnPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this SettingsCnPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this SettingsCnPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this SettingsCnPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this SettingsCnPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this SettingsCnPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this SettingsCnPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this SettingsCnPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this SettingsCnPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this SettingsCnPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this SettingsCnPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this SettingsCnPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this SettingsCnPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this SettingsCnPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this SettingsCnPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this SettingsCnPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this SettingsCnPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this SettingsCnPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this SettingsCnPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this SettingsCnPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this SettingsCnPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this SettingsCnPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this SettingsCnPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this SettingsCnPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this SettingsCnPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this SettingsCnPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this SettingsCnPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this SettingsCnPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this SettingsCnPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this SettingsCnPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this SettingsCnPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this SettingsCnPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this SettingsCnPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this SettingsCnPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this SettingsCnPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this SettingsCnPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this SettingsCnPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this SettingsCnPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this SettingsCnPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this SettingsCnPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this SettingsCnPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this SettingsCnPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this SettingsCnPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this SettingsCnPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this SettingsCnPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this SettingsCnPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this SettingsCnPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this SettingsCnPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this SettingsCnPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this SettingsCnPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this SettingsCnPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this SettingsCnPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this SettingsCnPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this SettingsCnPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this SettingsCnPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this SettingsCnPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this SettingsCnPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this SettingsCnPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this SettingsCnPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this SettingsCnPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsCnPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsCnPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_cn_request.py b/openapi_client_udm/models/settings_cn_request.py new file mode 100644 index 0000000..c769171 --- /dev/null +++ b/openapi_client_udm/models/settings_cn_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsCnRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsCnPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsCnRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsCnRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsCnRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsCnRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsCnRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsCnRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsCnRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsCnRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsCnRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsCnRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsCnRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsCnRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsCnRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsCnRequest. # noqa: E501 + + + :return: The policies of this SettingsCnRequest. # noqa: E501 + :rtype: SettingsCnPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsCnRequest. + + + :param policies: The policies of this SettingsCnRequest. # noqa: E501 + :type policies: SettingsCnPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsCnRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsCnRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsCnRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsCnRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsCnRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsCnRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_cn_request_patch.py b/openapi_client_udm/models/settings_cn_request_patch.py new file mode 100644 index 0000000..f5305e8 --- /dev/null +++ b/openapi_client_udm/models/settings_cn_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsCnRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsCnPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsCnRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsCnRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsCnRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsCnRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsCnRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsCnRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsCnRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsCnRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsCnRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsCnRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsCnRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsCnRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsCnRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsCnRequestPatch. # noqa: E501 + + + :return: The policies of this SettingsCnRequestPatch. # noqa: E501 + :rtype: SettingsCnPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsCnRequestPatch. + + + :param policies: The policies of this SettingsCnRequestPatch. # noqa: E501 + :type policies: SettingsCnPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsCnRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsCnRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_cn_response_mixin.py b/openapi_client_udm/models/settings_cn_response_mixin.py new file mode 100644 index 0000000..ec29f4d --- /dev/null +++ b/openapi_client_udm/models/settings_cn_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsCnResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsCnResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsCnResponseMixin. # noqa: E501 + + + :return: The links of this SettingsCnResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsCnResponseMixin. + + + :param links: The links of this SettingsCnResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsCnResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsCnResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsCnResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsCnResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsCnResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsCnResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsCnResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsCnResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsCnResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsCnResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsCnResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsCnResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsCnResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsCnResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsCnResponseMixin. + + + :param uri: The uri of this SettingsCnResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsCnResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsCnResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_data.py b/openapi_client_udm/models/settings_data.py new file mode 100644 index 0000000..9d7267f --- /dev/null +++ b/openapi_client_udm/models/settings_data.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsData(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsData - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsData. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsData. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsData. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsData. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsData. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsData. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsData. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsData. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsData. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsData. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsData. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsData. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsData. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsData. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsData. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsData. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsData. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsData. # noqa: E501 + + + :return: The links of this SettingsData. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsData. + + + :param links: The links of this SettingsData. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsData. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsData. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsData. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsData. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsData. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsData. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsData. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsData. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsData. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsData. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsData. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsData. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsData. # noqa: E501 + + + :return: The uri of this SettingsData. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsData. + + + :param uri: The uri of this SettingsData. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsData): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsData): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_data_list.py b/openapi_client_udm/models/settings_data_list.py new file mode 100644 index 0000000..0d2e843 --- /dev/null +++ b/openapi_client_udm/models/settings_data_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDataList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsDataListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsDataList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsDataList. # noqa: E501 + + + :return: The embedded of this SettingsDataList. # noqa: E501 + :rtype: SettingsDataListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsDataList. + + + :param embedded: The embedded of this SettingsDataList. # noqa: E501 + :type embedded: SettingsDataListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDataList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDataList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_data_list_embedded.py b/openapi_client_udm/models/settings_data_list_embedded.py new file mode 100644 index 0000000..4448456 --- /dev/null +++ b/openapi_client_udm/models/settings_data_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDataListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsData]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsDataListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsDataListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsDataListEmbedded. # noqa: E501 + :rtype: list[SettingsData] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsDataListEmbedded. + + + :param udmobject: The udmobject of this SettingsDataListEmbedded. # noqa: E501 + :type udmobject: list[SettingsData] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDataListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDataListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_data_request.py b/openapi_client_udm/models/settings_data_request.py new file mode 100644 index 0000000..4c4db04 --- /dev/null +++ b/openapi_client_udm/models/settings_data_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDataRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsDataRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsDataRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsDataRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsDataRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsDataRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsDataRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsDataRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsDataRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsDataRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsDataRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsDataRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsDataRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsDataRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsDataRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsDataRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsDataRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsDataRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsDataRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsDataRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsDataRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsDataRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDataRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDataRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_data_request_patch.py b/openapi_client_udm/models/settings_data_request_patch.py new file mode 100644 index 0000000..67c3052 --- /dev/null +++ b/openapi_client_udm/models/settings_data_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDataRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsDataRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsDataRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsDataRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsDataRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsDataRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsDataRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsDataRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsDataRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsDataRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsDataRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsDataRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsDataRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsDataRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsDataRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsDataRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsDataRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsDataRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDataRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDataRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_data_response_mixin.py b/openapi_client_udm/models/settings_data_response_mixin.py new file mode 100644 index 0000000..bac95ca --- /dev/null +++ b/openapi_client_udm/models/settings_data_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDataResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsDataResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsDataResponseMixin. # noqa: E501 + + + :return: The links of this SettingsDataResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsDataResponseMixin. + + + :param links: The links of this SettingsDataResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsDataResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsDataResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsDataResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsDataResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsDataResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsDataResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsDataResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsDataResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsDataResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsDataResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsDataResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsDataResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsDataResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsDataResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsDataResponseMixin. + + + :param uri: The uri of this SettingsDataResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDataResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDataResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_default.py b/openapi_client_udm/models/settings_default.py new file mode 100644 index 0000000..79b9059 --- /dev/null +++ b/openapi_client_udm/models/settings_default.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDefault(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsDefault - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsDefault. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsDefault. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsDefault. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsDefault. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsDefault. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsDefault. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsDefault. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsDefault. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsDefault. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsDefault. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsDefault. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsDefault. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsDefault. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsDefault. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsDefault. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsDefault. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsDefault. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsDefault. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsDefault. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsDefault. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsDefault. # noqa: E501 + + + :return: The links of this SettingsDefault. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsDefault. + + + :param links: The links of this SettingsDefault. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsDefault. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsDefault. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsDefault. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsDefault. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsDefault. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsDefault. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsDefault. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsDefault. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsDefault. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsDefault. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsDefault. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsDefault. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsDefault. # noqa: E501 + + + :return: The uri of this SettingsDefault. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsDefault. + + + :param uri: The uri of this SettingsDefault. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDefault): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDefault): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_default_list.py b/openapi_client_udm/models/settings_default_list.py new file mode 100644 index 0000000..9bb9d9a --- /dev/null +++ b/openapi_client_udm/models/settings_default_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDefaultList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsDefaultListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsDefaultList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsDefaultList. # noqa: E501 + + + :return: The embedded of this SettingsDefaultList. # noqa: E501 + :rtype: SettingsDefaultListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsDefaultList. + + + :param embedded: The embedded of this SettingsDefaultList. # noqa: E501 + :type embedded: SettingsDefaultListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDefaultList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDefaultList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_default_list_embedded.py b/openapi_client_udm/models/settings_default_list_embedded.py new file mode 100644 index 0000000..b1c282c --- /dev/null +++ b/openapi_client_udm/models/settings_default_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDefaultListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsDefault]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsDefaultListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsDefaultListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsDefaultListEmbedded. # noqa: E501 + :rtype: list[SettingsDefault] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsDefaultListEmbedded. + + + :param udmobject: The udmobject of this SettingsDefaultListEmbedded. # noqa: E501 + :type udmobject: list[SettingsDefault] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDefaultListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDefaultListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_default_request.py b/openapi_client_udm/models/settings_default_request.py new file mode 100644 index 0000000..1bdbeb9 --- /dev/null +++ b/openapi_client_udm/models/settings_default_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDefaultRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsDefaultRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsDefaultRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsDefaultRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsDefaultRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsDefaultRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsDefaultRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsDefaultRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsDefaultRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsDefaultRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsDefaultRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsDefaultRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsDefaultRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsDefaultRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsDefaultRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsDefaultRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsDefaultRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsDefaultRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsDefaultRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsDefaultRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsDefaultRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsDefaultRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDefaultRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDefaultRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_default_request_patch.py b/openapi_client_udm/models/settings_default_request_patch.py new file mode 100644 index 0000000..bcf12fd --- /dev/null +++ b/openapi_client_udm/models/settings_default_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDefaultRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsDefaultRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsDefaultRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsDefaultRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsDefaultRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsDefaultRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsDefaultRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsDefaultRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsDefaultRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsDefaultRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsDefaultRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsDefaultRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsDefaultRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsDefaultRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsDefaultRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsDefaultRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsDefaultRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsDefaultRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDefaultRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDefaultRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_default_response_mixin.py b/openapi_client_udm/models/settings_default_response_mixin.py new file mode 100644 index 0000000..7e67221 --- /dev/null +++ b/openapi_client_udm/models/settings_default_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDefaultResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsDefaultResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsDefaultResponseMixin. # noqa: E501 + + + :return: The links of this SettingsDefaultResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsDefaultResponseMixin. + + + :param links: The links of this SettingsDefaultResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsDefaultResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsDefaultResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsDefaultResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsDefaultResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsDefaultResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsDefaultResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsDefaultResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsDefaultResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsDefaultResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsDefaultResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsDefaultResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsDefaultResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsDefaultResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsDefaultResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsDefaultResponseMixin. + + + :param uri: The uri of this SettingsDefaultResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDefaultResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDefaultResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_directory.py b/openapi_client_udm/models/settings_directory.py new file mode 100644 index 0000000..1ae2939 --- /dev/null +++ b/openapi_client_udm/models/settings_directory.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDirectory(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsDirectory - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsDirectory. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsDirectory. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsDirectory. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsDirectory. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsDirectory. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsDirectory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsDirectory. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsDirectory. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsDirectory. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsDirectory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsDirectory. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsDirectory. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsDirectory. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsDirectory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsDirectory. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsDirectory. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsDirectory. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsDirectory. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsDirectory. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsDirectory. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsDirectory. # noqa: E501 + + + :return: The links of this SettingsDirectory. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsDirectory. + + + :param links: The links of this SettingsDirectory. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsDirectory. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsDirectory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsDirectory. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsDirectory. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsDirectory. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsDirectory. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsDirectory. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsDirectory. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsDirectory. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsDirectory. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsDirectory. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsDirectory. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsDirectory. # noqa: E501 + + + :return: The uri of this SettingsDirectory. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsDirectory. + + + :param uri: The uri of this SettingsDirectory. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDirectory): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDirectory): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_directory_list.py b/openapi_client_udm/models/settings_directory_list.py new file mode 100644 index 0000000..fd916a9 --- /dev/null +++ b/openapi_client_udm/models/settings_directory_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDirectoryList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsDirectoryListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsDirectoryList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsDirectoryList. # noqa: E501 + + + :return: The embedded of this SettingsDirectoryList. # noqa: E501 + :rtype: SettingsDirectoryListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsDirectoryList. + + + :param embedded: The embedded of this SettingsDirectoryList. # noqa: E501 + :type embedded: SettingsDirectoryListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDirectoryList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDirectoryList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_directory_list_embedded.py b/openapi_client_udm/models/settings_directory_list_embedded.py new file mode 100644 index 0000000..eef2909 --- /dev/null +++ b/openapi_client_udm/models/settings_directory_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDirectoryListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsDirectory]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsDirectoryListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsDirectoryListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsDirectoryListEmbedded. # noqa: E501 + :rtype: list[SettingsDirectory] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsDirectoryListEmbedded. + + + :param udmobject: The udmobject of this SettingsDirectoryListEmbedded. # noqa: E501 + :type udmobject: list[SettingsDirectory] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDirectoryListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDirectoryListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_directory_request.py b/openapi_client_udm/models/settings_directory_request.py new file mode 100644 index 0000000..1c49cd9 --- /dev/null +++ b/openapi_client_udm/models/settings_directory_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDirectoryRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsDirectoryRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsDirectoryRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsDirectoryRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsDirectoryRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsDirectoryRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsDirectoryRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsDirectoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsDirectoryRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsDirectoryRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsDirectoryRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsDirectoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsDirectoryRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsDirectoryRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsDirectoryRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsDirectoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsDirectoryRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsDirectoryRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsDirectoryRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsDirectoryRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsDirectoryRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsDirectoryRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDirectoryRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDirectoryRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_directory_request_patch.py b/openapi_client_udm/models/settings_directory_request_patch.py new file mode 100644 index 0000000..3fdfdcd --- /dev/null +++ b/openapi_client_udm/models/settings_directory_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDirectoryRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsDirectoryRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsDirectoryRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsDirectoryRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsDirectoryRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsDirectoryRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsDirectoryRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsDirectoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsDirectoryRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsDirectoryRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsDirectoryRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsDirectoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsDirectoryRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsDirectoryRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsDirectoryRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsDirectoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsDirectoryRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsDirectoryRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDirectoryRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDirectoryRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_directory_response_mixin.py b/openapi_client_udm/models/settings_directory_response_mixin.py new file mode 100644 index 0000000..ef5e02f --- /dev/null +++ b/openapi_client_udm/models/settings_directory_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsDirectoryResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsDirectoryResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsDirectoryResponseMixin. # noqa: E501 + + + :return: The links of this SettingsDirectoryResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsDirectoryResponseMixin. + + + :param links: The links of this SettingsDirectoryResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsDirectoryResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsDirectoryResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsDirectoryResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsDirectoryResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsDirectoryResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsDirectoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsDirectoryResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsDirectoryResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsDirectoryResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsDirectoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsDirectoryResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsDirectoryResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsDirectoryResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsDirectoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsDirectoryResponseMixin. + + + :param uri: The uri of this SettingsDirectoryResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsDirectoryResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsDirectoryResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_attribute.py b/openapi_client_udm/models/settings_extended_attribute.py new file mode 100644 index 0000000..672652c --- /dev/null +++ b/openapi_client_udm/models/settings_extended_attribute.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedAttribute(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedAttribute - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsExtendedAttribute. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsExtendedAttribute. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsExtendedAttribute. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsExtendedAttribute. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsExtendedAttribute. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsExtendedAttribute. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsExtendedAttribute. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsExtendedAttribute. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsExtendedAttribute. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsExtendedAttribute. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsExtendedAttribute. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsExtendedAttribute. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsExtendedAttribute. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsExtendedAttribute. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsExtendedAttribute. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsExtendedAttribute. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsExtendedAttribute. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsExtendedAttribute. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsExtendedAttribute. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsExtendedAttribute. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsExtendedAttribute. # noqa: E501 + + + :return: The links of this SettingsExtendedAttribute. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsExtendedAttribute. + + + :param links: The links of this SettingsExtendedAttribute. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsExtendedAttribute. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsExtendedAttribute. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsExtendedAttribute. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsExtendedAttribute. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsExtendedAttribute. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsExtendedAttribute. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsExtendedAttribute. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsExtendedAttribute. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsExtendedAttribute. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsExtendedAttribute. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsExtendedAttribute. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsExtendedAttribute. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsExtendedAttribute. # noqa: E501 + + + :return: The uri of this SettingsExtendedAttribute. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsExtendedAttribute. + + + :param uri: The uri of this SettingsExtendedAttribute. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedAttribute): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedAttribute): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_attribute_list.py b/openapi_client_udm/models/settings_extended_attribute_list.py new file mode 100644 index 0000000..43a0f0c --- /dev/null +++ b/openapi_client_udm/models/settings_extended_attribute_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedAttributeList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsExtendedAttributeListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedAttributeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsExtendedAttributeList. # noqa: E501 + + + :return: The embedded of this SettingsExtendedAttributeList. # noqa: E501 + :rtype: SettingsExtendedAttributeListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsExtendedAttributeList. + + + :param embedded: The embedded of this SettingsExtendedAttributeList. # noqa: E501 + :type embedded: SettingsExtendedAttributeListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedAttributeList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedAttributeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_attribute_list_embedded.py b/openapi_client_udm/models/settings_extended_attribute_list_embedded.py new file mode 100644 index 0000000..019d10e --- /dev/null +++ b/openapi_client_udm/models/settings_extended_attribute_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedAttributeListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsExtendedAttribute]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedAttributeListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsExtendedAttributeListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsExtendedAttributeListEmbedded. # noqa: E501 + :rtype: list[SettingsExtendedAttribute] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsExtendedAttributeListEmbedded. + + + :param udmobject: The udmobject of this SettingsExtendedAttributeListEmbedded. # noqa: E501 + :type udmobject: list[SettingsExtendedAttribute] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedAttributeListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedAttributeListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_attribute_request.py b/openapi_client_udm/models/settings_extended_attribute_request.py new file mode 100644 index 0000000..08128bd --- /dev/null +++ b/openapi_client_udm/models/settings_extended_attribute_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedAttributeRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedAttributeRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsExtendedAttributeRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsExtendedAttributeRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsExtendedAttributeRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsExtendedAttributeRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsExtendedAttributeRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsExtendedAttributeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsExtendedAttributeRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsExtendedAttributeRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsExtendedAttributeRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsExtendedAttributeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsExtendedAttributeRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsExtendedAttributeRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsExtendedAttributeRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsExtendedAttributeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsExtendedAttributeRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsExtendedAttributeRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsExtendedAttributeRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsExtendedAttributeRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsExtendedAttributeRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsExtendedAttributeRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedAttributeRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedAttributeRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_attribute_request_patch.py b/openapi_client_udm/models/settings_extended_attribute_request_patch.py new file mode 100644 index 0000000..501b6d9 --- /dev/null +++ b/openapi_client_udm/models/settings_extended_attribute_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedAttributeRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedAttributeRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsExtendedAttributeRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsExtendedAttributeRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsExtendedAttributeRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsExtendedAttributeRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsExtendedAttributeRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedAttributeRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedAttributeRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_attribute_response_mixin.py b/openapi_client_udm/models/settings_extended_attribute_response_mixin.py new file mode 100644 index 0000000..4bbd3fe --- /dev/null +++ b/openapi_client_udm/models/settings_extended_attribute_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedAttributeResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedAttributeResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + + + :return: The links of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsExtendedAttributeResponseMixin. + + + :param links: The links of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsExtendedAttributeResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsExtendedAttributeResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsExtendedAttributeResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsExtendedAttributeResponseMixin. + + + :param uri: The uri of this SettingsExtendedAttributeResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedAttributeResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedAttributeResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_options.py b/openapi_client_udm/models/settings_extended_options.py new file mode 100644 index 0000000..904904f --- /dev/null +++ b/openapi_client_udm/models/settings_extended_options.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsExtendedOptions. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsExtendedOptions. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsExtendedOptions. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsExtendedOptions. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsExtendedOptions. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsExtendedOptions. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsExtendedOptions. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsExtendedOptions. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsExtendedOptions. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsExtendedOptions. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsExtendedOptions. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsExtendedOptions. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsExtendedOptions. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsExtendedOptions. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsExtendedOptions. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsExtendedOptions. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsExtendedOptions. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsExtendedOptions. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsExtendedOptions. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsExtendedOptions. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsExtendedOptions. # noqa: E501 + + + :return: The links of this SettingsExtendedOptions. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsExtendedOptions. + + + :param links: The links of this SettingsExtendedOptions. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsExtendedOptions. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsExtendedOptions. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsExtendedOptions. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsExtendedOptions. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsExtendedOptions. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsExtendedOptions. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsExtendedOptions. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsExtendedOptions. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsExtendedOptions. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsExtendedOptions. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsExtendedOptions. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsExtendedOptions. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsExtendedOptions. # noqa: E501 + + + :return: The uri of this SettingsExtendedOptions. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsExtendedOptions. + + + :param uri: The uri of this SettingsExtendedOptions. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_options_list.py b/openapi_client_udm/models/settings_extended_options_list.py new file mode 100644 index 0000000..e698db4 --- /dev/null +++ b/openapi_client_udm/models/settings_extended_options_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedOptionsList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsExtendedOptionsListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedOptionsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsExtendedOptionsList. # noqa: E501 + + + :return: The embedded of this SettingsExtendedOptionsList. # noqa: E501 + :rtype: SettingsExtendedOptionsListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsExtendedOptionsList. + + + :param embedded: The embedded of this SettingsExtendedOptionsList. # noqa: E501 + :type embedded: SettingsExtendedOptionsListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedOptionsList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedOptionsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_options_list_embedded.py b/openapi_client_udm/models/settings_extended_options_list_embedded.py new file mode 100644 index 0000000..417f63a --- /dev/null +++ b/openapi_client_udm/models/settings_extended_options_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedOptionsListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsExtendedOptions]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedOptionsListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsExtendedOptionsListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsExtendedOptionsListEmbedded. # noqa: E501 + :rtype: list[SettingsExtendedOptions] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsExtendedOptionsListEmbedded. + + + :param udmobject: The udmobject of this SettingsExtendedOptionsListEmbedded. # noqa: E501 + :type udmobject: list[SettingsExtendedOptions] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedOptionsListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedOptionsListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_options_request.py b/openapi_client_udm/models/settings_extended_options_request.py new file mode 100644 index 0000000..a3c5d0c --- /dev/null +++ b/openapi_client_udm/models/settings_extended_options_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedOptionsRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedOptionsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsExtendedOptionsRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsExtendedOptionsRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsExtendedOptionsRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsExtendedOptionsRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsExtendedOptionsRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsExtendedOptionsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsExtendedOptionsRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsExtendedOptionsRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsExtendedOptionsRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsExtendedOptionsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsExtendedOptionsRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsExtendedOptionsRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsExtendedOptionsRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsExtendedOptionsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsExtendedOptionsRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsExtendedOptionsRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsExtendedOptionsRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsExtendedOptionsRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsExtendedOptionsRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsExtendedOptionsRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedOptionsRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedOptionsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_options_request_patch.py b/openapi_client_udm/models/settings_extended_options_request_patch.py new file mode 100644 index 0000000..ad53125 --- /dev/null +++ b/openapi_client_udm/models/settings_extended_options_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedOptionsRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedOptionsRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsExtendedOptionsRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsExtendedOptionsRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsExtendedOptionsRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsExtendedOptionsRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsExtendedOptionsRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedOptionsRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedOptionsRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_extended_options_response_mixin.py b/openapi_client_udm/models/settings_extended_options_response_mixin.py new file mode 100644 index 0000000..d2c202e --- /dev/null +++ b/openapi_client_udm/models/settings_extended_options_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsExtendedOptionsResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsExtendedOptionsResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + + + :return: The links of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsExtendedOptionsResponseMixin. + + + :param links: The links of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsExtendedOptionsResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsExtendedOptionsResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsExtendedOptionsResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsExtendedOptionsResponseMixin. + + + :param uri: The uri of this SettingsExtendedOptionsResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsExtendedOptionsResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsExtendedOptionsResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapacl.py b/openapi_client_udm/models/settings_ldapacl.py new file mode 100644 index 0000000..56483ba --- /dev/null +++ b/openapi_client_udm/models/settings_ldapacl.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapacl(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapacl - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsLdapacl. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLdapacl. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLdapacl. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLdapacl. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLdapacl. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLdapacl. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLdapacl. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLdapacl. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLdapacl. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLdapacl. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLdapacl. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLdapacl. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLdapacl. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLdapacl. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLdapacl. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLdapacl. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsLdapacl. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsLdapacl. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsLdapacl. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsLdapacl. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsLdapacl. # noqa: E501 + + + :return: The links of this SettingsLdapacl. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsLdapacl. + + + :param links: The links of this SettingsLdapacl. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsLdapacl. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsLdapacl. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLdapacl. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsLdapacl. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsLdapacl. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsLdapacl. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsLdapacl. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsLdapacl. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsLdapacl. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsLdapacl. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsLdapacl. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsLdapacl. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsLdapacl. # noqa: E501 + + + :return: The uri of this SettingsLdapacl. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsLdapacl. + + + :param uri: The uri of this SettingsLdapacl. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapacl): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapacl): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapacl_list.py b/openapi_client_udm/models/settings_ldapacl_list.py new file mode 100644 index 0000000..ba89b2b --- /dev/null +++ b/openapi_client_udm/models/settings_ldapacl_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapaclList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsLdapaclListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapaclList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsLdapaclList. # noqa: E501 + + + :return: The embedded of this SettingsLdapaclList. # noqa: E501 + :rtype: SettingsLdapaclListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLdapaclList. + + + :param embedded: The embedded of this SettingsLdapaclList. # noqa: E501 + :type embedded: SettingsLdapaclListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapaclList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapaclList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapacl_list_embedded.py b/openapi_client_udm/models/settings_ldapacl_list_embedded.py new file mode 100644 index 0000000..9631f63 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapacl_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapaclListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsLdapacl]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapaclListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsLdapaclListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsLdapaclListEmbedded. # noqa: E501 + :rtype: list[SettingsLdapacl] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsLdapaclListEmbedded. + + + :param udmobject: The udmobject of this SettingsLdapaclListEmbedded. # noqa: E501 + :type udmobject: list[SettingsLdapacl] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapaclListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapaclListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapacl_request.py b/openapi_client_udm/models/settings_ldapacl_request.py new file mode 100644 index 0000000..e6459a8 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapacl_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapaclRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapaclRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsLdapaclRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLdapaclRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLdapaclRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLdapaclRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLdapaclRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLdapaclRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLdapaclRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLdapaclRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLdapaclRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLdapaclRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLdapaclRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLdapaclRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLdapaclRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLdapaclRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLdapaclRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLdapaclRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsLdapaclRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsLdapaclRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsLdapaclRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsLdapaclRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapaclRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapaclRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapacl_request_patch.py b/openapi_client_udm/models/settings_ldapacl_request_patch.py new file mode 100644 index 0000000..4814b1e --- /dev/null +++ b/openapi_client_udm/models/settings_ldapacl_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapaclRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapaclRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsLdapaclRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLdapaclRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLdapaclRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLdapaclRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLdapaclRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLdapaclRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLdapaclRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLdapaclRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLdapaclRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLdapaclRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLdapaclRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLdapaclRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLdapaclRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLdapaclRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLdapaclRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLdapaclRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapaclRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapaclRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapacl_response_mixin.py b/openapi_client_udm/models/settings_ldapacl_response_mixin.py new file mode 100644 index 0000000..1f8b115 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapacl_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapaclResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapaclResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsLdapaclResponseMixin. # noqa: E501 + + + :return: The links of this SettingsLdapaclResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsLdapaclResponseMixin. + + + :param links: The links of this SettingsLdapaclResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsLdapaclResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsLdapaclResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLdapaclResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsLdapaclResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsLdapaclResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsLdapaclResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsLdapaclResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsLdapaclResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsLdapaclResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsLdapaclResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsLdapaclResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsLdapaclResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsLdapaclResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsLdapaclResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsLdapaclResponseMixin. + + + :param uri: The uri of this SettingsLdapaclResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapaclResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapaclResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapschema.py b/openapi_client_udm/models/settings_ldapschema.py new file mode 100644 index 0000000..cb9ab10 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapschema.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapschema(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapschema - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsLdapschema. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLdapschema. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLdapschema. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLdapschema. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLdapschema. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLdapschema. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLdapschema. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLdapschema. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLdapschema. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLdapschema. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLdapschema. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLdapschema. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLdapschema. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLdapschema. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLdapschema. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLdapschema. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsLdapschema. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsLdapschema. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsLdapschema. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsLdapschema. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsLdapschema. # noqa: E501 + + + :return: The links of this SettingsLdapschema. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsLdapschema. + + + :param links: The links of this SettingsLdapschema. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsLdapschema. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsLdapschema. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLdapschema. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsLdapschema. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsLdapschema. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsLdapschema. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsLdapschema. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsLdapschema. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsLdapschema. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsLdapschema. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsLdapschema. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsLdapschema. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsLdapschema. # noqa: E501 + + + :return: The uri of this SettingsLdapschema. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsLdapschema. + + + :param uri: The uri of this SettingsLdapschema. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapschema): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapschema): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapschema_list.py b/openapi_client_udm/models/settings_ldapschema_list.py new file mode 100644 index 0000000..8fbd159 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapschema_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapschemaList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsLdapschemaListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapschemaList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsLdapschemaList. # noqa: E501 + + + :return: The embedded of this SettingsLdapschemaList. # noqa: E501 + :rtype: SettingsLdapschemaListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLdapschemaList. + + + :param embedded: The embedded of this SettingsLdapschemaList. # noqa: E501 + :type embedded: SettingsLdapschemaListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapschemaList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapschemaList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapschema_list_embedded.py b/openapi_client_udm/models/settings_ldapschema_list_embedded.py new file mode 100644 index 0000000..1cb03b4 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapschema_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapschemaListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsLdapschema]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapschemaListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsLdapschemaListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsLdapschemaListEmbedded. # noqa: E501 + :rtype: list[SettingsLdapschema] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsLdapschemaListEmbedded. + + + :param udmobject: The udmobject of this SettingsLdapschemaListEmbedded. # noqa: E501 + :type udmobject: list[SettingsLdapschema] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapschemaListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapschemaListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapschema_request.py b/openapi_client_udm/models/settings_ldapschema_request.py new file mode 100644 index 0000000..11af5c1 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapschema_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapschemaRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapschemaRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsLdapschemaRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLdapschemaRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLdapschemaRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLdapschemaRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLdapschemaRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLdapschemaRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLdapschemaRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLdapschemaRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLdapschemaRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLdapschemaRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLdapschemaRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLdapschemaRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLdapschemaRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLdapschemaRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLdapschemaRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLdapschemaRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsLdapschemaRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsLdapschemaRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsLdapschemaRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsLdapschemaRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapschemaRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapschemaRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapschema_request_patch.py b/openapi_client_udm/models/settings_ldapschema_request_patch.py new file mode 100644 index 0000000..68e14b1 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapschema_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapschemaRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapschemaRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsLdapschemaRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLdapschemaRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLdapschemaRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLdapschemaRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLdapschemaRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLdapschemaRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLdapschemaRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLdapschemaRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLdapschemaRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLdapschemaRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLdapschemaRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLdapschemaRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLdapschemaRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLdapschemaRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLdapschemaRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLdapschemaRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapschemaRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapschemaRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_ldapschema_response_mixin.py b/openapi_client_udm/models/settings_ldapschema_response_mixin.py new file mode 100644 index 0000000..9e76c71 --- /dev/null +++ b/openapi_client_udm/models/settings_ldapschema_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLdapschemaResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsLdapschemaResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsLdapschemaResponseMixin. # noqa: E501 + + + :return: The links of this SettingsLdapschemaResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsLdapschemaResponseMixin. + + + :param links: The links of this SettingsLdapschemaResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsLdapschemaResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsLdapschemaResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLdapschemaResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsLdapschemaResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsLdapschemaResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsLdapschemaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsLdapschemaResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsLdapschemaResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsLdapschemaResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsLdapschemaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsLdapschemaResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsLdapschemaResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsLdapschemaResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsLdapschemaResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsLdapschemaResponseMixin. + + + :param uri: The uri of this SettingsLdapschemaResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLdapschemaResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLdapschemaResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_license.py b/openapi_client_udm/models/settings_license.py new file mode 100644 index 0000000..5b6521a --- /dev/null +++ b/openapi_client_udm/models/settings_license.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLicense(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'SettingsLicenseOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsLicense - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsLicense. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLicense. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLicense. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLicense. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLicense. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLicense. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLicense. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLicense. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLicense. # noqa: E501 + + + :return: The options of this SettingsLicense. # noqa: E501 + :rtype: SettingsLicenseOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLicense. + + + :param options: The options of this SettingsLicense. # noqa: E501 + :type options: SettingsLicenseOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLicense. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLicense. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLicense. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLicense. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsLicense. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsLicense. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsLicense. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsLicense. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsLicense. # noqa: E501 + + + :return: The links of this SettingsLicense. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsLicense. + + + :param links: The links of this SettingsLicense. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsLicense. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsLicense. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLicense. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsLicense. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsLicense. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsLicense. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsLicense. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsLicense. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsLicense. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsLicense. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsLicense. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsLicense. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsLicense. # noqa: E501 + + + :return: The uri of this SettingsLicense. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsLicense. + + + :param uri: The uri of this SettingsLicense. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLicense): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLicense): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_license_list.py b/openapi_client_udm/models/settings_license_list.py new file mode 100644 index 0000000..5445f80 --- /dev/null +++ b/openapi_client_udm/models/settings_license_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLicenseList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsLicenseListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsLicenseList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsLicenseList. # noqa: E501 + + + :return: The embedded of this SettingsLicenseList. # noqa: E501 + :rtype: SettingsLicenseListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLicenseList. + + + :param embedded: The embedded of this SettingsLicenseList. # noqa: E501 + :type embedded: SettingsLicenseListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLicenseList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLicenseList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_license_list_embedded.py b/openapi_client_udm/models/settings_license_list_embedded.py new file mode 100644 index 0000000..2ee1e8c --- /dev/null +++ b/openapi_client_udm/models/settings_license_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLicenseListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsLicense]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsLicenseListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsLicenseListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsLicenseListEmbedded. # noqa: E501 + :rtype: list[SettingsLicense] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsLicenseListEmbedded. + + + :param udmobject: The udmobject of this SettingsLicenseListEmbedded. # noqa: E501 + :type udmobject: list[SettingsLicense] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLicenseListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLicenseListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_license_options.py b/openapi_client_udm/models/settings_license_options.py new file mode 100644 index 0000000..9903281 --- /dev/null +++ b/openapi_client_udm/models/settings_license_options.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLicenseOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'version_1': 'bool', + 'version_2': 'bool' + } + + attribute_map = { + 'version_1': 'Version 1', + 'version_2': 'Version 2' + } + + def __init__(self, version_1=False, version_2=True, local_vars_configuration=None): # noqa: E501 + """SettingsLicenseOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._version_1 = None + self._version_2 = None + self.discriminator = None + + if version_1 is not None: + self.version_1 = version_1 + if version_2 is not None: + self.version_2 = version_2 + + @property + def version_1(self): + """Gets the version_1 of this SettingsLicenseOptions. # noqa: E501 + + Version 1 license # noqa: E501 + + :return: The version_1 of this SettingsLicenseOptions. # noqa: E501 + :rtype: bool + """ + return self._version_1 + + @version_1.setter + def version_1(self, version_1): + """Sets the version_1 of this SettingsLicenseOptions. + + Version 1 license # noqa: E501 + + :param version_1: The version_1 of this SettingsLicenseOptions. # noqa: E501 + :type version_1: bool + """ + + self._version_1 = version_1 + + @property + def version_2(self): + """Gets the version_2 of this SettingsLicenseOptions. # noqa: E501 + + Version 2 license # noqa: E501 + + :return: The version_2 of this SettingsLicenseOptions. # noqa: E501 + :rtype: bool + """ + return self._version_2 + + @version_2.setter + def version_2(self, version_2): + """Sets the version_2 of this SettingsLicenseOptions. + + Version 2 license # noqa: E501 + + :param version_2: The version_2 of this SettingsLicenseOptions. # noqa: E501 + :type version_2: bool + """ + + self._version_2 = version_2 + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLicenseOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLicenseOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_license_request.py b/openapi_client_udm/models/settings_license_request.py new file mode 100644 index 0000000..da80e47 --- /dev/null +++ b/openapi_client_udm/models/settings_license_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLicenseRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'SettingsLicenseOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsLicenseRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsLicenseRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLicenseRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLicenseRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLicenseRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLicenseRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLicenseRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLicenseRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLicenseRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLicenseRequest. # noqa: E501 + + + :return: The options of this SettingsLicenseRequest. # noqa: E501 + :rtype: SettingsLicenseOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLicenseRequest. + + + :param options: The options of this SettingsLicenseRequest. # noqa: E501 + :type options: SettingsLicenseOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLicenseRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLicenseRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLicenseRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLicenseRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsLicenseRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsLicenseRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsLicenseRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsLicenseRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLicenseRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLicenseRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_license_request_patch.py b/openapi_client_udm/models/settings_license_request_patch.py new file mode 100644 index 0000000..ec425fc --- /dev/null +++ b/openapi_client_udm/models/settings_license_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLicenseRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'SettingsLicenseOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsLicenseRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsLicenseRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLicenseRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLicenseRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLicenseRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLicenseRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLicenseRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLicenseRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLicenseRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLicenseRequestPatch. # noqa: E501 + + + :return: The options of this SettingsLicenseRequestPatch. # noqa: E501 + :rtype: SettingsLicenseOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLicenseRequestPatch. + + + :param options: The options of this SettingsLicenseRequestPatch. # noqa: E501 + :type options: SettingsLicenseOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLicenseRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLicenseRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLicenseRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLicenseRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLicenseRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLicenseRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_license_response_mixin.py b/openapi_client_udm/models/settings_license_response_mixin.py new file mode 100644 index 0000000..e46ba1b --- /dev/null +++ b/openapi_client_udm/models/settings_license_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLicenseResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsLicenseResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsLicenseResponseMixin. # noqa: E501 + + + :return: The links of this SettingsLicenseResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsLicenseResponseMixin. + + + :param links: The links of this SettingsLicenseResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsLicenseResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsLicenseResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLicenseResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsLicenseResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsLicenseResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsLicenseResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsLicenseResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsLicenseResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsLicenseResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsLicenseResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsLicenseResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsLicenseResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsLicenseResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsLicenseResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsLicenseResponseMixin. + + + :param uri: The uri of this SettingsLicenseResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLicenseResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLicenseResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_lock.py b/openapi_client_udm/models/settings_lock.py new file mode 100644 index 0000000..fc601fb --- /dev/null +++ b/openapi_client_udm/models/settings_lock.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLock(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsLock - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsLock. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLock. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLock. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLock. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLock. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLock. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLock. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLock. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLock. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLock. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLock. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLock. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLock. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLock. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLock. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLock. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsLock. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsLock. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsLock. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsLock. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsLock. # noqa: E501 + + + :return: The links of this SettingsLock. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsLock. + + + :param links: The links of this SettingsLock. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsLock. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsLock. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLock. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsLock. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsLock. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsLock. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsLock. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsLock. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsLock. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsLock. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsLock. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsLock. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsLock. # noqa: E501 + + + :return: The uri of this SettingsLock. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsLock. + + + :param uri: The uri of this SettingsLock. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLock): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLock): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_lock_list.py b/openapi_client_udm/models/settings_lock_list.py new file mode 100644 index 0000000..99728e1 --- /dev/null +++ b/openapi_client_udm/models/settings_lock_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLockList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsLockListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsLockList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsLockList. # noqa: E501 + + + :return: The embedded of this SettingsLockList. # noqa: E501 + :rtype: SettingsLockListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLockList. + + + :param embedded: The embedded of this SettingsLockList. # noqa: E501 + :type embedded: SettingsLockListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLockList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLockList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_lock_list_embedded.py b/openapi_client_udm/models/settings_lock_list_embedded.py new file mode 100644 index 0000000..db38dbb --- /dev/null +++ b/openapi_client_udm/models/settings_lock_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLockListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsLock]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsLockListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsLockListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsLockListEmbedded. # noqa: E501 + :rtype: list[SettingsLock] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsLockListEmbedded. + + + :param udmobject: The udmobject of this SettingsLockListEmbedded. # noqa: E501 + :type udmobject: list[SettingsLock] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLockListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLockListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_lock_request.py b/openapi_client_udm/models/settings_lock_request.py new file mode 100644 index 0000000..48518bf --- /dev/null +++ b/openapi_client_udm/models/settings_lock_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLockRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsLockRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsLockRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLockRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLockRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLockRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLockRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLockRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLockRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLockRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLockRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLockRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLockRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLockRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLockRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLockRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLockRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLockRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsLockRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsLockRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsLockRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsLockRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLockRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLockRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_lock_request_patch.py b/openapi_client_udm/models/settings_lock_request_patch.py new file mode 100644 index 0000000..8f6e093 --- /dev/null +++ b/openapi_client_udm/models/settings_lock_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLockRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsLockRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsLockRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsLockRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsLockRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsLockRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsLockRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsLockRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsLockRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsLockRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsLockRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsLockRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsLockRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsLockRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsLockRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsLockRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsLockRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsLockRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLockRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLockRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_lock_response_mixin.py b/openapi_client_udm/models/settings_lock_response_mixin.py new file mode 100644 index 0000000..144f803 --- /dev/null +++ b/openapi_client_udm/models/settings_lock_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsLockResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsLockResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsLockResponseMixin. # noqa: E501 + + + :return: The links of this SettingsLockResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsLockResponseMixin. + + + :param links: The links of this SettingsLockResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsLockResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsLockResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsLockResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsLockResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsLockResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsLockResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsLockResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsLockResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsLockResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsLockResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsLockResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsLockResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsLockResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsLockResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsLockResponseMixin. + + + :param uri: The uri of this SettingsLockResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsLockResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsLockResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_msprintconnectionpolicy.py b/openapi_client_udm/models/settings_msprintconnectionpolicy.py new file mode 100644 index 0000000..2846f2e --- /dev/null +++ b/openapi_client_udm/models/settings_msprintconnectionpolicy.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMsprintconnectionpolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsMsprintconnectionpolicyPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsMsprintconnectionpolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsMsprintconnectionpolicy. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsMsprintconnectionpolicy. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsMsprintconnectionpolicy. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsMsprintconnectionpolicy. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsMsprintconnectionpolicy. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsMsprintconnectionpolicy. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsMsprintconnectionpolicy. # noqa: E501 + + + :return: The policies of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: SettingsMsprintconnectionpolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsMsprintconnectionpolicy. + + + :param policies: The policies of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type policies: SettingsMsprintconnectionpolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsMsprintconnectionpolicy. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsMsprintconnectionpolicy. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsMsprintconnectionpolicy. # noqa: E501 + + + :return: The links of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsMsprintconnectionpolicy. + + + :param links: The links of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsMsprintconnectionpolicy. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsMsprintconnectionpolicy. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsMsprintconnectionpolicy. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsMsprintconnectionpolicy. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsMsprintconnectionpolicy. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsMsprintconnectionpolicy. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsMsprintconnectionpolicy. # noqa: E501 + + + :return: The uri of this SettingsMsprintconnectionpolicy. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsMsprintconnectionpolicy. + + + :param uri: The uri of this SettingsMsprintconnectionpolicy. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMsprintconnectionpolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMsprintconnectionpolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_msprintconnectionpolicy_list.py b/openapi_client_udm/models/settings_msprintconnectionpolicy_list.py new file mode 100644 index 0000000..802b76e --- /dev/null +++ b/openapi_client_udm/models/settings_msprintconnectionpolicy_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMsprintconnectionpolicyList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsMsprintconnectionpolicyListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsMsprintconnectionpolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsMsprintconnectionpolicyList. # noqa: E501 + + + :return: The embedded of this SettingsMsprintconnectionpolicyList. # noqa: E501 + :rtype: SettingsMsprintconnectionpolicyListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsMsprintconnectionpolicyList. + + + :param embedded: The embedded of this SettingsMsprintconnectionpolicyList. # noqa: E501 + :type embedded: SettingsMsprintconnectionpolicyListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_msprintconnectionpolicy_list_embedded.py b/openapi_client_udm/models/settings_msprintconnectionpolicy_list_embedded.py new file mode 100644 index 0000000..631a969 --- /dev/null +++ b/openapi_client_udm/models/settings_msprintconnectionpolicy_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMsprintconnectionpolicyListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsMsprintconnectionpolicy]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsMsprintconnectionpolicyListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsMsprintconnectionpolicyListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsMsprintconnectionpolicyListEmbedded. # noqa: E501 + :rtype: list[SettingsMsprintconnectionpolicy] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsMsprintconnectionpolicyListEmbedded. + + + :param udmobject: The udmobject of this SettingsMsprintconnectionpolicyListEmbedded. # noqa: E501 + :type udmobject: list[SettingsMsprintconnectionpolicy] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_msprintconnectionpolicy_policies.py b/openapi_client_udm/models/settings_msprintconnectionpolicy_policies.py new file mode 100644 index 0000000..832c1ef --- /dev/null +++ b/openapi_client_udm/models/settings_msprintconnectionpolicy_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMsprintconnectionpolicyPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """SettingsMsprintconnectionpolicyPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this SettingsMsprintconnectionpolicyPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this SettingsMsprintconnectionpolicyPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this SettingsMsprintconnectionpolicyPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this SettingsMsprintconnectionpolicyPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this SettingsMsprintconnectionpolicyPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this SettingsMsprintconnectionpolicyPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this SettingsMsprintconnectionpolicyPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this SettingsMsprintconnectionpolicyPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this SettingsMsprintconnectionpolicyPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this SettingsMsprintconnectionpolicyPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this SettingsMsprintconnectionpolicyPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this SettingsMsprintconnectionpolicyPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this SettingsMsprintconnectionpolicyPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this SettingsMsprintconnectionpolicyPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_msprintconnectionpolicy_request.py b/openapi_client_udm/models/settings_msprintconnectionpolicy_request.py new file mode 100644 index 0000000..4a41fd6 --- /dev/null +++ b/openapi_client_udm/models/settings_msprintconnectionpolicy_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMsprintconnectionpolicyRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsMsprintconnectionpolicyPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsMsprintconnectionpolicyRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsMsprintconnectionpolicyRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsMsprintconnectionpolicyRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsMsprintconnectionpolicyRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + + + :return: The policies of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :rtype: SettingsMsprintconnectionpolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsMsprintconnectionpolicyRequest. + + + :param policies: The policies of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :type policies: SettingsMsprintconnectionpolicyPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsMsprintconnectionpolicyRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsMsprintconnectionpolicyRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_msprintconnectionpolicy_request_patch.py b/openapi_client_udm/models/settings_msprintconnectionpolicy_request_patch.py new file mode 100644 index 0000000..6a23ddb --- /dev/null +++ b/openapi_client_udm/models/settings_msprintconnectionpolicy_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMsprintconnectionpolicyRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsMsprintconnectionpolicyPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsMsprintconnectionpolicyRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsMsprintconnectionpolicyRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsMsprintconnectionpolicyRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsMsprintconnectionpolicyRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + + + :return: The policies of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + :rtype: SettingsMsprintconnectionpolicyPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsMsprintconnectionpolicyRequestPatch. + + + :param policies: The policies of this SettingsMsprintconnectionpolicyRequestPatch. # noqa: E501 + :type policies: SettingsMsprintconnectionpolicyPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_msprintconnectionpolicy_response_mixin.py b/openapi_client_udm/models/settings_msprintconnectionpolicy_response_mixin.py new file mode 100644 index 0000000..3bdff01 --- /dev/null +++ b/openapi_client_udm/models/settings_msprintconnectionpolicy_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMsprintconnectionpolicyResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsMsprintconnectionpolicyResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + + + :return: The links of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsMsprintconnectionpolicyResponseMixin. + + + :param links: The links of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsMsprintconnectionpolicyResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsMsprintconnectionpolicyResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsMsprintconnectionpolicyResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsMsprintconnectionpolicyResponseMixin. + + + :param uri: The uri of this SettingsMsprintconnectionpolicyResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMsprintconnectionpolicyResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_mswmifilter.py b/openapi_client_udm/models/settings_mswmifilter.py new file mode 100644 index 0000000..564d8c3 --- /dev/null +++ b/openapi_client_udm/models/settings_mswmifilter.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMswmifilter(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsMswmifilterPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsMswmifilter - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsMswmifilter. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsMswmifilter. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsMswmifilter. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsMswmifilter. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsMswmifilter. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsMswmifilter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsMswmifilter. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsMswmifilter. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsMswmifilter. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsMswmifilter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsMswmifilter. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsMswmifilter. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsMswmifilter. # noqa: E501 + + + :return: The policies of this SettingsMswmifilter. # noqa: E501 + :rtype: SettingsMswmifilterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsMswmifilter. + + + :param policies: The policies of this SettingsMswmifilter. # noqa: E501 + :type policies: SettingsMswmifilterPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsMswmifilter. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsMswmifilter. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsMswmifilter. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsMswmifilter. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsMswmifilter. # noqa: E501 + + + :return: The links of this SettingsMswmifilter. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsMswmifilter. + + + :param links: The links of this SettingsMswmifilter. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsMswmifilter. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsMswmifilter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsMswmifilter. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsMswmifilter. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsMswmifilter. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsMswmifilter. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsMswmifilter. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsMswmifilter. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsMswmifilter. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsMswmifilter. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsMswmifilter. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsMswmifilter. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsMswmifilter. # noqa: E501 + + + :return: The uri of this SettingsMswmifilter. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsMswmifilter. + + + :param uri: The uri of this SettingsMswmifilter. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMswmifilter): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMswmifilter): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_mswmifilter_list.py b/openapi_client_udm/models/settings_mswmifilter_list.py new file mode 100644 index 0000000..9a48b26 --- /dev/null +++ b/openapi_client_udm/models/settings_mswmifilter_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMswmifilterList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsMswmifilterListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsMswmifilterList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsMswmifilterList. # noqa: E501 + + + :return: The embedded of this SettingsMswmifilterList. # noqa: E501 + :rtype: SettingsMswmifilterListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsMswmifilterList. + + + :param embedded: The embedded of this SettingsMswmifilterList. # noqa: E501 + :type embedded: SettingsMswmifilterListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMswmifilterList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMswmifilterList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_mswmifilter_list_embedded.py b/openapi_client_udm/models/settings_mswmifilter_list_embedded.py new file mode 100644 index 0000000..ecb362b --- /dev/null +++ b/openapi_client_udm/models/settings_mswmifilter_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMswmifilterListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsMswmifilter]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsMswmifilterListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsMswmifilterListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsMswmifilterListEmbedded. # noqa: E501 + :rtype: list[SettingsMswmifilter] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsMswmifilterListEmbedded. + + + :param udmobject: The udmobject of this SettingsMswmifilterListEmbedded. # noqa: E501 + :type udmobject: list[SettingsMswmifilter] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMswmifilterListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMswmifilterListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_mswmifilter_policies.py b/openapi_client_udm/models/settings_mswmifilter_policies.py new file mode 100644 index 0000000..9ccf255 --- /dev/null +++ b/openapi_client_udm/models/settings_mswmifilter_policies.py @@ -0,0 +1,921 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMswmifilterPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_slavepackages': 'list[str]', + 'policies_dhcp_dns': 'list[str]', + 'policies_printserver': 'list[str]', + 'policies_dhcp_scope': 'list[str]', + 'policies_dhcp_dnsupdate': 'list[str]', + 'policies_dhcp_boot': 'list[str]', + 'policies_repositorysync': 'list[str]', + 'policies_dhcp_statements': 'list[str]', + 'policies_nfsmounts': 'list[str]', + 'policies_memberpackages': 'list[str]', + 'policies_umc': 'list[str]', + 'policies_maintenance': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_dhcp_netbios': 'list[str]', + 'policies_admin_container': 'list[str]', + 'policies_dhcp_routing': 'list[str]', + 'policies_release': 'list[str]', + 'policies_share_userquota': 'list[str]', + 'policies_pwhistory': 'list[str]', + 'policies_dhcp_leasetime': 'list[str]', + 'policies_registry': 'list[str]', + 'policies_masterpackages': 'list[str]', + 'policies_ldapserver': 'list[str]', + 'policies_repositoryserver': 'list[str]' + } + + attribute_map = { + 'policies_slavepackages': 'policies/slavepackages', + 'policies_dhcp_dns': 'policies/dhcp_dns', + 'policies_printserver': 'policies/printserver', + 'policies_dhcp_scope': 'policies/dhcp_scope', + 'policies_dhcp_dnsupdate': 'policies/dhcp_dnsupdate', + 'policies_dhcp_boot': 'policies/dhcp_boot', + 'policies_repositorysync': 'policies/repositorysync', + 'policies_dhcp_statements': 'policies/dhcp_statements', + 'policies_nfsmounts': 'policies/nfsmounts', + 'policies_memberpackages': 'policies/memberpackages', + 'policies_umc': 'policies/umc', + 'policies_maintenance': 'policies/maintenance', + 'policies_desktop': 'policies/desktop', + 'policies_dhcp_netbios': 'policies/dhcp_netbios', + 'policies_admin_container': 'policies/admin_container', + 'policies_dhcp_routing': 'policies/dhcp_routing', + 'policies_release': 'policies/release', + 'policies_share_userquota': 'policies/share_userquota', + 'policies_pwhistory': 'policies/pwhistory', + 'policies_dhcp_leasetime': 'policies/dhcp_leasetime', + 'policies_registry': 'policies/registry', + 'policies_masterpackages': 'policies/masterpackages', + 'policies_ldapserver': 'policies/ldapserver', + 'policies_repositoryserver': 'policies/repositoryserver' + } + + def __init__(self, policies_slavepackages=None, policies_dhcp_dns=None, policies_printserver=None, policies_dhcp_scope=None, policies_dhcp_dnsupdate=None, policies_dhcp_boot=None, policies_repositorysync=None, policies_dhcp_statements=None, policies_nfsmounts=None, policies_memberpackages=None, policies_umc=None, policies_maintenance=None, policies_desktop=None, policies_dhcp_netbios=None, policies_admin_container=None, policies_dhcp_routing=None, policies_release=None, policies_share_userquota=None, policies_pwhistory=None, policies_dhcp_leasetime=None, policies_registry=None, policies_masterpackages=None, policies_ldapserver=None, policies_repositoryserver=None, local_vars_configuration=None): # noqa: E501 + """SettingsMswmifilterPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_slavepackages = None + self._policies_dhcp_dns = None + self._policies_printserver = None + self._policies_dhcp_scope = None + self._policies_dhcp_dnsupdate = None + self._policies_dhcp_boot = None + self._policies_repositorysync = None + self._policies_dhcp_statements = None + self._policies_nfsmounts = None + self._policies_memberpackages = None + self._policies_umc = None + self._policies_maintenance = None + self._policies_desktop = None + self._policies_dhcp_netbios = None + self._policies_admin_container = None + self._policies_dhcp_routing = None + self._policies_release = None + self._policies_share_userquota = None + self._policies_pwhistory = None + self._policies_dhcp_leasetime = None + self._policies_registry = None + self._policies_masterpackages = None + self._policies_ldapserver = None + self._policies_repositoryserver = None + self.discriminator = None + + if policies_slavepackages is not None: + self.policies_slavepackages = policies_slavepackages + if policies_dhcp_dns is not None: + self.policies_dhcp_dns = policies_dhcp_dns + if policies_printserver is not None: + self.policies_printserver = policies_printserver + if policies_dhcp_scope is not None: + self.policies_dhcp_scope = policies_dhcp_scope + if policies_dhcp_dnsupdate is not None: + self.policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + if policies_dhcp_boot is not None: + self.policies_dhcp_boot = policies_dhcp_boot + if policies_repositorysync is not None: + self.policies_repositorysync = policies_repositorysync + if policies_dhcp_statements is not None: + self.policies_dhcp_statements = policies_dhcp_statements + if policies_nfsmounts is not None: + self.policies_nfsmounts = policies_nfsmounts + if policies_memberpackages is not None: + self.policies_memberpackages = policies_memberpackages + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_maintenance is not None: + self.policies_maintenance = policies_maintenance + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_dhcp_netbios is not None: + self.policies_dhcp_netbios = policies_dhcp_netbios + if policies_admin_container is not None: + self.policies_admin_container = policies_admin_container + if policies_dhcp_routing is not None: + self.policies_dhcp_routing = policies_dhcp_routing + if policies_release is not None: + self.policies_release = policies_release + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + if policies_dhcp_leasetime is not None: + self.policies_dhcp_leasetime = policies_dhcp_leasetime + if policies_registry is not None: + self.policies_registry = policies_registry + if policies_masterpackages is not None: + self.policies_masterpackages = policies_masterpackages + if policies_ldapserver is not None: + self.policies_ldapserver = policies_ldapserver + if policies_repositoryserver is not None: + self.policies_repositoryserver = policies_repositoryserver + + @property + def policies_slavepackages(self): + """Gets the policies_slavepackages of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Packages for Replica Nodes # noqa: E501 + + :return: The policies_slavepackages of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_slavepackages + + @policies_slavepackages.setter + def policies_slavepackages(self, policies_slavepackages): + """Sets the policies_slavepackages of this SettingsMswmifilterPolicies. + + Policy: Packages for Replica Nodes # noqa: E501 + + :param policies_slavepackages: The policies_slavepackages of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_slavepackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) > 1): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_slavepackages is not None and len(policies_slavepackages) < 0): + raise ValueError("Invalid value for `policies_slavepackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_slavepackages = policies_slavepackages + + @property + def policies_dhcp_dns(self): + """Gets the policies_dhcp_dns of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: DHCP DNS # noqa: E501 + + :return: The policies_dhcp_dns of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dns + + @policies_dhcp_dns.setter + def policies_dhcp_dns(self, policies_dhcp_dns): + """Sets the policies_dhcp_dns of this SettingsMswmifilterPolicies. + + Policy: DHCP DNS # noqa: E501 + + :param policies_dhcp_dns: The policies_dhcp_dns of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_dhcp_dns: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) > 1): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dns is not None and len(policies_dhcp_dns) < 0): + raise ValueError("Invalid value for `policies_dhcp_dns`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dns = policies_dhcp_dns + + @property + def policies_printserver(self): + """Gets the policies_printserver of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Print server # noqa: E501 + + :return: The policies_printserver of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_printserver + + @policies_printserver.setter + def policies_printserver(self, policies_printserver): + """Sets the policies_printserver of this SettingsMswmifilterPolicies. + + Policy: Print server # noqa: E501 + + :param policies_printserver: The policies_printserver of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_printserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) > 1): + raise ValueError("Invalid value for `policies_printserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_printserver is not None and len(policies_printserver) < 0): + raise ValueError("Invalid value for `policies_printserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_printserver = policies_printserver + + @property + def policies_dhcp_scope(self): + """Gets the policies_dhcp_scope of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: DHCP Allow/Deny # noqa: E501 + + :return: The policies_dhcp_scope of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_scope + + @policies_dhcp_scope.setter + def policies_dhcp_scope(self, policies_dhcp_scope): + """Sets the policies_dhcp_scope of this SettingsMswmifilterPolicies. + + Policy: DHCP Allow/Deny # noqa: E501 + + :param policies_dhcp_scope: The policies_dhcp_scope of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_dhcp_scope: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) > 1): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_scope is not None and len(policies_dhcp_scope) < 0): + raise ValueError("Invalid value for `policies_dhcp_scope`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_scope = policies_dhcp_scope + + @property + def policies_dhcp_dnsupdate(self): + """Gets the policies_dhcp_dnsupdate of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: DHCP Dynamic DNS # noqa: E501 + + :return: The policies_dhcp_dnsupdate of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_dnsupdate + + @policies_dhcp_dnsupdate.setter + def policies_dhcp_dnsupdate(self, policies_dhcp_dnsupdate): + """Sets the policies_dhcp_dnsupdate of this SettingsMswmifilterPolicies. + + Policy: DHCP Dynamic DNS # noqa: E501 + + :param policies_dhcp_dnsupdate: The policies_dhcp_dnsupdate of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_dhcp_dnsupdate: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) > 1): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_dnsupdate is not None and len(policies_dhcp_dnsupdate) < 0): + raise ValueError("Invalid value for `policies_dhcp_dnsupdate`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_dnsupdate = policies_dhcp_dnsupdate + + @property + def policies_dhcp_boot(self): + """Gets the policies_dhcp_boot of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: DHCP Boot # noqa: E501 + + :return: The policies_dhcp_boot of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_boot + + @policies_dhcp_boot.setter + def policies_dhcp_boot(self, policies_dhcp_boot): + """Sets the policies_dhcp_boot of this SettingsMswmifilterPolicies. + + Policy: DHCP Boot # noqa: E501 + + :param policies_dhcp_boot: The policies_dhcp_boot of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_dhcp_boot: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) > 1): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_boot is not None and len(policies_dhcp_boot) < 0): + raise ValueError("Invalid value for `policies_dhcp_boot`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_boot = policies_dhcp_boot + + @property + def policies_repositorysync(self): + """Gets the policies_repositorysync of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Repository synchronisation # noqa: E501 + + :return: The policies_repositorysync of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositorysync + + @policies_repositorysync.setter + def policies_repositorysync(self, policies_repositorysync): + """Sets the policies_repositorysync of this SettingsMswmifilterPolicies. + + Policy: Repository synchronisation # noqa: E501 + + :param policies_repositorysync: The policies_repositorysync of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_repositorysync: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) > 1): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositorysync is not None and len(policies_repositorysync) < 0): + raise ValueError("Invalid value for `policies_repositorysync`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositorysync = policies_repositorysync + + @property + def policies_dhcp_statements(self): + """Gets the policies_dhcp_statements of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: DHCP statements # noqa: E501 + + :return: The policies_dhcp_statements of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_statements + + @policies_dhcp_statements.setter + def policies_dhcp_statements(self, policies_dhcp_statements): + """Sets the policies_dhcp_statements of this SettingsMswmifilterPolicies. + + Policy: DHCP statements # noqa: E501 + + :param policies_dhcp_statements: The policies_dhcp_statements of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_dhcp_statements: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) > 1): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_statements is not None and len(policies_dhcp_statements) < 0): + raise ValueError("Invalid value for `policies_dhcp_statements`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_statements = policies_dhcp_statements + + @property + def policies_nfsmounts(self): + """Gets the policies_nfsmounts of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: NFS mounts # noqa: E501 + + :return: The policies_nfsmounts of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_nfsmounts + + @policies_nfsmounts.setter + def policies_nfsmounts(self, policies_nfsmounts): + """Sets the policies_nfsmounts of this SettingsMswmifilterPolicies. + + Policy: NFS mounts # noqa: E501 + + :param policies_nfsmounts: The policies_nfsmounts of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_nfsmounts: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) > 1): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_nfsmounts is not None and len(policies_nfsmounts) < 0): + raise ValueError("Invalid value for `policies_nfsmounts`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_nfsmounts = policies_nfsmounts + + @property + def policies_memberpackages(self): + """Gets the policies_memberpackages of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Packages for Managed Nodes # noqa: E501 + + :return: The policies_memberpackages of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_memberpackages + + @policies_memberpackages.setter + def policies_memberpackages(self, policies_memberpackages): + """Sets the policies_memberpackages of this SettingsMswmifilterPolicies. + + Policy: Packages for Managed Nodes # noqa: E501 + + :param policies_memberpackages: The policies_memberpackages of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_memberpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) > 1): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_memberpackages is not None and len(policies_memberpackages) < 0): + raise ValueError("Invalid value for `policies_memberpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_memberpackages = policies_memberpackages + + @property + def policies_umc(self): + """Gets the policies_umc of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this SettingsMswmifilterPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_maintenance(self): + """Gets the policies_maintenance of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Maintenance # noqa: E501 + + :return: The policies_maintenance of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_maintenance + + @policies_maintenance.setter + def policies_maintenance(self, policies_maintenance): + """Sets the policies_maintenance of this SettingsMswmifilterPolicies. + + Policy: Maintenance # noqa: E501 + + :param policies_maintenance: The policies_maintenance of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_maintenance: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) > 1): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_maintenance is not None and len(policies_maintenance) < 0): + raise ValueError("Invalid value for `policies_maintenance`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_maintenance = policies_maintenance + + @property + def policies_desktop(self): + """Gets the policies_desktop of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this SettingsMswmifilterPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_dhcp_netbios(self): + """Gets the policies_dhcp_netbios of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: DHCP NetBIOS # noqa: E501 + + :return: The policies_dhcp_netbios of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_netbios + + @policies_dhcp_netbios.setter + def policies_dhcp_netbios(self, policies_dhcp_netbios): + """Sets the policies_dhcp_netbios of this SettingsMswmifilterPolicies. + + Policy: DHCP NetBIOS # noqa: E501 + + :param policies_dhcp_netbios: The policies_dhcp_netbios of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_dhcp_netbios: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) > 1): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_netbios is not None and len(policies_dhcp_netbios) < 0): + raise ValueError("Invalid value for `policies_dhcp_netbios`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_netbios = policies_dhcp_netbios + + @property + def policies_admin_container(self): + """Gets the policies_admin_container of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Univention Directory Manager container settings # noqa: E501 + + :return: The policies_admin_container of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_admin_container + + @policies_admin_container.setter + def policies_admin_container(self, policies_admin_container): + """Sets the policies_admin_container of this SettingsMswmifilterPolicies. + + Policy: Univention Directory Manager container settings # noqa: E501 + + :param policies_admin_container: The policies_admin_container of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_admin_container: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) > 1): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_admin_container is not None and len(policies_admin_container) < 0): + raise ValueError("Invalid value for `policies_admin_container`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_admin_container = policies_admin_container + + @property + def policies_dhcp_routing(self): + """Gets the policies_dhcp_routing of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: DHCP routing # noqa: E501 + + :return: The policies_dhcp_routing of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_routing + + @policies_dhcp_routing.setter + def policies_dhcp_routing(self, policies_dhcp_routing): + """Sets the policies_dhcp_routing of this SettingsMswmifilterPolicies. + + Policy: DHCP routing # noqa: E501 + + :param policies_dhcp_routing: The policies_dhcp_routing of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_dhcp_routing: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) > 1): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_routing is not None and len(policies_dhcp_routing) < 0): + raise ValueError("Invalid value for `policies_dhcp_routing`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_routing = policies_dhcp_routing + + @property + def policies_release(self): + """Gets the policies_release of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Automatic updates # noqa: E501 + + :return: The policies_release of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_release + + @policies_release.setter + def policies_release(self, policies_release): + """Sets the policies_release of this SettingsMswmifilterPolicies. + + Policy: Automatic updates # noqa: E501 + + :param policies_release: The policies_release of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_release: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) > 1): + raise ValueError("Invalid value for `policies_release`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_release is not None and len(policies_release) < 0): + raise ValueError("Invalid value for `policies_release`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_release = policies_release + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this SettingsMswmifilterPolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this SettingsMswmifilterPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + @property + def policies_dhcp_leasetime(self): + """Gets the policies_dhcp_leasetime of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: DHCP lease time # noqa: E501 + + :return: The policies_dhcp_leasetime of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_dhcp_leasetime + + @policies_dhcp_leasetime.setter + def policies_dhcp_leasetime(self, policies_dhcp_leasetime): + """Sets the policies_dhcp_leasetime of this SettingsMswmifilterPolicies. + + Policy: DHCP lease time # noqa: E501 + + :param policies_dhcp_leasetime: The policies_dhcp_leasetime of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_dhcp_leasetime: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) > 1): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_dhcp_leasetime is not None and len(policies_dhcp_leasetime) < 0): + raise ValueError("Invalid value for `policies_dhcp_leasetime`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_dhcp_leasetime = policies_dhcp_leasetime + + @property + def policies_registry(self): + """Gets the policies_registry of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Univention Configuration Registry # noqa: E501 + + :return: The policies_registry of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_registry + + @policies_registry.setter + def policies_registry(self, policies_registry): + """Sets the policies_registry of this SettingsMswmifilterPolicies. + + Policy: Univention Configuration Registry # noqa: E501 + + :param policies_registry: The policies_registry of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_registry: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) > 1): + raise ValueError("Invalid value for `policies_registry`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_registry is not None and len(policies_registry) < 0): + raise ValueError("Invalid value for `policies_registry`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_registry = policies_registry + + @property + def policies_masterpackages(self): + """Gets the policies_masterpackages of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :return: The policies_masterpackages of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_masterpackages + + @policies_masterpackages.setter + def policies_masterpackages(self, policies_masterpackages): + """Sets the policies_masterpackages of this SettingsMswmifilterPolicies. + + Policy: Packages for Primary/Backup Nodes # noqa: E501 + + :param policies_masterpackages: The policies_masterpackages of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_masterpackages: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) > 1): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_masterpackages is not None and len(policies_masterpackages) < 0): + raise ValueError("Invalid value for `policies_masterpackages`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_masterpackages = policies_masterpackages + + @property + def policies_ldapserver(self): + """Gets the policies_ldapserver of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: LDAP server # noqa: E501 + + :return: The policies_ldapserver of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_ldapserver + + @policies_ldapserver.setter + def policies_ldapserver(self, policies_ldapserver): + """Sets the policies_ldapserver of this SettingsMswmifilterPolicies. + + Policy: LDAP server # noqa: E501 + + :param policies_ldapserver: The policies_ldapserver of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_ldapserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) > 1): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_ldapserver is not None and len(policies_ldapserver) < 0): + raise ValueError("Invalid value for `policies_ldapserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_ldapserver = policies_ldapserver + + @property + def policies_repositoryserver(self): + """Gets the policies_repositoryserver of this SettingsMswmifilterPolicies. # noqa: E501 + + Policy: Repository server # noqa: E501 + + :return: The policies_repositoryserver of this SettingsMswmifilterPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_repositoryserver + + @policies_repositoryserver.setter + def policies_repositoryserver(self, policies_repositoryserver): + """Sets the policies_repositoryserver of this SettingsMswmifilterPolicies. + + Policy: Repository server # noqa: E501 + + :param policies_repositoryserver: The policies_repositoryserver of this SettingsMswmifilterPolicies. # noqa: E501 + :type policies_repositoryserver: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) > 1): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_repositoryserver is not None and len(policies_repositoryserver) < 0): + raise ValueError("Invalid value for `policies_repositoryserver`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_repositoryserver = policies_repositoryserver + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMswmifilterPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMswmifilterPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_mswmifilter_request.py b/openapi_client_udm/models/settings_mswmifilter_request.py new file mode 100644 index 0000000..c558935 --- /dev/null +++ b/openapi_client_udm/models/settings_mswmifilter_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMswmifilterRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsMswmifilterPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsMswmifilterRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsMswmifilterRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsMswmifilterRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsMswmifilterRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsMswmifilterRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsMswmifilterRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsMswmifilterRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsMswmifilterRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsMswmifilterRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsMswmifilterRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsMswmifilterRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsMswmifilterRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsMswmifilterRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsMswmifilterRequest. # noqa: E501 + + + :return: The policies of this SettingsMswmifilterRequest. # noqa: E501 + :rtype: SettingsMswmifilterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsMswmifilterRequest. + + + :param policies: The policies of this SettingsMswmifilterRequest. # noqa: E501 + :type policies: SettingsMswmifilterPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsMswmifilterRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsMswmifilterRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsMswmifilterRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsMswmifilterRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMswmifilterRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMswmifilterRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_mswmifilter_request_patch.py b/openapi_client_udm/models/settings_mswmifilter_request_patch.py new file mode 100644 index 0000000..2b32c62 --- /dev/null +++ b/openapi_client_udm/models/settings_mswmifilter_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMswmifilterRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'SettingsMswmifilterPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsMswmifilterRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsMswmifilterRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsMswmifilterRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsMswmifilterRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsMswmifilterRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsMswmifilterRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsMswmifilterRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsMswmifilterRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsMswmifilterRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsMswmifilterRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsMswmifilterRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsMswmifilterRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsMswmifilterRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsMswmifilterRequestPatch. # noqa: E501 + + + :return: The policies of this SettingsMswmifilterRequestPatch. # noqa: E501 + :rtype: SettingsMswmifilterPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsMswmifilterRequestPatch. + + + :param policies: The policies of this SettingsMswmifilterRequestPatch. # noqa: E501 + :type policies: SettingsMswmifilterPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMswmifilterRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMswmifilterRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_mswmifilter_response_mixin.py b/openapi_client_udm/models/settings_mswmifilter_response_mixin.py new file mode 100644 index 0000000..85d8d51 --- /dev/null +++ b/openapi_client_udm/models/settings_mswmifilter_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsMswmifilterResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsMswmifilterResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsMswmifilterResponseMixin. # noqa: E501 + + + :return: The links of this SettingsMswmifilterResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsMswmifilterResponseMixin. + + + :param links: The links of this SettingsMswmifilterResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsMswmifilterResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsMswmifilterResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsMswmifilterResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsMswmifilterResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsMswmifilterResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsMswmifilterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsMswmifilterResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsMswmifilterResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsMswmifilterResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsMswmifilterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsMswmifilterResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsMswmifilterResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsMswmifilterResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsMswmifilterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsMswmifilterResponseMixin. + + + :param uri: The uri of this SettingsMswmifilterResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsMswmifilterResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsMswmifilterResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_packages.py b/openapi_client_udm/models/settings_packages.py new file mode 100644 index 0000000..73d819b --- /dev/null +++ b/openapi_client_udm/models/settings_packages.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPackages(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPackages - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsPackages. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPackages. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPackages. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPackages. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPackages. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPackages. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPackages. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPackages. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPackages. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPackages. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPackages. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPackages. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPackages. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPackages. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPackages. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPackages. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPackages. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsPackages. # noqa: E501 + + + :return: The links of this SettingsPackages. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPackages. + + + :param links: The links of this SettingsPackages. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPackages. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPackages. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPackages. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPackages. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPackages. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPackages. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPackages. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPackages. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPackages. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPackages. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPackages. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPackages. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPackages. # noqa: E501 + + + :return: The uri of this SettingsPackages. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPackages. + + + :param uri: The uri of this SettingsPackages. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPackages): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPackages): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_packages_list.py b/openapi_client_udm/models/settings_packages_list.py new file mode 100644 index 0000000..44db1d4 --- /dev/null +++ b/openapi_client_udm/models/settings_packages_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPackagesList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsPackagesListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsPackagesList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsPackagesList. # noqa: E501 + + + :return: The embedded of this SettingsPackagesList. # noqa: E501 + :rtype: SettingsPackagesListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPackagesList. + + + :param embedded: The embedded of this SettingsPackagesList. # noqa: E501 + :type embedded: SettingsPackagesListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPackagesList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPackagesList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_packages_list_embedded.py b/openapi_client_udm/models/settings_packages_list_embedded.py new file mode 100644 index 0000000..14ba8f1 --- /dev/null +++ b/openapi_client_udm/models/settings_packages_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPackagesListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsPackages]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsPackagesListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsPackagesListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsPackagesListEmbedded. # noqa: E501 + :rtype: list[SettingsPackages] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsPackagesListEmbedded. + + + :param udmobject: The udmobject of this SettingsPackagesListEmbedded. # noqa: E501 + :type udmobject: list[SettingsPackages] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPackagesListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPackagesListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_packages_request.py b/openapi_client_udm/models/settings_packages_request.py new file mode 100644 index 0000000..1d15d1e --- /dev/null +++ b/openapi_client_udm/models/settings_packages_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPackagesRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsPackagesRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsPackagesRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPackagesRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPackagesRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPackagesRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPackagesRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPackagesRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPackagesRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPackagesRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPackagesRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPackagesRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPackagesRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPackagesRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPackagesRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPackagesRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPackagesRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPackagesRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPackagesRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPackagesRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPackagesRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPackagesRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_packages_request_patch.py b/openapi_client_udm/models/settings_packages_request_patch.py new file mode 100644 index 0000000..a713209 --- /dev/null +++ b/openapi_client_udm/models/settings_packages_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPackagesRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsPackagesRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsPackagesRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPackagesRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPackagesRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPackagesRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPackagesRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPackagesRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPackagesRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPackagesRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPackagesRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPackagesRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPackagesRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPackagesRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPackagesRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPackagesRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPackagesRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPackagesRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_packages_response_mixin.py b/openapi_client_udm/models/settings_packages_response_mixin.py new file mode 100644 index 0000000..a29083f --- /dev/null +++ b/openapi_client_udm/models/settings_packages_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPackagesResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPackagesResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsPackagesResponseMixin. # noqa: E501 + + + :return: The links of this SettingsPackagesResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPackagesResponseMixin. + + + :param links: The links of this SettingsPackagesResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPackagesResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPackagesResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPackagesResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPackagesResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPackagesResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPackagesResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPackagesResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPackagesResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPackagesResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPackagesResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPackagesResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsPackagesResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPackagesResponseMixin. + + + :param uri: The uri of this SettingsPackagesResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPackagesResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPackagesResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal.py b/openapi_client_udm/models/settings_portal.py new file mode 100644 index 0000000..f0128bd --- /dev/null +++ b/openapi_client_udm/models/settings_portal.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortal(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortal - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsPortal. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortal. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortal. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortal. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortal. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortal. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortal. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortal. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortal. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortal. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortal. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortal. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortal. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortal. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortal. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortal. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPortal. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPortal. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPortal. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPortal. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsPortal. # noqa: E501 + + + :return: The links of this SettingsPortal. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPortal. + + + :param links: The links of this SettingsPortal. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPortal. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPortal. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortal. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPortal. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPortal. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPortal. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPortal. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPortal. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPortal. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPortal. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPortal. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPortal. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPortal. # noqa: E501 + + + :return: The uri of this SettingsPortal. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPortal. + + + :param uri: The uri of this SettingsPortal. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortal): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortal): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_all.py b/openapi_client_udm/models/settings_portal_all.py new file mode 100644 index 0000000..d920199 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_all.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalAll(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalAll - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsPortalAll. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalAll. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalAll. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalAll. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalAll. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalAll. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalAll. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalAll. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalAll. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalAll. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalAll. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalAll. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalAll. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalAll. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalAll. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalAll. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPortalAll. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPortalAll. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPortalAll. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPortalAll. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsPortalAll. # noqa: E501 + + + :return: The links of this SettingsPortalAll. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPortalAll. + + + :param links: The links of this SettingsPortalAll. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalAll. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPortalAll. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalAll. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPortalAll. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPortalAll. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPortalAll. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPortalAll. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPortalAll. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPortalAll. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPortalAll. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPortalAll. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPortalAll. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPortalAll. # noqa: E501 + + + :return: The uri of this SettingsPortalAll. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPortalAll. + + + :param uri: The uri of this SettingsPortalAll. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalAll): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalAll): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_all_list.py b/openapi_client_udm/models/settings_portal_all_list.py new file mode 100644 index 0000000..c0025ee --- /dev/null +++ b/openapi_client_udm/models/settings_portal_all_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalAllList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsPortalAllListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalAllList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalAllList. # noqa: E501 + + + :return: The embedded of this SettingsPortalAllList. # noqa: E501 + :rtype: SettingsPortalAllListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalAllList. + + + :param embedded: The embedded of this SettingsPortalAllList. # noqa: E501 + :type embedded: SettingsPortalAllListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalAllList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalAllList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_all_list_embedded.py b/openapi_client_udm/models/settings_portal_all_list_embedded.py new file mode 100644 index 0000000..2d9a22c --- /dev/null +++ b/openapi_client_udm/models/settings_portal_all_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalAllListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsPortalAll]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalAllListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsPortalAllListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsPortalAllListEmbedded. # noqa: E501 + :rtype: list[SettingsPortalAll] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsPortalAllListEmbedded. + + + :param udmobject: The udmobject of this SettingsPortalAllListEmbedded. # noqa: E501 + :type udmobject: list[SettingsPortalAll] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalAllListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalAllListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_all_request.py b/openapi_client_udm/models/settings_portal_all_request.py new file mode 100644 index 0000000..ca17796 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_all_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalAllRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalAllRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsPortalAllRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalAllRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalAllRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalAllRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalAllRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalAllRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalAllRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalAllRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalAllRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalAllRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalAllRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalAllRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalAllRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalAllRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalAllRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalAllRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPortalAllRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPortalAllRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPortalAllRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPortalAllRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalAllRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalAllRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_all_request_patch.py b/openapi_client_udm/models/settings_portal_all_request_patch.py new file mode 100644 index 0000000..3b6d1dc --- /dev/null +++ b/openapi_client_udm/models/settings_portal_all_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalAllRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalAllRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsPortalAllRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalAllRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalAllRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalAllRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalAllRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalAllRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalAllRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalAllRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalAllRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalAllRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalAllRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalAllRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalAllRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalAllRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalAllRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalAllRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalAllRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalAllRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_all_response_mixin.py b/openapi_client_udm/models/settings_portal_all_response_mixin.py new file mode 100644 index 0000000..64c41f0 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_all_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalAllResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalAllResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsPortalAllResponseMixin. # noqa: E501 + + + :return: The links of this SettingsPortalAllResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPortalAllResponseMixin. + + + :param links: The links of this SettingsPortalAllResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalAllResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPortalAllResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalAllResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPortalAllResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPortalAllResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPortalAllResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPortalAllResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPortalAllResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPortalAllResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPortalAllResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPortalAllResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPortalAllResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPortalAllResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsPortalAllResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPortalAllResponseMixin. + + + :param uri: The uri of this SettingsPortalAllResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalAllResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalAllResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_category.py b/openapi_client_udm/models/settings_portal_category.py new file mode 100644 index 0000000..6b50177 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_category.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalCategory(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalCategory - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsPortalCategory. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalCategory. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalCategory. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalCategory. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalCategory. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalCategory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalCategory. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalCategory. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalCategory. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalCategory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalCategory. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalCategory. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalCategory. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalCategory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalCategory. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalCategory. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPortalCategory. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPortalCategory. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPortalCategory. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPortalCategory. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsPortalCategory. # noqa: E501 + + + :return: The links of this SettingsPortalCategory. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPortalCategory. + + + :param links: The links of this SettingsPortalCategory. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalCategory. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPortalCategory. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalCategory. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPortalCategory. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPortalCategory. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPortalCategory. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPortalCategory. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPortalCategory. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPortalCategory. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPortalCategory. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPortalCategory. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPortalCategory. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPortalCategory. # noqa: E501 + + + :return: The uri of this SettingsPortalCategory. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPortalCategory. + + + :param uri: The uri of this SettingsPortalCategory. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalCategory): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalCategory): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_category_list.py b/openapi_client_udm/models/settings_portal_category_list.py new file mode 100644 index 0000000..8dde884 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_category_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalCategoryList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsPortalCategoryListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalCategoryList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalCategoryList. # noqa: E501 + + + :return: The embedded of this SettingsPortalCategoryList. # noqa: E501 + :rtype: SettingsPortalCategoryListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalCategoryList. + + + :param embedded: The embedded of this SettingsPortalCategoryList. # noqa: E501 + :type embedded: SettingsPortalCategoryListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalCategoryList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalCategoryList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_category_list_embedded.py b/openapi_client_udm/models/settings_portal_category_list_embedded.py new file mode 100644 index 0000000..7a3f67d --- /dev/null +++ b/openapi_client_udm/models/settings_portal_category_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalCategoryListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsPortalCategory]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalCategoryListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsPortalCategoryListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsPortalCategoryListEmbedded. # noqa: E501 + :rtype: list[SettingsPortalCategory] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsPortalCategoryListEmbedded. + + + :param udmobject: The udmobject of this SettingsPortalCategoryListEmbedded. # noqa: E501 + :type udmobject: list[SettingsPortalCategory] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalCategoryListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalCategoryListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_category_request.py b/openapi_client_udm/models/settings_portal_category_request.py new file mode 100644 index 0000000..85545b2 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_category_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalCategoryRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalCategoryRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsPortalCategoryRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalCategoryRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalCategoryRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalCategoryRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalCategoryRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalCategoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalCategoryRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalCategoryRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalCategoryRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalCategoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalCategoryRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalCategoryRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalCategoryRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalCategoryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalCategoryRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalCategoryRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPortalCategoryRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPortalCategoryRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPortalCategoryRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPortalCategoryRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalCategoryRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalCategoryRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_category_request_patch.py b/openapi_client_udm/models/settings_portal_category_request_patch.py new file mode 100644 index 0000000..410d7fe --- /dev/null +++ b/openapi_client_udm/models/settings_portal_category_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalCategoryRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalCategoryRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsPortalCategoryRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalCategoryRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalCategoryRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalCategoryRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalCategoryRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalCategoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalCategoryRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalCategoryRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalCategoryRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalCategoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalCategoryRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalCategoryRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalCategoryRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalCategoryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalCategoryRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalCategoryRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalCategoryRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalCategoryRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_category_response_mixin.py b/openapi_client_udm/models/settings_portal_category_response_mixin.py new file mode 100644 index 0000000..106c057 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_category_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalCategoryResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalCategoryResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsPortalCategoryResponseMixin. # noqa: E501 + + + :return: The links of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPortalCategoryResponseMixin. + + + :param links: The links of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalCategoryResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalCategoryResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPortalCategoryResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPortalCategoryResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPortalCategoryResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPortalCategoryResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPortalCategoryResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPortalCategoryResponseMixin. + + + :param uri: The uri of this SettingsPortalCategoryResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalCategoryResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalCategoryResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_entry.py b/openapi_client_udm/models/settings_portal_entry.py new file mode 100644 index 0000000..ce6a9c2 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_entry.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalEntry(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalEntry - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsPortalEntry. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalEntry. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalEntry. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalEntry. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalEntry. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalEntry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalEntry. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalEntry. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalEntry. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalEntry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalEntry. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalEntry. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalEntry. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalEntry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalEntry. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalEntry. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPortalEntry. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPortalEntry. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPortalEntry. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPortalEntry. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsPortalEntry. # noqa: E501 + + + :return: The links of this SettingsPortalEntry. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPortalEntry. + + + :param links: The links of this SettingsPortalEntry. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalEntry. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPortalEntry. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalEntry. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPortalEntry. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPortalEntry. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPortalEntry. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPortalEntry. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPortalEntry. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPortalEntry. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPortalEntry. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPortalEntry. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPortalEntry. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPortalEntry. # noqa: E501 + + + :return: The uri of this SettingsPortalEntry. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPortalEntry. + + + :param uri: The uri of this SettingsPortalEntry. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalEntry): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalEntry): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_entry_list.py b/openapi_client_udm/models/settings_portal_entry_list.py new file mode 100644 index 0000000..33954ae --- /dev/null +++ b/openapi_client_udm/models/settings_portal_entry_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalEntryList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsPortalEntryListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalEntryList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalEntryList. # noqa: E501 + + + :return: The embedded of this SettingsPortalEntryList. # noqa: E501 + :rtype: SettingsPortalEntryListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalEntryList. + + + :param embedded: The embedded of this SettingsPortalEntryList. # noqa: E501 + :type embedded: SettingsPortalEntryListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalEntryList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalEntryList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_entry_list_embedded.py b/openapi_client_udm/models/settings_portal_entry_list_embedded.py new file mode 100644 index 0000000..c63683e --- /dev/null +++ b/openapi_client_udm/models/settings_portal_entry_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalEntryListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsPortalEntry]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalEntryListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsPortalEntryListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsPortalEntryListEmbedded. # noqa: E501 + :rtype: list[SettingsPortalEntry] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsPortalEntryListEmbedded. + + + :param udmobject: The udmobject of this SettingsPortalEntryListEmbedded. # noqa: E501 + :type udmobject: list[SettingsPortalEntry] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalEntryListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalEntryListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_entry_request.py b/openapi_client_udm/models/settings_portal_entry_request.py new file mode 100644 index 0000000..2ca0f7c --- /dev/null +++ b/openapi_client_udm/models/settings_portal_entry_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalEntryRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalEntryRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsPortalEntryRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalEntryRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalEntryRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalEntryRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalEntryRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalEntryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalEntryRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalEntryRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalEntryRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalEntryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalEntryRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalEntryRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalEntryRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalEntryRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalEntryRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalEntryRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPortalEntryRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPortalEntryRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPortalEntryRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPortalEntryRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalEntryRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalEntryRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_entry_request_patch.py b/openapi_client_udm/models/settings_portal_entry_request_patch.py new file mode 100644 index 0000000..b597984 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_entry_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalEntryRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalEntryRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsPortalEntryRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalEntryRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalEntryRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalEntryRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalEntryRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalEntryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalEntryRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalEntryRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalEntryRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalEntryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalEntryRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalEntryRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalEntryRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalEntryRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalEntryRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalEntryRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalEntryRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalEntryRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_entry_response_mixin.py b/openapi_client_udm/models/settings_portal_entry_response_mixin.py new file mode 100644 index 0000000..18132f0 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_entry_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalEntryResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalEntryResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsPortalEntryResponseMixin. # noqa: E501 + + + :return: The links of this SettingsPortalEntryResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPortalEntryResponseMixin. + + + :param links: The links of this SettingsPortalEntryResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalEntryResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPortalEntryResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalEntryResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPortalEntryResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPortalEntryResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPortalEntryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPortalEntryResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPortalEntryResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPortalEntryResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPortalEntryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPortalEntryResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPortalEntryResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPortalEntryResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsPortalEntryResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPortalEntryResponseMixin. + + + :param uri: The uri of this SettingsPortalEntryResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalEntryResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalEntryResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_list.py b/openapi_client_udm/models/settings_portal_list.py new file mode 100644 index 0000000..45a6e81 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsPortalListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalList. # noqa: E501 + + + :return: The embedded of this SettingsPortalList. # noqa: E501 + :rtype: SettingsPortalListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalList. + + + :param embedded: The embedded of this SettingsPortalList. # noqa: E501 + :type embedded: SettingsPortalListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_list_embedded.py b/openapi_client_udm/models/settings_portal_list_embedded.py new file mode 100644 index 0000000..bdd37cc --- /dev/null +++ b/openapi_client_udm/models/settings_portal_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsPortal]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsPortalListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsPortalListEmbedded. # noqa: E501 + :rtype: list[SettingsPortal] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsPortalListEmbedded. + + + :param udmobject: The udmobject of this SettingsPortalListEmbedded. # noqa: E501 + :type udmobject: list[SettingsPortal] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_request.py b/openapi_client_udm/models/settings_portal_request.py new file mode 100644 index 0000000..6ff3fa3 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsPortalRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPortalRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPortalRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPortalRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPortalRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_request_patch.py b/openapi_client_udm/models/settings_portal_request_patch.py new file mode 100644 index 0000000..2d397c4 --- /dev/null +++ b/openapi_client_udm/models/settings_portal_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsPortalRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPortalRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPortalRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPortalRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPortalRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPortalRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPortalRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPortalRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPortalRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPortalRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPortalRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPortalRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPortalRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPortalRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPortalRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPortalRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_portal_response_mixin.py b/openapi_client_udm/models/settings_portal_response_mixin.py new file mode 100644 index 0000000..5c8f55c --- /dev/null +++ b/openapi_client_udm/models/settings_portal_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPortalResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPortalResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsPortalResponseMixin. # noqa: E501 + + + :return: The links of this SettingsPortalResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPortalResponseMixin. + + + :param links: The links of this SettingsPortalResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPortalResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPortalResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPortalResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPortalResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPortalResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPortalResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPortalResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPortalResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPortalResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPortalResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPortalResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPortalResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPortalResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsPortalResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPortalResponseMixin. + + + :param uri: The uri of this SettingsPortalResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPortalResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPortalResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printermodel.py b/openapi_client_udm/models/settings_printermodel.py new file mode 100644 index 0000000..f1198d7 --- /dev/null +++ b/openapi_client_udm/models/settings_printermodel.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrintermodel(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrintermodel - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsPrintermodel. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPrintermodel. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPrintermodel. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPrintermodel. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPrintermodel. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPrintermodel. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPrintermodel. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPrintermodel. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPrintermodel. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPrintermodel. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPrintermodel. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPrintermodel. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPrintermodel. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPrintermodel. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPrintermodel. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPrintermodel. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPrintermodel. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPrintermodel. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPrintermodel. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPrintermodel. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsPrintermodel. # noqa: E501 + + + :return: The links of this SettingsPrintermodel. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPrintermodel. + + + :param links: The links of this SettingsPrintermodel. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPrintermodel. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPrintermodel. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPrintermodel. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPrintermodel. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPrintermodel. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPrintermodel. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPrintermodel. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPrintermodel. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPrintermodel. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPrintermodel. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPrintermodel. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPrintermodel. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPrintermodel. # noqa: E501 + + + :return: The uri of this SettingsPrintermodel. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPrintermodel. + + + :param uri: The uri of this SettingsPrintermodel. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrintermodel): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrintermodel): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printermodel_list.py b/openapi_client_udm/models/settings_printermodel_list.py new file mode 100644 index 0000000..d2af6d9 --- /dev/null +++ b/openapi_client_udm/models/settings_printermodel_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrintermodelList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsPrintermodelListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrintermodelList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsPrintermodelList. # noqa: E501 + + + :return: The embedded of this SettingsPrintermodelList. # noqa: E501 + :rtype: SettingsPrintermodelListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPrintermodelList. + + + :param embedded: The embedded of this SettingsPrintermodelList. # noqa: E501 + :type embedded: SettingsPrintermodelListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrintermodelList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrintermodelList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printermodel_list_embedded.py b/openapi_client_udm/models/settings_printermodel_list_embedded.py new file mode 100644 index 0000000..88b4430 --- /dev/null +++ b/openapi_client_udm/models/settings_printermodel_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrintermodelListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsPrintermodel]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrintermodelListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsPrintermodelListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsPrintermodelListEmbedded. # noqa: E501 + :rtype: list[SettingsPrintermodel] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsPrintermodelListEmbedded. + + + :param udmobject: The udmobject of this SettingsPrintermodelListEmbedded. # noqa: E501 + :type udmobject: list[SettingsPrintermodel] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrintermodelListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrintermodelListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printermodel_request.py b/openapi_client_udm/models/settings_printermodel_request.py new file mode 100644 index 0000000..d52d44b --- /dev/null +++ b/openapi_client_udm/models/settings_printermodel_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrintermodelRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrintermodelRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsPrintermodelRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPrintermodelRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPrintermodelRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPrintermodelRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPrintermodelRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPrintermodelRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPrintermodelRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPrintermodelRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPrintermodelRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPrintermodelRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPrintermodelRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPrintermodelRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPrintermodelRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPrintermodelRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPrintermodelRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPrintermodelRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPrintermodelRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPrintermodelRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPrintermodelRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPrintermodelRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrintermodelRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrintermodelRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printermodel_request_patch.py b/openapi_client_udm/models/settings_printermodel_request_patch.py new file mode 100644 index 0000000..998ac80 --- /dev/null +++ b/openapi_client_udm/models/settings_printermodel_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrintermodelRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrintermodelRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsPrintermodelRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPrintermodelRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPrintermodelRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPrintermodelRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPrintermodelRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPrintermodelRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPrintermodelRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPrintermodelRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPrintermodelRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPrintermodelRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPrintermodelRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPrintermodelRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPrintermodelRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPrintermodelRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPrintermodelRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPrintermodelRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrintermodelRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrintermodelRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printermodel_response_mixin.py b/openapi_client_udm/models/settings_printermodel_response_mixin.py new file mode 100644 index 0000000..f43ec27 --- /dev/null +++ b/openapi_client_udm/models/settings_printermodel_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrintermodelResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrintermodelResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsPrintermodelResponseMixin. # noqa: E501 + + + :return: The links of this SettingsPrintermodelResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPrintermodelResponseMixin. + + + :param links: The links of this SettingsPrintermodelResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPrintermodelResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPrintermodelResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPrintermodelResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPrintermodelResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPrintermodelResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPrintermodelResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPrintermodelResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPrintermodelResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPrintermodelResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPrintermodelResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPrintermodelResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPrintermodelResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPrintermodelResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsPrintermodelResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPrintermodelResponseMixin. + + + :param uri: The uri of this SettingsPrintermodelResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrintermodelResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrintermodelResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printeruri.py b/openapi_client_udm/models/settings_printeruri.py new file mode 100644 index 0000000..79d13b9 --- /dev/null +++ b/openapi_client_udm/models/settings_printeruri.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrinteruri(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrinteruri - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsPrinteruri. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPrinteruri. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPrinteruri. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPrinteruri. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPrinteruri. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPrinteruri. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPrinteruri. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPrinteruri. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPrinteruri. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPrinteruri. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPrinteruri. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPrinteruri. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPrinteruri. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPrinteruri. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPrinteruri. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPrinteruri. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPrinteruri. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPrinteruri. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPrinteruri. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPrinteruri. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsPrinteruri. # noqa: E501 + + + :return: The links of this SettingsPrinteruri. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPrinteruri. + + + :param links: The links of this SettingsPrinteruri. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPrinteruri. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPrinteruri. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPrinteruri. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPrinteruri. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPrinteruri. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPrinteruri. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPrinteruri. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPrinteruri. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPrinteruri. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPrinteruri. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPrinteruri. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPrinteruri. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPrinteruri. # noqa: E501 + + + :return: The uri of this SettingsPrinteruri. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPrinteruri. + + + :param uri: The uri of this SettingsPrinteruri. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrinteruri): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrinteruri): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printeruri_list.py b/openapi_client_udm/models/settings_printeruri_list.py new file mode 100644 index 0000000..ea4bd3a --- /dev/null +++ b/openapi_client_udm/models/settings_printeruri_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrinteruriList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsPrinteruriListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrinteruriList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsPrinteruriList. # noqa: E501 + + + :return: The embedded of this SettingsPrinteruriList. # noqa: E501 + :rtype: SettingsPrinteruriListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPrinteruriList. + + + :param embedded: The embedded of this SettingsPrinteruriList. # noqa: E501 + :type embedded: SettingsPrinteruriListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrinteruriList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrinteruriList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printeruri_list_embedded.py b/openapi_client_udm/models/settings_printeruri_list_embedded.py new file mode 100644 index 0000000..d38cdd7 --- /dev/null +++ b/openapi_client_udm/models/settings_printeruri_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrinteruriListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsPrinteruri]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrinteruriListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsPrinteruriListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsPrinteruriListEmbedded. # noqa: E501 + :rtype: list[SettingsPrinteruri] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsPrinteruriListEmbedded. + + + :param udmobject: The udmobject of this SettingsPrinteruriListEmbedded. # noqa: E501 + :type udmobject: list[SettingsPrinteruri] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrinteruriListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrinteruriListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printeruri_request.py b/openapi_client_udm/models/settings_printeruri_request.py new file mode 100644 index 0000000..8ef4708 --- /dev/null +++ b/openapi_client_udm/models/settings_printeruri_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrinteruriRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrinteruriRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsPrinteruriRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPrinteruriRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPrinteruriRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPrinteruriRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPrinteruriRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPrinteruriRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPrinteruriRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPrinteruriRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPrinteruriRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPrinteruriRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPrinteruriRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPrinteruriRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPrinteruriRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPrinteruriRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPrinteruriRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPrinteruriRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsPrinteruriRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsPrinteruriRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsPrinteruriRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsPrinteruriRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrinteruriRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrinteruriRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printeruri_request_patch.py b/openapi_client_udm/models/settings_printeruri_request_patch.py new file mode 100644 index 0000000..03b3e54 --- /dev/null +++ b/openapi_client_udm/models/settings_printeruri_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrinteruriRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrinteruriRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsPrinteruriRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsPrinteruriRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsPrinteruriRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsPrinteruriRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsPrinteruriRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsPrinteruriRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsPrinteruriRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsPrinteruriRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsPrinteruriRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsPrinteruriRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsPrinteruriRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsPrinteruriRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsPrinteruriRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsPrinteruriRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsPrinteruriRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsPrinteruriRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrinteruriRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrinteruriRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_printeruri_response_mixin.py b/openapi_client_udm/models/settings_printeruri_response_mixin.py new file mode 100644 index 0000000..b1e901d --- /dev/null +++ b/openapi_client_udm/models/settings_printeruri_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsPrinteruriResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsPrinteruriResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsPrinteruriResponseMixin. # noqa: E501 + + + :return: The links of this SettingsPrinteruriResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsPrinteruriResponseMixin. + + + :param links: The links of this SettingsPrinteruriResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsPrinteruriResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsPrinteruriResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsPrinteruriResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsPrinteruriResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsPrinteruriResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsPrinteruriResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsPrinteruriResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsPrinteruriResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsPrinteruriResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsPrinteruriResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsPrinteruriResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsPrinteruriResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsPrinteruriResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsPrinteruriResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsPrinteruriResponseMixin. + + + :param uri: The uri of this SettingsPrinteruriResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsPrinteruriResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsPrinteruriResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_prohibited_username.py b/openapi_client_udm/models/settings_prohibited_username.py new file mode 100644 index 0000000..ddb62ae --- /dev/null +++ b/openapi_client_udm/models/settings_prohibited_username.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsProhibitedUsername(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsProhibitedUsername - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsProhibitedUsername. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsProhibitedUsername. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsProhibitedUsername. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsProhibitedUsername. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsProhibitedUsername. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsProhibitedUsername. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsProhibitedUsername. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsProhibitedUsername. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsProhibitedUsername. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsProhibitedUsername. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsProhibitedUsername. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsProhibitedUsername. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsProhibitedUsername. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsProhibitedUsername. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsProhibitedUsername. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsProhibitedUsername. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsProhibitedUsername. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsProhibitedUsername. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsProhibitedUsername. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsProhibitedUsername. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsProhibitedUsername. # noqa: E501 + + + :return: The links of this SettingsProhibitedUsername. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsProhibitedUsername. + + + :param links: The links of this SettingsProhibitedUsername. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsProhibitedUsername. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsProhibitedUsername. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsProhibitedUsername. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsProhibitedUsername. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsProhibitedUsername. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsProhibitedUsername. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsProhibitedUsername. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsProhibitedUsername. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsProhibitedUsername. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsProhibitedUsername. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsProhibitedUsername. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsProhibitedUsername. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsProhibitedUsername. # noqa: E501 + + + :return: The uri of this SettingsProhibitedUsername. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsProhibitedUsername. + + + :param uri: The uri of this SettingsProhibitedUsername. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsProhibitedUsername): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsProhibitedUsername): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_prohibited_username_list.py b/openapi_client_udm/models/settings_prohibited_username_list.py new file mode 100644 index 0000000..cd065b0 --- /dev/null +++ b/openapi_client_udm/models/settings_prohibited_username_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsProhibitedUsernameList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsProhibitedUsernameListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsProhibitedUsernameList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsProhibitedUsernameList. # noqa: E501 + + + :return: The embedded of this SettingsProhibitedUsernameList. # noqa: E501 + :rtype: SettingsProhibitedUsernameListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsProhibitedUsernameList. + + + :param embedded: The embedded of this SettingsProhibitedUsernameList. # noqa: E501 + :type embedded: SettingsProhibitedUsernameListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsProhibitedUsernameList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsProhibitedUsernameList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_prohibited_username_list_embedded.py b/openapi_client_udm/models/settings_prohibited_username_list_embedded.py new file mode 100644 index 0000000..2d702fc --- /dev/null +++ b/openapi_client_udm/models/settings_prohibited_username_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsProhibitedUsernameListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsProhibitedUsername]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsProhibitedUsernameListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsProhibitedUsernameListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsProhibitedUsernameListEmbedded. # noqa: E501 + :rtype: list[SettingsProhibitedUsername] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsProhibitedUsernameListEmbedded. + + + :param udmobject: The udmobject of this SettingsProhibitedUsernameListEmbedded. # noqa: E501 + :type udmobject: list[SettingsProhibitedUsername] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsProhibitedUsernameListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsProhibitedUsernameListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_prohibited_username_request.py b/openapi_client_udm/models/settings_prohibited_username_request.py new file mode 100644 index 0000000..fa1d5a4 --- /dev/null +++ b/openapi_client_udm/models/settings_prohibited_username_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsProhibitedUsernameRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsProhibitedUsernameRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsProhibitedUsernameRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsProhibitedUsernameRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsProhibitedUsernameRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsProhibitedUsernameRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsProhibitedUsernameRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsProhibitedUsernameRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsProhibitedUsernameRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsProhibitedUsernameRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsProhibitedUsernameRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsProhibitedUsernameRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsProhibitedUsernameRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsProhibitedUsernameRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsProhibitedUsernameRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsProhibitedUsernameRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsProhibitedUsernameRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsProhibitedUsernameRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsProhibitedUsernameRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsProhibitedUsernameRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsProhibitedUsernameRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsProhibitedUsernameRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsProhibitedUsernameRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsProhibitedUsernameRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_prohibited_username_request_patch.py b/openapi_client_udm/models/settings_prohibited_username_request_patch.py new file mode 100644 index 0000000..7bce760 --- /dev/null +++ b/openapi_client_udm/models/settings_prohibited_username_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsProhibitedUsernameRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsProhibitedUsernameRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsProhibitedUsernameRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsProhibitedUsernameRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsProhibitedUsernameRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsProhibitedUsernameRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsProhibitedUsernameRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsProhibitedUsernameRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsProhibitedUsernameRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_prohibited_username_response_mixin.py b/openapi_client_udm/models/settings_prohibited_username_response_mixin.py new file mode 100644 index 0000000..0d6aa1c --- /dev/null +++ b/openapi_client_udm/models/settings_prohibited_username_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsProhibitedUsernameResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsProhibitedUsernameResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + + + :return: The links of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsProhibitedUsernameResponseMixin. + + + :param links: The links of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsProhibitedUsernameResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsProhibitedUsernameResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsProhibitedUsernameResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsProhibitedUsernameResponseMixin. + + + :param uri: The uri of this SettingsProhibitedUsernameResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsProhibitedUsernameResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsProhibitedUsernameResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambaconfig.py b/openapi_client_udm/models/settings_sambaconfig.py new file mode 100644 index 0000000..84603c3 --- /dev/null +++ b/openapi_client_udm/models/settings_sambaconfig.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambaconfig(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambaconfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsSambaconfig. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSambaconfig. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSambaconfig. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSambaconfig. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSambaconfig. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSambaconfig. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSambaconfig. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSambaconfig. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSambaconfig. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSambaconfig. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSambaconfig. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSambaconfig. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSambaconfig. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSambaconfig. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSambaconfig. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSambaconfig. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsSambaconfig. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsSambaconfig. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsSambaconfig. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsSambaconfig. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsSambaconfig. # noqa: E501 + + + :return: The links of this SettingsSambaconfig. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsSambaconfig. + + + :param links: The links of this SettingsSambaconfig. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsSambaconfig. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsSambaconfig. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSambaconfig. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsSambaconfig. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsSambaconfig. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsSambaconfig. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsSambaconfig. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsSambaconfig. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsSambaconfig. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsSambaconfig. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsSambaconfig. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsSambaconfig. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsSambaconfig. # noqa: E501 + + + :return: The uri of this SettingsSambaconfig. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsSambaconfig. + + + :param uri: The uri of this SettingsSambaconfig. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambaconfig): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambaconfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambaconfig_list.py b/openapi_client_udm/models/settings_sambaconfig_list.py new file mode 100644 index 0000000..bdc514d --- /dev/null +++ b/openapi_client_udm/models/settings_sambaconfig_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambaconfigList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsSambaconfigListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambaconfigList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsSambaconfigList. # noqa: E501 + + + :return: The embedded of this SettingsSambaconfigList. # noqa: E501 + :rtype: SettingsSambaconfigListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSambaconfigList. + + + :param embedded: The embedded of this SettingsSambaconfigList. # noqa: E501 + :type embedded: SettingsSambaconfigListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambaconfigList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambaconfigList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambaconfig_list_embedded.py b/openapi_client_udm/models/settings_sambaconfig_list_embedded.py new file mode 100644 index 0000000..c33e212 --- /dev/null +++ b/openapi_client_udm/models/settings_sambaconfig_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambaconfigListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsSambaconfig]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambaconfigListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsSambaconfigListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsSambaconfigListEmbedded. # noqa: E501 + :rtype: list[SettingsSambaconfig] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsSambaconfigListEmbedded. + + + :param udmobject: The udmobject of this SettingsSambaconfigListEmbedded. # noqa: E501 + :type udmobject: list[SettingsSambaconfig] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambaconfigListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambaconfigListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambaconfig_request.py b/openapi_client_udm/models/settings_sambaconfig_request.py new file mode 100644 index 0000000..08837a2 --- /dev/null +++ b/openapi_client_udm/models/settings_sambaconfig_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambaconfigRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambaconfigRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsSambaconfigRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSambaconfigRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSambaconfigRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSambaconfigRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSambaconfigRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSambaconfigRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSambaconfigRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSambaconfigRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSambaconfigRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSambaconfigRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSambaconfigRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSambaconfigRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSambaconfigRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSambaconfigRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSambaconfigRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSambaconfigRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsSambaconfigRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsSambaconfigRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsSambaconfigRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsSambaconfigRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambaconfigRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambaconfigRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambaconfig_request_patch.py b/openapi_client_udm/models/settings_sambaconfig_request_patch.py new file mode 100644 index 0000000..9e594be --- /dev/null +++ b/openapi_client_udm/models/settings_sambaconfig_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambaconfigRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambaconfigRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsSambaconfigRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSambaconfigRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSambaconfigRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSambaconfigRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSambaconfigRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSambaconfigRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSambaconfigRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSambaconfigRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSambaconfigRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSambaconfigRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSambaconfigRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSambaconfigRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSambaconfigRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSambaconfigRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSambaconfigRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSambaconfigRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambaconfigRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambaconfigRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambaconfig_response_mixin.py b/openapi_client_udm/models/settings_sambaconfig_response_mixin.py new file mode 100644 index 0000000..51c1f42 --- /dev/null +++ b/openapi_client_udm/models/settings_sambaconfig_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambaconfigResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambaconfigResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsSambaconfigResponseMixin. # noqa: E501 + + + :return: The links of this SettingsSambaconfigResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsSambaconfigResponseMixin. + + + :param links: The links of this SettingsSambaconfigResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsSambaconfigResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsSambaconfigResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSambaconfigResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsSambaconfigResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsSambaconfigResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsSambaconfigResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsSambaconfigResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsSambaconfigResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsSambaconfigResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsSambaconfigResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsSambaconfigResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsSambaconfigResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsSambaconfigResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsSambaconfigResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsSambaconfigResponseMixin. + + + :param uri: The uri of this SettingsSambaconfigResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambaconfigResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambaconfigResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambadomain.py b/openapi_client_udm/models/settings_sambadomain.py new file mode 100644 index 0000000..b741654 --- /dev/null +++ b/openapi_client_udm/models/settings_sambadomain.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambadomain(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambadomain - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsSambadomain. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSambadomain. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSambadomain. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSambadomain. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSambadomain. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSambadomain. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSambadomain. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSambadomain. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSambadomain. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSambadomain. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSambadomain. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSambadomain. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSambadomain. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSambadomain. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSambadomain. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSambadomain. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsSambadomain. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsSambadomain. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsSambadomain. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsSambadomain. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsSambadomain. # noqa: E501 + + + :return: The links of this SettingsSambadomain. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsSambadomain. + + + :param links: The links of this SettingsSambadomain. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsSambadomain. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsSambadomain. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSambadomain. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsSambadomain. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsSambadomain. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsSambadomain. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsSambadomain. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsSambadomain. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsSambadomain. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsSambadomain. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsSambadomain. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsSambadomain. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsSambadomain. # noqa: E501 + + + :return: The uri of this SettingsSambadomain. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsSambadomain. + + + :param uri: The uri of this SettingsSambadomain. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambadomain): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambadomain): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambadomain_list.py b/openapi_client_udm/models/settings_sambadomain_list.py new file mode 100644 index 0000000..eddd4cc --- /dev/null +++ b/openapi_client_udm/models/settings_sambadomain_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambadomainList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsSambadomainListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambadomainList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsSambadomainList. # noqa: E501 + + + :return: The embedded of this SettingsSambadomainList. # noqa: E501 + :rtype: SettingsSambadomainListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSambadomainList. + + + :param embedded: The embedded of this SettingsSambadomainList. # noqa: E501 + :type embedded: SettingsSambadomainListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambadomainList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambadomainList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambadomain_list_embedded.py b/openapi_client_udm/models/settings_sambadomain_list_embedded.py new file mode 100644 index 0000000..53d9b1a --- /dev/null +++ b/openapi_client_udm/models/settings_sambadomain_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambadomainListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsSambadomain]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambadomainListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsSambadomainListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsSambadomainListEmbedded. # noqa: E501 + :rtype: list[SettingsSambadomain] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsSambadomainListEmbedded. + + + :param udmobject: The udmobject of this SettingsSambadomainListEmbedded. # noqa: E501 + :type udmobject: list[SettingsSambadomain] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambadomainListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambadomainListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambadomain_request.py b/openapi_client_udm/models/settings_sambadomain_request.py new file mode 100644 index 0000000..e11939a --- /dev/null +++ b/openapi_client_udm/models/settings_sambadomain_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambadomainRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambadomainRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsSambadomainRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSambadomainRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSambadomainRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSambadomainRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSambadomainRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSambadomainRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSambadomainRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSambadomainRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSambadomainRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSambadomainRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSambadomainRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSambadomainRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSambadomainRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSambadomainRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSambadomainRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSambadomainRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsSambadomainRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsSambadomainRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsSambadomainRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsSambadomainRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambadomainRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambadomainRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambadomain_request_patch.py b/openapi_client_udm/models/settings_sambadomain_request_patch.py new file mode 100644 index 0000000..5176cb5 --- /dev/null +++ b/openapi_client_udm/models/settings_sambadomain_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambadomainRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambadomainRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsSambadomainRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSambadomainRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSambadomainRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSambadomainRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSambadomainRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSambadomainRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSambadomainRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSambadomainRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSambadomainRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSambadomainRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSambadomainRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSambadomainRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSambadomainRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSambadomainRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSambadomainRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSambadomainRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambadomainRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambadomainRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_sambadomain_response_mixin.py b/openapi_client_udm/models/settings_sambadomain_response_mixin.py new file mode 100644 index 0000000..19adf38 --- /dev/null +++ b/openapi_client_udm/models/settings_sambadomain_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSambadomainResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsSambadomainResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsSambadomainResponseMixin. # noqa: E501 + + + :return: The links of this SettingsSambadomainResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsSambadomainResponseMixin. + + + :param links: The links of this SettingsSambadomainResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsSambadomainResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsSambadomainResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSambadomainResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsSambadomainResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsSambadomainResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsSambadomainResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsSambadomainResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsSambadomainResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsSambadomainResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsSambadomainResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsSambadomainResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsSambadomainResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsSambadomainResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsSambadomainResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsSambadomainResponseMixin. + + + :param uri: The uri of this SettingsSambadomainResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSambadomainResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSambadomainResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_service.py b/openapi_client_udm/models/settings_service.py new file mode 100644 index 0000000..6db63d7 --- /dev/null +++ b/openapi_client_udm/models/settings_service.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsService(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsService - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsService. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsService. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsService. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsService. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsService. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsService. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsService. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsService. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsService. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsService. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsService. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsService. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsService. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsService. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsService. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsService. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsService. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsService. # noqa: E501 + + + :return: The links of this SettingsService. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsService. + + + :param links: The links of this SettingsService. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsService. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsService. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsService. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsService. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsService. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsService. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsService. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsService. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsService. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsService. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsService. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsService. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsService. # noqa: E501 + + + :return: The uri of this SettingsService. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsService. + + + :param uri: The uri of this SettingsService. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsService): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsService): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_service_list.py b/openapi_client_udm/models/settings_service_list.py new file mode 100644 index 0000000..5540365 --- /dev/null +++ b/openapi_client_udm/models/settings_service_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsServiceList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsServiceListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsServiceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsServiceList. # noqa: E501 + + + :return: The embedded of this SettingsServiceList. # noqa: E501 + :rtype: SettingsServiceListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsServiceList. + + + :param embedded: The embedded of this SettingsServiceList. # noqa: E501 + :type embedded: SettingsServiceListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsServiceList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsServiceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_service_list_embedded.py b/openapi_client_udm/models/settings_service_list_embedded.py new file mode 100644 index 0000000..b637040 --- /dev/null +++ b/openapi_client_udm/models/settings_service_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsServiceListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsService]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsServiceListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsServiceListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsServiceListEmbedded. # noqa: E501 + :rtype: list[SettingsService] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsServiceListEmbedded. + + + :param udmobject: The udmobject of this SettingsServiceListEmbedded. # noqa: E501 + :type udmobject: list[SettingsService] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsServiceListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsServiceListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_service_request.py b/openapi_client_udm/models/settings_service_request.py new file mode 100644 index 0000000..5563452 --- /dev/null +++ b/openapi_client_udm/models/settings_service_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsServiceRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsServiceRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsServiceRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsServiceRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsServiceRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsServiceRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsServiceRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsServiceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsServiceRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsServiceRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsServiceRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsServiceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsServiceRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsServiceRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsServiceRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsServiceRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsServiceRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsServiceRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsServiceRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsServiceRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsServiceRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsServiceRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsServiceRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsServiceRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_service_request_patch.py b/openapi_client_udm/models/settings_service_request_patch.py new file mode 100644 index 0000000..f35b299 --- /dev/null +++ b/openapi_client_udm/models/settings_service_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsServiceRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsServiceRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsServiceRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsServiceRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsServiceRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsServiceRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsServiceRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsServiceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsServiceRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsServiceRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsServiceRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsServiceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsServiceRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsServiceRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsServiceRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsServiceRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsServiceRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsServiceRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsServiceRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsServiceRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_service_response_mixin.py b/openapi_client_udm/models/settings_service_response_mixin.py new file mode 100644 index 0000000..604cd55 --- /dev/null +++ b/openapi_client_udm/models/settings_service_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsServiceResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsServiceResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsServiceResponseMixin. # noqa: E501 + + + :return: The links of this SettingsServiceResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsServiceResponseMixin. + + + :param links: The links of this SettingsServiceResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsServiceResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsServiceResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsServiceResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsServiceResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsServiceResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsServiceResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsServiceResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsServiceResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsServiceResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsServiceResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsServiceResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsServiceResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsServiceResponseMixin. + + + :param uri: The uri of this SettingsServiceResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsServiceResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsServiceResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_settings.py b/openapi_client_udm/models/settings_settings.py new file mode 100644 index 0000000..089d7a7 --- /dev/null +++ b/openapi_client_udm/models/settings_settings.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSettings(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsSettings - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsSettings. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSettings. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSettings. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSettings. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSettings. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSettings. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSettings. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSettings. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSettings. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSettings. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSettings. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSettings. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSettings. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSettings. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSettings. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSettings. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsSettings. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsSettings. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsSettings. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsSettings. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsSettings. # noqa: E501 + + + :return: The links of this SettingsSettings. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsSettings. + + + :param links: The links of this SettingsSettings. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsSettings. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsSettings. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSettings. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsSettings. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsSettings. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsSettings. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsSettings. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsSettings. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsSettings. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsSettings. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsSettings. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsSettings. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsSettings. # noqa: E501 + + + :return: The uri of this SettingsSettings. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsSettings. + + + :param uri: The uri of this SettingsSettings. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSettings): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSettings): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_settings_list.py b/openapi_client_udm/models/settings_settings_list.py new file mode 100644 index 0000000..48cd338 --- /dev/null +++ b/openapi_client_udm/models/settings_settings_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSettingsList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsSettingsListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsSettingsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsSettingsList. # noqa: E501 + + + :return: The embedded of this SettingsSettingsList. # noqa: E501 + :rtype: SettingsSettingsListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSettingsList. + + + :param embedded: The embedded of this SettingsSettingsList. # noqa: E501 + :type embedded: SettingsSettingsListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSettingsList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSettingsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_settings_list_embedded.py b/openapi_client_udm/models/settings_settings_list_embedded.py new file mode 100644 index 0000000..8c506a9 --- /dev/null +++ b/openapi_client_udm/models/settings_settings_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSettingsListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsSettings]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsSettingsListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsSettingsListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsSettingsListEmbedded. # noqa: E501 + :rtype: list[SettingsSettings] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsSettingsListEmbedded. + + + :param udmobject: The udmobject of this SettingsSettingsListEmbedded. # noqa: E501 + :type udmobject: list[SettingsSettings] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSettingsListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSettingsListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_settings_request.py b/openapi_client_udm/models/settings_settings_request.py new file mode 100644 index 0000000..757a339 --- /dev/null +++ b/openapi_client_udm/models/settings_settings_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSettingsRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsSettingsRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsSettingsRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSettingsRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSettingsRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSettingsRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSettingsRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSettingsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSettingsRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSettingsRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSettingsRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSettingsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSettingsRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSettingsRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSettingsRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSettingsRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSettingsRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSettingsRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsSettingsRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsSettingsRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsSettingsRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsSettingsRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSettingsRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSettingsRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_settings_request_patch.py b/openapi_client_udm/models/settings_settings_request_patch.py new file mode 100644 index 0000000..2b2c04f --- /dev/null +++ b/openapi_client_udm/models/settings_settings_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSettingsRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsSettingsRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsSettingsRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSettingsRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSettingsRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSettingsRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSettingsRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSettingsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSettingsRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSettingsRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSettingsRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSettingsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSettingsRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSettingsRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSettingsRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSettingsRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSettingsRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSettingsRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSettingsRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSettingsRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_settings_response_mixin.py b/openapi_client_udm/models/settings_settings_response_mixin.py new file mode 100644 index 0000000..60dad36 --- /dev/null +++ b/openapi_client_udm/models/settings_settings_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSettingsResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsSettingsResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsSettingsResponseMixin. # noqa: E501 + + + :return: The links of this SettingsSettingsResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsSettingsResponseMixin. + + + :param links: The links of this SettingsSettingsResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsSettingsResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsSettingsResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSettingsResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsSettingsResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsSettingsResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsSettingsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsSettingsResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsSettingsResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsSettingsResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsSettingsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsSettingsResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsSettingsResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsSettingsResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsSettingsResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsSettingsResponseMixin. + + + :param uri: The uri of this SettingsSettingsResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSettingsResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSettingsResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_syntax.py b/openapi_client_udm/models/settings_syntax.py new file mode 100644 index 0000000..48bafb0 --- /dev/null +++ b/openapi_client_udm/models/settings_syntax.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSyntax(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsSyntax - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsSyntax. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSyntax. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSyntax. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSyntax. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSyntax. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSyntax. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSyntax. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSyntax. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSyntax. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSyntax. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSyntax. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSyntax. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSyntax. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSyntax. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSyntax. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSyntax. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsSyntax. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsSyntax. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsSyntax. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsSyntax. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsSyntax. # noqa: E501 + + + :return: The links of this SettingsSyntax. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsSyntax. + + + :param links: The links of this SettingsSyntax. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsSyntax. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsSyntax. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSyntax. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsSyntax. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsSyntax. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsSyntax. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsSyntax. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsSyntax. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsSyntax. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsSyntax. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsSyntax. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsSyntax. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsSyntax. # noqa: E501 + + + :return: The uri of this SettingsSyntax. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsSyntax. + + + :param uri: The uri of this SettingsSyntax. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSyntax): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSyntax): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_syntax_list.py b/openapi_client_udm/models/settings_syntax_list.py new file mode 100644 index 0000000..a97b283 --- /dev/null +++ b/openapi_client_udm/models/settings_syntax_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSyntaxList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsSyntaxListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsSyntaxList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsSyntaxList. # noqa: E501 + + + :return: The embedded of this SettingsSyntaxList. # noqa: E501 + :rtype: SettingsSyntaxListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSyntaxList. + + + :param embedded: The embedded of this SettingsSyntaxList. # noqa: E501 + :type embedded: SettingsSyntaxListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSyntaxList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSyntaxList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_syntax_list_embedded.py b/openapi_client_udm/models/settings_syntax_list_embedded.py new file mode 100644 index 0000000..bd2f57e --- /dev/null +++ b/openapi_client_udm/models/settings_syntax_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSyntaxListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsSyntax]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsSyntaxListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsSyntaxListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsSyntaxListEmbedded. # noqa: E501 + :rtype: list[SettingsSyntax] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsSyntaxListEmbedded. + + + :param udmobject: The udmobject of this SettingsSyntaxListEmbedded. # noqa: E501 + :type udmobject: list[SettingsSyntax] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSyntaxListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSyntaxListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_syntax_request.py b/openapi_client_udm/models/settings_syntax_request.py new file mode 100644 index 0000000..99e553b --- /dev/null +++ b/openapi_client_udm/models/settings_syntax_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSyntaxRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsSyntaxRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsSyntaxRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSyntaxRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSyntaxRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSyntaxRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSyntaxRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSyntaxRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSyntaxRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSyntaxRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSyntaxRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSyntaxRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSyntaxRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSyntaxRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSyntaxRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSyntaxRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSyntaxRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSyntaxRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsSyntaxRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsSyntaxRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsSyntaxRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsSyntaxRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSyntaxRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSyntaxRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_syntax_request_patch.py b/openapi_client_udm/models/settings_syntax_request_patch.py new file mode 100644 index 0000000..e7e26de --- /dev/null +++ b/openapi_client_udm/models/settings_syntax_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSyntaxRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsSyntaxRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsSyntaxRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsSyntaxRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsSyntaxRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsSyntaxRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsSyntaxRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsSyntaxRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsSyntaxRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsSyntaxRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsSyntaxRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsSyntaxRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsSyntaxRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsSyntaxRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsSyntaxRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsSyntaxRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsSyntaxRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsSyntaxRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSyntaxRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSyntaxRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_syntax_response_mixin.py b/openapi_client_udm/models/settings_syntax_response_mixin.py new file mode 100644 index 0000000..3b3094d --- /dev/null +++ b/openapi_client_udm/models/settings_syntax_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsSyntaxResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsSyntaxResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsSyntaxResponseMixin. # noqa: E501 + + + :return: The links of this SettingsSyntaxResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsSyntaxResponseMixin. + + + :param links: The links of this SettingsSyntaxResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsSyntaxResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsSyntaxResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsSyntaxResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsSyntaxResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsSyntaxResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsSyntaxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsSyntaxResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsSyntaxResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsSyntaxResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsSyntaxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsSyntaxResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsSyntaxResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsSyntaxResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsSyntaxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsSyntaxResponseMixin. + + + :param uri: The uri of this SettingsSyntaxResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsSyntaxResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsSyntaxResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_hook.py b/openapi_client_udm/models/settings_udm_hook.py new file mode 100644 index 0000000..d038f78 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_hook.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmHook(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmHook - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsUdmHook. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmHook. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmHook. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmHook. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmHook. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmHook. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmHook. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmHook. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmHook. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmHook. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmHook. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmHook. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmHook. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmHook. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmHook. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmHook. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUdmHook. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUdmHook. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUdmHook. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUdmHook. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsUdmHook. # noqa: E501 + + + :return: The links of this SettingsUdmHook. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUdmHook. + + + :param links: The links of this SettingsUdmHook. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmHook. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUdmHook. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmHook. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUdmHook. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUdmHook. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUdmHook. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUdmHook. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUdmHook. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUdmHook. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUdmHook. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUdmHook. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUdmHook. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUdmHook. # noqa: E501 + + + :return: The uri of this SettingsUdmHook. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUdmHook. + + + :param uri: The uri of this SettingsUdmHook. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmHook): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmHook): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_hook_list.py b/openapi_client_udm/models/settings_udm_hook_list.py new file mode 100644 index 0000000..76478b0 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_hook_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmHookList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsUdmHookListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmHookList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmHookList. # noqa: E501 + + + :return: The embedded of this SettingsUdmHookList. # noqa: E501 + :rtype: SettingsUdmHookListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmHookList. + + + :param embedded: The embedded of this SettingsUdmHookList. # noqa: E501 + :type embedded: SettingsUdmHookListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmHookList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmHookList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_hook_list_embedded.py b/openapi_client_udm/models/settings_udm_hook_list_embedded.py new file mode 100644 index 0000000..d8b9fc1 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_hook_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmHookListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsUdmHook]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmHookListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsUdmHookListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsUdmHookListEmbedded. # noqa: E501 + :rtype: list[SettingsUdmHook] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsUdmHookListEmbedded. + + + :param udmobject: The udmobject of this SettingsUdmHookListEmbedded. # noqa: E501 + :type udmobject: list[SettingsUdmHook] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmHookListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmHookListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_hook_request.py b/openapi_client_udm/models/settings_udm_hook_request.py new file mode 100644 index 0000000..f9d4ad2 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_hook_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmHookRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmHookRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsUdmHookRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmHookRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmHookRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmHookRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmHookRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmHookRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmHookRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmHookRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmHookRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmHookRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmHookRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmHookRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmHookRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmHookRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmHookRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmHookRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUdmHookRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUdmHookRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUdmHookRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUdmHookRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmHookRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmHookRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_hook_request_patch.py b/openapi_client_udm/models/settings_udm_hook_request_patch.py new file mode 100644 index 0000000..e29572c --- /dev/null +++ b/openapi_client_udm/models/settings_udm_hook_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmHookRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmHookRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsUdmHookRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmHookRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmHookRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmHookRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmHookRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmHookRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmHookRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmHookRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmHookRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmHookRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmHookRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmHookRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmHookRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmHookRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmHookRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmHookRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmHookRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmHookRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_hook_response_mixin.py b/openapi_client_udm/models/settings_udm_hook_response_mixin.py new file mode 100644 index 0000000..0aa14c5 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_hook_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmHookResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmHookResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsUdmHookResponseMixin. # noqa: E501 + + + :return: The links of this SettingsUdmHookResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUdmHookResponseMixin. + + + :param links: The links of this SettingsUdmHookResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmHookResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUdmHookResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmHookResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUdmHookResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUdmHookResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUdmHookResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUdmHookResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUdmHookResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUdmHookResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUdmHookResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUdmHookResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUdmHookResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUdmHookResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsUdmHookResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUdmHookResponseMixin. + + + :param uri: The uri of this SettingsUdmHookResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmHookResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmHookResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_module.py b/openapi_client_udm/models/settings_udm_module.py new file mode 100644 index 0000000..62a5971 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_module.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmModule(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmModule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsUdmModule. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmModule. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmModule. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmModule. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmModule. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmModule. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmModule. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmModule. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmModule. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmModule. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmModule. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmModule. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmModule. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmModule. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmModule. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmModule. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUdmModule. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUdmModule. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUdmModule. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUdmModule. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsUdmModule. # noqa: E501 + + + :return: The links of this SettingsUdmModule. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUdmModule. + + + :param links: The links of this SettingsUdmModule. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmModule. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUdmModule. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmModule. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUdmModule. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUdmModule. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUdmModule. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUdmModule. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUdmModule. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUdmModule. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUdmModule. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUdmModule. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUdmModule. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUdmModule. # noqa: E501 + + + :return: The uri of this SettingsUdmModule. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUdmModule. + + + :param uri: The uri of this SettingsUdmModule. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmModule): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmModule): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_module_list.py b/openapi_client_udm/models/settings_udm_module_list.py new file mode 100644 index 0000000..1f9cc65 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_module_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmModuleList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsUdmModuleListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmModuleList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmModuleList. # noqa: E501 + + + :return: The embedded of this SettingsUdmModuleList. # noqa: E501 + :rtype: SettingsUdmModuleListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmModuleList. + + + :param embedded: The embedded of this SettingsUdmModuleList. # noqa: E501 + :type embedded: SettingsUdmModuleListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmModuleList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmModuleList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_module_list_embedded.py b/openapi_client_udm/models/settings_udm_module_list_embedded.py new file mode 100644 index 0000000..492b7ab --- /dev/null +++ b/openapi_client_udm/models/settings_udm_module_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmModuleListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsUdmModule]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmModuleListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsUdmModuleListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsUdmModuleListEmbedded. # noqa: E501 + :rtype: list[SettingsUdmModule] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsUdmModuleListEmbedded. + + + :param udmobject: The udmobject of this SettingsUdmModuleListEmbedded. # noqa: E501 + :type udmobject: list[SettingsUdmModule] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmModuleListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmModuleListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_module_request.py b/openapi_client_udm/models/settings_udm_module_request.py new file mode 100644 index 0000000..7a863df --- /dev/null +++ b/openapi_client_udm/models/settings_udm_module_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmModuleRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmModuleRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsUdmModuleRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmModuleRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmModuleRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmModuleRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmModuleRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmModuleRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmModuleRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmModuleRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmModuleRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmModuleRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmModuleRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmModuleRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmModuleRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmModuleRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmModuleRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmModuleRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUdmModuleRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUdmModuleRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUdmModuleRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUdmModuleRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmModuleRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmModuleRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_module_request_patch.py b/openapi_client_udm/models/settings_udm_module_request_patch.py new file mode 100644 index 0000000..10acf13 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_module_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmModuleRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmModuleRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsUdmModuleRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmModuleRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmModuleRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmModuleRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmModuleRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmModuleRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmModuleRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmModuleRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmModuleRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmModuleRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmModuleRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmModuleRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmModuleRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmModuleRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmModuleRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmModuleRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmModuleRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmModuleRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_module_response_mixin.py b/openapi_client_udm/models/settings_udm_module_response_mixin.py new file mode 100644 index 0000000..0464729 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_module_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmModuleResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmModuleResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsUdmModuleResponseMixin. # noqa: E501 + + + :return: The links of this SettingsUdmModuleResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUdmModuleResponseMixin. + + + :param links: The links of this SettingsUdmModuleResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmModuleResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUdmModuleResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmModuleResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUdmModuleResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUdmModuleResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUdmModuleResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUdmModuleResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUdmModuleResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUdmModuleResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUdmModuleResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUdmModuleResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUdmModuleResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUdmModuleResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsUdmModuleResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUdmModuleResponseMixin. + + + :param uri: The uri of this SettingsUdmModuleResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmModuleResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmModuleResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_syntax.py b/openapi_client_udm/models/settings_udm_syntax.py new file mode 100644 index 0000000..200dd81 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_syntax.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmSyntax(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmSyntax - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsUdmSyntax. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmSyntax. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmSyntax. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmSyntax. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmSyntax. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmSyntax. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmSyntax. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmSyntax. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmSyntax. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmSyntax. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmSyntax. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmSyntax. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmSyntax. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmSyntax. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmSyntax. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmSyntax. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUdmSyntax. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUdmSyntax. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUdmSyntax. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUdmSyntax. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsUdmSyntax. # noqa: E501 + + + :return: The links of this SettingsUdmSyntax. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUdmSyntax. + + + :param links: The links of this SettingsUdmSyntax. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmSyntax. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUdmSyntax. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmSyntax. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUdmSyntax. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUdmSyntax. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUdmSyntax. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUdmSyntax. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUdmSyntax. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUdmSyntax. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUdmSyntax. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUdmSyntax. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUdmSyntax. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUdmSyntax. # noqa: E501 + + + :return: The uri of this SettingsUdmSyntax. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUdmSyntax. + + + :param uri: The uri of this SettingsUdmSyntax. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmSyntax): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmSyntax): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_syntax_list.py b/openapi_client_udm/models/settings_udm_syntax_list.py new file mode 100644 index 0000000..79d48da --- /dev/null +++ b/openapi_client_udm/models/settings_udm_syntax_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmSyntaxList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsUdmSyntaxListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmSyntaxList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmSyntaxList. # noqa: E501 + + + :return: The embedded of this SettingsUdmSyntaxList. # noqa: E501 + :rtype: SettingsUdmSyntaxListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmSyntaxList. + + + :param embedded: The embedded of this SettingsUdmSyntaxList. # noqa: E501 + :type embedded: SettingsUdmSyntaxListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmSyntaxList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmSyntaxList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_syntax_list_embedded.py b/openapi_client_udm/models/settings_udm_syntax_list_embedded.py new file mode 100644 index 0000000..7933a0f --- /dev/null +++ b/openapi_client_udm/models/settings_udm_syntax_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmSyntaxListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsUdmSyntax]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmSyntaxListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsUdmSyntaxListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsUdmSyntaxListEmbedded. # noqa: E501 + :rtype: list[SettingsUdmSyntax] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsUdmSyntaxListEmbedded. + + + :param udmobject: The udmobject of this SettingsUdmSyntaxListEmbedded. # noqa: E501 + :type udmobject: list[SettingsUdmSyntax] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmSyntaxListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmSyntaxListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_syntax_request.py b/openapi_client_udm/models/settings_udm_syntax_request.py new file mode 100644 index 0000000..e33520e --- /dev/null +++ b/openapi_client_udm/models/settings_udm_syntax_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmSyntaxRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmSyntaxRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsUdmSyntaxRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmSyntaxRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmSyntaxRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmSyntaxRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmSyntaxRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmSyntaxRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmSyntaxRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmSyntaxRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmSyntaxRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmSyntaxRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmSyntaxRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmSyntaxRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmSyntaxRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmSyntaxRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmSyntaxRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmSyntaxRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUdmSyntaxRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUdmSyntaxRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUdmSyntaxRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUdmSyntaxRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmSyntaxRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmSyntaxRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_syntax_request_patch.py b/openapi_client_udm/models/settings_udm_syntax_request_patch.py new file mode 100644 index 0000000..747b6e3 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_syntax_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmSyntaxRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmSyntaxRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUdmSyntaxRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUdmSyntaxRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUdmSyntaxRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUdmSyntaxRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUdmSyntaxRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmSyntaxRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmSyntaxRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_udm_syntax_response_mixin.py b/openapi_client_udm/models/settings_udm_syntax_response_mixin.py new file mode 100644 index 0000000..b0c9791 --- /dev/null +++ b/openapi_client_udm/models/settings_udm_syntax_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUdmSyntaxResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUdmSyntaxResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + + + :return: The links of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUdmSyntaxResponseMixin. + + + :param links: The links of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUdmSyntaxResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUdmSyntaxResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUdmSyntaxResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUdmSyntaxResponseMixin. + + + :param uri: The uri of this SettingsUdmSyntaxResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUdmSyntaxResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUdmSyntaxResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_umc_operationset.py b/openapi_client_udm/models/settings_umc_operationset.py new file mode 100644 index 0000000..8c604ea --- /dev/null +++ b/openapi_client_udm/models/settings_umc_operationset.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUmcOperationset(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUmcOperationset - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsUmcOperationset. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUmcOperationset. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUmcOperationset. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUmcOperationset. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUmcOperationset. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUmcOperationset. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUmcOperationset. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUmcOperationset. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUmcOperationset. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUmcOperationset. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUmcOperationset. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUmcOperationset. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUmcOperationset. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUmcOperationset. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUmcOperationset. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUmcOperationset. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUmcOperationset. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUmcOperationset. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUmcOperationset. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUmcOperationset. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsUmcOperationset. # noqa: E501 + + + :return: The links of this SettingsUmcOperationset. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUmcOperationset. + + + :param links: The links of this SettingsUmcOperationset. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUmcOperationset. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUmcOperationset. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUmcOperationset. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUmcOperationset. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUmcOperationset. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUmcOperationset. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUmcOperationset. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUmcOperationset. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUmcOperationset. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUmcOperationset. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUmcOperationset. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUmcOperationset. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUmcOperationset. # noqa: E501 + + + :return: The uri of this SettingsUmcOperationset. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUmcOperationset. + + + :param uri: The uri of this SettingsUmcOperationset. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUmcOperationset): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUmcOperationset): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_umc_operationset_list.py b/openapi_client_udm/models/settings_umc_operationset_list.py new file mode 100644 index 0000000..9e13411 --- /dev/null +++ b/openapi_client_udm/models/settings_umc_operationset_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUmcOperationsetList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsUmcOperationsetListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsUmcOperationsetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsUmcOperationsetList. # noqa: E501 + + + :return: The embedded of this SettingsUmcOperationsetList. # noqa: E501 + :rtype: SettingsUmcOperationsetListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUmcOperationsetList. + + + :param embedded: The embedded of this SettingsUmcOperationsetList. # noqa: E501 + :type embedded: SettingsUmcOperationsetListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUmcOperationsetList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUmcOperationsetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_umc_operationset_list_embedded.py b/openapi_client_udm/models/settings_umc_operationset_list_embedded.py new file mode 100644 index 0000000..7157846 --- /dev/null +++ b/openapi_client_udm/models/settings_umc_operationset_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUmcOperationsetListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsUmcOperationset]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsUmcOperationsetListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsUmcOperationsetListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsUmcOperationsetListEmbedded. # noqa: E501 + :rtype: list[SettingsUmcOperationset] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsUmcOperationsetListEmbedded. + + + :param udmobject: The udmobject of this SettingsUmcOperationsetListEmbedded. # noqa: E501 + :type udmobject: list[SettingsUmcOperationset] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUmcOperationsetListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUmcOperationsetListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_umc_operationset_request.py b/openapi_client_udm/models/settings_umc_operationset_request.py new file mode 100644 index 0000000..5241324 --- /dev/null +++ b/openapi_client_udm/models/settings_umc_operationset_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUmcOperationsetRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsUmcOperationsetRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsUmcOperationsetRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUmcOperationsetRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUmcOperationsetRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUmcOperationsetRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUmcOperationsetRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUmcOperationsetRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUmcOperationsetRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUmcOperationsetRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUmcOperationsetRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUmcOperationsetRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUmcOperationsetRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUmcOperationsetRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUmcOperationsetRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUmcOperationsetRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUmcOperationsetRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUmcOperationsetRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUmcOperationsetRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUmcOperationsetRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUmcOperationsetRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUmcOperationsetRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUmcOperationsetRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUmcOperationsetRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_umc_operationset_request_patch.py b/openapi_client_udm/models/settings_umc_operationset_request_patch.py new file mode 100644 index 0000000..e8a119c --- /dev/null +++ b/openapi_client_udm/models/settings_umc_operationset_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUmcOperationsetRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsUmcOperationsetRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUmcOperationsetRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUmcOperationsetRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUmcOperationsetRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUmcOperationsetRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUmcOperationsetRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUmcOperationsetRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUmcOperationsetRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_umc_operationset_response_mixin.py b/openapi_client_udm/models/settings_umc_operationset_response_mixin.py new file mode 100644 index 0000000..cfe6646 --- /dev/null +++ b/openapi_client_udm/models/settings_umc_operationset_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUmcOperationsetResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUmcOperationsetResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + + + :return: The links of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUmcOperationsetResponseMixin. + + + :param links: The links of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUmcOperationsetResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUmcOperationsetResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUmcOperationsetResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUmcOperationsetResponseMixin. + + + :param uri: The uri of this SettingsUmcOperationsetResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUmcOperationsetResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUmcOperationsetResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_usertemplate.py b/openapi_client_udm/models/settings_usertemplate.py new file mode 100644 index 0000000..387ae69 --- /dev/null +++ b/openapi_client_udm/models/settings_usertemplate.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUsertemplate(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUsertemplate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SettingsUsertemplate. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUsertemplate. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUsertemplate. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUsertemplate. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUsertemplate. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUsertemplate. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUsertemplate. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUsertemplate. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUsertemplate. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUsertemplate. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUsertemplate. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUsertemplate. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUsertemplate. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUsertemplate. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUsertemplate. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUsertemplate. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUsertemplate. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUsertemplate. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUsertemplate. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUsertemplate. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SettingsUsertemplate. # noqa: E501 + + + :return: The links of this SettingsUsertemplate. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUsertemplate. + + + :param links: The links of this SettingsUsertemplate. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUsertemplate. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUsertemplate. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUsertemplate. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUsertemplate. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUsertemplate. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUsertemplate. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUsertemplate. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUsertemplate. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUsertemplate. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUsertemplate. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUsertemplate. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUsertemplate. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUsertemplate. # noqa: E501 + + + :return: The uri of this SettingsUsertemplate. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUsertemplate. + + + :param uri: The uri of this SettingsUsertemplate. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUsertemplate): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUsertemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_usertemplate_list.py b/openapi_client_udm/models/settings_usertemplate_list.py new file mode 100644 index 0000000..b9693e5 --- /dev/null +++ b/openapi_client_udm/models/settings_usertemplate_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUsertemplateList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SettingsUsertemplateListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SettingsUsertemplateList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SettingsUsertemplateList. # noqa: E501 + + + :return: The embedded of this SettingsUsertemplateList. # noqa: E501 + :rtype: SettingsUsertemplateListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUsertemplateList. + + + :param embedded: The embedded of this SettingsUsertemplateList. # noqa: E501 + :type embedded: SettingsUsertemplateListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUsertemplateList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUsertemplateList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_usertemplate_list_embedded.py b/openapi_client_udm/models/settings_usertemplate_list_embedded.py new file mode 100644 index 0000000..3a068c0 --- /dev/null +++ b/openapi_client_udm/models/settings_usertemplate_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUsertemplateListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SettingsUsertemplate]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SettingsUsertemplateListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SettingsUsertemplateListEmbedded. # noqa: E501 + + + :return: The udmobject of this SettingsUsertemplateListEmbedded. # noqa: E501 + :rtype: list[SettingsUsertemplate] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SettingsUsertemplateListEmbedded. + + + :param udmobject: The udmobject of this SettingsUsertemplateListEmbedded. # noqa: E501 + :type udmobject: list[SettingsUsertemplate] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUsertemplateListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUsertemplateListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_usertemplate_request.py b/openapi_client_udm/models/settings_usertemplate_request.py new file mode 100644 index 0000000..7aad071 --- /dev/null +++ b/openapi_client_udm/models/settings_usertemplate_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUsertemplateRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SettingsUsertemplateRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SettingsUsertemplateRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUsertemplateRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUsertemplateRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUsertemplateRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUsertemplateRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUsertemplateRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUsertemplateRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUsertemplateRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUsertemplateRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUsertemplateRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUsertemplateRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUsertemplateRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUsertemplateRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUsertemplateRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUsertemplateRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUsertemplateRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SettingsUsertemplateRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SettingsUsertemplateRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SettingsUsertemplateRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SettingsUsertemplateRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUsertemplateRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUsertemplateRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_usertemplate_request_patch.py b/openapi_client_udm/models/settings_usertemplate_request_patch.py new file mode 100644 index 0000000..a5c0910 --- /dev/null +++ b/openapi_client_udm/models/settings_usertemplate_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUsertemplateRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SettingsUsertemplateRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SettingsUsertemplateRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SettingsUsertemplateRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SettingsUsertemplateRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SettingsUsertemplateRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SettingsUsertemplateRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SettingsUsertemplateRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SettingsUsertemplateRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SettingsUsertemplateRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SettingsUsertemplateRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SettingsUsertemplateRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SettingsUsertemplateRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SettingsUsertemplateRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SettingsUsertemplateRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SettingsUsertemplateRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SettingsUsertemplateRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SettingsUsertemplateRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUsertemplateRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUsertemplateRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/settings_usertemplate_response_mixin.py b/openapi_client_udm/models/settings_usertemplate_response_mixin.py new file mode 100644 index 0000000..c0d22b4 --- /dev/null +++ b/openapi_client_udm/models/settings_usertemplate_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SettingsUsertemplateResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SettingsUsertemplateResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SettingsUsertemplateResponseMixin. # noqa: E501 + + + :return: The links of this SettingsUsertemplateResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SettingsUsertemplateResponseMixin. + + + :param links: The links of this SettingsUsertemplateResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SettingsUsertemplateResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SettingsUsertemplateResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SettingsUsertemplateResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SettingsUsertemplateResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SettingsUsertemplateResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SettingsUsertemplateResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SettingsUsertemplateResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SettingsUsertemplateResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SettingsUsertemplateResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SettingsUsertemplateResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SettingsUsertemplateResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SettingsUsertemplateResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SettingsUsertemplateResponseMixin. # noqa: E501 + + + :return: The uri of this SettingsUsertemplateResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SettingsUsertemplateResponseMixin. + + + :param uri: The uri of this SettingsUsertemplateResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SettingsUsertemplateResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SettingsUsertemplateResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_print.py b/openapi_client_udm/models/shares_print.py new file mode 100644 index 0000000..fd8636f --- /dev/null +++ b/openapi_client_udm/models/shares_print.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrint(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SharesPrint - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SharesPrint. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrint. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrint. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrint. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrint. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrint. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrint. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrint. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrint. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrint. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrint. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrint. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrint. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrint. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrint. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrint. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SharesPrint. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SharesPrint. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SharesPrint. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SharesPrint. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SharesPrint. # noqa: E501 + + + :return: The links of this SharesPrint. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SharesPrint. + + + :param links: The links of this SharesPrint. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SharesPrint. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SharesPrint. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrint. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SharesPrint. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SharesPrint. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SharesPrint. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SharesPrint. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SharesPrint. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SharesPrint. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SharesPrint. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SharesPrint. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SharesPrint. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SharesPrint. # noqa: E501 + + + :return: The uri of this SharesPrint. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SharesPrint. + + + :param uri: The uri of this SharesPrint. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrint): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrint): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_print_list.py b/openapi_client_udm/models/shares_print_list.py new file mode 100644 index 0000000..b2e4bd3 --- /dev/null +++ b/openapi_client_udm/models/shares_print_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SharesPrintListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SharesPrintList. # noqa: E501 + + + :return: The embedded of this SharesPrintList. # noqa: E501 + :rtype: SharesPrintListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrintList. + + + :param embedded: The embedded of this SharesPrintList. # noqa: E501 + :type embedded: SharesPrintListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_print_list_embedded.py b/openapi_client_udm/models/shares_print_list_embedded.py new file mode 100644 index 0000000..9721605 --- /dev/null +++ b/openapi_client_udm/models/shares_print_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SharesPrint]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SharesPrintListEmbedded. # noqa: E501 + + + :return: The udmobject of this SharesPrintListEmbedded. # noqa: E501 + :rtype: list[SharesPrint] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SharesPrintListEmbedded. + + + :param udmobject: The udmobject of this SharesPrintListEmbedded. # noqa: E501 + :type udmobject: list[SharesPrint] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_print_request.py b/openapi_client_udm/models/shares_print_request.py new file mode 100644 index 0000000..0217b68 --- /dev/null +++ b/openapi_client_udm/models/shares_print_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SharesPrintRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrintRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrintRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrintRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrintRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrintRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrintRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrintRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrintRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrintRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrintRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrintRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrintRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrintRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrintRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrintRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SharesPrintRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SharesPrintRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SharesPrintRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SharesPrintRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_print_request_patch.py b/openapi_client_udm/models/shares_print_request_patch.py new file mode 100644 index 0000000..7d4918d --- /dev/null +++ b/openapi_client_udm/models/shares_print_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SharesPrintRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrintRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrintRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrintRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrintRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrintRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrintRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrintRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrintRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrintRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrintRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrintRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrintRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrintRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrintRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrintRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_print_response_mixin.py b/openapi_client_udm/models/shares_print_response_mixin.py new file mode 100644 index 0000000..5458d5d --- /dev/null +++ b/openapi_client_udm/models/shares_print_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SharesPrintResponseMixin. # noqa: E501 + + + :return: The links of this SharesPrintResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SharesPrintResponseMixin. + + + :param links: The links of this SharesPrintResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SharesPrintResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SharesPrintResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrintResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SharesPrintResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SharesPrintResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SharesPrintResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SharesPrintResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SharesPrintResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SharesPrintResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SharesPrintResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SharesPrintResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SharesPrintResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SharesPrintResponseMixin. # noqa: E501 + + + :return: The uri of this SharesPrintResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SharesPrintResponseMixin. + + + :param uri: The uri of this SharesPrintResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printer.py b/openapi_client_udm/models/shares_printer.py new file mode 100644 index 0000000..c93b581 --- /dev/null +++ b/openapi_client_udm/models/shares_printer.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrinter(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SharesPrinter - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SharesPrinter. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrinter. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrinter. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrinter. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrinter. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrinter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrinter. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrinter. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrinter. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrinter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrinter. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrinter. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrinter. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrinter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrinter. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrinter. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SharesPrinter. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SharesPrinter. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SharesPrinter. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SharesPrinter. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SharesPrinter. # noqa: E501 + + + :return: The links of this SharesPrinter. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SharesPrinter. + + + :param links: The links of this SharesPrinter. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SharesPrinter. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SharesPrinter. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrinter. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SharesPrinter. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SharesPrinter. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SharesPrinter. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SharesPrinter. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SharesPrinter. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SharesPrinter. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SharesPrinter. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SharesPrinter. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SharesPrinter. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SharesPrinter. # noqa: E501 + + + :return: The uri of this SharesPrinter. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SharesPrinter. + + + :param uri: The uri of this SharesPrinter. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrinter): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrinter): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printer_list.py b/openapi_client_udm/models/shares_printer_list.py new file mode 100644 index 0000000..f9ce3d4 --- /dev/null +++ b/openapi_client_udm/models/shares_printer_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrinterList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SharesPrinterListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SharesPrinterList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SharesPrinterList. # noqa: E501 + + + :return: The embedded of this SharesPrinterList. # noqa: E501 + :rtype: SharesPrinterListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrinterList. + + + :param embedded: The embedded of this SharesPrinterList. # noqa: E501 + :type embedded: SharesPrinterListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrinterList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrinterList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printer_list_embedded.py b/openapi_client_udm/models/shares_printer_list_embedded.py new file mode 100644 index 0000000..23ebbe4 --- /dev/null +++ b/openapi_client_udm/models/shares_printer_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrinterListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SharesPrinter]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SharesPrinterListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SharesPrinterListEmbedded. # noqa: E501 + + + :return: The udmobject of this SharesPrinterListEmbedded. # noqa: E501 + :rtype: list[SharesPrinter] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SharesPrinterListEmbedded. + + + :param udmobject: The udmobject of this SharesPrinterListEmbedded. # noqa: E501 + :type udmobject: list[SharesPrinter] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrinterListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrinterListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printer_request.py b/openapi_client_udm/models/shares_printer_request.py new file mode 100644 index 0000000..3c69aa9 --- /dev/null +++ b/openapi_client_udm/models/shares_printer_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrinterRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SharesPrinterRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SharesPrinterRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrinterRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrinterRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrinterRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrinterRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrinterRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrinterRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrinterRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrinterRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrinterRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrinterRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrinterRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrinterRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrinterRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrinterRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrinterRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SharesPrinterRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SharesPrinterRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SharesPrinterRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SharesPrinterRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrinterRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrinterRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printer_request_patch.py b/openapi_client_udm/models/shares_printer_request_patch.py new file mode 100644 index 0000000..e1a4dac --- /dev/null +++ b/openapi_client_udm/models/shares_printer_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrinterRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SharesPrinterRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SharesPrinterRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrinterRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrinterRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrinterRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrinterRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrinterRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrinterRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrinterRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrinterRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrinterRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrinterRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrinterRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrinterRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrinterRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrinterRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrinterRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrinterRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrinterRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printer_response_mixin.py b/openapi_client_udm/models/shares_printer_response_mixin.py new file mode 100644 index 0000000..6837b31 --- /dev/null +++ b/openapi_client_udm/models/shares_printer_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrinterResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SharesPrinterResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SharesPrinterResponseMixin. # noqa: E501 + + + :return: The links of this SharesPrinterResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SharesPrinterResponseMixin. + + + :param links: The links of this SharesPrinterResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SharesPrinterResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SharesPrinterResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrinterResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SharesPrinterResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SharesPrinterResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SharesPrinterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SharesPrinterResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SharesPrinterResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SharesPrinterResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SharesPrinterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SharesPrinterResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SharesPrinterResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SharesPrinterResponseMixin. # noqa: E501 + + + :return: The uri of this SharesPrinterResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SharesPrinterResponseMixin. + + + :param uri: The uri of this SharesPrinterResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrinterResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrinterResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printergroup.py b/openapi_client_udm/models/shares_printergroup.py new file mode 100644 index 0000000..0e2472e --- /dev/null +++ b/openapi_client_udm/models/shares_printergroup.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintergroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintergroup - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SharesPrintergroup. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrintergroup. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrintergroup. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrintergroup. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrintergroup. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrintergroup. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrintergroup. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrintergroup. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrintergroup. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrintergroup. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrintergroup. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrintergroup. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrintergroup. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrintergroup. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrintergroup. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrintergroup. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SharesPrintergroup. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SharesPrintergroup. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SharesPrintergroup. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SharesPrintergroup. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SharesPrintergroup. # noqa: E501 + + + :return: The links of this SharesPrintergroup. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SharesPrintergroup. + + + :param links: The links of this SharesPrintergroup. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SharesPrintergroup. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SharesPrintergroup. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrintergroup. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SharesPrintergroup. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SharesPrintergroup. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SharesPrintergroup. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SharesPrintergroup. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SharesPrintergroup. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SharesPrintergroup. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SharesPrintergroup. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SharesPrintergroup. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SharesPrintergroup. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SharesPrintergroup. # noqa: E501 + + + :return: The uri of this SharesPrintergroup. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SharesPrintergroup. + + + :param uri: The uri of this SharesPrintergroup. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintergroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintergroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printergroup_list.py b/openapi_client_udm/models/shares_printergroup_list.py new file mode 100644 index 0000000..744373c --- /dev/null +++ b/openapi_client_udm/models/shares_printergroup_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintergroupList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SharesPrintergroupListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintergroupList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SharesPrintergroupList. # noqa: E501 + + + :return: The embedded of this SharesPrintergroupList. # noqa: E501 + :rtype: SharesPrintergroupListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrintergroupList. + + + :param embedded: The embedded of this SharesPrintergroupList. # noqa: E501 + :type embedded: SharesPrintergroupListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintergroupList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintergroupList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printergroup_list_embedded.py b/openapi_client_udm/models/shares_printergroup_list_embedded.py new file mode 100644 index 0000000..94037d8 --- /dev/null +++ b/openapi_client_udm/models/shares_printergroup_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintergroupListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SharesPrintergroup]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintergroupListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SharesPrintergroupListEmbedded. # noqa: E501 + + + :return: The udmobject of this SharesPrintergroupListEmbedded. # noqa: E501 + :rtype: list[SharesPrintergroup] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SharesPrintergroupListEmbedded. + + + :param udmobject: The udmobject of this SharesPrintergroupListEmbedded. # noqa: E501 + :type udmobject: list[SharesPrintergroup] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintergroupListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintergroupListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printergroup_request.py b/openapi_client_udm/models/shares_printergroup_request.py new file mode 100644 index 0000000..472f745 --- /dev/null +++ b/openapi_client_udm/models/shares_printergroup_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintergroupRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintergroupRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SharesPrintergroupRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrintergroupRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrintergroupRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrintergroupRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrintergroupRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrintergroupRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrintergroupRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrintergroupRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrintergroupRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrintergroupRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrintergroupRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrintergroupRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrintergroupRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrintergroupRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrintergroupRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrintergroupRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SharesPrintergroupRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SharesPrintergroupRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SharesPrintergroupRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SharesPrintergroupRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintergroupRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintergroupRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printergroup_request_patch.py b/openapi_client_udm/models/shares_printergroup_request_patch.py new file mode 100644 index 0000000..eacc04d --- /dev/null +++ b/openapi_client_udm/models/shares_printergroup_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintergroupRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintergroupRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SharesPrintergroupRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesPrintergroupRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesPrintergroupRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesPrintergroupRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesPrintergroupRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesPrintergroupRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesPrintergroupRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesPrintergroupRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesPrintergroupRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this SharesPrintergroupRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesPrintergroupRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this SharesPrintergroupRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesPrintergroupRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this SharesPrintergroupRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesPrintergroupRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this SharesPrintergroupRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintergroupRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintergroupRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_printergroup_response_mixin.py b/openapi_client_udm/models/shares_printergroup_response_mixin.py new file mode 100644 index 0000000..c307ce0 --- /dev/null +++ b/openapi_client_udm/models/shares_printergroup_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesPrintergroupResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SharesPrintergroupResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SharesPrintergroupResponseMixin. # noqa: E501 + + + :return: The links of this SharesPrintergroupResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SharesPrintergroupResponseMixin. + + + :param links: The links of this SharesPrintergroupResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SharesPrintergroupResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SharesPrintergroupResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesPrintergroupResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SharesPrintergroupResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SharesPrintergroupResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SharesPrintergroupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SharesPrintergroupResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SharesPrintergroupResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SharesPrintergroupResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SharesPrintergroupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SharesPrintergroupResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SharesPrintergroupResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SharesPrintergroupResponseMixin. # noqa: E501 + + + :return: The uri of this SharesPrintergroupResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SharesPrintergroupResponseMixin. + + + :param uri: The uri of this SharesPrintergroupResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesPrintergroupResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesPrintergroupResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_share.py b/openapi_client_udm/models/shares_share.py new file mode 100644 index 0000000..da9041e --- /dev/null +++ b/openapi_client_udm/models/shares_share.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesShare(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'SharesShareOptions', + 'policies': 'SharesSharePolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SharesShare - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this SharesShare. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesShare. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesShare. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesShare. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesShare. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesShare. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesShare. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesShare. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesShare. # noqa: E501 + + + :return: The options of this SharesShare. # noqa: E501 + :rtype: SharesShareOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesShare. + + + :param options: The options of this SharesShare. # noqa: E501 + :type options: SharesShareOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesShare. # noqa: E501 + + + :return: The policies of this SharesShare. # noqa: E501 + :rtype: SharesSharePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesShare. + + + :param policies: The policies of this SharesShare. # noqa: E501 + :type policies: SharesSharePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SharesShare. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SharesShare. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SharesShare. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SharesShare. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this SharesShare. # noqa: E501 + + + :return: The links of this SharesShare. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SharesShare. + + + :param links: The links of this SharesShare. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SharesShare. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SharesShare. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesShare. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SharesShare. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SharesShare. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SharesShare. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SharesShare. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SharesShare. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SharesShare. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SharesShare. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SharesShare. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SharesShare. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SharesShare. # noqa: E501 + + + :return: The uri of this SharesShare. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SharesShare. + + + :param uri: The uri of this SharesShare. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesShare): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesShare): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_share_list.py b/openapi_client_udm/models/shares_share_list.py new file mode 100644 index 0000000..54e557c --- /dev/null +++ b/openapi_client_udm/models/shares_share_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesShareList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'SharesShareListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """SharesShareList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this SharesShareList. # noqa: E501 + + + :return: The embedded of this SharesShareList. # noqa: E501 + :rtype: SharesShareListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesShareList. + + + :param embedded: The embedded of this SharesShareList. # noqa: E501 + :type embedded: SharesShareListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesShareList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesShareList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_share_list_embedded.py b/openapi_client_udm/models/shares_share_list_embedded.py new file mode 100644 index 0000000..7798e95 --- /dev/null +++ b/openapi_client_udm/models/shares_share_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesShareListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[SharesShare]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """SharesShareListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this SharesShareListEmbedded. # noqa: E501 + + + :return: The udmobject of this SharesShareListEmbedded. # noqa: E501 + :rtype: list[SharesShare] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this SharesShareListEmbedded. + + + :param udmobject: The udmobject of this SharesShareListEmbedded. # noqa: E501 + :type udmobject: list[SharesShare] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesShareListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesShareListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_share_options.py b/openapi_client_udm/models/shares_share_options.py new file mode 100644 index 0000000..c7cbc14 --- /dev/null +++ b/openapi_client_udm/models/shares_share_options.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesShareOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'samba': 'bool', + 'nfs': 'bool' + } + + attribute_map = { + 'samba': 'samba', + 'nfs': 'nfs' + } + + def __init__(self, samba=True, nfs=True, local_vars_configuration=None): # noqa: E501 + """SharesShareOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._samba = None + self._nfs = None + self.discriminator = None + + if samba is not None: + self.samba = samba + if nfs is not None: + self.nfs = nfs + + @property + def samba(self): + """Gets the samba of this SharesShareOptions. # noqa: E501 + + Export for Samba clients # noqa: E501 + + :return: The samba of this SharesShareOptions. # noqa: E501 + :rtype: bool + """ + return self._samba + + @samba.setter + def samba(self, samba): + """Sets the samba of this SharesShareOptions. + + Export for Samba clients # noqa: E501 + + :param samba: The samba of this SharesShareOptions. # noqa: E501 + :type samba: bool + """ + + self._samba = samba + + @property + def nfs(self): + """Gets the nfs of this SharesShareOptions. # noqa: E501 + + Export for NFS clients (NFSv3 and NFSv4) # noqa: E501 + + :return: The nfs of this SharesShareOptions. # noqa: E501 + :rtype: bool + """ + return self._nfs + + @nfs.setter + def nfs(self, nfs): + """Sets the nfs of this SharesShareOptions. + + Export for NFS clients (NFSv3 and NFSv4) # noqa: E501 + + :param nfs: The nfs of this SharesShareOptions. # noqa: E501 + :type nfs: bool + """ + + self._nfs = nfs + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesShareOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesShareOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_share_policies.py b/openapi_client_udm/models/shares_share_policies.py new file mode 100644 index 0000000..ccf9007 --- /dev/null +++ b/openapi_client_udm/models/shares_share_policies.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesSharePolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_share_userquota': 'list[str]' + } + + attribute_map = { + 'policies_share_userquota': 'policies/share_userquota' + } + + def __init__(self, policies_share_userquota=None, local_vars_configuration=None): # noqa: E501 + """SharesSharePolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_share_userquota = None + self.discriminator = None + + if policies_share_userquota is not None: + self.policies_share_userquota = policies_share_userquota + + @property + def policies_share_userquota(self): + """Gets the policies_share_userquota of this SharesSharePolicies. # noqa: E501 + + Policy: User quota # noqa: E501 + + :return: The policies_share_userquota of this SharesSharePolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_share_userquota + + @policies_share_userquota.setter + def policies_share_userquota(self, policies_share_userquota): + """Sets the policies_share_userquota of this SharesSharePolicies. + + Policy: User quota # noqa: E501 + + :param policies_share_userquota: The policies_share_userquota of this SharesSharePolicies. # noqa: E501 + :type policies_share_userquota: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) > 1): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_share_userquota is not None and len(policies_share_userquota) < 0): + raise ValueError("Invalid value for `policies_share_userquota`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_share_userquota = policies_share_userquota + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesSharePolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesSharePolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_share_request.py b/openapi_client_udm/models/shares_share_request.py new file mode 100644 index 0000000..b6c5b02 --- /dev/null +++ b/openapi_client_udm/models/shares_share_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesShareRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'SharesShareOptions', + 'policies': 'SharesSharePolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """SharesShareRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this SharesShareRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesShareRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesShareRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesShareRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesShareRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesShareRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesShareRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesShareRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesShareRequest. # noqa: E501 + + + :return: The options of this SharesShareRequest. # noqa: E501 + :rtype: SharesShareOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesShareRequest. + + + :param options: The options of this SharesShareRequest. # noqa: E501 + :type options: SharesShareOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesShareRequest. # noqa: E501 + + + :return: The policies of this SharesShareRequest. # noqa: E501 + :rtype: SharesSharePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesShareRequest. + + + :param policies: The policies of this SharesShareRequest. # noqa: E501 + :type policies: SharesSharePolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this SharesShareRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this SharesShareRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SharesShareRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this SharesShareRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesShareRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesShareRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_share_request_patch.py b/openapi_client_udm/models/shares_share_request_patch.py new file mode 100644 index 0000000..befc813 --- /dev/null +++ b/openapi_client_udm/models/shares_share_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesShareRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'SharesShareOptions', + 'policies': 'SharesSharePolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """SharesShareRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this SharesShareRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this SharesShareRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this SharesShareRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this SharesShareRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this SharesShareRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this SharesShareRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this SharesShareRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this SharesShareRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this SharesShareRequestPatch. # noqa: E501 + + + :return: The options of this SharesShareRequestPatch. # noqa: E501 + :rtype: SharesShareOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this SharesShareRequestPatch. + + + :param options: The options of this SharesShareRequestPatch. # noqa: E501 + :type options: SharesShareOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this SharesShareRequestPatch. # noqa: E501 + + + :return: The policies of this SharesShareRequestPatch. # noqa: E501 + :rtype: SharesSharePolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this SharesShareRequestPatch. + + + :param policies: The policies of this SharesShareRequestPatch. # noqa: E501 + :type policies: SharesSharePolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesShareRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesShareRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/shares_share_response_mixin.py b/openapi_client_udm/models/shares_share_response_mixin.py new file mode 100644 index 0000000..5754d9a --- /dev/null +++ b/openapi_client_udm/models/shares_share_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class SharesShareResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """SharesShareResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this SharesShareResponseMixin. # noqa: E501 + + + :return: The links of this SharesShareResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this SharesShareResponseMixin. + + + :param links: The links of this SharesShareResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this SharesShareResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this SharesShareResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this SharesShareResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this SharesShareResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this SharesShareResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this SharesShareResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this SharesShareResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this SharesShareResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this SharesShareResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this SharesShareResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this SharesShareResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this SharesShareResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this SharesShareResponseMixin. # noqa: E501 + + + :return: The uri of this SharesShareResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this SharesShareResponseMixin. + + + :param uri: The uri of this SharesShareResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SharesShareResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SharesShareResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_contact.py b/openapi_client_udm/models/users_contact.py new file mode 100644 index 0000000..3bb5bdb --- /dev/null +++ b/openapi_client_udm/models/users_contact.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersContact(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersContact - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UsersContact. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersContact. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersContact. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersContact. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersContact. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersContact. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersContact. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersContact. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersContact. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UsersContact. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersContact. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UsersContact. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersContact. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersContact. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersContact. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersContact. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersContact. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersContact. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersContact. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersContact. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UsersContact. # noqa: E501 + + + :return: The links of this UsersContact. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersContact. + + + :param links: The links of this UsersContact. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersContact. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersContact. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersContact. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersContact. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersContact. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersContact. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersContact. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersContact. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersContact. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersContact. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersContact. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersContact. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersContact. # noqa: E501 + + + :return: The uri of this UsersContact. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersContact. + + + :param uri: The uri of this UsersContact. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersContact): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersContact): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_contact_list.py b/openapi_client_udm/models/users_contact_list.py new file mode 100644 index 0000000..ff4d660 --- /dev/null +++ b/openapi_client_udm/models/users_contact_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersContactList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UsersContactListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UsersContactList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UsersContactList. # noqa: E501 + + + :return: The embedded of this UsersContactList. # noqa: E501 + :rtype: UsersContactListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersContactList. + + + :param embedded: The embedded of this UsersContactList. # noqa: E501 + :type embedded: UsersContactListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersContactList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersContactList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_contact_list_embedded.py b/openapi_client_udm/models/users_contact_list_embedded.py new file mode 100644 index 0000000..3a406e6 --- /dev/null +++ b/openapi_client_udm/models/users_contact_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersContactListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UsersContact]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UsersContactListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UsersContactListEmbedded. # noqa: E501 + + + :return: The udmobject of this UsersContactListEmbedded. # noqa: E501 + :rtype: list[UsersContact] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UsersContactListEmbedded. + + + :param udmobject: The udmobject of this UsersContactListEmbedded. # noqa: E501 + :type udmobject: list[UsersContact] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersContactListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersContactListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_contact_request.py b/openapi_client_udm/models/users_contact_request.py new file mode 100644 index 0000000..644be7a --- /dev/null +++ b/openapi_client_udm/models/users_contact_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersContactRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UsersContactRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UsersContactRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersContactRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersContactRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersContactRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersContactRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersContactRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersContactRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersContactRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersContactRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UsersContactRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersContactRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UsersContactRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersContactRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersContactRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersContactRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersContactRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersContactRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersContactRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersContactRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersContactRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersContactRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersContactRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_contact_request_patch.py b/openapi_client_udm/models/users_contact_request_patch.py new file mode 100644 index 0000000..fbe5477 --- /dev/null +++ b/openapi_client_udm/models/users_contact_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersContactRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UsersContactRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UsersContactRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersContactRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersContactRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersContactRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersContactRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersContactRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersContactRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersContactRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersContactRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UsersContactRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersContactRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UsersContactRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersContactRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersContactRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersContactRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersContactRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersContactRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersContactRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_contact_response_mixin.py b/openapi_client_udm/models/users_contact_response_mixin.py new file mode 100644 index 0000000..e8ae5cd --- /dev/null +++ b/openapi_client_udm/models/users_contact_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersContactResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersContactResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UsersContactResponseMixin. # noqa: E501 + + + :return: The links of this UsersContactResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersContactResponseMixin. + + + :param links: The links of this UsersContactResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersContactResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersContactResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersContactResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersContactResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersContactResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersContactResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersContactResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersContactResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersContactResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersContactResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersContactResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersContactResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersContactResponseMixin. # noqa: E501 + + + :return: The uri of this UsersContactResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersContactResponseMixin. + + + :param uri: The uri of this UsersContactResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersContactResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersContactResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_ldap.py b/openapi_client_udm/models/users_ldap.py new file mode 100644 index 0000000..475a074 --- /dev/null +++ b/openapi_client_udm/models/users_ldap.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersLdap(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersLdapOptions', + 'policies': 'UsersLdapPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersLdap - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UsersLdap. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersLdap. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersLdap. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersLdap. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersLdap. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersLdap. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersLdap. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersLdap. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersLdap. # noqa: E501 + + + :return: The options of this UsersLdap. # noqa: E501 + :rtype: UsersLdapOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersLdap. + + + :param options: The options of this UsersLdap. # noqa: E501 + :type options: UsersLdapOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersLdap. # noqa: E501 + + + :return: The policies of this UsersLdap. # noqa: E501 + :rtype: UsersLdapPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersLdap. + + + :param policies: The policies of this UsersLdap. # noqa: E501 + :type policies: UsersLdapPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersLdap. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersLdap. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersLdap. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersLdap. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UsersLdap. # noqa: E501 + + + :return: The links of this UsersLdap. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersLdap. + + + :param links: The links of this UsersLdap. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersLdap. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersLdap. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersLdap. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersLdap. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersLdap. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersLdap. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersLdap. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersLdap. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersLdap. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersLdap. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersLdap. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersLdap. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersLdap. # noqa: E501 + + + :return: The uri of this UsersLdap. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersLdap. + + + :param uri: The uri of this UsersLdap. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersLdap): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersLdap): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_ldap_list.py b/openapi_client_udm/models/users_ldap_list.py new file mode 100644 index 0000000..c3baa7c --- /dev/null +++ b/openapi_client_udm/models/users_ldap_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersLdapList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UsersLdapListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UsersLdapList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UsersLdapList. # noqa: E501 + + + :return: The embedded of this UsersLdapList. # noqa: E501 + :rtype: UsersLdapListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersLdapList. + + + :param embedded: The embedded of this UsersLdapList. # noqa: E501 + :type embedded: UsersLdapListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersLdapList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersLdapList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_ldap_list_embedded.py b/openapi_client_udm/models/users_ldap_list_embedded.py new file mode 100644 index 0000000..35b5c35 --- /dev/null +++ b/openapi_client_udm/models/users_ldap_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersLdapListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UsersLdap]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UsersLdapListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UsersLdapListEmbedded. # noqa: E501 + + + :return: The udmobject of this UsersLdapListEmbedded. # noqa: E501 + :rtype: list[UsersLdap] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UsersLdapListEmbedded. + + + :param udmobject: The udmobject of this UsersLdapListEmbedded. # noqa: E501 + :type udmobject: list[UsersLdap] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersLdapListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersLdapListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_ldap_options.py b/openapi_client_udm/models/users_ldap_options.py new file mode 100644 index 0000000..1d72bfd --- /dev/null +++ b/openapi_client_udm/models/users_ldap_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersLdapOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'pki': 'bool' + } + + attribute_map = { + 'pki': 'pki' + } + + def __init__(self, pki=False, local_vars_configuration=None): # noqa: E501 + """UsersLdapOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._pki = None + self.discriminator = None + + if pki is not None: + self.pki = pki + + @property + def pki(self): + """Gets the pki of this UsersLdapOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this UsersLdapOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this UsersLdapOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this UsersLdapOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersLdapOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersLdapOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_ldap_policies.py b/openapi_client_udm/models/users_ldap_policies.py new file mode 100644 index 0000000..3366b83 --- /dev/null +++ b/openapi_client_udm/models/users_ldap_policies.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersLdapPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_umc': 'list[str]', + 'policies_pwhistory': 'list[str]' + } + + attribute_map = { + 'policies_umc': 'policies/umc', + 'policies_pwhistory': 'policies/pwhistory' + } + + def __init__(self, policies_umc=None, policies_pwhistory=None, local_vars_configuration=None): # noqa: E501 + """UsersLdapPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_umc = None + self._policies_pwhistory = None + self.discriminator = None + + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + + @property + def policies_umc(self): + """Gets the policies_umc of this UsersLdapPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this UsersLdapPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this UsersLdapPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this UsersLdapPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this UsersLdapPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this UsersLdapPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this UsersLdapPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this UsersLdapPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersLdapPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersLdapPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_ldap_request.py b/openapi_client_udm/models/users_ldap_request.py new file mode 100644 index 0000000..bea6e7e --- /dev/null +++ b/openapi_client_udm/models/users_ldap_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersLdapRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersLdapOptions', + 'policies': 'UsersLdapPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UsersLdapRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UsersLdapRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersLdapRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersLdapRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersLdapRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersLdapRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersLdapRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersLdapRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersLdapRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersLdapRequest. # noqa: E501 + + + :return: The options of this UsersLdapRequest. # noqa: E501 + :rtype: UsersLdapOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersLdapRequest. + + + :param options: The options of this UsersLdapRequest. # noqa: E501 + :type options: UsersLdapOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersLdapRequest. # noqa: E501 + + + :return: The policies of this UsersLdapRequest. # noqa: E501 + :rtype: UsersLdapPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersLdapRequest. + + + :param policies: The policies of this UsersLdapRequest. # noqa: E501 + :type policies: UsersLdapPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersLdapRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersLdapRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersLdapRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersLdapRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersLdapRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersLdapRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_ldap_request_patch.py b/openapi_client_udm/models/users_ldap_request_patch.py new file mode 100644 index 0000000..37db418 --- /dev/null +++ b/openapi_client_udm/models/users_ldap_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersLdapRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersLdapOptions', + 'policies': 'UsersLdapPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UsersLdapRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UsersLdapRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersLdapRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersLdapRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersLdapRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersLdapRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersLdapRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersLdapRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersLdapRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersLdapRequestPatch. # noqa: E501 + + + :return: The options of this UsersLdapRequestPatch. # noqa: E501 + :rtype: UsersLdapOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersLdapRequestPatch. + + + :param options: The options of this UsersLdapRequestPatch. # noqa: E501 + :type options: UsersLdapOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersLdapRequestPatch. # noqa: E501 + + + :return: The policies of this UsersLdapRequestPatch. # noqa: E501 + :rtype: UsersLdapPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersLdapRequestPatch. + + + :param policies: The policies of this UsersLdapRequestPatch. # noqa: E501 + :type policies: UsersLdapPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersLdapRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersLdapRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_ldap_response_mixin.py b/openapi_client_udm/models/users_ldap_response_mixin.py new file mode 100644 index 0000000..94b7688 --- /dev/null +++ b/openapi_client_udm/models/users_ldap_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersLdapResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersLdapResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UsersLdapResponseMixin. # noqa: E501 + + + :return: The links of this UsersLdapResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersLdapResponseMixin. + + + :param links: The links of this UsersLdapResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersLdapResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersLdapResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersLdapResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersLdapResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersLdapResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersLdapResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersLdapResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersLdapResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersLdapResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersLdapResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersLdapResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersLdapResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersLdapResponseMixin. # noqa: E501 + + + :return: The uri of this UsersLdapResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersLdapResponseMixin. + + + :param uri: The uri of this UsersLdapResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersLdapResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersLdapResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_passwd.py b/openapi_client_udm/models/users_passwd.py new file mode 100644 index 0000000..748b0fe --- /dev/null +++ b/openapi_client_udm/models/users_passwd.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersPasswd(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersPasswd - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UsersPasswd. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersPasswd. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersPasswd. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersPasswd. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersPasswd. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersPasswd. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersPasswd. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersPasswd. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersPasswd. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UsersPasswd. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersPasswd. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UsersPasswd. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersPasswd. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersPasswd. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersPasswd. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersPasswd. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersPasswd. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersPasswd. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersPasswd. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersPasswd. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UsersPasswd. # noqa: E501 + + + :return: The links of this UsersPasswd. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersPasswd. + + + :param links: The links of this UsersPasswd. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersPasswd. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersPasswd. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersPasswd. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersPasswd. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersPasswd. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersPasswd. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersPasswd. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersPasswd. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersPasswd. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersPasswd. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersPasswd. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersPasswd. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersPasswd. # noqa: E501 + + + :return: The uri of this UsersPasswd. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersPasswd. + + + :param uri: The uri of this UsersPasswd. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersPasswd): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersPasswd): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_passwd_list.py b/openapi_client_udm/models/users_passwd_list.py new file mode 100644 index 0000000..f63c600 --- /dev/null +++ b/openapi_client_udm/models/users_passwd_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersPasswdList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UsersPasswdListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UsersPasswdList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UsersPasswdList. # noqa: E501 + + + :return: The embedded of this UsersPasswdList. # noqa: E501 + :rtype: UsersPasswdListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersPasswdList. + + + :param embedded: The embedded of this UsersPasswdList. # noqa: E501 + :type embedded: UsersPasswdListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersPasswdList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersPasswdList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_passwd_list_embedded.py b/openapi_client_udm/models/users_passwd_list_embedded.py new file mode 100644 index 0000000..4d371ad --- /dev/null +++ b/openapi_client_udm/models/users_passwd_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersPasswdListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UsersPasswd]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UsersPasswdListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UsersPasswdListEmbedded. # noqa: E501 + + + :return: The udmobject of this UsersPasswdListEmbedded. # noqa: E501 + :rtype: list[UsersPasswd] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UsersPasswdListEmbedded. + + + :param udmobject: The udmobject of this UsersPasswdListEmbedded. # noqa: E501 + :type udmobject: list[UsersPasswd] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersPasswdListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersPasswdListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_passwd_request.py b/openapi_client_udm/models/users_passwd_request.py new file mode 100644 index 0000000..93a392b --- /dev/null +++ b/openapi_client_udm/models/users_passwd_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersPasswdRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UsersPasswdRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UsersPasswdRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersPasswdRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersPasswdRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersPasswdRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersPasswdRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersPasswdRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersPasswdRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersPasswdRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersPasswdRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UsersPasswdRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersPasswdRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UsersPasswdRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersPasswdRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersPasswdRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersPasswdRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersPasswdRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersPasswdRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersPasswdRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersPasswdRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersPasswdRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersPasswdRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersPasswdRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_passwd_request_patch.py b/openapi_client_udm/models/users_passwd_request_patch.py new file mode 100644 index 0000000..bdd1048 --- /dev/null +++ b/openapi_client_udm/models/users_passwd_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersPasswdRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UsersPasswdRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UsersPasswdRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersPasswdRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersPasswdRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersPasswdRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersPasswdRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersPasswdRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersPasswdRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersPasswdRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersPasswdRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UsersPasswdRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersPasswdRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UsersPasswdRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersPasswdRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersPasswdRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersPasswdRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersPasswdRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersPasswdRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersPasswdRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_passwd_response_mixin.py b/openapi_client_udm/models/users_passwd_response_mixin.py new file mode 100644 index 0000000..dcf3cab --- /dev/null +++ b/openapi_client_udm/models/users_passwd_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersPasswdResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersPasswdResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UsersPasswdResponseMixin. # noqa: E501 + + + :return: The links of this UsersPasswdResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersPasswdResponseMixin. + + + :param links: The links of this UsersPasswdResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersPasswdResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersPasswdResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersPasswdResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersPasswdResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersPasswdResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersPasswdResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersPasswdResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersPasswdResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersPasswdResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersPasswdResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersPasswdResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersPasswdResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersPasswdResponseMixin. # noqa: E501 + + + :return: The uri of this UsersPasswdResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersPasswdResponseMixin. + + + :param uri: The uri of this UsersPasswdResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersPasswdResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersPasswdResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_self.py b/openapi_client_udm/models/users_self.py new file mode 100644 index 0000000..d08f009 --- /dev/null +++ b/openapi_client_udm/models/users_self.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersSelf(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersSelfOptions', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersSelf - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UsersSelf. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersSelf. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersSelf. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersSelf. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersSelf. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersSelf. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersSelf. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersSelf. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersSelf. # noqa: E501 + + + :return: The options of this UsersSelf. # noqa: E501 + :rtype: UsersSelfOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersSelf. + + + :param options: The options of this UsersSelf. # noqa: E501 + :type options: UsersSelfOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersSelf. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersSelf. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersSelf. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersSelf. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersSelf. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersSelf. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersSelf. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersSelf. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UsersSelf. # noqa: E501 + + + :return: The links of this UsersSelf. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersSelf. + + + :param links: The links of this UsersSelf. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersSelf. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersSelf. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersSelf. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersSelf. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersSelf. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersSelf. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersSelf. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersSelf. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersSelf. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersSelf. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersSelf. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersSelf. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersSelf. # noqa: E501 + + + :return: The uri of this UsersSelf. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersSelf. + + + :param uri: The uri of this UsersSelf. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersSelf): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersSelf): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_self_list.py b/openapi_client_udm/models/users_self_list.py new file mode 100644 index 0000000..9652e6d --- /dev/null +++ b/openapi_client_udm/models/users_self_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersSelfList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UsersSelfListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UsersSelfList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UsersSelfList. # noqa: E501 + + + :return: The embedded of this UsersSelfList. # noqa: E501 + :rtype: UsersSelfListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersSelfList. + + + :param embedded: The embedded of this UsersSelfList. # noqa: E501 + :type embedded: UsersSelfListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersSelfList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersSelfList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_self_list_embedded.py b/openapi_client_udm/models/users_self_list_embedded.py new file mode 100644 index 0000000..3efcd7a --- /dev/null +++ b/openapi_client_udm/models/users_self_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersSelfListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UsersSelf]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UsersSelfListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UsersSelfListEmbedded. # noqa: E501 + + + :return: The udmobject of this UsersSelfListEmbedded. # noqa: E501 + :rtype: list[UsersSelf] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UsersSelfListEmbedded. + + + :param udmobject: The udmobject of this UsersSelfListEmbedded. # noqa: E501 + :type udmobject: list[UsersSelf] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersSelfListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersSelfListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_self_options.py b/openapi_client_udm/models/users_self_options.py new file mode 100644 index 0000000..f2ca261 --- /dev/null +++ b/openapi_client_udm/models/users_self_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersSelfOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'pki': 'bool' + } + + attribute_map = { + 'pki': 'pki' + } + + def __init__(self, pki=False, local_vars_configuration=None): # noqa: E501 + """UsersSelfOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._pki = None + self.discriminator = None + + if pki is not None: + self.pki = pki + + @property + def pki(self): + """Gets the pki of this UsersSelfOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this UsersSelfOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this UsersSelfOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this UsersSelfOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersSelfOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersSelfOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_self_request.py b/openapi_client_udm/models/users_self_request.py new file mode 100644 index 0000000..6a8aa60 --- /dev/null +++ b/openapi_client_udm/models/users_self_request.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersSelfRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersSelfOptions', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UsersSelfRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UsersSelfRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersSelfRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersSelfRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersSelfRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersSelfRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersSelfRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersSelfRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersSelfRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersSelfRequest. # noqa: E501 + + + :return: The options of this UsersSelfRequest. # noqa: E501 + :rtype: UsersSelfOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersSelfRequest. + + + :param options: The options of this UsersSelfRequest. # noqa: E501 + :type options: UsersSelfOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersSelfRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersSelfRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersSelfRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersSelfRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersSelfRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersSelfRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersSelfRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersSelfRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersSelfRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersSelfRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_self_request_patch.py b/openapi_client_udm/models/users_self_request_patch.py new file mode 100644 index 0000000..a611077 --- /dev/null +++ b/openapi_client_udm/models/users_self_request_patch.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersSelfRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersSelfOptions', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UsersSelfRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UsersSelfRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersSelfRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersSelfRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersSelfRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersSelfRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersSelfRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersSelfRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersSelfRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersSelfRequestPatch. # noqa: E501 + + + :return: The options of this UsersSelfRequestPatch. # noqa: E501 + :rtype: UsersSelfOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersSelfRequestPatch. + + + :param options: The options of this UsersSelfRequestPatch. # noqa: E501 + :type options: UsersSelfOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersSelfRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UsersSelfRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersSelfRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UsersSelfRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersSelfRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersSelfRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_self_response_mixin.py b/openapi_client_udm/models/users_self_response_mixin.py new file mode 100644 index 0000000..2c6f389 --- /dev/null +++ b/openapi_client_udm/models/users_self_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersSelfResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersSelfResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UsersSelfResponseMixin. # noqa: E501 + + + :return: The links of this UsersSelfResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersSelfResponseMixin. + + + :param links: The links of this UsersSelfResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersSelfResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersSelfResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersSelfResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersSelfResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersSelfResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersSelfResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersSelfResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersSelfResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersSelfResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersSelfResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersSelfResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersSelfResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersSelfResponseMixin. # noqa: E501 + + + :return: The uri of this UsersSelfResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersSelfResponseMixin. + + + :param uri: The uri of this UsersSelfResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersSelfResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersSelfResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_user.py b/openapi_client_udm/models/users_user.py new file mode 100644 index 0000000..0787c25 --- /dev/null +++ b/openapi_client_udm/models/users_user.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersUser(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersUserOptions', + 'policies': 'UsersUserPolicies', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersUser - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UsersUser. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersUser. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersUser. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersUser. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersUser. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersUser. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersUser. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersUser. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersUser. # noqa: E501 + + + :return: The options of this UsersUser. # noqa: E501 + :rtype: UsersUserOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersUser. + + + :param options: The options of this UsersUser. # noqa: E501 + :type options: UsersUserOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersUser. # noqa: E501 + + + :return: The policies of this UsersUser. # noqa: E501 + :rtype: UsersUserPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersUser. + + + :param policies: The policies of this UsersUser. # noqa: E501 + :type policies: UsersUserPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersUser. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersUser. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersUser. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersUser. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UsersUser. # noqa: E501 + + + :return: The links of this UsersUser. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersUser. + + + :param links: The links of this UsersUser. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersUser. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersUser. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersUser. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersUser. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersUser. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersUser. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersUser. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersUser. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersUser. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersUser. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersUser. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersUser. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersUser. # noqa: E501 + + + :return: The uri of this UsersUser. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersUser. + + + :param uri: The uri of this UsersUser. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersUser): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersUser): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_user_list.py b/openapi_client_udm/models/users_user_list.py new file mode 100644 index 0000000..85e839d --- /dev/null +++ b/openapi_client_udm/models/users_user_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersUserList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UsersUserListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UsersUserList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UsersUserList. # noqa: E501 + + + :return: The embedded of this UsersUserList. # noqa: E501 + :rtype: UsersUserListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersUserList. + + + :param embedded: The embedded of this UsersUserList. # noqa: E501 + :type embedded: UsersUserListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersUserList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersUserList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_user_list_embedded.py b/openapi_client_udm/models/users_user_list_embedded.py new file mode 100644 index 0000000..8459706 --- /dev/null +++ b/openapi_client_udm/models/users_user_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersUserListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UsersUser]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UsersUserListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UsersUserListEmbedded. # noqa: E501 + + + :return: The udmobject of this UsersUserListEmbedded. # noqa: E501 + :rtype: list[UsersUser] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UsersUserListEmbedded. + + + :param udmobject: The udmobject of this UsersUserListEmbedded. # noqa: E501 + :type udmobject: list[UsersUser] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersUserListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersUserListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_user_options.py b/openapi_client_udm/models/users_user_options.py new file mode 100644 index 0000000..9817387 --- /dev/null +++ b/openapi_client_udm/models/users_user_options.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersUserOptions(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'pki': 'bool' + } + + attribute_map = { + 'pki': 'pki' + } + + def __init__(self, pki=False, local_vars_configuration=None): # noqa: E501 + """UsersUserOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._pki = None + self.discriminator = None + + if pki is not None: + self.pki = pki + + @property + def pki(self): + """Gets the pki of this UsersUserOptions. # noqa: E501 + + Public key infrastructure account # noqa: E501 + + :return: The pki of this UsersUserOptions. # noqa: E501 + :rtype: bool + """ + return self._pki + + @pki.setter + def pki(self, pki): + """Sets the pki of this UsersUserOptions. + + Public key infrastructure account # noqa: E501 + + :param pki: The pki of this UsersUserOptions. # noqa: E501 + :type pki: bool + """ + + self._pki = pki + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersUserOptions): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersUserOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_user_policies.py b/openapi_client_udm/models/users_user_policies.py new file mode 100644 index 0000000..c237704 --- /dev/null +++ b/openapi_client_udm/models/users_user_policies.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersUserPolicies(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'policies_umc': 'list[str]', + 'policies_desktop': 'list[str]', + 'policies_pwhistory': 'list[str]' + } + + attribute_map = { + 'policies_umc': 'policies/umc', + 'policies_desktop': 'policies/desktop', + 'policies_pwhistory': 'policies/pwhistory' + } + + def __init__(self, policies_umc=None, policies_desktop=None, policies_pwhistory=None, local_vars_configuration=None): # noqa: E501 + """UsersUserPolicies - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._policies_umc = None + self._policies_desktop = None + self._policies_pwhistory = None + self.discriminator = None + + if policies_umc is not None: + self.policies_umc = policies_umc + if policies_desktop is not None: + self.policies_desktop = policies_desktop + if policies_pwhistory is not None: + self.policies_pwhistory = policies_pwhistory + + @property + def policies_umc(self): + """Gets the policies_umc of this UsersUserPolicies. # noqa: E501 + + Policy: UMC # noqa: E501 + + :return: The policies_umc of this UsersUserPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_umc + + @policies_umc.setter + def policies_umc(self, policies_umc): + """Sets the policies_umc of this UsersUserPolicies. + + Policy: UMC # noqa: E501 + + :param policies_umc: The policies_umc of this UsersUserPolicies. # noqa: E501 + :type policies_umc: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) > 1): + raise ValueError("Invalid value for `policies_umc`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_umc is not None and len(policies_umc) < 0): + raise ValueError("Invalid value for `policies_umc`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_umc = policies_umc + + @property + def policies_desktop(self): + """Gets the policies_desktop of this UsersUserPolicies. # noqa: E501 + + Policy: Desktop # noqa: E501 + + :return: The policies_desktop of this UsersUserPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_desktop + + @policies_desktop.setter + def policies_desktop(self, policies_desktop): + """Sets the policies_desktop of this UsersUserPolicies. + + Policy: Desktop # noqa: E501 + + :param policies_desktop: The policies_desktop of this UsersUserPolicies. # noqa: E501 + :type policies_desktop: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) > 1): + raise ValueError("Invalid value for `policies_desktop`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_desktop is not None and len(policies_desktop) < 0): + raise ValueError("Invalid value for `policies_desktop`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_desktop = policies_desktop + + @property + def policies_pwhistory(self): + """Gets the policies_pwhistory of this UsersUserPolicies. # noqa: E501 + + Policy: Passwords # noqa: E501 + + :return: The policies_pwhistory of this UsersUserPolicies. # noqa: E501 + :rtype: list[str] + """ + return self._policies_pwhistory + + @policies_pwhistory.setter + def policies_pwhistory(self, policies_pwhistory): + """Sets the policies_pwhistory of this UsersUserPolicies. + + Policy: Passwords # noqa: E501 + + :param policies_pwhistory: The policies_pwhistory of this UsersUserPolicies. # noqa: E501 + :type policies_pwhistory: list[str] + """ + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) > 1): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be less than or equal to `1`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + policies_pwhistory is not None and len(policies_pwhistory) < 0): + raise ValueError("Invalid value for `policies_pwhistory`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._policies_pwhistory = policies_pwhistory + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersUserPolicies): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersUserPolicies): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_user_request.py b/openapi_client_udm/models/users_user_request.py new file mode 100644 index 0000000..99240de --- /dev/null +++ b/openapi_client_udm/models/users_user_request.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersUserRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersUserOptions', + 'policies': 'UsersUserPolicies', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UsersUserRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UsersUserRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersUserRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersUserRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersUserRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersUserRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersUserRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersUserRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersUserRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersUserRequest. # noqa: E501 + + + :return: The options of this UsersUserRequest. # noqa: E501 + :rtype: UsersUserOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersUserRequest. + + + :param options: The options of this UsersUserRequest. # noqa: E501 + :type options: UsersUserOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersUserRequest. # noqa: E501 + + + :return: The policies of this UsersUserRequest. # noqa: E501 + :rtype: UsersUserPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersUserRequest. + + + :param policies: The policies of this UsersUserRequest. # noqa: E501 + :type policies: UsersUserPolicies + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UsersUserRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UsersUserRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UsersUserRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UsersUserRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersUserRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersUserRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_user_request_patch.py b/openapi_client_udm/models/users_user_request_patch.py new file mode 100644 index 0000000..f081ced --- /dev/null +++ b/openapi_client_udm/models/users_user_request_patch.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersUserRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'UsersUserOptions', + 'policies': 'UsersUserPolicies' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UsersUserRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UsersUserRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UsersUserRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UsersUserRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UsersUserRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UsersUserRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UsersUserRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UsersUserRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UsersUserRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UsersUserRequestPatch. # noqa: E501 + + + :return: The options of this UsersUserRequestPatch. # noqa: E501 + :rtype: UsersUserOptions + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UsersUserRequestPatch. + + + :param options: The options of this UsersUserRequestPatch. # noqa: E501 + :type options: UsersUserOptions + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UsersUserRequestPatch. # noqa: E501 + + + :return: The policies of this UsersUserRequestPatch. # noqa: E501 + :rtype: UsersUserPolicies + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UsersUserRequestPatch. + + + :param policies: The policies of this UsersUserRequestPatch. # noqa: E501 + :type policies: UsersUserPolicies + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersUserRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersUserRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/users_user_response_mixin.py b/openapi_client_udm/models/users_user_response_mixin.py new file mode 100644 index 0000000..9ca0dea --- /dev/null +++ b/openapi_client_udm/models/users_user_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UsersUserResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UsersUserResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UsersUserResponseMixin. # noqa: E501 + + + :return: The links of this UsersUserResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UsersUserResponseMixin. + + + :param links: The links of this UsersUserResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UsersUserResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UsersUserResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UsersUserResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UsersUserResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UsersUserResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UsersUserResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UsersUserResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UsersUserResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UsersUserResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UsersUserResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UsersUserResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UsersUserResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UsersUserResponseMixin. # noqa: E501 + + + :return: The uri of this UsersUserResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UsersUserResponseMixin. + + + :param uri: The uri of this UsersUserResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UsersUserResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UsersUserResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudconnection.py b/openapi_client_udm/models/uvmm_cloudconnection.py new file mode 100644 index 0000000..b0f6b96 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudconnection.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudconnection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudconnection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UvmmCloudconnection. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmCloudconnection. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmCloudconnection. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmCloudconnection. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmCloudconnection. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmCloudconnection. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmCloudconnection. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmCloudconnection. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmCloudconnection. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmCloudconnection. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmCloudconnection. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmCloudconnection. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmCloudconnection. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmCloudconnection. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmCloudconnection. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmCloudconnection. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UvmmCloudconnection. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UvmmCloudconnection. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UvmmCloudconnection. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UvmmCloudconnection. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UvmmCloudconnection. # noqa: E501 + + + :return: The links of this UvmmCloudconnection. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UvmmCloudconnection. + + + :param links: The links of this UvmmCloudconnection. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UvmmCloudconnection. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UvmmCloudconnection. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmCloudconnection. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UvmmCloudconnection. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UvmmCloudconnection. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UvmmCloudconnection. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UvmmCloudconnection. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UvmmCloudconnection. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UvmmCloudconnection. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UvmmCloudconnection. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UvmmCloudconnection. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UvmmCloudconnection. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UvmmCloudconnection. # noqa: E501 + + + :return: The uri of this UvmmCloudconnection. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UvmmCloudconnection. + + + :param uri: The uri of this UvmmCloudconnection. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudconnection): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudconnection): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudconnection_list.py b/openapi_client_udm/models/uvmm_cloudconnection_list.py new file mode 100644 index 0000000..b887862 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudconnection_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudconnectionList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UvmmCloudconnectionListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudconnectionList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UvmmCloudconnectionList. # noqa: E501 + + + :return: The embedded of this UvmmCloudconnectionList. # noqa: E501 + :rtype: UvmmCloudconnectionListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmCloudconnectionList. + + + :param embedded: The embedded of this UvmmCloudconnectionList. # noqa: E501 + :type embedded: UvmmCloudconnectionListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudconnectionList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudconnectionList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudconnection_list_embedded.py b/openapi_client_udm/models/uvmm_cloudconnection_list_embedded.py new file mode 100644 index 0000000..9e58166 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudconnection_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudconnectionListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UvmmCloudconnection]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudconnectionListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UvmmCloudconnectionListEmbedded. # noqa: E501 + + + :return: The udmobject of this UvmmCloudconnectionListEmbedded. # noqa: E501 + :rtype: list[UvmmCloudconnection] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UvmmCloudconnectionListEmbedded. + + + :param udmobject: The udmobject of this UvmmCloudconnectionListEmbedded. # noqa: E501 + :type udmobject: list[UvmmCloudconnection] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudconnectionListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudconnectionListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudconnection_request.py b/openapi_client_udm/models/uvmm_cloudconnection_request.py new file mode 100644 index 0000000..4269742 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudconnection_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudconnectionRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudconnectionRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UvmmCloudconnectionRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmCloudconnectionRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmCloudconnectionRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmCloudconnectionRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmCloudconnectionRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmCloudconnectionRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmCloudconnectionRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmCloudconnectionRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmCloudconnectionRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmCloudconnectionRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmCloudconnectionRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmCloudconnectionRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmCloudconnectionRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmCloudconnectionRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmCloudconnectionRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmCloudconnectionRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UvmmCloudconnectionRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UvmmCloudconnectionRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UvmmCloudconnectionRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UvmmCloudconnectionRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudconnectionRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudconnectionRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudconnection_request_patch.py b/openapi_client_udm/models/uvmm_cloudconnection_request_patch.py new file mode 100644 index 0000000..6e327b1 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudconnection_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudconnectionRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudconnectionRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UvmmCloudconnectionRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmCloudconnectionRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmCloudconnectionRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmCloudconnectionRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmCloudconnectionRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmCloudconnectionRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmCloudconnectionRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmCloudconnectionRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmCloudconnectionRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmCloudconnectionRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmCloudconnectionRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmCloudconnectionRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmCloudconnectionRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmCloudconnectionRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmCloudconnectionRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmCloudconnectionRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudconnectionRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudconnectionRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudconnection_response_mixin.py b/openapi_client_udm/models/uvmm_cloudconnection_response_mixin.py new file mode 100644 index 0000000..c6ddf6a --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudconnection_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudconnectionResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudconnectionResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UvmmCloudconnectionResponseMixin. # noqa: E501 + + + :return: The links of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UvmmCloudconnectionResponseMixin. + + + :param links: The links of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UvmmCloudconnectionResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmCloudconnectionResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UvmmCloudconnectionResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UvmmCloudconnectionResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UvmmCloudconnectionResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UvmmCloudconnectionResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UvmmCloudconnectionResponseMixin. # noqa: E501 + + + :return: The uri of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UvmmCloudconnectionResponseMixin. + + + :param uri: The uri of this UvmmCloudconnectionResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudconnectionResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudconnectionResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudtype.py b/openapi_client_udm/models/uvmm_cloudtype.py new file mode 100644 index 0000000..19d2880 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudtype.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudtype(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudtype - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UvmmCloudtype. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmCloudtype. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmCloudtype. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmCloudtype. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmCloudtype. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmCloudtype. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmCloudtype. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmCloudtype. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmCloudtype. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmCloudtype. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmCloudtype. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmCloudtype. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmCloudtype. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmCloudtype. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmCloudtype. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmCloudtype. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UvmmCloudtype. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UvmmCloudtype. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UvmmCloudtype. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UvmmCloudtype. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UvmmCloudtype. # noqa: E501 + + + :return: The links of this UvmmCloudtype. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UvmmCloudtype. + + + :param links: The links of this UvmmCloudtype. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UvmmCloudtype. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UvmmCloudtype. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmCloudtype. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UvmmCloudtype. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UvmmCloudtype. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UvmmCloudtype. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UvmmCloudtype. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UvmmCloudtype. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UvmmCloudtype. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UvmmCloudtype. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UvmmCloudtype. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UvmmCloudtype. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UvmmCloudtype. # noqa: E501 + + + :return: The uri of this UvmmCloudtype. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UvmmCloudtype. + + + :param uri: The uri of this UvmmCloudtype. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudtype): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudtype): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudtype_list.py b/openapi_client_udm/models/uvmm_cloudtype_list.py new file mode 100644 index 0000000..ab33ea3 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudtype_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudtypeList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UvmmCloudtypeListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudtypeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UvmmCloudtypeList. # noqa: E501 + + + :return: The embedded of this UvmmCloudtypeList. # noqa: E501 + :rtype: UvmmCloudtypeListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmCloudtypeList. + + + :param embedded: The embedded of this UvmmCloudtypeList. # noqa: E501 + :type embedded: UvmmCloudtypeListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudtypeList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudtypeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudtype_list_embedded.py b/openapi_client_udm/models/uvmm_cloudtype_list_embedded.py new file mode 100644 index 0000000..76d68cb --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudtype_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudtypeListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UvmmCloudtype]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudtypeListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UvmmCloudtypeListEmbedded. # noqa: E501 + + + :return: The udmobject of this UvmmCloudtypeListEmbedded. # noqa: E501 + :rtype: list[UvmmCloudtype] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UvmmCloudtypeListEmbedded. + + + :param udmobject: The udmobject of this UvmmCloudtypeListEmbedded. # noqa: E501 + :type udmobject: list[UvmmCloudtype] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudtypeListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudtypeListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudtype_request.py b/openapi_client_udm/models/uvmm_cloudtype_request.py new file mode 100644 index 0000000..cb7ccb1 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudtype_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudtypeRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudtypeRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UvmmCloudtypeRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmCloudtypeRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmCloudtypeRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmCloudtypeRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmCloudtypeRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmCloudtypeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmCloudtypeRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmCloudtypeRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmCloudtypeRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmCloudtypeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmCloudtypeRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmCloudtypeRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmCloudtypeRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmCloudtypeRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmCloudtypeRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmCloudtypeRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UvmmCloudtypeRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UvmmCloudtypeRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UvmmCloudtypeRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UvmmCloudtypeRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudtypeRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudtypeRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudtype_request_patch.py b/openapi_client_udm/models/uvmm_cloudtype_request_patch.py new file mode 100644 index 0000000..aeebd64 --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudtype_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudtypeRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudtypeRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UvmmCloudtypeRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmCloudtypeRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmCloudtypeRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmCloudtypeRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmCloudtypeRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmCloudtypeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmCloudtypeRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmCloudtypeRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmCloudtypeRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmCloudtypeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmCloudtypeRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmCloudtypeRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmCloudtypeRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmCloudtypeRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmCloudtypeRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmCloudtypeRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudtypeRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudtypeRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_cloudtype_response_mixin.py b/openapi_client_udm/models/uvmm_cloudtype_response_mixin.py new file mode 100644 index 0000000..6db934d --- /dev/null +++ b/openapi_client_udm/models/uvmm_cloudtype_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmCloudtypeResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UvmmCloudtypeResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UvmmCloudtypeResponseMixin. # noqa: E501 + + + :return: The links of this UvmmCloudtypeResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UvmmCloudtypeResponseMixin. + + + :param links: The links of this UvmmCloudtypeResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UvmmCloudtypeResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UvmmCloudtypeResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmCloudtypeResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UvmmCloudtypeResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UvmmCloudtypeResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UvmmCloudtypeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UvmmCloudtypeResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UvmmCloudtypeResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UvmmCloudtypeResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UvmmCloudtypeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UvmmCloudtypeResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UvmmCloudtypeResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UvmmCloudtypeResponseMixin. # noqa: E501 + + + :return: The uri of this UvmmCloudtypeResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UvmmCloudtypeResponseMixin. + + + :param uri: The uri of this UvmmCloudtypeResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmCloudtypeResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmCloudtypeResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_info.py b/openapi_client_udm/models/uvmm_info.py new file mode 100644 index 0000000..bc22f80 --- /dev/null +++ b/openapi_client_udm/models/uvmm_info.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmInfo(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UvmmInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UvmmInfo. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmInfo. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmInfo. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmInfo. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmInfo. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmInfo. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmInfo. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmInfo. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmInfo. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmInfo. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmInfo. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmInfo. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmInfo. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmInfo. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmInfo. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmInfo. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UvmmInfo. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UvmmInfo. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UvmmInfo. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UvmmInfo. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UvmmInfo. # noqa: E501 + + + :return: The links of this UvmmInfo. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UvmmInfo. + + + :param links: The links of this UvmmInfo. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UvmmInfo. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UvmmInfo. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmInfo. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UvmmInfo. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UvmmInfo. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UvmmInfo. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UvmmInfo. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UvmmInfo. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UvmmInfo. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UvmmInfo. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UvmmInfo. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UvmmInfo. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UvmmInfo. # noqa: E501 + + + :return: The uri of this UvmmInfo. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UvmmInfo. + + + :param uri: The uri of this UvmmInfo. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmInfo): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_info_list.py b/openapi_client_udm/models/uvmm_info_list.py new file mode 100644 index 0000000..c5c9b2a --- /dev/null +++ b/openapi_client_udm/models/uvmm_info_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmInfoList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UvmmInfoListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UvmmInfoList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UvmmInfoList. # noqa: E501 + + + :return: The embedded of this UvmmInfoList. # noqa: E501 + :rtype: UvmmInfoListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmInfoList. + + + :param embedded: The embedded of this UvmmInfoList. # noqa: E501 + :type embedded: UvmmInfoListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmInfoList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmInfoList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_info_list_embedded.py b/openapi_client_udm/models/uvmm_info_list_embedded.py new file mode 100644 index 0000000..b19c1f2 --- /dev/null +++ b/openapi_client_udm/models/uvmm_info_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmInfoListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UvmmInfo]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UvmmInfoListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UvmmInfoListEmbedded. # noqa: E501 + + + :return: The udmobject of this UvmmInfoListEmbedded. # noqa: E501 + :rtype: list[UvmmInfo] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UvmmInfoListEmbedded. + + + :param udmobject: The udmobject of this UvmmInfoListEmbedded. # noqa: E501 + :type udmobject: list[UvmmInfo] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmInfoListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmInfoListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_info_request.py b/openapi_client_udm/models/uvmm_info_request.py new file mode 100644 index 0000000..1e540e7 --- /dev/null +++ b/openapi_client_udm/models/uvmm_info_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmInfoRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UvmmInfoRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UvmmInfoRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmInfoRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmInfoRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmInfoRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmInfoRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmInfoRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmInfoRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmInfoRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmInfoRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmInfoRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmInfoRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmInfoRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmInfoRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmInfoRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmInfoRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmInfoRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UvmmInfoRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UvmmInfoRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UvmmInfoRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UvmmInfoRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmInfoRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmInfoRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_info_request_patch.py b/openapi_client_udm/models/uvmm_info_request_patch.py new file mode 100644 index 0000000..b5ec340 --- /dev/null +++ b/openapi_client_udm/models/uvmm_info_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmInfoRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UvmmInfoRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UvmmInfoRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmInfoRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmInfoRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmInfoRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmInfoRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmInfoRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmInfoRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmInfoRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmInfoRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmInfoRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmInfoRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmInfoRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmInfoRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmInfoRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmInfoRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmInfoRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmInfoRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmInfoRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_info_response_mixin.py b/openapi_client_udm/models/uvmm_info_response_mixin.py new file mode 100644 index 0000000..33a6945 --- /dev/null +++ b/openapi_client_udm/models/uvmm_info_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmInfoResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UvmmInfoResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UvmmInfoResponseMixin. # noqa: E501 + + + :return: The links of this UvmmInfoResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UvmmInfoResponseMixin. + + + :param links: The links of this UvmmInfoResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UvmmInfoResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UvmmInfoResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmInfoResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UvmmInfoResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UvmmInfoResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UvmmInfoResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UvmmInfoResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UvmmInfoResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UvmmInfoResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UvmmInfoResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UvmmInfoResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UvmmInfoResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UvmmInfoResponseMixin. # noqa: E501 + + + :return: The uri of this UvmmInfoResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UvmmInfoResponseMixin. + + + :param uri: The uri of this UvmmInfoResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmInfoResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmInfoResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_profile.py b/openapi_client_udm/models/uvmm_profile.py new file mode 100644 index 0000000..ce30480 --- /dev/null +++ b/openapi_client_udm/models/uvmm_profile.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmProfile(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str', + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position', + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UvmmProfile - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def dn(self): + """Gets the dn of this UvmmProfile. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmProfile. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmProfile. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmProfile. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmProfile. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmProfile. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmProfile. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmProfile. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmProfile. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmProfile. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmProfile. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmProfile. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmProfile. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmProfile. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmProfile. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmProfile. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UvmmProfile. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UvmmProfile. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UvmmProfile. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UvmmProfile. # noqa: E501 + :type position: str + """ + + self._position = position + + @property + def links(self): + """Gets the links of this UvmmProfile. # noqa: E501 + + + :return: The links of this UvmmProfile. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UvmmProfile. + + + :param links: The links of this UvmmProfile. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UvmmProfile. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UvmmProfile. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmProfile. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UvmmProfile. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UvmmProfile. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UvmmProfile. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UvmmProfile. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UvmmProfile. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UvmmProfile. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UvmmProfile. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UvmmProfile. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UvmmProfile. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UvmmProfile. # noqa: E501 + + + :return: The uri of this UvmmProfile. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UvmmProfile. + + + :param uri: The uri of this UvmmProfile. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmProfile): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmProfile): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_profile_list.py b/openapi_client_udm/models/uvmm_profile_list.py new file mode 100644 index 0000000..619ef8a --- /dev/null +++ b/openapi_client_udm/models/uvmm_profile_list.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmProfileList(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'embedded': 'UvmmProfileListEmbedded' + } + + attribute_map = { + 'embedded': '_embedded' + } + + def __init__(self, embedded=None, local_vars_configuration=None): # noqa: E501 + """UvmmProfileList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._embedded = None + self.discriminator = None + + if embedded is not None: + self.embedded = embedded + + @property + def embedded(self): + """Gets the embedded of this UvmmProfileList. # noqa: E501 + + + :return: The embedded of this UvmmProfileList. # noqa: E501 + :rtype: UvmmProfileListEmbedded + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmProfileList. + + + :param embedded: The embedded of this UvmmProfileList. # noqa: E501 + :type embedded: UvmmProfileListEmbedded + """ + + self._embedded = embedded + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmProfileList): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmProfileList): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_profile_list_embedded.py b/openapi_client_udm/models/uvmm_profile_list_embedded.py new file mode 100644 index 0000000..a4c87cf --- /dev/null +++ b/openapi_client_udm/models/uvmm_profile_list_embedded.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmProfileListEmbedded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'udmobject': 'list[UvmmProfile]' + } + + attribute_map = { + 'udmobject': 'udm:object' + } + + def __init__(self, udmobject=None, local_vars_configuration=None): # noqa: E501 + """UvmmProfileListEmbedded - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._udmobject = None + self.discriminator = None + + if udmobject is not None: + self.udmobject = udmobject + + @property + def udmobject(self): + """Gets the udmobject of this UvmmProfileListEmbedded. # noqa: E501 + + + :return: The udmobject of this UvmmProfileListEmbedded. # noqa: E501 + :rtype: list[UvmmProfile] + """ + return self._udmobject + + @udmobject.setter + def udmobject(self, udmobject): + """Sets the udmobject of this UvmmProfileListEmbedded. + + + :param udmobject: The udmobject of this UvmmProfileListEmbedded. # noqa: E501 + :type udmobject: list[UvmmProfile] + """ + if (self.local_vars_configuration.client_side_validation and + udmobject is not None and len(udmobject) < 0): + raise ValueError("Invalid value for `udmobject`, number of items must be greater than or equal to `0`") # noqa: E501 + + self._udmobject = udmobject + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmProfileListEmbedded): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmProfileListEmbedded): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_profile_request.py b/openapi_client_udm/models/uvmm_profile_request.py new file mode 100644 index 0000000..9b40b93 --- /dev/null +++ b/openapi_client_udm/models/uvmm_profile_request.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmProfileRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)', + 'position': 'str' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies', + 'position': 'position' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, position=None, local_vars_configuration=None): # noqa: E501 + """UvmmProfileRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self._position = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + if position is not None: + self.position = position + + @property + def dn(self): + """Gets the dn of this UvmmProfileRequest. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmProfileRequest. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmProfileRequest. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmProfileRequest. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmProfileRequest. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmProfileRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmProfileRequest. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmProfileRequest. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmProfileRequest. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmProfileRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmProfileRequest. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmProfileRequest. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmProfileRequest. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmProfileRequest. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmProfileRequest. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmProfileRequest. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + @property + def position(self): + """Gets the position of this UvmmProfileRequest. # noqa: E501 + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :return: The position of this UvmmProfileRequest. # noqa: E501 + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this UvmmProfileRequest. + + DN of LDAP node below which the object is located. Changing this causes a move of the object. When changing no other changes are applied. # noqa: E501 + + :param position: The position of this UvmmProfileRequest. # noqa: E501 + :type position: str + """ + + self._position = position + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmProfileRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmProfileRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_profile_request_patch.py b/openapi_client_udm/models/uvmm_profile_request_patch.py new file mode 100644 index 0000000..8a44558 --- /dev/null +++ b/openapi_client_udm/models/uvmm_profile_request_patch.py @@ -0,0 +1,223 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmProfileRequestPatch(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'dn': 'str', + 'properties': 'dict(str, object)', + 'options': 'dict(str, object)', + 'policies': 'dict(str, object)' + } + + attribute_map = { + 'dn': 'dn', + 'properties': 'properties', + 'options': 'options', + 'policies': 'policies' + } + + def __init__(self, dn=None, properties=None, options=None, policies=None, local_vars_configuration=None): # noqa: E501 + """UvmmProfileRequestPatch - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._dn = None + self._properties = None + self._options = None + self._policies = None + self.discriminator = None + + if dn is not None: + self.dn = dn + if properties is not None: + self.properties = properties + if options is not None: + self.options = options + if policies is not None: + self.policies = policies + + @property + def dn(self): + """Gets the dn of this UvmmProfileRequestPatch. # noqa: E501 + + The LDAP Distinguished Name (DN). # noqa: E501 + + :return: The dn of this UvmmProfileRequestPatch. # noqa: E501 + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """Sets the dn of this UvmmProfileRequestPatch. + + The LDAP Distinguished Name (DN). # noqa: E501 + + :param dn: The dn of this UvmmProfileRequestPatch. # noqa: E501 + :type dn: str + """ + if (self.local_vars_configuration.client_side_validation and + dn is not None and len(dn) < 3): + raise ValueError("Invalid value for `dn`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + dn is not None and not re.search(r'^.+=.+$', dn)): # noqa: E501 + raise ValueError(r"Invalid value for `dn`, must be a follow pattern or equal to `/^.+=.+$/`") # noqa: E501 + + self._dn = dn + + @property + def properties(self): + """Gets the properties of this UvmmProfileRequestPatch. # noqa: E501 + + Object type specific `UDM` properties. # noqa: E501 + + :return: The properties of this UvmmProfileRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this UvmmProfileRequestPatch. + + Object type specific `UDM` properties. # noqa: E501 + + :param properties: The properties of this UvmmProfileRequestPatch. # noqa: E501 + :type properties: dict(str, object) + """ + + self._properties = properties + + @property + def options(self): + """Gets the options of this UvmmProfileRequestPatch. # noqa: E501 + + Object type specific `UDM` options. # noqa: E501 + + :return: The options of this UvmmProfileRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._options + + @options.setter + def options(self, options): + """Sets the options of this UvmmProfileRequestPatch. + + Object type specific `UDM` options. # noqa: E501 + + :param options: The options of this UvmmProfileRequestPatch. # noqa: E501 + :type options: dict(str, object) + """ + + self._options = options + + @property + def policies(self): + """Gets the policies of this UvmmProfileRequestPatch. # noqa: E501 + + Policies which apply for this object. # noqa: E501 + + :return: The policies of this UvmmProfileRequestPatch. # noqa: E501 + :rtype: dict(str, object) + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this UvmmProfileRequestPatch. + + Policies which apply for this object. # noqa: E501 + + :param policies: The policies of this UvmmProfileRequestPatch. # noqa: E501 + :type policies: dict(str, object) + """ + + self._policies = policies + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmProfileRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmProfileRequestPatch): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/models/uvmm_profile_response_mixin.py b/openapi_client_udm/models/uvmm_profile_response_mixin.py new file mode 100644 index 0000000..156de07 --- /dev/null +++ b/openapi_client_udm/models/uvmm_profile_response_mixin.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +try: + from inspect import getfullargspec +except ImportError: + from inspect import getargspec as getfullargspec +import pprint +import re # noqa: F401 +import six + +from openapi_client_udm.configuration import Configuration + + +class UvmmProfileResponseMixin(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'links': 'Links', + 'embedded': 'dict(str, object)', + 'uuid': 'str', + 'object_type': 'str', + 'uri': 'str' + } + + attribute_map = { + 'links': '_links', + 'embedded': '_embedded', + 'uuid': 'uuid', + 'object_type': 'objectType', + 'uri': 'uri' + } + + def __init__(self, links=None, embedded=None, uuid=None, object_type=None, uri=None, local_vars_configuration=None): # noqa: E501 + """UvmmProfileResponseMixin - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration.get_default_copy() + self.local_vars_configuration = local_vars_configuration + + self._links = None + self._embedded = None + self._uuid = None + self._object_type = None + self._uri = None + self.discriminator = None + + if links is not None: + self.links = links + if embedded is not None: + self.embedded = embedded + if uuid is not None: + self.uuid = uuid + if object_type is not None: + self.object_type = object_type + if uri is not None: + self.uri = uri + + @property + def links(self): + """Gets the links of this UvmmProfileResponseMixin. # noqa: E501 + + + :return: The links of this UvmmProfileResponseMixin. # noqa: E501 + :rtype: Links + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this UvmmProfileResponseMixin. + + + :param links: The links of this UvmmProfileResponseMixin. # noqa: E501 + :type links: Links + """ + + self._links = links + + @property + def embedded(self): + """Gets the embedded of this UvmmProfileResponseMixin. # noqa: E501 + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :return: The embedded of this UvmmProfileResponseMixin. # noqa: E501 + :rtype: dict(str, object) + """ + return self._embedded + + @embedded.setter + def embedded(self, embedded): + """Sets the embedded of this UvmmProfileResponseMixin. + + Hypertext Application Language (HAL) embedded resources. # noqa: E501 + + :param embedded: The embedded of this UvmmProfileResponseMixin. # noqa: E501 + :type embedded: dict(str, object) + """ + + self._embedded = embedded + + @property + def uuid(self): + """Gets the uuid of this UvmmProfileResponseMixin. # noqa: E501 + + The LDAP Entry-UUID. # noqa: E501 + + :return: The uuid of this UvmmProfileResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """Sets the uuid of this UvmmProfileResponseMixin. + + The LDAP Entry-UUID. # noqa: E501 + + :param uuid: The uuid of this UvmmProfileResponseMixin. # noqa: E501 + :type uuid: str + """ + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) > 36): + raise ValueError("Invalid value for `uuid`, length must be less than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and len(uuid) < 36): + raise ValueError("Invalid value for `uuid`, length must be greater than or equal to `36`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + uuid is not None and not re.search(r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$', uuid)): # noqa: E501 + raise ValueError(r"Invalid value for `uuid`, must be a follow pattern or equal to `/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/`") # noqa: E501 + + self._uuid = uuid + + @property + def object_type(self): + """Gets the object_type of this UvmmProfileResponseMixin. # noqa: E501 + + The UDM Object-Type. # noqa: E501 + + :return: The object_type of this UvmmProfileResponseMixin. # noqa: E501 + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """Sets the object_type of this UvmmProfileResponseMixin. + + The UDM Object-Type. # noqa: E501 + + :param object_type: The object_type of this UvmmProfileResponseMixin. # noqa: E501 + :type object_type: str + """ + if (self.local_vars_configuration.client_side_validation and + object_type is not None and len(object_type) < 3): + raise ValueError("Invalid value for `object_type`, length must be greater than or equal to `3`") # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + object_type is not None and not re.search(r'^.+\/.+$', object_type)): # noqa: E501 + raise ValueError(r"Invalid value for `object_type`, must be a follow pattern or equal to `/^.+\/.+$/`") # noqa: E501 + + self._object_type = object_type + + @property + def uri(self): + """Gets the uri of this UvmmProfileResponseMixin. # noqa: E501 + + + :return: The uri of this UvmmProfileResponseMixin. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this UvmmProfileResponseMixin. + + + :param uri: The uri of this UvmmProfileResponseMixin. # noqa: E501 + :type uri: str + """ + + self._uri = uri + + def to_dict(self, serialize=False): + """Returns the model properties as a dict""" + result = {} + + def convert(x): + if hasattr(x, "to_dict"): + args = getfullargspec(x.to_dict).args + if len(args) == 1: + return x.to_dict() + else: + return x.to_dict(serialize) + else: + return x + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + attr = self.attribute_map.get(attr, attr) if serialize else attr + if isinstance(value, list): + result[attr] = list(map( + lambda x: convert(x), + value + )) + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], convert(item[1])), + value.items() + )) + else: + result[attr] = convert(value) + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UvmmProfileResponseMixin): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UvmmProfileResponseMixin): + return True + + return self.to_dict() != other.to_dict() diff --git a/openapi_client_udm/rest.py b/openapi_client_udm/rest.py new file mode 100644 index 0000000..c45f035 --- /dev/null +++ b/openapi_client_udm/rest.py @@ -0,0 +1,247 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +import io +import json +import logging +import re +import ssl + +import aiohttp +# python 2 and python 3 compatibility library +from six.moves.urllib.parse import urlencode + +from openapi_client_udm.exceptions import ApiException, ApiValueError + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp, data): + self.aiohttp_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = data + + def getheaders(self): + """Returns a CIMultiDictProxy of the response headers.""" + return self.aiohttp_response.headers + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.aiohttp_response.headers.get(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + + # maxsize is number of requests to host that are allowed in parallel + if maxsize is None: + maxsize = configuration.connection_pool_maxsize + + ssl_context = ssl.create_default_context(cafile=configuration.ssl_ca_cert) + if configuration.cert_file: + ssl_context.load_cert_chain( + configuration.cert_file, keyfile=configuration.key_file + ) + + if not configuration.verify_ssl: + ssl_context.check_hostname = False + ssl_context.verify_mode = ssl.CERT_NONE + + connector = aiohttp.TCPConnector( + limit=maxsize, + ssl=ssl_context + ) + + self.proxy = configuration.proxy + self.proxy_headers = configuration.proxy_headers + + # https pool manager + self.pool_manager = aiohttp.ClientSession( + connector=connector, + trust_env=True + ) + + async def close(self): + await self.pool_manager.close() + + async def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Execute request + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: this is a non-applicable field for + the AiohttpClient. + :param _request_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. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + timeout = _request_timeout or 5 * 60 + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + args = { + "method": method, + "url": url, + "timeout": timeout, + "headers": headers + } + + if self.proxy: + args["proxy"] = self.proxy + if self.proxy_headers: + args["proxy_headers"] = self.proxy_headers + + if query_params: + args["url"] += '?' + urlencode(query_params) + + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if re.search('json', headers['Content-Type'], re.IGNORECASE): + if body is not None: + body = json.dumps(body) + args["data"] = body + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + args["data"] = aiohttp.FormData(post_params) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by aiohttp + del headers['Content-Type'] + data = aiohttp.FormData() + for param in post_params: + k, v = param + if isinstance(v, tuple) and len(v) == 3: + data.add_field(k, + value=v[1], + filename=v[0], + content_type=v[2]) + else: + data.add_field(k, v) + args["data"] = data + + # Pass a `bytes` parameter directly in the body to support + # other content types than Json when `body` argument is provided + # in serialized form + elif isinstance(body, bytes): + args["data"] = body + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + + r = await self.pool_manager.request(**args) + if _preload_content: + + data = await r.read() + r = RESTResponse(r, data) + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + async def GET(self, url, headers=None, query_params=None, + _preload_content=True, _request_timeout=None): + return (await self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params)) + + async def HEAD(self, url, headers=None, query_params=None, + _preload_content=True, _request_timeout=None): + return (await self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params)) + + async def OPTIONS(self, url, headers=None, query_params=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + return (await self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body)) + + async def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return (await self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body)) + + async def POST(self, url, headers=None, query_params=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + return (await self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body)) + + async def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return (await self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body)) + + async def PATCH(self, url, headers=None, query_params=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + return (await self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body)) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d0518ec --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +future; python_version<="2.7" +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.25.3 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..11433ee --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +max-line-length=99 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9ff2b1e --- /dev/null +++ b/setup.py @@ -0,0 +1,42 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "openapi-client-udm" +VERSION = "1.0.2" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.25.3", "six >= 1.10", "python-dateutil"] +REQUIRES.append("aiohttp >= 3.0.0") + +setup( + name=NAME, + version=VERSION, + description="Univention Directory Manager REST interface", + author="OpenAPI Generator community", + author_email="team@openapitools.org", + url="", + keywords=["OpenAPI", "OpenAPI-Generator", "Univention Directory Manager REST interface"], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description_content_type='text/markdown', + long_description="""\ + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + """ +) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..4ed3991 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +pytest~=4.6.7 # needed for python 2.7+3.4 +pytest-cov>=2.8.1 +pytest-randomly==1.2.3 # needed for python 2.7+3.4 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test_appcenter_app.py b/test/test_appcenter_app.py new file mode 100644 index 0000000..4d539ec --- /dev/null +++ b/test/test_appcenter_app.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.appcenter_app import AppcenterApp # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestAppcenterApp(unittest.TestCase): + """AppcenterApp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppcenterApp(self): + """Test AppcenterApp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_appcenter_app_api.py b/test/test_appcenter_app_api.py new file mode 100644 index 0000000..a0e317d --- /dev/null +++ b/test/test_appcenter_app_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.appcenter_app_api import AppcenterAppApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestAppcenterAppApi(unittest.TestCase): + """AppcenterAppApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.appcenter_app_api.AppcenterAppApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_appcenter_app_object(self): + """Test case for udm_appcenter_app_object + + Get a representation of the App Metadata object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_appcenter_app_object_create(self): + """Test case for udm_appcenter_app_object_create + + Create a new App Metadata object # noqa: E501 + """ + pass + + def test_udm_appcenter_app_object_modify(self): + """Test case for udm_appcenter_app_object_modify + + Modify or move an App Metadata object # noqa: E501 + """ + pass + + def test_udm_appcenter_app_object_remove(self): + """Test case for udm_appcenter_app_object_remove + + Remove a App Metadata object # noqa: E501 + """ + pass + + def test_udm_appcenter_app_object_search(self): + """Test case for udm_appcenter_app_object_search + + Search for App Metadata objects # noqa: E501 + """ + pass + + def test_udm_appcenter_app_object_template(self): + """Test case for udm_appcenter_app_object_template + + Get a template for creating an App Metadata object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_appcenter_app_object_update(self): + """Test case for udm_appcenter_app_object_update + + Modify an App Metadata object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_appcenter_app_list.py b/test/test_appcenter_app_list.py new file mode 100644 index 0000000..db005b3 --- /dev/null +++ b/test/test_appcenter_app_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.appcenter_app_list import AppcenterAppList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestAppcenterAppList(unittest.TestCase): + """AppcenterAppList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppcenterAppList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.appcenter_app_list.AppcenterAppList() # noqa: E501 + if include_optional : + return AppcenterAppList( + embedded = openapi_client_udm.models.appcenter_app_list__embedded.appcenter_app_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return AppcenterAppList( + ) + + def testAppcenterAppList(self): + """Test AppcenterAppList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_appcenter_app_list_embedded.py b/test/test_appcenter_app_list_embedded.py new file mode 100644 index 0000000..2f98953 --- /dev/null +++ b/test/test_appcenter_app_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.appcenter_app_list_embedded import AppcenterAppListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestAppcenterAppListEmbedded(unittest.TestCase): + """AppcenterAppListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppcenterAppListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.appcenter_app_list_embedded.AppcenterAppListEmbedded() # noqa: E501 + if include_optional : + return AppcenterAppListEmbedded( + udmobject = [ + null + ] + ) + else : + return AppcenterAppListEmbedded( + ) + + def testAppcenterAppListEmbedded(self): + """Test AppcenterAppListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_appcenter_app_policies.py b/test/test_appcenter_app_policies.py new file mode 100644 index 0000000..dd63b82 --- /dev/null +++ b/test/test_appcenter_app_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.appcenter_app_policies import AppcenterAppPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestAppcenterAppPolicies(unittest.TestCase): + """AppcenterAppPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppcenterAppPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.appcenter_app_policies.AppcenterAppPolicies() # noqa: E501 + if include_optional : + return AppcenterAppPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return AppcenterAppPolicies( + ) + + def testAppcenterAppPolicies(self): + """Test AppcenterAppPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_appcenter_app_request.py b/test/test_appcenter_app_request.py new file mode 100644 index 0000000..2cc412f --- /dev/null +++ b/test/test_appcenter_app_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.appcenter_app_request import AppcenterAppRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestAppcenterAppRequest(unittest.TestCase): + """AppcenterAppRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAppcenterAppRequest(self): + """Test AppcenterAppRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_appcenter_app_request_all_of.py b/test/test_appcenter_app_request_all_of.py new file mode 100644 index 0000000..cacc3aa --- /dev/null +++ b/test/test_appcenter_app_request_all_of.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.appcenter_app_request_all_of import AppcenterAppRequestAllOf # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestAppcenterAppRequestAllOf(unittest.TestCase): + """AppcenterAppRequestAllOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppcenterAppRequestAllOf + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.appcenter_app_request_all_of.AppcenterAppRequestAllOf() # noqa: E501 + if include_optional : + return AppcenterAppRequestAllOf( + position = 'cn=position,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return AppcenterAppRequestAllOf( + ) + + def testAppcenterAppRequestAllOf(self): + """Test AppcenterAppRequestAllOf""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_appcenter_app_request_patch.py b/test/test_appcenter_app_request_patch.py new file mode 100644 index 0000000..880976b --- /dev/null +++ b/test/test_appcenter_app_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.appcenter_app_request_patch import AppcenterAppRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestAppcenterAppRequestPatch(unittest.TestCase): + """AppcenterAppRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppcenterAppRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.appcenter_app_request_patch.AppcenterAppRequestPatch() # noqa: E501 + if include_optional : + return AppcenterAppRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return AppcenterAppRequestPatch( + ) + + def testAppcenterAppRequestPatch(self): + """Test AppcenterAppRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_appcenter_app_response_mixin.py b/test/test_appcenter_app_response_mixin.py new file mode 100644 index 0000000..dbb28a2 --- /dev/null +++ b/test/test_appcenter_app_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.appcenter_app_response_mixin import AppcenterAppResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestAppcenterAppResponseMixin(unittest.TestCase): + """AppcenterAppResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AppcenterAppResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.appcenter_app_response_mixin.AppcenterAppResponseMixin() # noqa: E501 + if include_optional : + return AppcenterAppResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/appcenter/app/univentionAppID={value},cn=apps,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return AppcenterAppResponseMixin( + ) + + def testAppcenterAppResponseMixin(self): + """Test AppcenterAppResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_computer.py b/test/test_computers_computer.py new file mode 100644 index 0000000..0d97730 --- /dev/null +++ b/test/test_computers_computer.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_computer import ComputersComputer # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersComputer(unittest.TestCase): + """ComputersComputer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersComputer(self): + """Test ComputersComputer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_computer_api.py b/test/test_computers_computer_api.py new file mode 100644 index 0000000..fbe7947 --- /dev/null +++ b/test/test_computers_computer_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_computer_api import ComputersComputerApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersComputerApi(unittest.TestCase): + """ComputersComputerApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_computer_api.ComputersComputerApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_computer_object(self): + """Test case for udm_computers_computer_object + + Get a representation of the Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_computer_object_search(self): + """Test case for udm_computers_computer_object_search + + Search for Computers objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_computer_list.py b/test/test_computers_computer_list.py new file mode 100644 index 0000000..d7ebfa7 --- /dev/null +++ b/test/test_computers_computer_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_computer_list import ComputersComputerList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersComputerList(unittest.TestCase): + """ComputersComputerList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersComputerList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_computer_list.ComputersComputerList() # noqa: E501 + if include_optional : + return ComputersComputerList( + embedded = openapi_client_udm.models.computers_computer_list__embedded.computers_computer_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersComputerList( + ) + + def testComputersComputerList(self): + """Test ComputersComputerList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_computer_list_embedded.py b/test/test_computers_computer_list_embedded.py new file mode 100644 index 0000000..1d945d4 --- /dev/null +++ b/test/test_computers_computer_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_computer_list_embedded import ComputersComputerListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersComputerListEmbedded(unittest.TestCase): + """ComputersComputerListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersComputerListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_computer_list_embedded.ComputersComputerListEmbedded() # noqa: E501 + if include_optional : + return ComputersComputerListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersComputerListEmbedded( + ) + + def testComputersComputerListEmbedded(self): + """Test ComputersComputerListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_computer_request.py b/test/test_computers_computer_request.py new file mode 100644 index 0000000..221dd6f --- /dev/null +++ b/test/test_computers_computer_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_computer_request import ComputersComputerRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersComputerRequest(unittest.TestCase): + """ComputersComputerRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersComputerRequest(self): + """Test ComputersComputerRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_computer_request_patch.py b/test/test_computers_computer_request_patch.py new file mode 100644 index 0000000..51e2644 --- /dev/null +++ b/test/test_computers_computer_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_computer_request_patch import ComputersComputerRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersComputerRequestPatch(unittest.TestCase): + """ComputersComputerRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersComputerRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_computer_request_patch.ComputersComputerRequestPatch() # noqa: E501 + if include_optional : + return ComputersComputerRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersComputerRequestPatch( + ) + + def testComputersComputerRequestPatch(self): + """Test ComputersComputerRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_computer_response_mixin.py b/test/test_computers_computer_response_mixin.py new file mode 100644 index 0000000..7ab5f92 --- /dev/null +++ b/test/test_computers_computer_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_computer_response_mixin import ComputersComputerResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersComputerResponseMixin(unittest.TestCase): + """ComputersComputerResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersComputerResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_computer_response_mixin.ComputersComputerResponseMixin() # noqa: E501 + if include_optional : + return ComputersComputerResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/computer/cn={value},cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersComputerResponseMixin( + ) + + def testComputersComputerResponseMixin(self): + """Test ComputersComputerResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup.py b/test/test_computers_domaincontroller_backup.py new file mode 100644 index 0000000..dbb3fa0 --- /dev/null +++ b/test/test_computers_domaincontroller_backup.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_backup import ComputersDomaincontrollerBackup # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerBackup(unittest.TestCase): + """ComputersDomaincontrollerBackup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersDomaincontrollerBackup(self): + """Test ComputersDomaincontrollerBackup""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup_api.py b/test/test_computers_domaincontroller_backup_api.py new file mode 100644 index 0000000..4c072c0 --- /dev/null +++ b/test/test_computers_domaincontroller_backup_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_domaincontroller_backup_api import ComputersDomaincontrollerBackupApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersDomaincontrollerBackupApi(unittest.TestCase): + """ComputersDomaincontrollerBackupApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_domaincontroller_backup_api.ComputersDomaincontrollerBackupApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_domaincontroller_backup_object(self): + """Test case for udm_computers_domaincontroller_backup_object + + Get a representation of the Backup Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_backup_object_create(self): + """Test case for udm_computers_domaincontroller_backup_object_create + + Create a new Backup Directory Node object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_backup_object_modify(self): + """Test case for udm_computers_domaincontroller_backup_object_modify + + Modify or move an Backup Directory Node object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_backup_object_remove(self): + """Test case for udm_computers_domaincontroller_backup_object_remove + + Remove a Backup Directory Nodes object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_backup_object_search(self): + """Test case for udm_computers_domaincontroller_backup_object_search + + Search for Backup Directory Nodes objects # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_backup_object_template(self): + """Test case for udm_computers_domaincontroller_backup_object_template + + Get a template for creating an Backup Directory Node object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_backup_object_update(self): + """Test case for udm_computers_domaincontroller_backup_object_update + + Modify an Backup Directory Node object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup_list.py b/test/test_computers_domaincontroller_backup_list.py new file mode 100644 index 0000000..6a410f3 --- /dev/null +++ b/test/test_computers_domaincontroller_backup_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_backup_list import ComputersDomaincontrollerBackupList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerBackupList(unittest.TestCase): + """ComputersDomaincontrollerBackupList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerBackupList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_backup_list.ComputersDomaincontrollerBackupList() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerBackupList( + embedded = openapi_client_udm.models.computers_domaincontroller_backup_list__embedded.computers_domaincontroller_backup_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersDomaincontrollerBackupList( + ) + + def testComputersDomaincontrollerBackupList(self): + """Test ComputersDomaincontrollerBackupList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup_list_embedded.py b/test/test_computers_domaincontroller_backup_list_embedded.py new file mode 100644 index 0000000..db8e6c6 --- /dev/null +++ b/test/test_computers_domaincontroller_backup_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_backup_list_embedded import ComputersDomaincontrollerBackupListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerBackupListEmbedded(unittest.TestCase): + """ComputersDomaincontrollerBackupListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerBackupListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_backup_list_embedded.ComputersDomaincontrollerBackupListEmbedded() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerBackupListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersDomaincontrollerBackupListEmbedded( + ) + + def testComputersDomaincontrollerBackupListEmbedded(self): + """Test ComputersDomaincontrollerBackupListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup_options.py b/test/test_computers_domaincontroller_backup_options.py new file mode 100644 index 0000000..1863db6 --- /dev/null +++ b/test/test_computers_domaincontroller_backup_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_backup_options import ComputersDomaincontrollerBackupOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerBackupOptions(unittest.TestCase): + """ComputersDomaincontrollerBackupOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerBackupOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_backup_options.ComputersDomaincontrollerBackupOptions() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerBackupOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersDomaincontrollerBackupOptions( + ) + + def testComputersDomaincontrollerBackupOptions(self): + """Test ComputersDomaincontrollerBackupOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup_policies.py b/test/test_computers_domaincontroller_backup_policies.py new file mode 100644 index 0000000..3f004a5 --- /dev/null +++ b/test/test_computers_domaincontroller_backup_policies.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_backup_policies import ComputersDomaincontrollerBackupPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerBackupPolicies(unittest.TestCase): + """ComputersDomaincontrollerBackupPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerBackupPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_backup_policies.ComputersDomaincontrollerBackupPolicies() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerBackupPolicies( + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return ComputersDomaincontrollerBackupPolicies( + ) + + def testComputersDomaincontrollerBackupPolicies(self): + """Test ComputersDomaincontrollerBackupPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup_request.py b/test/test_computers_domaincontroller_backup_request.py new file mode 100644 index 0000000..991e24e --- /dev/null +++ b/test/test_computers_domaincontroller_backup_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_backup_request import ComputersDomaincontrollerBackupRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerBackupRequest(unittest.TestCase): + """ComputersDomaincontrollerBackupRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersDomaincontrollerBackupRequest(self): + """Test ComputersDomaincontrollerBackupRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup_request_patch.py b/test/test_computers_domaincontroller_backup_request_patch.py new file mode 100644 index 0000000..84069cc --- /dev/null +++ b/test/test_computers_domaincontroller_backup_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_backup_request_patch import ComputersDomaincontrollerBackupRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerBackupRequestPatch(unittest.TestCase): + """ComputersDomaincontrollerBackupRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerBackupRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_backup_request_patch.ComputersDomaincontrollerBackupRequestPatch() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerBackupRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersDomaincontrollerBackupRequestPatch( + ) + + def testComputersDomaincontrollerBackupRequestPatch(self): + """Test ComputersDomaincontrollerBackupRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_backup_response_mixin.py b/test/test_computers_domaincontroller_backup_response_mixin.py new file mode 100644 index 0000000..7d6f56f --- /dev/null +++ b/test/test_computers_domaincontroller_backup_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_backup_response_mixin import ComputersDomaincontrollerBackupResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerBackupResponseMixin(unittest.TestCase): + """ComputersDomaincontrollerBackupResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerBackupResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_backup_response_mixin.ComputersDomaincontrollerBackupResponseMixin() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerBackupResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/domaincontroller_backup/cn={value},cn=dc,cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersDomaincontrollerBackupResponseMixin( + ) + + def testComputersDomaincontrollerBackupResponseMixin(self): + """Test ComputersDomaincontrollerBackupResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master.py b/test/test_computers_domaincontroller_master.py new file mode 100644 index 0000000..289d95b --- /dev/null +++ b/test/test_computers_domaincontroller_master.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_master import ComputersDomaincontrollerMaster # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerMaster(unittest.TestCase): + """ComputersDomaincontrollerMaster unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersDomaincontrollerMaster(self): + """Test ComputersDomaincontrollerMaster""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master_api.py b/test/test_computers_domaincontroller_master_api.py new file mode 100644 index 0000000..aca2434 --- /dev/null +++ b/test/test_computers_domaincontroller_master_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_domaincontroller_master_api import ComputersDomaincontrollerMasterApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersDomaincontrollerMasterApi(unittest.TestCase): + """ComputersDomaincontrollerMasterApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_domaincontroller_master_api.ComputersDomaincontrollerMasterApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_domaincontroller_master_object(self): + """Test case for udm_computers_domaincontroller_master_object + + Get a representation of the Primary Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_master_object_create(self): + """Test case for udm_computers_domaincontroller_master_object_create + + Create a new Primary Directory Node object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_master_object_modify(self): + """Test case for udm_computers_domaincontroller_master_object_modify + + Modify or move an Primary Directory Node object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_master_object_remove(self): + """Test case for udm_computers_domaincontroller_master_object_remove + + Remove a Primary Directory Nodes object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_master_object_search(self): + """Test case for udm_computers_domaincontroller_master_object_search + + Search for Primary Directory Nodes objects # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_master_object_template(self): + """Test case for udm_computers_domaincontroller_master_object_template + + Get a template for creating an Primary Directory Node object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_master_object_update(self): + """Test case for udm_computers_domaincontroller_master_object_update + + Modify an Primary Directory Node object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master_list.py b/test/test_computers_domaincontroller_master_list.py new file mode 100644 index 0000000..df9ab80 --- /dev/null +++ b/test/test_computers_domaincontroller_master_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_master_list import ComputersDomaincontrollerMasterList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerMasterList(unittest.TestCase): + """ComputersDomaincontrollerMasterList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerMasterList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_master_list.ComputersDomaincontrollerMasterList() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerMasterList( + embedded = openapi_client_udm.models.computers_domaincontroller_master_list__embedded.computers_domaincontroller_master_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersDomaincontrollerMasterList( + ) + + def testComputersDomaincontrollerMasterList(self): + """Test ComputersDomaincontrollerMasterList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master_list_embedded.py b/test/test_computers_domaincontroller_master_list_embedded.py new file mode 100644 index 0000000..7b4eb14 --- /dev/null +++ b/test/test_computers_domaincontroller_master_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_master_list_embedded import ComputersDomaincontrollerMasterListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerMasterListEmbedded(unittest.TestCase): + """ComputersDomaincontrollerMasterListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerMasterListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_master_list_embedded.ComputersDomaincontrollerMasterListEmbedded() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerMasterListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersDomaincontrollerMasterListEmbedded( + ) + + def testComputersDomaincontrollerMasterListEmbedded(self): + """Test ComputersDomaincontrollerMasterListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master_options.py b/test/test_computers_domaincontroller_master_options.py new file mode 100644 index 0000000..8195e4b --- /dev/null +++ b/test/test_computers_domaincontroller_master_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_master_options import ComputersDomaincontrollerMasterOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerMasterOptions(unittest.TestCase): + """ComputersDomaincontrollerMasterOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerMasterOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_master_options.ComputersDomaincontrollerMasterOptions() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerMasterOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersDomaincontrollerMasterOptions( + ) + + def testComputersDomaincontrollerMasterOptions(self): + """Test ComputersDomaincontrollerMasterOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master_policies.py b/test/test_computers_domaincontroller_master_policies.py new file mode 100644 index 0000000..33fb75d --- /dev/null +++ b/test/test_computers_domaincontroller_master_policies.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_master_policies import ComputersDomaincontrollerMasterPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerMasterPolicies(unittest.TestCase): + """ComputersDomaincontrollerMasterPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerMasterPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_master_policies.ComputersDomaincontrollerMasterPolicies() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerMasterPolicies( + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return ComputersDomaincontrollerMasterPolicies( + ) + + def testComputersDomaincontrollerMasterPolicies(self): + """Test ComputersDomaincontrollerMasterPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master_request.py b/test/test_computers_domaincontroller_master_request.py new file mode 100644 index 0000000..8162f02 --- /dev/null +++ b/test/test_computers_domaincontroller_master_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_master_request import ComputersDomaincontrollerMasterRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerMasterRequest(unittest.TestCase): + """ComputersDomaincontrollerMasterRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersDomaincontrollerMasterRequest(self): + """Test ComputersDomaincontrollerMasterRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master_request_patch.py b/test/test_computers_domaincontroller_master_request_patch.py new file mode 100644 index 0000000..c4c91f1 --- /dev/null +++ b/test/test_computers_domaincontroller_master_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_master_request_patch import ComputersDomaincontrollerMasterRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerMasterRequestPatch(unittest.TestCase): + """ComputersDomaincontrollerMasterRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerMasterRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_master_request_patch.ComputersDomaincontrollerMasterRequestPatch() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerMasterRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersDomaincontrollerMasterRequestPatch( + ) + + def testComputersDomaincontrollerMasterRequestPatch(self): + """Test ComputersDomaincontrollerMasterRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_master_response_mixin.py b/test/test_computers_domaincontroller_master_response_mixin.py new file mode 100644 index 0000000..701d7a4 --- /dev/null +++ b/test/test_computers_domaincontroller_master_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_master_response_mixin import ComputersDomaincontrollerMasterResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerMasterResponseMixin(unittest.TestCase): + """ComputersDomaincontrollerMasterResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerMasterResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_master_response_mixin.ComputersDomaincontrollerMasterResponseMixin() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerMasterResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/domaincontroller_master/cn={value},cn=dc,cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersDomaincontrollerMasterResponseMixin( + ) + + def testComputersDomaincontrollerMasterResponseMixin(self): + """Test ComputersDomaincontrollerMasterResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave.py b/test/test_computers_domaincontroller_slave.py new file mode 100644 index 0000000..56558fe --- /dev/null +++ b/test/test_computers_domaincontroller_slave.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_slave import ComputersDomaincontrollerSlave # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerSlave(unittest.TestCase): + """ComputersDomaincontrollerSlave unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersDomaincontrollerSlave(self): + """Test ComputersDomaincontrollerSlave""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave_api.py b/test/test_computers_domaincontroller_slave_api.py new file mode 100644 index 0000000..04f121c --- /dev/null +++ b/test/test_computers_domaincontroller_slave_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_domaincontroller_slave_api import ComputersDomaincontrollerSlaveApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersDomaincontrollerSlaveApi(unittest.TestCase): + """ComputersDomaincontrollerSlaveApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_domaincontroller_slave_api.ComputersDomaincontrollerSlaveApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_domaincontroller_slave_object(self): + """Test case for udm_computers_domaincontroller_slave_object + + Get a representation of the Replica Directory Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_slave_object_create(self): + """Test case for udm_computers_domaincontroller_slave_object_create + + Create a new Replica Directory Node object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_slave_object_modify(self): + """Test case for udm_computers_domaincontroller_slave_object_modify + + Modify or move an Replica Directory Node object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_slave_object_remove(self): + """Test case for udm_computers_domaincontroller_slave_object_remove + + Remove a Replica Directory Nodes object # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_slave_object_search(self): + """Test case for udm_computers_domaincontroller_slave_object_search + + Search for Replica Directory Nodes objects # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_slave_object_template(self): + """Test case for udm_computers_domaincontroller_slave_object_template + + Get a template for creating an Replica Directory Node object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_domaincontroller_slave_object_update(self): + """Test case for udm_computers_domaincontroller_slave_object_update + + Modify an Replica Directory Node object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave_list.py b/test/test_computers_domaincontroller_slave_list.py new file mode 100644 index 0000000..05cb727 --- /dev/null +++ b/test/test_computers_domaincontroller_slave_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_slave_list import ComputersDomaincontrollerSlaveList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerSlaveList(unittest.TestCase): + """ComputersDomaincontrollerSlaveList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerSlaveList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_slave_list.ComputersDomaincontrollerSlaveList() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerSlaveList( + embedded = openapi_client_udm.models.computers_domaincontroller_slave_list__embedded.computers_domaincontroller_slave_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersDomaincontrollerSlaveList( + ) + + def testComputersDomaincontrollerSlaveList(self): + """Test ComputersDomaincontrollerSlaveList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave_list_embedded.py b/test/test_computers_domaincontroller_slave_list_embedded.py new file mode 100644 index 0000000..3f4b164 --- /dev/null +++ b/test/test_computers_domaincontroller_slave_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_slave_list_embedded import ComputersDomaincontrollerSlaveListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerSlaveListEmbedded(unittest.TestCase): + """ComputersDomaincontrollerSlaveListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerSlaveListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_slave_list_embedded.ComputersDomaincontrollerSlaveListEmbedded() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerSlaveListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersDomaincontrollerSlaveListEmbedded( + ) + + def testComputersDomaincontrollerSlaveListEmbedded(self): + """Test ComputersDomaincontrollerSlaveListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave_options.py b/test/test_computers_domaincontroller_slave_options.py new file mode 100644 index 0000000..cb4c882 --- /dev/null +++ b/test/test_computers_domaincontroller_slave_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_slave_options import ComputersDomaincontrollerSlaveOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerSlaveOptions(unittest.TestCase): + """ComputersDomaincontrollerSlaveOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerSlaveOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_slave_options.ComputersDomaincontrollerSlaveOptions() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerSlaveOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersDomaincontrollerSlaveOptions( + ) + + def testComputersDomaincontrollerSlaveOptions(self): + """Test ComputersDomaincontrollerSlaveOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave_policies.py b/test/test_computers_domaincontroller_slave_policies.py new file mode 100644 index 0000000..f8df08e --- /dev/null +++ b/test/test_computers_domaincontroller_slave_policies.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_slave_policies import ComputersDomaincontrollerSlavePolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerSlavePolicies(unittest.TestCase): + """ComputersDomaincontrollerSlavePolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerSlavePolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_slave_policies.ComputersDomaincontrollerSlavePolicies() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerSlavePolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return ComputersDomaincontrollerSlavePolicies( + ) + + def testComputersDomaincontrollerSlavePolicies(self): + """Test ComputersDomaincontrollerSlavePolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave_request.py b/test/test_computers_domaincontroller_slave_request.py new file mode 100644 index 0000000..ec62c05 --- /dev/null +++ b/test/test_computers_domaincontroller_slave_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_slave_request import ComputersDomaincontrollerSlaveRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerSlaveRequest(unittest.TestCase): + """ComputersDomaincontrollerSlaveRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersDomaincontrollerSlaveRequest(self): + """Test ComputersDomaincontrollerSlaveRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave_request_patch.py b/test/test_computers_domaincontroller_slave_request_patch.py new file mode 100644 index 0000000..a69b9f6 --- /dev/null +++ b/test/test_computers_domaincontroller_slave_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_slave_request_patch import ComputersDomaincontrollerSlaveRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerSlaveRequestPatch(unittest.TestCase): + """ComputersDomaincontrollerSlaveRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerSlaveRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_slave_request_patch.ComputersDomaincontrollerSlaveRequestPatch() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerSlaveRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersDomaincontrollerSlaveRequestPatch( + ) + + def testComputersDomaincontrollerSlaveRequestPatch(self): + """Test ComputersDomaincontrollerSlaveRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_domaincontroller_slave_response_mixin.py b/test/test_computers_domaincontroller_slave_response_mixin.py new file mode 100644 index 0000000..316b714 --- /dev/null +++ b/test/test_computers_domaincontroller_slave_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_domaincontroller_slave_response_mixin import ComputersDomaincontrollerSlaveResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersDomaincontrollerSlaveResponseMixin(unittest.TestCase): + """ComputersDomaincontrollerSlaveResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersDomaincontrollerSlaveResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_domaincontroller_slave_response_mixin.ComputersDomaincontrollerSlaveResponseMixin() # noqa: E501 + if include_optional : + return ComputersDomaincontrollerSlaveResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/domaincontroller_slave/cn={value},cn=dc,cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersDomaincontrollerSlaveResponseMixin( + ) + + def testComputersDomaincontrollerSlaveResponseMixin(self): + """Test ComputersDomaincontrollerSlaveResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ipmanagedclient.py b/test/test_computers_ipmanagedclient.py new file mode 100644 index 0000000..a197d37 --- /dev/null +++ b/test/test_computers_ipmanagedclient.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ipmanagedclient import ComputersIpmanagedclient # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersIpmanagedclient(unittest.TestCase): + """ComputersIpmanagedclient unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersIpmanagedclient(self): + """Test ComputersIpmanagedclient""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ipmanagedclient_api.py b/test/test_computers_ipmanagedclient_api.py new file mode 100644 index 0000000..7878c63 --- /dev/null +++ b/test/test_computers_ipmanagedclient_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_ipmanagedclient_api import ComputersIpmanagedclientApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersIpmanagedclientApi(unittest.TestCase): + """ComputersIpmanagedclientApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_ipmanagedclient_api.ComputersIpmanagedclientApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_ipmanagedclient_object(self): + """Test case for udm_computers_ipmanagedclient_object + + Get a representation of the IP client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_ipmanagedclient_object_create(self): + """Test case for udm_computers_ipmanagedclient_object_create + + Create a new IP client object # noqa: E501 + """ + pass + + def test_udm_computers_ipmanagedclient_object_modify(self): + """Test case for udm_computers_ipmanagedclient_object_modify + + Modify or move an IP client object # noqa: E501 + """ + pass + + def test_udm_computers_ipmanagedclient_object_remove(self): + """Test case for udm_computers_ipmanagedclient_object_remove + + Remove a IP clients object # noqa: E501 + """ + pass + + def test_udm_computers_ipmanagedclient_object_search(self): + """Test case for udm_computers_ipmanagedclient_object_search + + Search for IP clients objects # noqa: E501 + """ + pass + + def test_udm_computers_ipmanagedclient_object_template(self): + """Test case for udm_computers_ipmanagedclient_object_template + + Get a template for creating an IP client object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_ipmanagedclient_object_update(self): + """Test case for udm_computers_ipmanagedclient_object_update + + Modify an IP client object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ipmanagedclient_list.py b/test/test_computers_ipmanagedclient_list.py new file mode 100644 index 0000000..dd618c1 --- /dev/null +++ b/test/test_computers_ipmanagedclient_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ipmanagedclient_list import ComputersIpmanagedclientList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersIpmanagedclientList(unittest.TestCase): + """ComputersIpmanagedclientList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersIpmanagedclientList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ipmanagedclient_list.ComputersIpmanagedclientList() # noqa: E501 + if include_optional : + return ComputersIpmanagedclientList( + embedded = openapi_client_udm.models.computers_ipmanagedclient_list__embedded.computers_ipmanagedclient_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersIpmanagedclientList( + ) + + def testComputersIpmanagedclientList(self): + """Test ComputersIpmanagedclientList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ipmanagedclient_list_embedded.py b/test/test_computers_ipmanagedclient_list_embedded.py new file mode 100644 index 0000000..8d4e4a6 --- /dev/null +++ b/test/test_computers_ipmanagedclient_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ipmanagedclient_list_embedded import ComputersIpmanagedclientListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersIpmanagedclientListEmbedded(unittest.TestCase): + """ComputersIpmanagedclientListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersIpmanagedclientListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ipmanagedclient_list_embedded.ComputersIpmanagedclientListEmbedded() # noqa: E501 + if include_optional : + return ComputersIpmanagedclientListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersIpmanagedclientListEmbedded( + ) + + def testComputersIpmanagedclientListEmbedded(self): + """Test ComputersIpmanagedclientListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ipmanagedclient_options.py b/test/test_computers_ipmanagedclient_options.py new file mode 100644 index 0000000..45de405 --- /dev/null +++ b/test/test_computers_ipmanagedclient_options.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ipmanagedclient_options import ComputersIpmanagedclientOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersIpmanagedclientOptions(unittest.TestCase): + """ComputersIpmanagedclientOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersIpmanagedclientOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ipmanagedclient_options.ComputersIpmanagedclientOptions() # noqa: E501 + if include_optional : + return ComputersIpmanagedclientOptions( + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersIpmanagedclientOptions( + ) + + def testComputersIpmanagedclientOptions(self): + """Test ComputersIpmanagedclientOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ipmanagedclient_request.py b/test/test_computers_ipmanagedclient_request.py new file mode 100644 index 0000000..6a8989f --- /dev/null +++ b/test/test_computers_ipmanagedclient_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ipmanagedclient_request import ComputersIpmanagedclientRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersIpmanagedclientRequest(unittest.TestCase): + """ComputersIpmanagedclientRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersIpmanagedclientRequest(self): + """Test ComputersIpmanagedclientRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ipmanagedclient_request_patch.py b/test/test_computers_ipmanagedclient_request_patch.py new file mode 100644 index 0000000..00cfe11 --- /dev/null +++ b/test/test_computers_ipmanagedclient_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ipmanagedclient_request_patch import ComputersIpmanagedclientRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersIpmanagedclientRequestPatch(unittest.TestCase): + """ComputersIpmanagedclientRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersIpmanagedclientRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ipmanagedclient_request_patch.ComputersIpmanagedclientRequestPatch() # noqa: E501 + if include_optional : + return ComputersIpmanagedclientRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersIpmanagedclientRequestPatch( + ) + + def testComputersIpmanagedclientRequestPatch(self): + """Test ComputersIpmanagedclientRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ipmanagedclient_response_mixin.py b/test/test_computers_ipmanagedclient_response_mixin.py new file mode 100644 index 0000000..5f6804f --- /dev/null +++ b/test/test_computers_ipmanagedclient_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ipmanagedclient_response_mixin import ComputersIpmanagedclientResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersIpmanagedclientResponseMixin(unittest.TestCase): + """ComputersIpmanagedclientResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersIpmanagedclientResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ipmanagedclient_response_mixin.ComputersIpmanagedclientResponseMixin() # noqa: E501 + if include_optional : + return ComputersIpmanagedclientResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/ipmanagedclient/cn={value},cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersIpmanagedclientResponseMixin( + ) + + def testComputersIpmanagedclientResponseMixin(self): + """Test ComputersIpmanagedclientResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_linux.py b/test/test_computers_linux.py new file mode 100644 index 0000000..1d09c42 --- /dev/null +++ b/test/test_computers_linux.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_linux import ComputersLinux # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersLinux(unittest.TestCase): + """ComputersLinux unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersLinux(self): + """Test ComputersLinux""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_linux_api.py b/test/test_computers_linux_api.py new file mode 100644 index 0000000..d68c51d --- /dev/null +++ b/test/test_computers_linux_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_linux_api import ComputersLinuxApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersLinuxApi(unittest.TestCase): + """ComputersLinuxApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_linux_api.ComputersLinuxApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_linux_object(self): + """Test case for udm_computers_linux_object + + Get a representation of the Linux Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_linux_object_create(self): + """Test case for udm_computers_linux_object_create + + Create a new Linux Computer object # noqa: E501 + """ + pass + + def test_udm_computers_linux_object_modify(self): + """Test case for udm_computers_linux_object_modify + + Modify or move an Linux Computer object # noqa: E501 + """ + pass + + def test_udm_computers_linux_object_remove(self): + """Test case for udm_computers_linux_object_remove + + Remove a Linux Computers object # noqa: E501 + """ + pass + + def test_udm_computers_linux_object_search(self): + """Test case for udm_computers_linux_object_search + + Search for Linux Computers objects # noqa: E501 + """ + pass + + def test_udm_computers_linux_object_template(self): + """Test case for udm_computers_linux_object_template + + Get a template for creating an Linux Computer object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_linux_object_update(self): + """Test case for udm_computers_linux_object_update + + Modify an Linux Computer object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_linux_list.py b/test/test_computers_linux_list.py new file mode 100644 index 0000000..c0898de --- /dev/null +++ b/test/test_computers_linux_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_linux_list import ComputersLinuxList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersLinuxList(unittest.TestCase): + """ComputersLinuxList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersLinuxList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_linux_list.ComputersLinuxList() # noqa: E501 + if include_optional : + return ComputersLinuxList( + embedded = openapi_client_udm.models.computers_linux_list__embedded.computers_linux_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersLinuxList( + ) + + def testComputersLinuxList(self): + """Test ComputersLinuxList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_linux_list_embedded.py b/test/test_computers_linux_list_embedded.py new file mode 100644 index 0000000..cdd2d44 --- /dev/null +++ b/test/test_computers_linux_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_linux_list_embedded import ComputersLinuxListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersLinuxListEmbedded(unittest.TestCase): + """ComputersLinuxListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersLinuxListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_linux_list_embedded.ComputersLinuxListEmbedded() # noqa: E501 + if include_optional : + return ComputersLinuxListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersLinuxListEmbedded( + ) + + def testComputersLinuxListEmbedded(self): + """Test ComputersLinuxListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_linux_options.py b/test/test_computers_linux_options.py new file mode 100644 index 0000000..ff21424 --- /dev/null +++ b/test/test_computers_linux_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_linux_options import ComputersLinuxOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersLinuxOptions(unittest.TestCase): + """ComputersLinuxOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersLinuxOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_linux_options.ComputersLinuxOptions() # noqa: E501 + if include_optional : + return ComputersLinuxOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersLinuxOptions( + ) + + def testComputersLinuxOptions(self): + """Test ComputersLinuxOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_linux_request.py b/test/test_computers_linux_request.py new file mode 100644 index 0000000..4bfeeba --- /dev/null +++ b/test/test_computers_linux_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_linux_request import ComputersLinuxRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersLinuxRequest(unittest.TestCase): + """ComputersLinuxRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersLinuxRequest(self): + """Test ComputersLinuxRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_linux_request_patch.py b/test/test_computers_linux_request_patch.py new file mode 100644 index 0000000..d28deaf --- /dev/null +++ b/test/test_computers_linux_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_linux_request_patch import ComputersLinuxRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersLinuxRequestPatch(unittest.TestCase): + """ComputersLinuxRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersLinuxRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_linux_request_patch.ComputersLinuxRequestPatch() # noqa: E501 + if include_optional : + return ComputersLinuxRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersLinuxRequestPatch( + ) + + def testComputersLinuxRequestPatch(self): + """Test ComputersLinuxRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_linux_response_mixin.py b/test/test_computers_linux_response_mixin.py new file mode 100644 index 0000000..db3a459 --- /dev/null +++ b/test/test_computers_linux_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_linux_response_mixin import ComputersLinuxResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersLinuxResponseMixin(unittest.TestCase): + """ComputersLinuxResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersLinuxResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_linux_response_mixin.ComputersLinuxResponseMixin() # noqa: E501 + if include_optional : + return ComputersLinuxResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/linux/cn={value},cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersLinuxResponseMixin( + ) + + def testComputersLinuxResponseMixin(self): + """Test ComputersLinuxResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_macos.py b/test/test_computers_macos.py new file mode 100644 index 0000000..28b129f --- /dev/null +++ b/test/test_computers_macos.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_macos import ComputersMacos # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMacos(unittest.TestCase): + """ComputersMacos unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersMacos(self): + """Test ComputersMacos""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_macos_api.py b/test/test_computers_macos_api.py new file mode 100644 index 0000000..f8b51ab --- /dev/null +++ b/test/test_computers_macos_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_macos_api import ComputersMacosApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersMacosApi(unittest.TestCase): + """ComputersMacosApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_macos_api.ComputersMacosApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_macos_object(self): + """Test case for udm_computers_macos_object + + Get a representation of the macOS Client object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_macos_object_create(self): + """Test case for udm_computers_macos_object_create + + Create a new macOS Client object # noqa: E501 + """ + pass + + def test_udm_computers_macos_object_modify(self): + """Test case for udm_computers_macos_object_modify + + Modify or move an macOS Client object # noqa: E501 + """ + pass + + def test_udm_computers_macos_object_remove(self): + """Test case for udm_computers_macos_object_remove + + Remove a macOS Clients object # noqa: E501 + """ + pass + + def test_udm_computers_macos_object_search(self): + """Test case for udm_computers_macos_object_search + + Search for macOS Clients objects # noqa: E501 + """ + pass + + def test_udm_computers_macos_object_template(self): + """Test case for udm_computers_macos_object_template + + Get a template for creating an macOS Client object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_macos_object_update(self): + """Test case for udm_computers_macos_object_update + + Modify an macOS Client object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_macos_list.py b/test/test_computers_macos_list.py new file mode 100644 index 0000000..541c9fb --- /dev/null +++ b/test/test_computers_macos_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_macos_list import ComputersMacosList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMacosList(unittest.TestCase): + """ComputersMacosList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMacosList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_macos_list.ComputersMacosList() # noqa: E501 + if include_optional : + return ComputersMacosList( + embedded = openapi_client_udm.models.computers_macos_list__embedded.computers_macos_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersMacosList( + ) + + def testComputersMacosList(self): + """Test ComputersMacosList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_macos_list_embedded.py b/test/test_computers_macos_list_embedded.py new file mode 100644 index 0000000..b5db46e --- /dev/null +++ b/test/test_computers_macos_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_macos_list_embedded import ComputersMacosListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMacosListEmbedded(unittest.TestCase): + """ComputersMacosListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMacosListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_macos_list_embedded.ComputersMacosListEmbedded() # noqa: E501 + if include_optional : + return ComputersMacosListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersMacosListEmbedded( + ) + + def testComputersMacosListEmbedded(self): + """Test ComputersMacosListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_macos_options.py b/test/test_computers_macos_options.py new file mode 100644 index 0000000..6c9e61f --- /dev/null +++ b/test/test_computers_macos_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_macos_options import ComputersMacosOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMacosOptions(unittest.TestCase): + """ComputersMacosOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMacosOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_macos_options.ComputersMacosOptions() # noqa: E501 + if include_optional : + return ComputersMacosOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersMacosOptions( + ) + + def testComputersMacosOptions(self): + """Test ComputersMacosOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_macos_request.py b/test/test_computers_macos_request.py new file mode 100644 index 0000000..c2ff096 --- /dev/null +++ b/test/test_computers_macos_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_macos_request import ComputersMacosRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMacosRequest(unittest.TestCase): + """ComputersMacosRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersMacosRequest(self): + """Test ComputersMacosRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_macos_request_patch.py b/test/test_computers_macos_request_patch.py new file mode 100644 index 0000000..5e64494 --- /dev/null +++ b/test/test_computers_macos_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_macos_request_patch import ComputersMacosRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMacosRequestPatch(unittest.TestCase): + """ComputersMacosRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMacosRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_macos_request_patch.ComputersMacosRequestPatch() # noqa: E501 + if include_optional : + return ComputersMacosRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersMacosRequestPatch( + ) + + def testComputersMacosRequestPatch(self): + """Test ComputersMacosRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_macos_response_mixin.py b/test/test_computers_macos_response_mixin.py new file mode 100644 index 0000000..3b302a7 --- /dev/null +++ b/test/test_computers_macos_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_macos_response_mixin import ComputersMacosResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMacosResponseMixin(unittest.TestCase): + """ComputersMacosResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMacosResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_macos_response_mixin.ComputersMacosResponseMixin() # noqa: E501 + if include_optional : + return ComputersMacosResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/macos/cn={value},cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersMacosResponseMixin( + ) + + def testComputersMacosResponseMixin(self): + """Test ComputersMacosResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver.py b/test/test_computers_memberserver.py new file mode 100644 index 0000000..8a1a81f --- /dev/null +++ b/test/test_computers_memberserver.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_memberserver import ComputersMemberserver # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMemberserver(unittest.TestCase): + """ComputersMemberserver unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersMemberserver(self): + """Test ComputersMemberserver""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver_api.py b/test/test_computers_memberserver_api.py new file mode 100644 index 0000000..11360b5 --- /dev/null +++ b/test/test_computers_memberserver_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_memberserver_api import ComputersMemberserverApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersMemberserverApi(unittest.TestCase): + """ComputersMemberserverApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_memberserver_api.ComputersMemberserverApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_memberserver_object(self): + """Test case for udm_computers_memberserver_object + + Get a representation of the Managed Node object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_memberserver_object_create(self): + """Test case for udm_computers_memberserver_object_create + + Create a new Managed Node object # noqa: E501 + """ + pass + + def test_udm_computers_memberserver_object_modify(self): + """Test case for udm_computers_memberserver_object_modify + + Modify or move an Managed Node object # noqa: E501 + """ + pass + + def test_udm_computers_memberserver_object_remove(self): + """Test case for udm_computers_memberserver_object_remove + + Remove a Managed Nodes object # noqa: E501 + """ + pass + + def test_udm_computers_memberserver_object_search(self): + """Test case for udm_computers_memberserver_object_search + + Search for Managed Nodes objects # noqa: E501 + """ + pass + + def test_udm_computers_memberserver_object_template(self): + """Test case for udm_computers_memberserver_object_template + + Get a template for creating an Managed Node object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_memberserver_object_update(self): + """Test case for udm_computers_memberserver_object_update + + Modify an Managed Node object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver_list.py b/test/test_computers_memberserver_list.py new file mode 100644 index 0000000..14893d7 --- /dev/null +++ b/test/test_computers_memberserver_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_memberserver_list import ComputersMemberserverList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMemberserverList(unittest.TestCase): + """ComputersMemberserverList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMemberserverList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_memberserver_list.ComputersMemberserverList() # noqa: E501 + if include_optional : + return ComputersMemberserverList( + embedded = openapi_client_udm.models.computers_memberserver_list__embedded.computers_memberserver_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersMemberserverList( + ) + + def testComputersMemberserverList(self): + """Test ComputersMemberserverList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver_list_embedded.py b/test/test_computers_memberserver_list_embedded.py new file mode 100644 index 0000000..2136b59 --- /dev/null +++ b/test/test_computers_memberserver_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_memberserver_list_embedded import ComputersMemberserverListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMemberserverListEmbedded(unittest.TestCase): + """ComputersMemberserverListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMemberserverListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_memberserver_list_embedded.ComputersMemberserverListEmbedded() # noqa: E501 + if include_optional : + return ComputersMemberserverListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersMemberserverListEmbedded( + ) + + def testComputersMemberserverListEmbedded(self): + """Test ComputersMemberserverListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver_options.py b/test/test_computers_memberserver_options.py new file mode 100644 index 0000000..9ca6a61 --- /dev/null +++ b/test/test_computers_memberserver_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_memberserver_options import ComputersMemberserverOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMemberserverOptions(unittest.TestCase): + """ComputersMemberserverOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMemberserverOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_memberserver_options.ComputersMemberserverOptions() # noqa: E501 + if include_optional : + return ComputersMemberserverOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersMemberserverOptions( + ) + + def testComputersMemberserverOptions(self): + """Test ComputersMemberserverOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver_policies.py b/test/test_computers_memberserver_policies.py new file mode 100644 index 0000000..5b4991d --- /dev/null +++ b/test/test_computers_memberserver_policies.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_memberserver_policies import ComputersMemberserverPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMemberserverPolicies(unittest.TestCase): + """ComputersMemberserverPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMemberserverPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_memberserver_policies.ComputersMemberserverPolicies() # noqa: E501 + if include_optional : + return ComputersMemberserverPolicies( + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return ComputersMemberserverPolicies( + ) + + def testComputersMemberserverPolicies(self): + """Test ComputersMemberserverPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver_request.py b/test/test_computers_memberserver_request.py new file mode 100644 index 0000000..a5b60a8 --- /dev/null +++ b/test/test_computers_memberserver_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_memberserver_request import ComputersMemberserverRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMemberserverRequest(unittest.TestCase): + """ComputersMemberserverRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersMemberserverRequest(self): + """Test ComputersMemberserverRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver_request_patch.py b/test/test_computers_memberserver_request_patch.py new file mode 100644 index 0000000..518852a --- /dev/null +++ b/test/test_computers_memberserver_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_memberserver_request_patch import ComputersMemberserverRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMemberserverRequestPatch(unittest.TestCase): + """ComputersMemberserverRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMemberserverRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_memberserver_request_patch.ComputersMemberserverRequestPatch() # noqa: E501 + if include_optional : + return ComputersMemberserverRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersMemberserverRequestPatch( + ) + + def testComputersMemberserverRequestPatch(self): + """Test ComputersMemberserverRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_memberserver_response_mixin.py b/test/test_computers_memberserver_response_mixin.py new file mode 100644 index 0000000..00bbc71 --- /dev/null +++ b/test/test_computers_memberserver_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_memberserver_response_mixin import ComputersMemberserverResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersMemberserverResponseMixin(unittest.TestCase): + """ComputersMemberserverResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersMemberserverResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_memberserver_response_mixin.ComputersMemberserverResponseMixin() # noqa: E501 + if include_optional : + return ComputersMemberserverResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/memberserver/cn={value},cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersMemberserverResponseMixin( + ) + + def testComputersMemberserverResponseMixin(self): + """Test ComputersMemberserverResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_trustaccount.py b/test/test_computers_trustaccount.py new file mode 100644 index 0000000..284e40a --- /dev/null +++ b/test/test_computers_trustaccount.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_trustaccount import ComputersTrustaccount # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersTrustaccount(unittest.TestCase): + """ComputersTrustaccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersTrustaccount(self): + """Test ComputersTrustaccount""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_trustaccount_api.py b/test/test_computers_trustaccount_api.py new file mode 100644 index 0000000..05fb5e5 --- /dev/null +++ b/test/test_computers_trustaccount_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_trustaccount_api import ComputersTrustaccountApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersTrustaccountApi(unittest.TestCase): + """ComputersTrustaccountApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_trustaccount_api.ComputersTrustaccountApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_trustaccount_object(self): + """Test case for udm_computers_trustaccount_object + + Get a representation of the Domain trust account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_trustaccount_object_create(self): + """Test case for udm_computers_trustaccount_object_create + + Create a new Domain trust account object # noqa: E501 + """ + pass + + def test_udm_computers_trustaccount_object_modify(self): + """Test case for udm_computers_trustaccount_object_modify + + Modify or move an Domain trust account object # noqa: E501 + """ + pass + + def test_udm_computers_trustaccount_object_remove(self): + """Test case for udm_computers_trustaccount_object_remove + + Remove a Domain trust accounts object # noqa: E501 + """ + pass + + def test_udm_computers_trustaccount_object_search(self): + """Test case for udm_computers_trustaccount_object_search + + Search for Domain trust accounts objects # noqa: E501 + """ + pass + + def test_udm_computers_trustaccount_object_template(self): + """Test case for udm_computers_trustaccount_object_template + + Get a template for creating an Domain trust account object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_trustaccount_object_update(self): + """Test case for udm_computers_trustaccount_object_update + + Modify an Domain trust account object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_trustaccount_list.py b/test/test_computers_trustaccount_list.py new file mode 100644 index 0000000..d7ec0fa --- /dev/null +++ b/test/test_computers_trustaccount_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_trustaccount_list import ComputersTrustaccountList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersTrustaccountList(unittest.TestCase): + """ComputersTrustaccountList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersTrustaccountList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_trustaccount_list.ComputersTrustaccountList() # noqa: E501 + if include_optional : + return ComputersTrustaccountList( + embedded = openapi_client_udm.models.computers_trustaccount_list__embedded.computers_trustaccount_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersTrustaccountList( + ) + + def testComputersTrustaccountList(self): + """Test ComputersTrustaccountList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_trustaccount_list_embedded.py b/test/test_computers_trustaccount_list_embedded.py new file mode 100644 index 0000000..d8744e5 --- /dev/null +++ b/test/test_computers_trustaccount_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_trustaccount_list_embedded import ComputersTrustaccountListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersTrustaccountListEmbedded(unittest.TestCase): + """ComputersTrustaccountListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersTrustaccountListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_trustaccount_list_embedded.ComputersTrustaccountListEmbedded() # noqa: E501 + if include_optional : + return ComputersTrustaccountListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersTrustaccountListEmbedded( + ) + + def testComputersTrustaccountListEmbedded(self): + """Test ComputersTrustaccountListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_trustaccount_options.py b/test/test_computers_trustaccount_options.py new file mode 100644 index 0000000..6d4867a --- /dev/null +++ b/test/test_computers_trustaccount_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_trustaccount_options import ComputersTrustaccountOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersTrustaccountOptions(unittest.TestCase): + """ComputersTrustaccountOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersTrustaccountOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_trustaccount_options.ComputersTrustaccountOptions() # noqa: E501 + if include_optional : + return ComputersTrustaccountOptions( + pki = False + ) + else : + return ComputersTrustaccountOptions( + ) + + def testComputersTrustaccountOptions(self): + """Test ComputersTrustaccountOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_trustaccount_request.py b/test/test_computers_trustaccount_request.py new file mode 100644 index 0000000..6ca0159 --- /dev/null +++ b/test/test_computers_trustaccount_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_trustaccount_request import ComputersTrustaccountRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersTrustaccountRequest(unittest.TestCase): + """ComputersTrustaccountRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersTrustaccountRequest(self): + """Test ComputersTrustaccountRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_trustaccount_request_patch.py b/test/test_computers_trustaccount_request_patch.py new file mode 100644 index 0000000..253e280 --- /dev/null +++ b/test/test_computers_trustaccount_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_trustaccount_request_patch import ComputersTrustaccountRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersTrustaccountRequestPatch(unittest.TestCase): + """ComputersTrustaccountRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersTrustaccountRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_trustaccount_request_patch.ComputersTrustaccountRequestPatch() # noqa: E501 + if include_optional : + return ComputersTrustaccountRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersTrustaccountRequestPatch( + ) + + def testComputersTrustaccountRequestPatch(self): + """Test ComputersTrustaccountRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_trustaccount_response_mixin.py b/test/test_computers_trustaccount_response_mixin.py new file mode 100644 index 0000000..9267fb1 --- /dev/null +++ b/test/test_computers_trustaccount_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_trustaccount_response_mixin import ComputersTrustaccountResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersTrustaccountResponseMixin(unittest.TestCase): + """ComputersTrustaccountResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersTrustaccountResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_trustaccount_response_mixin.ComputersTrustaccountResponseMixin() # noqa: E501 + if include_optional : + return ComputersTrustaccountResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/trustaccount/cn={value},cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersTrustaccountResponseMixin( + ) + + def testComputersTrustaccountResponseMixin(self): + """Test ComputersTrustaccountResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ubuntu.py b/test/test_computers_ubuntu.py new file mode 100644 index 0000000..e375238 --- /dev/null +++ b/test/test_computers_ubuntu.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ubuntu import ComputersUbuntu # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersUbuntu(unittest.TestCase): + """ComputersUbuntu unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersUbuntu(self): + """Test ComputersUbuntu""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ubuntu_api.py b/test/test_computers_ubuntu_api.py new file mode 100644 index 0000000..284f0b1 --- /dev/null +++ b/test/test_computers_ubuntu_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_ubuntu_api import ComputersUbuntuApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersUbuntuApi(unittest.TestCase): + """ComputersUbuntuApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_ubuntu_api.ComputersUbuntuApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_ubuntu_object(self): + """Test case for udm_computers_ubuntu_object + + Get a representation of the Ubuntu Computer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_ubuntu_object_create(self): + """Test case for udm_computers_ubuntu_object_create + + Create a new Ubuntu Computer object # noqa: E501 + """ + pass + + def test_udm_computers_ubuntu_object_modify(self): + """Test case for udm_computers_ubuntu_object_modify + + Modify or move an Ubuntu Computer object # noqa: E501 + """ + pass + + def test_udm_computers_ubuntu_object_remove(self): + """Test case for udm_computers_ubuntu_object_remove + + Remove a Ubuntu Computers object # noqa: E501 + """ + pass + + def test_udm_computers_ubuntu_object_search(self): + """Test case for udm_computers_ubuntu_object_search + + Search for Ubuntu Computers objects # noqa: E501 + """ + pass + + def test_udm_computers_ubuntu_object_template(self): + """Test case for udm_computers_ubuntu_object_template + + Get a template for creating an Ubuntu Computer object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_ubuntu_object_update(self): + """Test case for udm_computers_ubuntu_object_update + + Modify an Ubuntu Computer object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ubuntu_list.py b/test/test_computers_ubuntu_list.py new file mode 100644 index 0000000..f817669 --- /dev/null +++ b/test/test_computers_ubuntu_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ubuntu_list import ComputersUbuntuList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersUbuntuList(unittest.TestCase): + """ComputersUbuntuList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersUbuntuList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ubuntu_list.ComputersUbuntuList() # noqa: E501 + if include_optional : + return ComputersUbuntuList( + embedded = openapi_client_udm.models.computers_ubuntu_list__embedded.computers_ubuntu_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersUbuntuList( + ) + + def testComputersUbuntuList(self): + """Test ComputersUbuntuList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ubuntu_list_embedded.py b/test/test_computers_ubuntu_list_embedded.py new file mode 100644 index 0000000..021c2da --- /dev/null +++ b/test/test_computers_ubuntu_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ubuntu_list_embedded import ComputersUbuntuListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersUbuntuListEmbedded(unittest.TestCase): + """ComputersUbuntuListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersUbuntuListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ubuntu_list_embedded.ComputersUbuntuListEmbedded() # noqa: E501 + if include_optional : + return ComputersUbuntuListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersUbuntuListEmbedded( + ) + + def testComputersUbuntuListEmbedded(self): + """Test ComputersUbuntuListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ubuntu_options.py b/test/test_computers_ubuntu_options.py new file mode 100644 index 0000000..79912cb --- /dev/null +++ b/test/test_computers_ubuntu_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ubuntu_options import ComputersUbuntuOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersUbuntuOptions(unittest.TestCase): + """ComputersUbuntuOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersUbuntuOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ubuntu_options.ComputersUbuntuOptions() # noqa: E501 + if include_optional : + return ComputersUbuntuOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersUbuntuOptions( + ) + + def testComputersUbuntuOptions(self): + """Test ComputersUbuntuOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ubuntu_request.py b/test/test_computers_ubuntu_request.py new file mode 100644 index 0000000..158845f --- /dev/null +++ b/test/test_computers_ubuntu_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ubuntu_request import ComputersUbuntuRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersUbuntuRequest(unittest.TestCase): + """ComputersUbuntuRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersUbuntuRequest(self): + """Test ComputersUbuntuRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ubuntu_request_patch.py b/test/test_computers_ubuntu_request_patch.py new file mode 100644 index 0000000..378f985 --- /dev/null +++ b/test/test_computers_ubuntu_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ubuntu_request_patch import ComputersUbuntuRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersUbuntuRequestPatch(unittest.TestCase): + """ComputersUbuntuRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersUbuntuRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ubuntu_request_patch.ComputersUbuntuRequestPatch() # noqa: E501 + if include_optional : + return ComputersUbuntuRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersUbuntuRequestPatch( + ) + + def testComputersUbuntuRequestPatch(self): + """Test ComputersUbuntuRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_ubuntu_response_mixin.py b/test/test_computers_ubuntu_response_mixin.py new file mode 100644 index 0000000..2d5848c --- /dev/null +++ b/test/test_computers_ubuntu_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_ubuntu_response_mixin import ComputersUbuntuResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersUbuntuResponseMixin(unittest.TestCase): + """ComputersUbuntuResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersUbuntuResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_ubuntu_response_mixin.ComputersUbuntuResponseMixin() # noqa: E501 + if include_optional : + return ComputersUbuntuResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/ubuntu/cn={value},cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersUbuntuResponseMixin( + ) + + def testComputersUbuntuResponseMixin(self): + """Test ComputersUbuntuResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows.py b/test/test_computers_windows.py new file mode 100644 index 0000000..aeb5152 --- /dev/null +++ b/test/test_computers_windows.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows import ComputersWindows # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindows(unittest.TestCase): + """ComputersWindows unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersWindows(self): + """Test ComputersWindows""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_api.py b/test/test_computers_windows_api.py new file mode 100644 index 0000000..fca19c2 --- /dev/null +++ b/test/test_computers_windows_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_windows_api import ComputersWindowsApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersWindowsApi(unittest.TestCase): + """ComputersWindowsApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_windows_api.ComputersWindowsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_windows_object(self): + """Test case for udm_computers_windows_object + + Get a representation of the Windows Workstation/Server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_windows_object_create(self): + """Test case for udm_computers_windows_object_create + + Create a new Windows Workstation/Server object # noqa: E501 + """ + pass + + def test_udm_computers_windows_object_modify(self): + """Test case for udm_computers_windows_object_modify + + Modify or move an Windows Workstation/Server object # noqa: E501 + """ + pass + + def test_udm_computers_windows_object_remove(self): + """Test case for udm_computers_windows_object_remove + + Remove a Windows Workstations/Servers object # noqa: E501 + """ + pass + + def test_udm_computers_windows_object_search(self): + """Test case for udm_computers_windows_object_search + + Search for Windows Workstations/Servers objects # noqa: E501 + """ + pass + + def test_udm_computers_windows_object_template(self): + """Test case for udm_computers_windows_object_template + + Get a template for creating an Windows Workstation/Server object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_windows_object_update(self): + """Test case for udm_computers_windows_object_update + + Modify an Windows Workstation/Server object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_domaincontroller.py b/test/test_computers_windows_domaincontroller.py new file mode 100644 index 0000000..80e405e --- /dev/null +++ b/test/test_computers_windows_domaincontroller.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_domaincontroller import ComputersWindowsDomaincontroller # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsDomaincontroller(unittest.TestCase): + """ComputersWindowsDomaincontroller unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersWindowsDomaincontroller(self): + """Test ComputersWindowsDomaincontroller""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_domaincontroller_api.py b/test/test_computers_windows_domaincontroller_api.py new file mode 100644 index 0000000..e87c1f3 --- /dev/null +++ b/test/test_computers_windows_domaincontroller_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.computers_windows_domaincontroller_api import ComputersWindowsDomaincontrollerApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestComputersWindowsDomaincontrollerApi(unittest.TestCase): + """ComputersWindowsDomaincontrollerApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.computers_windows_domaincontroller_api.ComputersWindowsDomaincontrollerApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_computers_windows_domaincontroller_object(self): + """Test case for udm_computers_windows_domaincontroller_object + + Get a representation of the Windows Domaincontroller object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_computers_windows_domaincontroller_object_create(self): + """Test case for udm_computers_windows_domaincontroller_object_create + + Create a new Windows Domaincontroller object # noqa: E501 + """ + pass + + def test_udm_computers_windows_domaincontroller_object_modify(self): + """Test case for udm_computers_windows_domaincontroller_object_modify + + Modify or move an Windows Domaincontroller object # noqa: E501 + """ + pass + + def test_udm_computers_windows_domaincontroller_object_remove(self): + """Test case for udm_computers_windows_domaincontroller_object_remove + + Remove a Windows Domaincontrollers object # noqa: E501 + """ + pass + + def test_udm_computers_windows_domaincontroller_object_search(self): + """Test case for udm_computers_windows_domaincontroller_object_search + + Search for Windows Domaincontrollers objects # noqa: E501 + """ + pass + + def test_udm_computers_windows_domaincontroller_object_template(self): + """Test case for udm_computers_windows_domaincontroller_object_template + + Get a template for creating an Windows Domaincontroller object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_computers_windows_domaincontroller_object_update(self): + """Test case for udm_computers_windows_domaincontroller_object_update + + Modify an Windows Domaincontroller object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_domaincontroller_list.py b/test/test_computers_windows_domaincontroller_list.py new file mode 100644 index 0000000..58bc452 --- /dev/null +++ b/test/test_computers_windows_domaincontroller_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_domaincontroller_list import ComputersWindowsDomaincontrollerList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsDomaincontrollerList(unittest.TestCase): + """ComputersWindowsDomaincontrollerList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsDomaincontrollerList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_domaincontroller_list.ComputersWindowsDomaincontrollerList() # noqa: E501 + if include_optional : + return ComputersWindowsDomaincontrollerList( + embedded = openapi_client_udm.models.computers_windows_domaincontroller_list__embedded.computers_windows_domaincontroller_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersWindowsDomaincontrollerList( + ) + + def testComputersWindowsDomaincontrollerList(self): + """Test ComputersWindowsDomaincontrollerList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_domaincontroller_list_embedded.py b/test/test_computers_windows_domaincontroller_list_embedded.py new file mode 100644 index 0000000..a887e3f --- /dev/null +++ b/test/test_computers_windows_domaincontroller_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_domaincontroller_list_embedded import ComputersWindowsDomaincontrollerListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsDomaincontrollerListEmbedded(unittest.TestCase): + """ComputersWindowsDomaincontrollerListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsDomaincontrollerListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_domaincontroller_list_embedded.ComputersWindowsDomaincontrollerListEmbedded() # noqa: E501 + if include_optional : + return ComputersWindowsDomaincontrollerListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersWindowsDomaincontrollerListEmbedded( + ) + + def testComputersWindowsDomaincontrollerListEmbedded(self): + """Test ComputersWindowsDomaincontrollerListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_domaincontroller_options.py b/test/test_computers_windows_domaincontroller_options.py new file mode 100644 index 0000000..26a704e --- /dev/null +++ b/test/test_computers_windows_domaincontroller_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_domaincontroller_options import ComputersWindowsDomaincontrollerOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsDomaincontrollerOptions(unittest.TestCase): + """ComputersWindowsDomaincontrollerOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsDomaincontrollerOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_domaincontroller_options.ComputersWindowsDomaincontrollerOptions() # noqa: E501 + if include_optional : + return ComputersWindowsDomaincontrollerOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersWindowsDomaincontrollerOptions( + ) + + def testComputersWindowsDomaincontrollerOptions(self): + """Test ComputersWindowsDomaincontrollerOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_domaincontroller_request.py b/test/test_computers_windows_domaincontroller_request.py new file mode 100644 index 0000000..77af4c0 --- /dev/null +++ b/test/test_computers_windows_domaincontroller_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_domaincontroller_request import ComputersWindowsDomaincontrollerRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsDomaincontrollerRequest(unittest.TestCase): + """ComputersWindowsDomaincontrollerRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersWindowsDomaincontrollerRequest(self): + """Test ComputersWindowsDomaincontrollerRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_domaincontroller_request_patch.py b/test/test_computers_windows_domaincontroller_request_patch.py new file mode 100644 index 0000000..07ad337 --- /dev/null +++ b/test/test_computers_windows_domaincontroller_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_domaincontroller_request_patch import ComputersWindowsDomaincontrollerRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsDomaincontrollerRequestPatch(unittest.TestCase): + """ComputersWindowsDomaincontrollerRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsDomaincontrollerRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_domaincontroller_request_patch.ComputersWindowsDomaincontrollerRequestPatch() # noqa: E501 + if include_optional : + return ComputersWindowsDomaincontrollerRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersWindowsDomaincontrollerRequestPatch( + ) + + def testComputersWindowsDomaincontrollerRequestPatch(self): + """Test ComputersWindowsDomaincontrollerRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_domaincontroller_response_mixin.py b/test/test_computers_windows_domaincontroller_response_mixin.py new file mode 100644 index 0000000..36c55cb --- /dev/null +++ b/test/test_computers_windows_domaincontroller_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_domaincontroller_response_mixin import ComputersWindowsDomaincontrollerResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsDomaincontrollerResponseMixin(unittest.TestCase): + """ComputersWindowsDomaincontrollerResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsDomaincontrollerResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_domaincontroller_response_mixin.ComputersWindowsDomaincontrollerResponseMixin() # noqa: E501 + if include_optional : + return ComputersWindowsDomaincontrollerResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/windows_domaincontroller/cn={value},cn=dc,cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersWindowsDomaincontrollerResponseMixin( + ) + + def testComputersWindowsDomaincontrollerResponseMixin(self): + """Test ComputersWindowsDomaincontrollerResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_list.py b/test/test_computers_windows_list.py new file mode 100644 index 0000000..d5ed9d9 --- /dev/null +++ b/test/test_computers_windows_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_list import ComputersWindowsList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsList(unittest.TestCase): + """ComputersWindowsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_list.ComputersWindowsList() # noqa: E501 + if include_optional : + return ComputersWindowsList( + embedded = openapi_client_udm.models.computers_windows_list__embedded.computers_windows_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ComputersWindowsList( + ) + + def testComputersWindowsList(self): + """Test ComputersWindowsList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_list_embedded.py b/test/test_computers_windows_list_embedded.py new file mode 100644 index 0000000..245e5d0 --- /dev/null +++ b/test/test_computers_windows_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_list_embedded import ComputersWindowsListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsListEmbedded(unittest.TestCase): + """ComputersWindowsListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_list_embedded.ComputersWindowsListEmbedded() # noqa: E501 + if include_optional : + return ComputersWindowsListEmbedded( + udmobject = [ + null + ] + ) + else : + return ComputersWindowsListEmbedded( + ) + + def testComputersWindowsListEmbedded(self): + """Test ComputersWindowsListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_options.py b/test/test_computers_windows_options.py new file mode 100644 index 0000000..082bcf1 --- /dev/null +++ b/test/test_computers_windows_options.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_options import ComputersWindowsOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsOptions(unittest.TestCase): + """ComputersWindowsOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_options.ComputersWindowsOptions() # noqa: E501 + if include_optional : + return ComputersWindowsOptions( + posix = True, + kerberos = True, + samba = True, + pki = False, + nagios = False, + radius_authenticator = False + ) + else : + return ComputersWindowsOptions( + ) + + def testComputersWindowsOptions(self): + """Test ComputersWindowsOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_request.py b/test/test_computers_windows_request.py new file mode 100644 index 0000000..a703417 --- /dev/null +++ b/test/test_computers_windows_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_request import ComputersWindowsRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsRequest(unittest.TestCase): + """ComputersWindowsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComputersWindowsRequest(self): + """Test ComputersWindowsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_request_patch.py b/test/test_computers_windows_request_patch.py new file mode 100644 index 0000000..2e4e3f8 --- /dev/null +++ b/test/test_computers_windows_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_request_patch import ComputersWindowsRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsRequestPatch(unittest.TestCase): + """ComputersWindowsRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_request_patch.ComputersWindowsRequestPatch() # noqa: E501 + if include_optional : + return ComputersWindowsRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ComputersWindowsRequestPatch( + ) + + def testComputersWindowsRequestPatch(self): + """Test ComputersWindowsRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_computers_windows_response_mixin.py b/test/test_computers_windows_response_mixin.py new file mode 100644 index 0000000..3809ce4 --- /dev/null +++ b/test/test_computers_windows_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.computers_windows_response_mixin import ComputersWindowsResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestComputersWindowsResponseMixin(unittest.TestCase): + """ComputersWindowsResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ComputersWindowsResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.computers_windows_response_mixin.ComputersWindowsResponseMixin() # noqa: E501 + if include_optional : + return ComputersWindowsResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/computers/windows/cn={value},cn=computers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ComputersWindowsResponseMixin( + ) + + def testComputersWindowsResponseMixin(self): + """Test ComputersWindowsResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_cn.py b/test/test_container_cn.py new file mode 100644 index 0000000..c161859 --- /dev/null +++ b/test/test_container_cn.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_cn import ContainerCn # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerCn(unittest.TestCase): + """ContainerCn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerCn(self): + """Test ContainerCn""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_cn_api.py b/test/test_container_cn_api.py new file mode 100644 index 0000000..1e6812a --- /dev/null +++ b/test/test_container_cn_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.container_cn_api import ContainerCnApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestContainerCnApi(unittest.TestCase): + """ContainerCnApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.container_cn_api.ContainerCnApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_container_cn_object(self): + """Test case for udm_container_cn_object + + Get a representation of the Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_container_cn_object_create(self): + """Test case for udm_container_cn_object_create + + Create a new Container object # noqa: E501 + """ + pass + + def test_udm_container_cn_object_modify(self): + """Test case for udm_container_cn_object_modify + + Modify or move an Container object # noqa: E501 + """ + pass + + def test_udm_container_cn_object_remove(self): + """Test case for udm_container_cn_object_remove + + Remove a Containers object # noqa: E501 + """ + pass + + def test_udm_container_cn_object_search(self): + """Test case for udm_container_cn_object_search + + Search for Containers objects # noqa: E501 + """ + pass + + def test_udm_container_cn_object_template(self): + """Test case for udm_container_cn_object_template + + Get a template for creating an Container object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_container_cn_object_update(self): + """Test case for udm_container_cn_object_update + + Modify an Container object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_cn_list.py b/test/test_container_cn_list.py new file mode 100644 index 0000000..0af772a --- /dev/null +++ b/test/test_container_cn_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_cn_list import ContainerCnList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerCnList(unittest.TestCase): + """ContainerCnList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerCnList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_cn_list.ContainerCnList() # noqa: E501 + if include_optional : + return ContainerCnList( + embedded = openapi_client_udm.models.container_cn_list__embedded.container_cn_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ContainerCnList( + ) + + def testContainerCnList(self): + """Test ContainerCnList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_cn_list_embedded.py b/test/test_container_cn_list_embedded.py new file mode 100644 index 0000000..69f9b11 --- /dev/null +++ b/test/test_container_cn_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_cn_list_embedded import ContainerCnListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerCnListEmbedded(unittest.TestCase): + """ContainerCnListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerCnListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_cn_list_embedded.ContainerCnListEmbedded() # noqa: E501 + if include_optional : + return ContainerCnListEmbedded( + udmobject = [ + null + ] + ) + else : + return ContainerCnListEmbedded( + ) + + def testContainerCnListEmbedded(self): + """Test ContainerCnListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_cn_policies.py b/test/test_container_cn_policies.py new file mode 100644 index 0000000..9365f1e --- /dev/null +++ b/test/test_container_cn_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_cn_policies import ContainerCnPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerCnPolicies(unittest.TestCase): + """ContainerCnPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerCnPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_cn_policies.ContainerCnPolicies() # noqa: E501 + if include_optional : + return ContainerCnPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return ContainerCnPolicies( + ) + + def testContainerCnPolicies(self): + """Test ContainerCnPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_cn_request.py b/test/test_container_cn_request.py new file mode 100644 index 0000000..8c6946f --- /dev/null +++ b/test/test_container_cn_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_cn_request import ContainerCnRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerCnRequest(unittest.TestCase): + """ContainerCnRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerCnRequest(self): + """Test ContainerCnRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_cn_request_patch.py b/test/test_container_cn_request_patch.py new file mode 100644 index 0000000..7a55b00 --- /dev/null +++ b/test/test_container_cn_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_cn_request_patch import ContainerCnRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerCnRequestPatch(unittest.TestCase): + """ContainerCnRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerCnRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_cn_request_patch.ContainerCnRequestPatch() # noqa: E501 + if include_optional : + return ContainerCnRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ContainerCnRequestPatch( + ) + + def testContainerCnRequestPatch(self): + """Test ContainerCnRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_cn_response_mixin.py b/test/test_container_cn_response_mixin.py new file mode 100644 index 0000000..a6fe2e7 --- /dev/null +++ b/test/test_container_cn_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_cn_response_mixin import ContainerCnResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerCnResponseMixin(unittest.TestCase): + """ContainerCnResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerCnResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_cn_response_mixin.ContainerCnResponseMixin() # noqa: E501 + if include_optional : + return ContainerCnResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/container/cn/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ContainerCnResponseMixin( + ) + + def testContainerCnResponseMixin(self): + """Test ContainerCnResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc.py b/test/test_container_dc.py new file mode 100644 index 0000000..2436061 --- /dev/null +++ b/test/test_container_dc.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_dc import ContainerDc # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerDc(unittest.TestCase): + """ContainerDc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerDc(self): + """Test ContainerDc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc_api.py b/test/test_container_dc_api.py new file mode 100644 index 0000000..f8ad8f6 --- /dev/null +++ b/test/test_container_dc_api.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.container_dc_api import ContainerDcApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestContainerDcApi(unittest.TestCase): + """ContainerDcApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.container_dc_api.ContainerDcApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_container_dc_object(self): + """Test case for udm_container_dc_object + + Get a representation of the Domain Container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_container_dc_object_modify(self): + """Test case for udm_container_dc_object_modify + + Modify or move an Domain Container object # noqa: E501 + """ + pass + + def test_udm_container_dc_object_search(self): + """Test case for udm_container_dc_object_search + + Search for Domain Containers objects # noqa: E501 + """ + pass + + def test_udm_container_dc_object_update(self): + """Test case for udm_container_dc_object_update + + Modify an Domain Container object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc_list.py b/test/test_container_dc_list.py new file mode 100644 index 0000000..846922e --- /dev/null +++ b/test/test_container_dc_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_dc_list import ContainerDcList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerDcList(unittest.TestCase): + """ContainerDcList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerDcList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_dc_list.ContainerDcList() # noqa: E501 + if include_optional : + return ContainerDcList( + embedded = openapi_client_udm.models.container_dc_list__embedded.container_dc_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ContainerDcList( + ) + + def testContainerDcList(self): + """Test ContainerDcList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc_list_embedded.py b/test/test_container_dc_list_embedded.py new file mode 100644 index 0000000..ff2e196 --- /dev/null +++ b/test/test_container_dc_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_dc_list_embedded import ContainerDcListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerDcListEmbedded(unittest.TestCase): + """ContainerDcListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerDcListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_dc_list_embedded.ContainerDcListEmbedded() # noqa: E501 + if include_optional : + return ContainerDcListEmbedded( + udmobject = [ + null + ] + ) + else : + return ContainerDcListEmbedded( + ) + + def testContainerDcListEmbedded(self): + """Test ContainerDcListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc_options.py b/test/test_container_dc_options.py new file mode 100644 index 0000000..22b14cb --- /dev/null +++ b/test/test_container_dc_options.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_dc_options import ContainerDcOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerDcOptions(unittest.TestCase): + """ContainerDcOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerDcOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_dc_options.ContainerDcOptions() # noqa: E501 + if include_optional : + return ContainerDcOptions( + kerberos = True, + samba = True + ) + else : + return ContainerDcOptions( + ) + + def testContainerDcOptions(self): + """Test ContainerDcOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc_policies.py b/test/test_container_dc_policies.py new file mode 100644 index 0000000..d41ef17 --- /dev/null +++ b/test/test_container_dc_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_dc_policies import ContainerDcPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerDcPolicies(unittest.TestCase): + """ContainerDcPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerDcPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_dc_policies.ContainerDcPolicies() # noqa: E501 + if include_optional : + return ContainerDcPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return ContainerDcPolicies( + ) + + def testContainerDcPolicies(self): + """Test ContainerDcPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc_request.py b/test/test_container_dc_request.py new file mode 100644 index 0000000..f950863 --- /dev/null +++ b/test/test_container_dc_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_dc_request import ContainerDcRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerDcRequest(unittest.TestCase): + """ContainerDcRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerDcRequest(self): + """Test ContainerDcRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc_request_patch.py b/test/test_container_dc_request_patch.py new file mode 100644 index 0000000..ee328fe --- /dev/null +++ b/test/test_container_dc_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_dc_request_patch import ContainerDcRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerDcRequestPatch(unittest.TestCase): + """ContainerDcRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerDcRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_dc_request_patch.ContainerDcRequestPatch() # noqa: E501 + if include_optional : + return ContainerDcRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ContainerDcRequestPatch( + ) + + def testContainerDcRequestPatch(self): + """Test ContainerDcRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_dc_response_mixin.py b/test/test_container_dc_response_mixin.py new file mode 100644 index 0000000..4a6685b --- /dev/null +++ b/test/test_container_dc_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_dc_response_mixin import ContainerDcResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerDcResponseMixin(unittest.TestCase): + """ContainerDcResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerDcResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_dc_response_mixin.ContainerDcResponseMixin() # noqa: E501 + if include_optional : + return ContainerDcResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/container/dc/dc={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ContainerDcResponseMixin( + ) + + def testContainerDcResponseMixin(self): + """Test ContainerDcResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_msgpo.py b/test/test_container_msgpo.py new file mode 100644 index 0000000..95cfab3 --- /dev/null +++ b/test/test_container_msgpo.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_msgpo import ContainerMsgpo # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerMsgpo(unittest.TestCase): + """ContainerMsgpo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerMsgpo(self): + """Test ContainerMsgpo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_msgpo_api.py b/test/test_container_msgpo_api.py new file mode 100644 index 0000000..a53e063 --- /dev/null +++ b/test/test_container_msgpo_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.container_msgpo_api import ContainerMsgpoApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestContainerMsgpoApi(unittest.TestCase): + """ContainerMsgpoApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.container_msgpo_api.ContainerMsgpoApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_container_msgpo_object(self): + """Test case for udm_container_msgpo_object + + Get a representation of the Container: MS Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_container_msgpo_object_create(self): + """Test case for udm_container_msgpo_object_create + + Create a new Container: MS Group Policy object # noqa: E501 + """ + pass + + def test_udm_container_msgpo_object_modify(self): + """Test case for udm_container_msgpo_object_modify + + Modify or move an Container: MS Group Policy object # noqa: E501 + """ + pass + + def test_udm_container_msgpo_object_remove(self): + """Test case for udm_container_msgpo_object_remove + + Remove a Container: MS Group Policy object # noqa: E501 + """ + pass + + def test_udm_container_msgpo_object_search(self): + """Test case for udm_container_msgpo_object_search + + Search for Container: MS Group Policy objects # noqa: E501 + """ + pass + + def test_udm_container_msgpo_object_template(self): + """Test case for udm_container_msgpo_object_template + + Get a template for creating an Container: MS Group Policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_container_msgpo_object_update(self): + """Test case for udm_container_msgpo_object_update + + Modify an Container: MS Group Policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_msgpo_list.py b/test/test_container_msgpo_list.py new file mode 100644 index 0000000..b8a8477 --- /dev/null +++ b/test/test_container_msgpo_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_msgpo_list import ContainerMsgpoList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerMsgpoList(unittest.TestCase): + """ContainerMsgpoList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerMsgpoList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_msgpo_list.ContainerMsgpoList() # noqa: E501 + if include_optional : + return ContainerMsgpoList( + embedded = openapi_client_udm.models.container_msgpo_list__embedded.container_msgpo_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ContainerMsgpoList( + ) + + def testContainerMsgpoList(self): + """Test ContainerMsgpoList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_msgpo_list_embedded.py b/test/test_container_msgpo_list_embedded.py new file mode 100644 index 0000000..a2c0118 --- /dev/null +++ b/test/test_container_msgpo_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_msgpo_list_embedded import ContainerMsgpoListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerMsgpoListEmbedded(unittest.TestCase): + """ContainerMsgpoListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerMsgpoListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_msgpo_list_embedded.ContainerMsgpoListEmbedded() # noqa: E501 + if include_optional : + return ContainerMsgpoListEmbedded( + udmobject = [ + null + ] + ) + else : + return ContainerMsgpoListEmbedded( + ) + + def testContainerMsgpoListEmbedded(self): + """Test ContainerMsgpoListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_msgpo_policies.py b/test/test_container_msgpo_policies.py new file mode 100644 index 0000000..ff55562 --- /dev/null +++ b/test/test_container_msgpo_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_msgpo_policies import ContainerMsgpoPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerMsgpoPolicies(unittest.TestCase): + """ContainerMsgpoPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerMsgpoPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_msgpo_policies.ContainerMsgpoPolicies() # noqa: E501 + if include_optional : + return ContainerMsgpoPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return ContainerMsgpoPolicies( + ) + + def testContainerMsgpoPolicies(self): + """Test ContainerMsgpoPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_msgpo_request.py b/test/test_container_msgpo_request.py new file mode 100644 index 0000000..da3ed7e --- /dev/null +++ b/test/test_container_msgpo_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_msgpo_request import ContainerMsgpoRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerMsgpoRequest(unittest.TestCase): + """ContainerMsgpoRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerMsgpoRequest(self): + """Test ContainerMsgpoRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_msgpo_request_patch.py b/test/test_container_msgpo_request_patch.py new file mode 100644 index 0000000..f5af2dc --- /dev/null +++ b/test/test_container_msgpo_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_msgpo_request_patch import ContainerMsgpoRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerMsgpoRequestPatch(unittest.TestCase): + """ContainerMsgpoRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerMsgpoRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_msgpo_request_patch.ContainerMsgpoRequestPatch() # noqa: E501 + if include_optional : + return ContainerMsgpoRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ContainerMsgpoRequestPatch( + ) + + def testContainerMsgpoRequestPatch(self): + """Test ContainerMsgpoRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_msgpo_response_mixin.py b/test/test_container_msgpo_response_mixin.py new file mode 100644 index 0000000..d1d6c14 --- /dev/null +++ b/test/test_container_msgpo_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_msgpo_response_mixin import ContainerMsgpoResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerMsgpoResponseMixin(unittest.TestCase): + """ContainerMsgpoResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerMsgpoResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_msgpo_response_mixin.ContainerMsgpoResponseMixin() # noqa: E501 + if include_optional : + return ContainerMsgpoResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/container/msgpo/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ContainerMsgpoResponseMixin( + ) + + def testContainerMsgpoResponseMixin(self): + """Test ContainerMsgpoResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_ou.py b/test/test_container_ou.py new file mode 100644 index 0000000..59dde4e --- /dev/null +++ b/test/test_container_ou.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_ou import ContainerOu # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerOu(unittest.TestCase): + """ContainerOu unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerOu(self): + """Test ContainerOu""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_ou_api.py b/test/test_container_ou_api.py new file mode 100644 index 0000000..9d1d363 --- /dev/null +++ b/test/test_container_ou_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.container_ou_api import ContainerOuApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestContainerOuApi(unittest.TestCase): + """ContainerOuApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.container_ou_api.ContainerOuApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_container_ou_object(self): + """Test case for udm_container_ou_object + + Get a representation of the Organisational Unit object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_container_ou_object_create(self): + """Test case for udm_container_ou_object_create + + Create a new Organisational Unit object # noqa: E501 + """ + pass + + def test_udm_container_ou_object_modify(self): + """Test case for udm_container_ou_object_modify + + Modify or move an Organisational Unit object # noqa: E501 + """ + pass + + def test_udm_container_ou_object_remove(self): + """Test case for udm_container_ou_object_remove + + Remove a Organisational Units object # noqa: E501 + """ + pass + + def test_udm_container_ou_object_search(self): + """Test case for udm_container_ou_object_search + + Search for Organisational Units objects # noqa: E501 + """ + pass + + def test_udm_container_ou_object_template(self): + """Test case for udm_container_ou_object_template + + Get a template for creating an Organisational Unit object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_container_ou_object_update(self): + """Test case for udm_container_ou_object_update + + Modify an Organisational Unit object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_ou_list.py b/test/test_container_ou_list.py new file mode 100644 index 0000000..cb86614 --- /dev/null +++ b/test/test_container_ou_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_ou_list import ContainerOuList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerOuList(unittest.TestCase): + """ContainerOuList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerOuList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_ou_list.ContainerOuList() # noqa: E501 + if include_optional : + return ContainerOuList( + embedded = openapi_client_udm.models.container_ou_list__embedded.container_ou_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return ContainerOuList( + ) + + def testContainerOuList(self): + """Test ContainerOuList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_ou_list_embedded.py b/test/test_container_ou_list_embedded.py new file mode 100644 index 0000000..99790b3 --- /dev/null +++ b/test/test_container_ou_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_ou_list_embedded import ContainerOuListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerOuListEmbedded(unittest.TestCase): + """ContainerOuListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerOuListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_ou_list_embedded.ContainerOuListEmbedded() # noqa: E501 + if include_optional : + return ContainerOuListEmbedded( + udmobject = [ + null + ] + ) + else : + return ContainerOuListEmbedded( + ) + + def testContainerOuListEmbedded(self): + """Test ContainerOuListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_ou_policies.py b/test/test_container_ou_policies.py new file mode 100644 index 0000000..ab15f9e --- /dev/null +++ b/test/test_container_ou_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_ou_policies import ContainerOuPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerOuPolicies(unittest.TestCase): + """ContainerOuPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerOuPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_ou_policies.ContainerOuPolicies() # noqa: E501 + if include_optional : + return ContainerOuPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return ContainerOuPolicies( + ) + + def testContainerOuPolicies(self): + """Test ContainerOuPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_ou_request.py b/test/test_container_ou_request.py new file mode 100644 index 0000000..6cd1189 --- /dev/null +++ b/test/test_container_ou_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_ou_request import ContainerOuRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerOuRequest(unittest.TestCase): + """ContainerOuRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerOuRequest(self): + """Test ContainerOuRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_ou_request_patch.py b/test/test_container_ou_request_patch.py new file mode 100644 index 0000000..4b8a39a --- /dev/null +++ b/test/test_container_ou_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_ou_request_patch import ContainerOuRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerOuRequestPatch(unittest.TestCase): + """ContainerOuRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerOuRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_ou_request_patch.ContainerOuRequestPatch() # noqa: E501 + if include_optional : + return ContainerOuRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return ContainerOuRequestPatch( + ) + + def testContainerOuRequestPatch(self): + """Test ContainerOuRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_container_ou_response_mixin.py b/test/test_container_ou_response_mixin.py new file mode 100644 index 0000000..3fdae9f --- /dev/null +++ b/test/test_container_ou_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.container_ou_response_mixin import ContainerOuResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestContainerOuResponseMixin(unittest.TestCase): + """ContainerOuResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ContainerOuResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.container_ou_response_mixin.ContainerOuResponseMixin() # noqa: E501 + if include_optional : + return ContainerOuResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/container/ou/ou={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return ContainerOuResponseMixin( + ) + + def testContainerOuResponseMixin(self): + """Test ContainerOuResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_dhcp.py b/test/test_dhcp_dhcp.py new file mode 100644 index 0000000..90fdeb4 --- /dev/null +++ b/test/test_dhcp_dhcp.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_dhcp import DhcpDhcp # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpDhcp(unittest.TestCase): + """DhcpDhcp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpDhcp(self): + """Test DhcpDhcp""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_dhcp_api.py b/test/test_dhcp_dhcp_api.py new file mode 100644 index 0000000..321a6b0 --- /dev/null +++ b/test/test_dhcp_dhcp_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dhcp_dhcp_api import DhcpDhcpApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDhcpDhcpApi(unittest.TestCase): + """DhcpDhcpApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dhcp_dhcp_api.DhcpDhcpApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dhcp_dhcp_object(self): + """Test case for udm_dhcp_dhcp_object + + Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dhcp_dhcp_object_search(self): + """Test case for udm_dhcp_dhcp_object_search + + Search for DHCP services objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_dhcp_list.py b/test/test_dhcp_dhcp_list.py new file mode 100644 index 0000000..b8eb3bf --- /dev/null +++ b/test/test_dhcp_dhcp_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_dhcp_list import DhcpDhcpList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpDhcpList(unittest.TestCase): + """DhcpDhcpList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpDhcpList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_dhcp_list.DhcpDhcpList() # noqa: E501 + if include_optional : + return DhcpDhcpList( + embedded = openapi_client_udm.models.dhcp_dhcp_list__embedded.dhcp_dhcp_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DhcpDhcpList( + ) + + def testDhcpDhcpList(self): + """Test DhcpDhcpList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_dhcp_list_embedded.py b/test/test_dhcp_dhcp_list_embedded.py new file mode 100644 index 0000000..144aa77 --- /dev/null +++ b/test/test_dhcp_dhcp_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_dhcp_list_embedded import DhcpDhcpListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpDhcpListEmbedded(unittest.TestCase): + """DhcpDhcpListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpDhcpListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_dhcp_list_embedded.DhcpDhcpListEmbedded() # noqa: E501 + if include_optional : + return DhcpDhcpListEmbedded( + udmobject = [ + null + ] + ) + else : + return DhcpDhcpListEmbedded( + ) + + def testDhcpDhcpListEmbedded(self): + """Test DhcpDhcpListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_dhcp_request.py b/test/test_dhcp_dhcp_request.py new file mode 100644 index 0000000..9b4d1cf --- /dev/null +++ b/test/test_dhcp_dhcp_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_dhcp_request import DhcpDhcpRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpDhcpRequest(unittest.TestCase): + """DhcpDhcpRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpDhcpRequest(self): + """Test DhcpDhcpRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_dhcp_request_patch.py b/test/test_dhcp_dhcp_request_patch.py new file mode 100644 index 0000000..9ae17fe --- /dev/null +++ b/test/test_dhcp_dhcp_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_dhcp_request_patch import DhcpDhcpRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpDhcpRequestPatch(unittest.TestCase): + """DhcpDhcpRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpDhcpRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_dhcp_request_patch.DhcpDhcpRequestPatch() # noqa: E501 + if include_optional : + return DhcpDhcpRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return DhcpDhcpRequestPatch( + ) + + def testDhcpDhcpRequestPatch(self): + """Test DhcpDhcpRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_dhcp_response_mixin.py b/test/test_dhcp_dhcp_response_mixin.py new file mode 100644 index 0000000..55bb222 --- /dev/null +++ b/test/test_dhcp_dhcp_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_dhcp_response_mixin import DhcpDhcpResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpDhcpResponseMixin(unittest.TestCase): + """DhcpDhcpResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpDhcpResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_dhcp_response_mixin.DhcpDhcpResponseMixin() # noqa: E501 + if include_optional : + return DhcpDhcpResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dhcp/dhcp/cn={value},cn=dhcp,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpDhcpResponseMixin( + ) + + def testDhcpDhcpResponseMixin(self): + """Test DhcpDhcpResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host.py b/test/test_dhcp_host.py new file mode 100644 index 0000000..681c599 --- /dev/null +++ b/test/test_dhcp_host.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_host import DhcpHost # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpHost(unittest.TestCase): + """DhcpHost unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpHost(self): + """Test DhcpHost""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host_api.py b/test/test_dhcp_host_api.py new file mode 100644 index 0000000..8e7e9c7 --- /dev/null +++ b/test/test_dhcp_host_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dhcp_host_api import DhcpHostApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDhcpHostApi(unittest.TestCase): + """DhcpHostApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dhcp_host_api.DhcpHostApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dhcp_host_object(self): + """Test case for udm_dhcp_host_object + + Get a representation of the DHCP host object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dhcp_host_object_create(self): + """Test case for udm_dhcp_host_object_create + + Create a new DHCP host object # noqa: E501 + """ + pass + + def test_udm_dhcp_host_object_modify(self): + """Test case for udm_dhcp_host_object_modify + + Modify or move an DHCP host object # noqa: E501 + """ + pass + + def test_udm_dhcp_host_object_remove(self): + """Test case for udm_dhcp_host_object_remove + + Remove a DHCP hosts object # noqa: E501 + """ + pass + + def test_udm_dhcp_host_object_search(self): + """Test case for udm_dhcp_host_object_search + + Search for DHCP hosts objects # noqa: E501 + """ + pass + + def test_udm_dhcp_host_object_template(self): + """Test case for udm_dhcp_host_object_template + + Get a template for creating an DHCP host object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dhcp_host_object_update(self): + """Test case for udm_dhcp_host_object_update + + Modify an DHCP host object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host_list.py b/test/test_dhcp_host_list.py new file mode 100644 index 0000000..1fa0e3f --- /dev/null +++ b/test/test_dhcp_host_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_host_list import DhcpHostList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpHostList(unittest.TestCase): + """DhcpHostList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpHostList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_host_list.DhcpHostList() # noqa: E501 + if include_optional : + return DhcpHostList( + embedded = openapi_client_udm.models.dhcp_host_list__embedded.dhcp_host_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DhcpHostList( + ) + + def testDhcpHostList(self): + """Test DhcpHostList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host_list_embedded.py b/test/test_dhcp_host_list_embedded.py new file mode 100644 index 0000000..499105d --- /dev/null +++ b/test/test_dhcp_host_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_host_list_embedded import DhcpHostListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpHostListEmbedded(unittest.TestCase): + """DhcpHostListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpHostListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_host_list_embedded.DhcpHostListEmbedded() # noqa: E501 + if include_optional : + return DhcpHostListEmbedded( + udmobject = [ + null + ] + ) + else : + return DhcpHostListEmbedded( + ) + + def testDhcpHostListEmbedded(self): + """Test DhcpHostListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host_options.py b/test/test_dhcp_host_options.py new file mode 100644 index 0000000..c1b7509 --- /dev/null +++ b/test/test_dhcp_host_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_host_options import DhcpHostOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpHostOptions(unittest.TestCase): + """DhcpHostOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpHostOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_host_options.DhcpHostOptions() # noqa: E501 + if include_optional : + return DhcpHostOptions( + options = False + ) + else : + return DhcpHostOptions( + ) + + def testDhcpHostOptions(self): + """Test DhcpHostOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host_policies.py b/test/test_dhcp_host_policies.py new file mode 100644 index 0000000..c10948e --- /dev/null +++ b/test/test_dhcp_host_policies.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_host_policies import DhcpHostPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpHostPolicies(unittest.TestCase): + """DhcpHostPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpHostPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_host_policies.DhcpHostPolicies() # noqa: E501 + if include_optional : + return DhcpHostPolicies( + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return DhcpHostPolicies( + ) + + def testDhcpHostPolicies(self): + """Test DhcpHostPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host_request.py b/test/test_dhcp_host_request.py new file mode 100644 index 0000000..40af955 --- /dev/null +++ b/test/test_dhcp_host_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_host_request import DhcpHostRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpHostRequest(unittest.TestCase): + """DhcpHostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpHostRequest(self): + """Test DhcpHostRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host_request_patch.py b/test/test_dhcp_host_request_patch.py new file mode 100644 index 0000000..9ec029e --- /dev/null +++ b/test/test_dhcp_host_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_host_request_patch import DhcpHostRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpHostRequestPatch(unittest.TestCase): + """DhcpHostRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpHostRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_host_request_patch.DhcpHostRequestPatch() # noqa: E501 + if include_optional : + return DhcpHostRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpHostRequestPatch( + ) + + def testDhcpHostRequestPatch(self): + """Test DhcpHostRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_host_response_mixin.py b/test/test_dhcp_host_response_mixin.py new file mode 100644 index 0000000..1d916d0 --- /dev/null +++ b/test/test_dhcp_host_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_host_response_mixin import DhcpHostResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpHostResponseMixin(unittest.TestCase): + """DhcpHostResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpHostResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_host_response_mixin.DhcpHostResponseMixin() # noqa: E501 + if include_optional : + return DhcpHostResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dhcp/host/cn={value},cn=dhcp,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpHostResponseMixin( + ) + + def testDhcpHostResponseMixin(self): + """Test DhcpHostResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool.py b/test/test_dhcp_pool.py new file mode 100644 index 0000000..63a5736 --- /dev/null +++ b/test/test_dhcp_pool.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_pool import DhcpPool # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpPool(unittest.TestCase): + """DhcpPool unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpPool(self): + """Test DhcpPool""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool_api.py b/test/test_dhcp_pool_api.py new file mode 100644 index 0000000..caea738 --- /dev/null +++ b/test/test_dhcp_pool_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dhcp_pool_api import DhcpPoolApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDhcpPoolApi(unittest.TestCase): + """DhcpPoolApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dhcp_pool_api.DhcpPoolApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dhcp_pool_object(self): + """Test case for udm_dhcp_pool_object + + Get a representation of the DHCP pool object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dhcp_pool_object_create(self): + """Test case for udm_dhcp_pool_object_create + + Create a new DHCP pool object # noqa: E501 + """ + pass + + def test_udm_dhcp_pool_object_modify(self): + """Test case for udm_dhcp_pool_object_modify + + Modify or move an DHCP pool object # noqa: E501 + """ + pass + + def test_udm_dhcp_pool_object_remove(self): + """Test case for udm_dhcp_pool_object_remove + + Remove a DHCP pools object # noqa: E501 + """ + pass + + def test_udm_dhcp_pool_object_search(self): + """Test case for udm_dhcp_pool_object_search + + Search for DHCP pools objects # noqa: E501 + """ + pass + + def test_udm_dhcp_pool_object_template(self): + """Test case for udm_dhcp_pool_object_template + + Get a template for creating an DHCP pool object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dhcp_pool_object_update(self): + """Test case for udm_dhcp_pool_object_update + + Modify an DHCP pool object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool_list.py b/test/test_dhcp_pool_list.py new file mode 100644 index 0000000..408fa80 --- /dev/null +++ b/test/test_dhcp_pool_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_pool_list import DhcpPoolList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpPoolList(unittest.TestCase): + """DhcpPoolList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpPoolList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_pool_list.DhcpPoolList() # noqa: E501 + if include_optional : + return DhcpPoolList( + embedded = openapi_client_udm.models.dhcp_pool_list__embedded.dhcp_pool_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DhcpPoolList( + ) + + def testDhcpPoolList(self): + """Test DhcpPoolList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool_list_embedded.py b/test/test_dhcp_pool_list_embedded.py new file mode 100644 index 0000000..d4c5c01 --- /dev/null +++ b/test/test_dhcp_pool_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_pool_list_embedded import DhcpPoolListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpPoolListEmbedded(unittest.TestCase): + """DhcpPoolListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpPoolListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_pool_list_embedded.DhcpPoolListEmbedded() # noqa: E501 + if include_optional : + return DhcpPoolListEmbedded( + udmobject = [ + null + ] + ) + else : + return DhcpPoolListEmbedded( + ) + + def testDhcpPoolListEmbedded(self): + """Test DhcpPoolListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool_options.py b/test/test_dhcp_pool_options.py new file mode 100644 index 0000000..0a4e34a --- /dev/null +++ b/test/test_dhcp_pool_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_pool_options import DhcpPoolOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpPoolOptions(unittest.TestCase): + """DhcpPoolOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpPoolOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_pool_options.DhcpPoolOptions() # noqa: E501 + if include_optional : + return DhcpPoolOptions( + options = False + ) + else : + return DhcpPoolOptions( + ) + + def testDhcpPoolOptions(self): + """Test DhcpPoolOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool_policies.py b/test/test_dhcp_pool_policies.py new file mode 100644 index 0000000..e6aa14c --- /dev/null +++ b/test/test_dhcp_pool_policies.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_pool_policies import DhcpPoolPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpPoolPolicies(unittest.TestCase): + """DhcpPoolPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpPoolPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_pool_policies.DhcpPoolPolicies() # noqa: E501 + if include_optional : + return DhcpPoolPolicies( + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return DhcpPoolPolicies( + ) + + def testDhcpPoolPolicies(self): + """Test DhcpPoolPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool_request.py b/test/test_dhcp_pool_request.py new file mode 100644 index 0000000..49fe7df --- /dev/null +++ b/test/test_dhcp_pool_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_pool_request import DhcpPoolRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpPoolRequest(unittest.TestCase): + """DhcpPoolRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpPoolRequest(self): + """Test DhcpPoolRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool_request_patch.py b/test/test_dhcp_pool_request_patch.py new file mode 100644 index 0000000..6d754a0 --- /dev/null +++ b/test/test_dhcp_pool_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_pool_request_patch import DhcpPoolRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpPoolRequestPatch(unittest.TestCase): + """DhcpPoolRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpPoolRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_pool_request_patch.DhcpPoolRequestPatch() # noqa: E501 + if include_optional : + return DhcpPoolRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpPoolRequestPatch( + ) + + def testDhcpPoolRequestPatch(self): + """Test DhcpPoolRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_pool_response_mixin.py b/test/test_dhcp_pool_response_mixin.py new file mode 100644 index 0000000..8b20883 --- /dev/null +++ b/test/test_dhcp_pool_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_pool_response_mixin import DhcpPoolResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpPoolResponseMixin(unittest.TestCase): + """DhcpPoolResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpPoolResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_pool_response_mixin.DhcpPoolResponseMixin() # noqa: E501 + if include_optional : + return DhcpPoolResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dhcp/pool/cn={value},cn=dhcp,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpPoolResponseMixin( + ) + + def testDhcpPoolResponseMixin(self): + """Test DhcpPoolResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_server.py b/test/test_dhcp_server.py new file mode 100644 index 0000000..c0a6917 --- /dev/null +++ b/test/test_dhcp_server.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_server import DhcpServer # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServer(unittest.TestCase): + """DhcpServer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpServer(self): + """Test DhcpServer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_server_api.py b/test/test_dhcp_server_api.py new file mode 100644 index 0000000..54330f8 --- /dev/null +++ b/test/test_dhcp_server_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dhcp_server_api import DhcpServerApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDhcpServerApi(unittest.TestCase): + """DhcpServerApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dhcp_server_api.DhcpServerApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dhcp_server_object(self): + """Test case for udm_dhcp_server_object + + Get a representation of the DHCP server object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dhcp_server_object_create(self): + """Test case for udm_dhcp_server_object_create + + Create a new DHCP server object # noqa: E501 + """ + pass + + def test_udm_dhcp_server_object_modify(self): + """Test case for udm_dhcp_server_object_modify + + Modify or move an DHCP server object # noqa: E501 + """ + pass + + def test_udm_dhcp_server_object_remove(self): + """Test case for udm_dhcp_server_object_remove + + Remove a DHCP servers object # noqa: E501 + """ + pass + + def test_udm_dhcp_server_object_search(self): + """Test case for udm_dhcp_server_object_search + + Search for DHCP servers objects # noqa: E501 + """ + pass + + def test_udm_dhcp_server_object_template(self): + """Test case for udm_dhcp_server_object_template + + Get a template for creating an DHCP server object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dhcp_server_object_update(self): + """Test case for udm_dhcp_server_object_update + + Modify an DHCP server object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_server_list.py b/test/test_dhcp_server_list.py new file mode 100644 index 0000000..ad9755e --- /dev/null +++ b/test/test_dhcp_server_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_server_list import DhcpServerList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServerList(unittest.TestCase): + """DhcpServerList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServerList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_server_list.DhcpServerList() # noqa: E501 + if include_optional : + return DhcpServerList( + embedded = openapi_client_udm.models.dhcp_server_list__embedded.dhcp_server_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DhcpServerList( + ) + + def testDhcpServerList(self): + """Test DhcpServerList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_server_list_embedded.py b/test/test_dhcp_server_list_embedded.py new file mode 100644 index 0000000..2e5262d --- /dev/null +++ b/test/test_dhcp_server_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_server_list_embedded import DhcpServerListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServerListEmbedded(unittest.TestCase): + """DhcpServerListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServerListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_server_list_embedded.DhcpServerListEmbedded() # noqa: E501 + if include_optional : + return DhcpServerListEmbedded( + udmobject = [ + null + ] + ) + else : + return DhcpServerListEmbedded( + ) + + def testDhcpServerListEmbedded(self): + """Test DhcpServerListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_server_request.py b/test/test_dhcp_server_request.py new file mode 100644 index 0000000..2d24d63 --- /dev/null +++ b/test/test_dhcp_server_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_server_request import DhcpServerRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServerRequest(unittest.TestCase): + """DhcpServerRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpServerRequest(self): + """Test DhcpServerRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_server_request_patch.py b/test/test_dhcp_server_request_patch.py new file mode 100644 index 0000000..bb5e1d9 --- /dev/null +++ b/test/test_dhcp_server_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_server_request_patch import DhcpServerRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServerRequestPatch(unittest.TestCase): + """DhcpServerRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServerRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_server_request_patch.DhcpServerRequestPatch() # noqa: E501 + if include_optional : + return DhcpServerRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpServerRequestPatch( + ) + + def testDhcpServerRequestPatch(self): + """Test DhcpServerRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_server_response_mixin.py b/test/test_dhcp_server_response_mixin.py new file mode 100644 index 0000000..9d4ac76 --- /dev/null +++ b/test/test_dhcp_server_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_server_response_mixin import DhcpServerResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServerResponseMixin(unittest.TestCase): + """DhcpServerResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServerResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_server_response_mixin.DhcpServerResponseMixin() # noqa: E501 + if include_optional : + return DhcpServerResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dhcp/server/cn={value},cn=dhcp,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpServerResponseMixin( + ) + + def testDhcpServerResponseMixin(self): + """Test DhcpServerResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service.py b/test/test_dhcp_service.py new file mode 100644 index 0000000..a5a67cc --- /dev/null +++ b/test/test_dhcp_service.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_service import DhcpService # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpService(unittest.TestCase): + """DhcpService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpService(self): + """Test DhcpService""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service_api.py b/test/test_dhcp_service_api.py new file mode 100644 index 0000000..bdb48c6 --- /dev/null +++ b/test/test_dhcp_service_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dhcp_service_api import DhcpServiceApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDhcpServiceApi(unittest.TestCase): + """DhcpServiceApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dhcp_service_api.DhcpServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dhcp_service_object(self): + """Test case for udm_dhcp_service_object + + Get a representation of the DHCP service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dhcp_service_object_create(self): + """Test case for udm_dhcp_service_object_create + + Create a new DHCP service object # noqa: E501 + """ + pass + + def test_udm_dhcp_service_object_modify(self): + """Test case for udm_dhcp_service_object_modify + + Modify or move an DHCP service object # noqa: E501 + """ + pass + + def test_udm_dhcp_service_object_remove(self): + """Test case for udm_dhcp_service_object_remove + + Remove a DHCP services object # noqa: E501 + """ + pass + + def test_udm_dhcp_service_object_search(self): + """Test case for udm_dhcp_service_object_search + + Search for DHCP services objects # noqa: E501 + """ + pass + + def test_udm_dhcp_service_object_template(self): + """Test case for udm_dhcp_service_object_template + + Get a template for creating an DHCP service object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dhcp_service_object_update(self): + """Test case for udm_dhcp_service_object_update + + Modify an DHCP service object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service_list.py b/test/test_dhcp_service_list.py new file mode 100644 index 0000000..f67ac39 --- /dev/null +++ b/test/test_dhcp_service_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_service_list import DhcpServiceList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServiceList(unittest.TestCase): + """DhcpServiceList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServiceList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_service_list.DhcpServiceList() # noqa: E501 + if include_optional : + return DhcpServiceList( + embedded = openapi_client_udm.models.dhcp_service_list__embedded.dhcp_service_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DhcpServiceList( + ) + + def testDhcpServiceList(self): + """Test DhcpServiceList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service_list_embedded.py b/test/test_dhcp_service_list_embedded.py new file mode 100644 index 0000000..d1df435 --- /dev/null +++ b/test/test_dhcp_service_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_service_list_embedded import DhcpServiceListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServiceListEmbedded(unittest.TestCase): + """DhcpServiceListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServiceListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_service_list_embedded.DhcpServiceListEmbedded() # noqa: E501 + if include_optional : + return DhcpServiceListEmbedded( + udmobject = [ + null + ] + ) + else : + return DhcpServiceListEmbedded( + ) + + def testDhcpServiceListEmbedded(self): + """Test DhcpServiceListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service_options.py b/test/test_dhcp_service_options.py new file mode 100644 index 0000000..3f2b90c --- /dev/null +++ b/test/test_dhcp_service_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_service_options import DhcpServiceOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServiceOptions(unittest.TestCase): + """DhcpServiceOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServiceOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_service_options.DhcpServiceOptions() # noqa: E501 + if include_optional : + return DhcpServiceOptions( + options = False + ) + else : + return DhcpServiceOptions( + ) + + def testDhcpServiceOptions(self): + """Test DhcpServiceOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service_policies.py b/test/test_dhcp_service_policies.py new file mode 100644 index 0000000..467bc16 --- /dev/null +++ b/test/test_dhcp_service_policies.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_service_policies import DhcpServicePolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServicePolicies(unittest.TestCase): + """DhcpServicePolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServicePolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_service_policies.DhcpServicePolicies() # noqa: E501 + if include_optional : + return DhcpServicePolicies( + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return DhcpServicePolicies( + ) + + def testDhcpServicePolicies(self): + """Test DhcpServicePolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service_request.py b/test/test_dhcp_service_request.py new file mode 100644 index 0000000..678f40e --- /dev/null +++ b/test/test_dhcp_service_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_service_request import DhcpServiceRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServiceRequest(unittest.TestCase): + """DhcpServiceRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpServiceRequest(self): + """Test DhcpServiceRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service_request_patch.py b/test/test_dhcp_service_request_patch.py new file mode 100644 index 0000000..54fcec7 --- /dev/null +++ b/test/test_dhcp_service_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_service_request_patch import DhcpServiceRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServiceRequestPatch(unittest.TestCase): + """DhcpServiceRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServiceRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_service_request_patch.DhcpServiceRequestPatch() # noqa: E501 + if include_optional : + return DhcpServiceRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return DhcpServiceRequestPatch( + ) + + def testDhcpServiceRequestPatch(self): + """Test DhcpServiceRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_service_response_mixin.py b/test/test_dhcp_service_response_mixin.py new file mode 100644 index 0000000..c711e7b --- /dev/null +++ b/test/test_dhcp_service_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_service_response_mixin import DhcpServiceResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpServiceResponseMixin(unittest.TestCase): + """DhcpServiceResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpServiceResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_service_response_mixin.DhcpServiceResponseMixin() # noqa: E501 + if include_optional : + return DhcpServiceResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dhcp/service/cn={value},cn=dhcp,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpServiceResponseMixin( + ) + + def testDhcpServiceResponseMixin(self): + """Test DhcpServiceResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared.py b/test/test_dhcp_shared.py new file mode 100644 index 0000000..3407239 --- /dev/null +++ b/test/test_dhcp_shared.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_shared import DhcpShared # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpShared(unittest.TestCase): + """DhcpShared unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpShared(self): + """Test DhcpShared""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared_api.py b/test/test_dhcp_shared_api.py new file mode 100644 index 0000000..0a9036f --- /dev/null +++ b/test/test_dhcp_shared_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dhcp_shared_api import DhcpSharedApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDhcpSharedApi(unittest.TestCase): + """DhcpSharedApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dhcp_shared_api.DhcpSharedApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dhcp_shared_object(self): + """Test case for udm_dhcp_shared_object + + Get a representation of the Shared network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dhcp_shared_object_create(self): + """Test case for udm_dhcp_shared_object_create + + Create a new Shared network object # noqa: E501 + """ + pass + + def test_udm_dhcp_shared_object_modify(self): + """Test case for udm_dhcp_shared_object_modify + + Modify or move an Shared network object # noqa: E501 + """ + pass + + def test_udm_dhcp_shared_object_remove(self): + """Test case for udm_dhcp_shared_object_remove + + Remove a Shared network object # noqa: E501 + """ + pass + + def test_udm_dhcp_shared_object_search(self): + """Test case for udm_dhcp_shared_object_search + + Search for Shared network objects # noqa: E501 + """ + pass + + def test_udm_dhcp_shared_object_template(self): + """Test case for udm_dhcp_shared_object_template + + Get a template for creating an Shared network object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dhcp_shared_object_update(self): + """Test case for udm_dhcp_shared_object_update + + Modify an Shared network object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared_list.py b/test/test_dhcp_shared_list.py new file mode 100644 index 0000000..ddd321e --- /dev/null +++ b/test/test_dhcp_shared_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_shared_list import DhcpSharedList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedList(unittest.TestCase): + """DhcpSharedList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_shared_list.DhcpSharedList() # noqa: E501 + if include_optional : + return DhcpSharedList( + embedded = openapi_client_udm.models.dhcp_shared_list__embedded.dhcp_shared_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DhcpSharedList( + ) + + def testDhcpSharedList(self): + """Test DhcpSharedList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared_list_embedded.py b/test/test_dhcp_shared_list_embedded.py new file mode 100644 index 0000000..60c1582 --- /dev/null +++ b/test/test_dhcp_shared_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_shared_list_embedded import DhcpSharedListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedListEmbedded(unittest.TestCase): + """DhcpSharedListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_shared_list_embedded.DhcpSharedListEmbedded() # noqa: E501 + if include_optional : + return DhcpSharedListEmbedded( + udmobject = [ + null + ] + ) + else : + return DhcpSharedListEmbedded( + ) + + def testDhcpSharedListEmbedded(self): + """Test DhcpSharedListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared_options.py b/test/test_dhcp_shared_options.py new file mode 100644 index 0000000..6f80abb --- /dev/null +++ b/test/test_dhcp_shared_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_shared_options import DhcpSharedOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedOptions(unittest.TestCase): + """DhcpSharedOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_shared_options.DhcpSharedOptions() # noqa: E501 + if include_optional : + return DhcpSharedOptions( + options = False + ) + else : + return DhcpSharedOptions( + ) + + def testDhcpSharedOptions(self): + """Test DhcpSharedOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared_policies.py b/test/test_dhcp_shared_policies.py new file mode 100644 index 0000000..03f2126 --- /dev/null +++ b/test/test_dhcp_shared_policies.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_shared_policies import DhcpSharedPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedPolicies(unittest.TestCase): + """DhcpSharedPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_shared_policies.DhcpSharedPolicies() # noqa: E501 + if include_optional : + return DhcpSharedPolicies( + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return DhcpSharedPolicies( + ) + + def testDhcpSharedPolicies(self): + """Test DhcpSharedPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared_request.py b/test/test_dhcp_shared_request.py new file mode 100644 index 0000000..8ab1e0b --- /dev/null +++ b/test/test_dhcp_shared_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_shared_request import DhcpSharedRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedRequest(unittest.TestCase): + """DhcpSharedRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpSharedRequest(self): + """Test DhcpSharedRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared_request_patch.py b/test/test_dhcp_shared_request_patch.py new file mode 100644 index 0000000..7e82377 --- /dev/null +++ b/test/test_dhcp_shared_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_shared_request_patch import DhcpSharedRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedRequestPatch(unittest.TestCase): + """DhcpSharedRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_shared_request_patch.DhcpSharedRequestPatch() # noqa: E501 + if include_optional : + return DhcpSharedRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpSharedRequestPatch( + ) + + def testDhcpSharedRequestPatch(self): + """Test DhcpSharedRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_shared_response_mixin.py b/test/test_dhcp_shared_response_mixin.py new file mode 100644 index 0000000..232fbb6 --- /dev/null +++ b/test/test_dhcp_shared_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_shared_response_mixin import DhcpSharedResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedResponseMixin(unittest.TestCase): + """DhcpSharedResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_shared_response_mixin.DhcpSharedResponseMixin() # noqa: E501 + if include_optional : + return DhcpSharedResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dhcp/shared/cn={value},cn=dhcp,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpSharedResponseMixin( + ) + + def testDhcpSharedResponseMixin(self): + """Test DhcpSharedResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet.py b/test/test_dhcp_sharedsubnet.py new file mode 100644 index 0000000..d9c3674 --- /dev/null +++ b/test/test_dhcp_sharedsubnet.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_sharedsubnet import DhcpSharedsubnet # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedsubnet(unittest.TestCase): + """DhcpSharedsubnet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpSharedsubnet(self): + """Test DhcpSharedsubnet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet_api.py b/test/test_dhcp_sharedsubnet_api.py new file mode 100644 index 0000000..bda8414 --- /dev/null +++ b/test/test_dhcp_sharedsubnet_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dhcp_sharedsubnet_api import DhcpSharedsubnetApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDhcpSharedsubnetApi(unittest.TestCase): + """DhcpSharedsubnetApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dhcp_sharedsubnet_api.DhcpSharedsubnetApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dhcp_sharedsubnet_object(self): + """Test case for udm_dhcp_sharedsubnet_object + + Get a representation of the Shared DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dhcp_sharedsubnet_object_create(self): + """Test case for udm_dhcp_sharedsubnet_object_create + + Create a new Shared DHCP subnet object # noqa: E501 + """ + pass + + def test_udm_dhcp_sharedsubnet_object_modify(self): + """Test case for udm_dhcp_sharedsubnet_object_modify + + Modify or move an Shared DHCP subnet object # noqa: E501 + """ + pass + + def test_udm_dhcp_sharedsubnet_object_remove(self): + """Test case for udm_dhcp_sharedsubnet_object_remove + + Remove a Shared DHCP subnets object # noqa: E501 + """ + pass + + def test_udm_dhcp_sharedsubnet_object_search(self): + """Test case for udm_dhcp_sharedsubnet_object_search + + Search for Shared DHCP subnets objects # noqa: E501 + """ + pass + + def test_udm_dhcp_sharedsubnet_object_template(self): + """Test case for udm_dhcp_sharedsubnet_object_template + + Get a template for creating an Shared DHCP subnet object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dhcp_sharedsubnet_object_update(self): + """Test case for udm_dhcp_sharedsubnet_object_update + + Modify an Shared DHCP subnet object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet_list.py b/test/test_dhcp_sharedsubnet_list.py new file mode 100644 index 0000000..ed4c646 --- /dev/null +++ b/test/test_dhcp_sharedsubnet_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_sharedsubnet_list import DhcpSharedsubnetList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedsubnetList(unittest.TestCase): + """DhcpSharedsubnetList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedsubnetList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_sharedsubnet_list.DhcpSharedsubnetList() # noqa: E501 + if include_optional : + return DhcpSharedsubnetList( + embedded = openapi_client_udm.models.dhcp_sharedsubnet_list__embedded.dhcp_sharedsubnet_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DhcpSharedsubnetList( + ) + + def testDhcpSharedsubnetList(self): + """Test DhcpSharedsubnetList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet_list_embedded.py b/test/test_dhcp_sharedsubnet_list_embedded.py new file mode 100644 index 0000000..345c370 --- /dev/null +++ b/test/test_dhcp_sharedsubnet_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_sharedsubnet_list_embedded import DhcpSharedsubnetListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedsubnetListEmbedded(unittest.TestCase): + """DhcpSharedsubnetListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedsubnetListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_sharedsubnet_list_embedded.DhcpSharedsubnetListEmbedded() # noqa: E501 + if include_optional : + return DhcpSharedsubnetListEmbedded( + udmobject = [ + null + ] + ) + else : + return DhcpSharedsubnetListEmbedded( + ) + + def testDhcpSharedsubnetListEmbedded(self): + """Test DhcpSharedsubnetListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet_options.py b/test/test_dhcp_sharedsubnet_options.py new file mode 100644 index 0000000..0b7eefc --- /dev/null +++ b/test/test_dhcp_sharedsubnet_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_sharedsubnet_options import DhcpSharedsubnetOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedsubnetOptions(unittest.TestCase): + """DhcpSharedsubnetOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedsubnetOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_sharedsubnet_options.DhcpSharedsubnetOptions() # noqa: E501 + if include_optional : + return DhcpSharedsubnetOptions( + options = False + ) + else : + return DhcpSharedsubnetOptions( + ) + + def testDhcpSharedsubnetOptions(self): + """Test DhcpSharedsubnetOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet_policies.py b/test/test_dhcp_sharedsubnet_policies.py new file mode 100644 index 0000000..e366546 --- /dev/null +++ b/test/test_dhcp_sharedsubnet_policies.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_sharedsubnet_policies import DhcpSharedsubnetPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedsubnetPolicies(unittest.TestCase): + """DhcpSharedsubnetPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedsubnetPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_sharedsubnet_policies.DhcpSharedsubnetPolicies() # noqa: E501 + if include_optional : + return DhcpSharedsubnetPolicies( + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return DhcpSharedsubnetPolicies( + ) + + def testDhcpSharedsubnetPolicies(self): + """Test DhcpSharedsubnetPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet_request.py b/test/test_dhcp_sharedsubnet_request.py new file mode 100644 index 0000000..6e55d75 --- /dev/null +++ b/test/test_dhcp_sharedsubnet_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_sharedsubnet_request import DhcpSharedsubnetRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedsubnetRequest(unittest.TestCase): + """DhcpSharedsubnetRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpSharedsubnetRequest(self): + """Test DhcpSharedsubnetRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet_request_patch.py b/test/test_dhcp_sharedsubnet_request_patch.py new file mode 100644 index 0000000..2ea64a5 --- /dev/null +++ b/test/test_dhcp_sharedsubnet_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_sharedsubnet_request_patch import DhcpSharedsubnetRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedsubnetRequestPatch(unittest.TestCase): + """DhcpSharedsubnetRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedsubnetRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_sharedsubnet_request_patch.DhcpSharedsubnetRequestPatch() # noqa: E501 + if include_optional : + return DhcpSharedsubnetRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpSharedsubnetRequestPatch( + ) + + def testDhcpSharedsubnetRequestPatch(self): + """Test DhcpSharedsubnetRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_sharedsubnet_response_mixin.py b/test/test_dhcp_sharedsubnet_response_mixin.py new file mode 100644 index 0000000..80c80df --- /dev/null +++ b/test/test_dhcp_sharedsubnet_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_sharedsubnet_response_mixin import DhcpSharedsubnetResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSharedsubnetResponseMixin(unittest.TestCase): + """DhcpSharedsubnetResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSharedsubnetResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_sharedsubnet_response_mixin.DhcpSharedsubnetResponseMixin() # noqa: E501 + if include_optional : + return DhcpSharedsubnetResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dhcp/sharedsubnet/cn={value},cn=dhcp,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpSharedsubnetResponseMixin( + ) + + def testDhcpSharedsubnetResponseMixin(self): + """Test DhcpSharedsubnetResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet.py b/test/test_dhcp_subnet.py new file mode 100644 index 0000000..f7ca1ab --- /dev/null +++ b/test/test_dhcp_subnet.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_subnet import DhcpSubnet # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSubnet(unittest.TestCase): + """DhcpSubnet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpSubnet(self): + """Test DhcpSubnet""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet_api.py b/test/test_dhcp_subnet_api.py new file mode 100644 index 0000000..d897a84 --- /dev/null +++ b/test/test_dhcp_subnet_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dhcp_subnet_api import DhcpSubnetApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDhcpSubnetApi(unittest.TestCase): + """DhcpSubnetApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dhcp_subnet_api.DhcpSubnetApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dhcp_subnet_object(self): + """Test case for udm_dhcp_subnet_object + + Get a representation of the DHCP subnet object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dhcp_subnet_object_create(self): + """Test case for udm_dhcp_subnet_object_create + + Create a new DHCP subnet object # noqa: E501 + """ + pass + + def test_udm_dhcp_subnet_object_modify(self): + """Test case for udm_dhcp_subnet_object_modify + + Modify or move an DHCP subnet object # noqa: E501 + """ + pass + + def test_udm_dhcp_subnet_object_remove(self): + """Test case for udm_dhcp_subnet_object_remove + + Remove a DHCP subnets object # noqa: E501 + """ + pass + + def test_udm_dhcp_subnet_object_search(self): + """Test case for udm_dhcp_subnet_object_search + + Search for DHCP subnets objects # noqa: E501 + """ + pass + + def test_udm_dhcp_subnet_object_template(self): + """Test case for udm_dhcp_subnet_object_template + + Get a template for creating an DHCP subnet object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dhcp_subnet_object_update(self): + """Test case for udm_dhcp_subnet_object_update + + Modify an DHCP subnet object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet_list.py b/test/test_dhcp_subnet_list.py new file mode 100644 index 0000000..e0a396e --- /dev/null +++ b/test/test_dhcp_subnet_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_subnet_list import DhcpSubnetList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSubnetList(unittest.TestCase): + """DhcpSubnetList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSubnetList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_subnet_list.DhcpSubnetList() # noqa: E501 + if include_optional : + return DhcpSubnetList( + embedded = openapi_client_udm.models.dhcp_subnet_list__embedded.dhcp_subnet_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DhcpSubnetList( + ) + + def testDhcpSubnetList(self): + """Test DhcpSubnetList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet_list_embedded.py b/test/test_dhcp_subnet_list_embedded.py new file mode 100644 index 0000000..2a828e3 --- /dev/null +++ b/test/test_dhcp_subnet_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_subnet_list_embedded import DhcpSubnetListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSubnetListEmbedded(unittest.TestCase): + """DhcpSubnetListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSubnetListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_subnet_list_embedded.DhcpSubnetListEmbedded() # noqa: E501 + if include_optional : + return DhcpSubnetListEmbedded( + udmobject = [ + null + ] + ) + else : + return DhcpSubnetListEmbedded( + ) + + def testDhcpSubnetListEmbedded(self): + """Test DhcpSubnetListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet_options.py b/test/test_dhcp_subnet_options.py new file mode 100644 index 0000000..765376f --- /dev/null +++ b/test/test_dhcp_subnet_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_subnet_options import DhcpSubnetOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSubnetOptions(unittest.TestCase): + """DhcpSubnetOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSubnetOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_subnet_options.DhcpSubnetOptions() # noqa: E501 + if include_optional : + return DhcpSubnetOptions( + options = False + ) + else : + return DhcpSubnetOptions( + ) + + def testDhcpSubnetOptions(self): + """Test DhcpSubnetOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet_policies.py b/test/test_dhcp_subnet_policies.py new file mode 100644 index 0000000..b587452 --- /dev/null +++ b/test/test_dhcp_subnet_policies.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_subnet_policies import DhcpSubnetPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSubnetPolicies(unittest.TestCase): + """DhcpSubnetPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSubnetPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_subnet_policies.DhcpSubnetPolicies() # noqa: E501 + if include_optional : + return DhcpSubnetPolicies( + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return DhcpSubnetPolicies( + ) + + def testDhcpSubnetPolicies(self): + """Test DhcpSubnetPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet_request.py b/test/test_dhcp_subnet_request.py new file mode 100644 index 0000000..70aace1 --- /dev/null +++ b/test/test_dhcp_subnet_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_subnet_request import DhcpSubnetRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSubnetRequest(unittest.TestCase): + """DhcpSubnetRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDhcpSubnetRequest(self): + """Test DhcpSubnetRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet_request_patch.py b/test/test_dhcp_subnet_request_patch.py new file mode 100644 index 0000000..c993e92 --- /dev/null +++ b/test/test_dhcp_subnet_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_subnet_request_patch import DhcpSubnetRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSubnetRequestPatch(unittest.TestCase): + """DhcpSubnetRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSubnetRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_subnet_request_patch.DhcpSubnetRequestPatch() # noqa: E501 + if include_optional : + return DhcpSubnetRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpSubnetRequestPatch( + ) + + def testDhcpSubnetRequestPatch(self): + """Test DhcpSubnetRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dhcp_subnet_response_mixin.py b/test/test_dhcp_subnet_response_mixin.py new file mode 100644 index 0000000..3f795d8 --- /dev/null +++ b/test/test_dhcp_subnet_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dhcp_subnet_response_mixin import DhcpSubnetResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDhcpSubnetResponseMixin(unittest.TestCase): + """DhcpSubnetResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DhcpSubnetResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dhcp_subnet_response_mixin.DhcpSubnetResponseMixin() # noqa: E501 + if include_optional : + return DhcpSubnetResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dhcp/subnet/cn={value},cn=dhcp,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DhcpSubnetResponseMixin( + ) + + def testDhcpSubnetResponseMixin(self): + """Test DhcpSubnetResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_alias.py b/test/test_dns_alias.py new file mode 100644 index 0000000..348ffb2 --- /dev/null +++ b/test/test_dns_alias.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_alias import DnsAlias # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsAlias(unittest.TestCase): + """DnsAlias unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsAlias(self): + """Test DnsAlias""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_alias_api.py b/test/test_dns_alias_api.py new file mode 100644 index 0000000..c353ed6 --- /dev/null +++ b/test/test_dns_alias_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_alias_api import DnsAliasApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsAliasApi(unittest.TestCase): + """DnsAliasApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_alias_api.DnsAliasApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_alias_object(self): + """Test case for udm_dns_alias_object + + Get a representation of the Alias record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_alias_object_create(self): + """Test case for udm_dns_alias_object_create + + Create a new Alias record object # noqa: E501 + """ + pass + + def test_udm_dns_alias_object_modify(self): + """Test case for udm_dns_alias_object_modify + + Modify or move an Alias record object # noqa: E501 + """ + pass + + def test_udm_dns_alias_object_remove(self): + """Test case for udm_dns_alias_object_remove + + Remove a Alias records object # noqa: E501 + """ + pass + + def test_udm_dns_alias_object_search(self): + """Test case for udm_dns_alias_object_search + + Search for Alias records objects # noqa: E501 + """ + pass + + def test_udm_dns_alias_object_template(self): + """Test case for udm_dns_alias_object_template + + Get a template for creating an Alias record object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dns_alias_object_update(self): + """Test case for udm_dns_alias_object_update + + Modify an Alias record object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_alias_list.py b/test/test_dns_alias_list.py new file mode 100644 index 0000000..f41f6ae --- /dev/null +++ b/test/test_dns_alias_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_alias_list import DnsAliasList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsAliasList(unittest.TestCase): + """DnsAliasList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsAliasList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_alias_list.DnsAliasList() # noqa: E501 + if include_optional : + return DnsAliasList( + embedded = openapi_client_udm.models.dns_alias_list__embedded.dns_alias_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsAliasList( + ) + + def testDnsAliasList(self): + """Test DnsAliasList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_alias_list_embedded.py b/test/test_dns_alias_list_embedded.py new file mode 100644 index 0000000..ebd90e8 --- /dev/null +++ b/test/test_dns_alias_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_alias_list_embedded import DnsAliasListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsAliasListEmbedded(unittest.TestCase): + """DnsAliasListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsAliasListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_alias_list_embedded.DnsAliasListEmbedded() # noqa: E501 + if include_optional : + return DnsAliasListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsAliasListEmbedded( + ) + + def testDnsAliasListEmbedded(self): + """Test DnsAliasListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_alias_request.py b/test/test_dns_alias_request.py new file mode 100644 index 0000000..b81b139 --- /dev/null +++ b/test/test_dns_alias_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_alias_request import DnsAliasRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsAliasRequest(unittest.TestCase): + """DnsAliasRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsAliasRequest(self): + """Test DnsAliasRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_alias_request_patch.py b/test/test_dns_alias_request_patch.py new file mode 100644 index 0000000..7133dc7 --- /dev/null +++ b/test/test_dns_alias_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_alias_request_patch import DnsAliasRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsAliasRequestPatch(unittest.TestCase): + """DnsAliasRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsAliasRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_alias_request_patch.DnsAliasRequestPatch() # noqa: E501 + if include_optional : + return DnsAliasRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsAliasRequestPatch( + ) + + def testDnsAliasRequestPatch(self): + """Test DnsAliasRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_alias_response_mixin.py b/test/test_dns_alias_response_mixin.py new file mode 100644 index 0000000..7df08ea --- /dev/null +++ b/test/test_dns_alias_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_alias_response_mixin import DnsAliasResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsAliasResponseMixin(unittest.TestCase): + """DnsAliasResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsAliasResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_alias_response_mixin.DnsAliasResponseMixin() # noqa: E501 + if include_optional : + return DnsAliasResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/alias/relativeDomainName={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsAliasResponseMixin( + ) + + def testDnsAliasResponseMixin(self): + """Test DnsAliasResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_dns.py b/test/test_dns_dns.py new file mode 100644 index 0000000..28ad7ea --- /dev/null +++ b/test/test_dns_dns.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_dns import DnsDns # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsDns(unittest.TestCase): + """DnsDns unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsDns(self): + """Test DnsDns""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_dns_api.py b/test/test_dns_dns_api.py new file mode 100644 index 0000000..8bbb279 --- /dev/null +++ b/test/test_dns_dns_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_dns_api import DnsDnsApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsDnsApi(unittest.TestCase): + """DnsDnsApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_dns_api.DnsDnsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_dns_object(self): + """Test case for udm_dns_dns_object + + Get a representation of the DNS zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_dns_object_search(self): + """Test case for udm_dns_dns_object_search + + Search for DNS zones objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_dns_list.py b/test/test_dns_dns_list.py new file mode 100644 index 0000000..a9752b7 --- /dev/null +++ b/test/test_dns_dns_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_dns_list import DnsDnsList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsDnsList(unittest.TestCase): + """DnsDnsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsDnsList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_dns_list.DnsDnsList() # noqa: E501 + if include_optional : + return DnsDnsList( + embedded = openapi_client_udm.models.dns_dns_list__embedded.dns_dns_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsDnsList( + ) + + def testDnsDnsList(self): + """Test DnsDnsList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_dns_list_embedded.py b/test/test_dns_dns_list_embedded.py new file mode 100644 index 0000000..7dcb13e --- /dev/null +++ b/test/test_dns_dns_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_dns_list_embedded import DnsDnsListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsDnsListEmbedded(unittest.TestCase): + """DnsDnsListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsDnsListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_dns_list_embedded.DnsDnsListEmbedded() # noqa: E501 + if include_optional : + return DnsDnsListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsDnsListEmbedded( + ) + + def testDnsDnsListEmbedded(self): + """Test DnsDnsListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_dns_request.py b/test/test_dns_dns_request.py new file mode 100644 index 0000000..3d994fb --- /dev/null +++ b/test/test_dns_dns_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_dns_request import DnsDnsRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsDnsRequest(unittest.TestCase): + """DnsDnsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsDnsRequest(self): + """Test DnsDnsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_dns_request_patch.py b/test/test_dns_dns_request_patch.py new file mode 100644 index 0000000..297704b --- /dev/null +++ b/test/test_dns_dns_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_dns_request_patch import DnsDnsRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsDnsRequestPatch(unittest.TestCase): + """DnsDnsRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsDnsRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_dns_request_patch.DnsDnsRequestPatch() # noqa: E501 + if include_optional : + return DnsDnsRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return DnsDnsRequestPatch( + ) + + def testDnsDnsRequestPatch(self): + """Test DnsDnsRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_dns_response_mixin.py b/test/test_dns_dns_response_mixin.py new file mode 100644 index 0000000..8fa63b3 --- /dev/null +++ b/test/test_dns_dns_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_dns_response_mixin import DnsDnsResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsDnsResponseMixin(unittest.TestCase): + """DnsDnsResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsDnsResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_dns_response_mixin.DnsDnsResponseMixin() # noqa: E501 + if include_optional : + return DnsDnsResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/dns/cn={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsDnsResponseMixin( + ) + + def testDnsDnsResponseMixin(self): + """Test DnsDnsResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_forward_zone.py b/test/test_dns_forward_zone.py new file mode 100644 index 0000000..e1d9837 --- /dev/null +++ b/test/test_dns_forward_zone.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_forward_zone import DnsForwardZone # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsForwardZone(unittest.TestCase): + """DnsForwardZone unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsForwardZone(self): + """Test DnsForwardZone""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_forward_zone_api.py b/test/test_dns_forward_zone_api.py new file mode 100644 index 0000000..09be5ec --- /dev/null +++ b/test/test_dns_forward_zone_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_forward_zone_api import DnsForwardZoneApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsForwardZoneApi(unittest.TestCase): + """DnsForwardZoneApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_forward_zone_api.DnsForwardZoneApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_forward_zone_object(self): + """Test case for udm_dns_forward_zone_object + + Get a representation of the Forward lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_forward_zone_object_create(self): + """Test case for udm_dns_forward_zone_object_create + + Create a new Forward lookup zone object # noqa: E501 + """ + pass + + def test_udm_dns_forward_zone_object_modify(self): + """Test case for udm_dns_forward_zone_object_modify + + Modify or move an Forward lookup zone object # noqa: E501 + """ + pass + + def test_udm_dns_forward_zone_object_remove(self): + """Test case for udm_dns_forward_zone_object_remove + + Remove a Forward lookup zones object # noqa: E501 + """ + pass + + def test_udm_dns_forward_zone_object_search(self): + """Test case for udm_dns_forward_zone_object_search + + Search for Forward lookup zones objects # noqa: E501 + """ + pass + + def test_udm_dns_forward_zone_object_template(self): + """Test case for udm_dns_forward_zone_object_template + + Get a template for creating an Forward lookup zone object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dns_forward_zone_object_update(self): + """Test case for udm_dns_forward_zone_object_update + + Modify an Forward lookup zone object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_forward_zone_list.py b/test/test_dns_forward_zone_list.py new file mode 100644 index 0000000..490e15d --- /dev/null +++ b/test/test_dns_forward_zone_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_forward_zone_list import DnsForwardZoneList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsForwardZoneList(unittest.TestCase): + """DnsForwardZoneList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsForwardZoneList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_forward_zone_list.DnsForwardZoneList() # noqa: E501 + if include_optional : + return DnsForwardZoneList( + embedded = openapi_client_udm.models.dns_forward_zone_list__embedded.dns_forward_zone_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsForwardZoneList( + ) + + def testDnsForwardZoneList(self): + """Test DnsForwardZoneList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_forward_zone_list_embedded.py b/test/test_dns_forward_zone_list_embedded.py new file mode 100644 index 0000000..13fa8b5 --- /dev/null +++ b/test/test_dns_forward_zone_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_forward_zone_list_embedded import DnsForwardZoneListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsForwardZoneListEmbedded(unittest.TestCase): + """DnsForwardZoneListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsForwardZoneListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_forward_zone_list_embedded.DnsForwardZoneListEmbedded() # noqa: E501 + if include_optional : + return DnsForwardZoneListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsForwardZoneListEmbedded( + ) + + def testDnsForwardZoneListEmbedded(self): + """Test DnsForwardZoneListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_forward_zone_policies.py b/test/test_dns_forward_zone_policies.py new file mode 100644 index 0000000..a15bfa8 --- /dev/null +++ b/test/test_dns_forward_zone_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_forward_zone_policies import DnsForwardZonePolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsForwardZonePolicies(unittest.TestCase): + """DnsForwardZonePolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsForwardZonePolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_forward_zone_policies.DnsForwardZonePolicies() # noqa: E501 + if include_optional : + return DnsForwardZonePolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return DnsForwardZonePolicies( + ) + + def testDnsForwardZonePolicies(self): + """Test DnsForwardZonePolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_forward_zone_request.py b/test/test_dns_forward_zone_request.py new file mode 100644 index 0000000..932516a --- /dev/null +++ b/test/test_dns_forward_zone_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_forward_zone_request import DnsForwardZoneRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsForwardZoneRequest(unittest.TestCase): + """DnsForwardZoneRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsForwardZoneRequest(self): + """Test DnsForwardZoneRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_forward_zone_request_patch.py b/test/test_dns_forward_zone_request_patch.py new file mode 100644 index 0000000..62f0ce8 --- /dev/null +++ b/test/test_dns_forward_zone_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_forward_zone_request_patch import DnsForwardZoneRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsForwardZoneRequestPatch(unittest.TestCase): + """DnsForwardZoneRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsForwardZoneRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_forward_zone_request_patch.DnsForwardZoneRequestPatch() # noqa: E501 + if include_optional : + return DnsForwardZoneRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return DnsForwardZoneRequestPatch( + ) + + def testDnsForwardZoneRequestPatch(self): + """Test DnsForwardZoneRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_forward_zone_response_mixin.py b/test/test_dns_forward_zone_response_mixin.py new file mode 100644 index 0000000..049bd96 --- /dev/null +++ b/test/test_dns_forward_zone_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_forward_zone_response_mixin import DnsForwardZoneResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsForwardZoneResponseMixin(unittest.TestCase): + """DnsForwardZoneResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsForwardZoneResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_forward_zone_response_mixin.DnsForwardZoneResponseMixin() # noqa: E501 + if include_optional : + return DnsForwardZoneResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/forward_zone/zoneName={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsForwardZoneResponseMixin( + ) + + def testDnsForwardZoneResponseMixin(self): + """Test DnsForwardZoneResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_host_record.py b/test/test_dns_host_record.py new file mode 100644 index 0000000..dcb8a75 --- /dev/null +++ b/test/test_dns_host_record.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_host_record import DnsHostRecord # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsHostRecord(unittest.TestCase): + """DnsHostRecord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsHostRecord(self): + """Test DnsHostRecord""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_host_record_api.py b/test/test_dns_host_record_api.py new file mode 100644 index 0000000..af89e44 --- /dev/null +++ b/test/test_dns_host_record_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_host_record_api import DnsHostRecordApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsHostRecordApi(unittest.TestCase): + """DnsHostRecordApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_host_record_api.DnsHostRecordApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_host_record_object(self): + """Test case for udm_dns_host_record_object + + Get a representation of the Host record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_host_record_object_create(self): + """Test case for udm_dns_host_record_object_create + + Create a new Host record object # noqa: E501 + """ + pass + + def test_udm_dns_host_record_object_modify(self): + """Test case for udm_dns_host_record_object_modify + + Modify or move an Host record object # noqa: E501 + """ + pass + + def test_udm_dns_host_record_object_remove(self): + """Test case for udm_dns_host_record_object_remove + + Remove a Host records object # noqa: E501 + """ + pass + + def test_udm_dns_host_record_object_search(self): + """Test case for udm_dns_host_record_object_search + + Search for Host records objects # noqa: E501 + """ + pass + + def test_udm_dns_host_record_object_template(self): + """Test case for udm_dns_host_record_object_template + + Get a template for creating an Host record object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dns_host_record_object_update(self): + """Test case for udm_dns_host_record_object_update + + Modify an Host record object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_host_record_list.py b/test/test_dns_host_record_list.py new file mode 100644 index 0000000..58d189a --- /dev/null +++ b/test/test_dns_host_record_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_host_record_list import DnsHostRecordList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsHostRecordList(unittest.TestCase): + """DnsHostRecordList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsHostRecordList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_host_record_list.DnsHostRecordList() # noqa: E501 + if include_optional : + return DnsHostRecordList( + embedded = openapi_client_udm.models.dns_host_record_list__embedded.dns_host_record_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsHostRecordList( + ) + + def testDnsHostRecordList(self): + """Test DnsHostRecordList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_host_record_list_embedded.py b/test/test_dns_host_record_list_embedded.py new file mode 100644 index 0000000..9124f76 --- /dev/null +++ b/test/test_dns_host_record_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_host_record_list_embedded import DnsHostRecordListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsHostRecordListEmbedded(unittest.TestCase): + """DnsHostRecordListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsHostRecordListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_host_record_list_embedded.DnsHostRecordListEmbedded() # noqa: E501 + if include_optional : + return DnsHostRecordListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsHostRecordListEmbedded( + ) + + def testDnsHostRecordListEmbedded(self): + """Test DnsHostRecordListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_host_record_request.py b/test/test_dns_host_record_request.py new file mode 100644 index 0000000..529793b --- /dev/null +++ b/test/test_dns_host_record_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_host_record_request import DnsHostRecordRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsHostRecordRequest(unittest.TestCase): + """DnsHostRecordRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsHostRecordRequest(self): + """Test DnsHostRecordRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_host_record_request_patch.py b/test/test_dns_host_record_request_patch.py new file mode 100644 index 0000000..fd00cb3 --- /dev/null +++ b/test/test_dns_host_record_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_host_record_request_patch import DnsHostRecordRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsHostRecordRequestPatch(unittest.TestCase): + """DnsHostRecordRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsHostRecordRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_host_record_request_patch.DnsHostRecordRequestPatch() # noqa: E501 + if include_optional : + return DnsHostRecordRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsHostRecordRequestPatch( + ) + + def testDnsHostRecordRequestPatch(self): + """Test DnsHostRecordRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_host_record_response_mixin.py b/test/test_dns_host_record_response_mixin.py new file mode 100644 index 0000000..f46b274 --- /dev/null +++ b/test/test_dns_host_record_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_host_record_response_mixin import DnsHostRecordResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsHostRecordResponseMixin(unittest.TestCase): + """DnsHostRecordResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsHostRecordResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_host_record_response_mixin.DnsHostRecordResponseMixin() # noqa: E501 + if include_optional : + return DnsHostRecordResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/host_record/relativeDomainName={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsHostRecordResponseMixin( + ) + + def testDnsHostRecordResponseMixin(self): + """Test DnsHostRecordResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ns_record.py b/test/test_dns_ns_record.py new file mode 100644 index 0000000..06a776f --- /dev/null +++ b/test/test_dns_ns_record.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ns_record import DnsNsRecord # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsNsRecord(unittest.TestCase): + """DnsNsRecord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsNsRecord(self): + """Test DnsNsRecord""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ns_record_api.py b/test/test_dns_ns_record_api.py new file mode 100644 index 0000000..8d6ec04 --- /dev/null +++ b/test/test_dns_ns_record_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_ns_record_api import DnsNsRecordApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsNsRecordApi(unittest.TestCase): + """DnsNsRecordApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_ns_record_api.DnsNsRecordApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_ns_record_object(self): + """Test case for udm_dns_ns_record_object + + Get a representation of the Nameserver record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_ns_record_object_create(self): + """Test case for udm_dns_ns_record_object_create + + Create a new Nameserver record object # noqa: E501 + """ + pass + + def test_udm_dns_ns_record_object_modify(self): + """Test case for udm_dns_ns_record_object_modify + + Modify or move an Nameserver record object # noqa: E501 + """ + pass + + def test_udm_dns_ns_record_object_remove(self): + """Test case for udm_dns_ns_record_object_remove + + Remove a Nameserver records object # noqa: E501 + """ + pass + + def test_udm_dns_ns_record_object_search(self): + """Test case for udm_dns_ns_record_object_search + + Search for Nameserver records objects # noqa: E501 + """ + pass + + def test_udm_dns_ns_record_object_template(self): + """Test case for udm_dns_ns_record_object_template + + Get a template for creating an Nameserver record object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dns_ns_record_object_update(self): + """Test case for udm_dns_ns_record_object_update + + Modify an Nameserver record object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ns_record_list.py b/test/test_dns_ns_record_list.py new file mode 100644 index 0000000..2d054ff --- /dev/null +++ b/test/test_dns_ns_record_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ns_record_list import DnsNsRecordList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsNsRecordList(unittest.TestCase): + """DnsNsRecordList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsNsRecordList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_ns_record_list.DnsNsRecordList() # noqa: E501 + if include_optional : + return DnsNsRecordList( + embedded = openapi_client_udm.models.dns_ns_record_list__embedded.dns_ns_record_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsNsRecordList( + ) + + def testDnsNsRecordList(self): + """Test DnsNsRecordList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ns_record_list_embedded.py b/test/test_dns_ns_record_list_embedded.py new file mode 100644 index 0000000..0f48cf1 --- /dev/null +++ b/test/test_dns_ns_record_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ns_record_list_embedded import DnsNsRecordListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsNsRecordListEmbedded(unittest.TestCase): + """DnsNsRecordListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsNsRecordListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_ns_record_list_embedded.DnsNsRecordListEmbedded() # noqa: E501 + if include_optional : + return DnsNsRecordListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsNsRecordListEmbedded( + ) + + def testDnsNsRecordListEmbedded(self): + """Test DnsNsRecordListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ns_record_request.py b/test/test_dns_ns_record_request.py new file mode 100644 index 0000000..6168029 --- /dev/null +++ b/test/test_dns_ns_record_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ns_record_request import DnsNsRecordRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsNsRecordRequest(unittest.TestCase): + """DnsNsRecordRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsNsRecordRequest(self): + """Test DnsNsRecordRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ns_record_request_patch.py b/test/test_dns_ns_record_request_patch.py new file mode 100644 index 0000000..9b76406 --- /dev/null +++ b/test/test_dns_ns_record_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ns_record_request_patch import DnsNsRecordRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsNsRecordRequestPatch(unittest.TestCase): + """DnsNsRecordRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsNsRecordRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_ns_record_request_patch.DnsNsRecordRequestPatch() # noqa: E501 + if include_optional : + return DnsNsRecordRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsNsRecordRequestPatch( + ) + + def testDnsNsRecordRequestPatch(self): + """Test DnsNsRecordRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ns_record_response_mixin.py b/test/test_dns_ns_record_response_mixin.py new file mode 100644 index 0000000..2dd711d --- /dev/null +++ b/test/test_dns_ns_record_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ns_record_response_mixin import DnsNsRecordResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsNsRecordResponseMixin(unittest.TestCase): + """DnsNsRecordResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsNsRecordResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_ns_record_response_mixin.DnsNsRecordResponseMixin() # noqa: E501 + if include_optional : + return DnsNsRecordResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/ns_record/relativeDomainName={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsNsRecordResponseMixin( + ) + + def testDnsNsRecordResponseMixin(self): + """Test DnsNsRecordResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ptr_record.py b/test/test_dns_ptr_record.py new file mode 100644 index 0000000..93b67bd --- /dev/null +++ b/test/test_dns_ptr_record.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ptr_record import DnsPtrRecord # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsPtrRecord(unittest.TestCase): + """DnsPtrRecord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsPtrRecord(self): + """Test DnsPtrRecord""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ptr_record_api.py b/test/test_dns_ptr_record_api.py new file mode 100644 index 0000000..dffd31b --- /dev/null +++ b/test/test_dns_ptr_record_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_ptr_record_api import DnsPtrRecordApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsPtrRecordApi(unittest.TestCase): + """DnsPtrRecordApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_ptr_record_api.DnsPtrRecordApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_ptr_record_object(self): + """Test case for udm_dns_ptr_record_object + + Get a representation of the Pointer record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_ptr_record_object_create(self): + """Test case for udm_dns_ptr_record_object_create + + Create a new Pointer record object # noqa: E501 + """ + pass + + def test_udm_dns_ptr_record_object_modify(self): + """Test case for udm_dns_ptr_record_object_modify + + Modify or move an Pointer record object # noqa: E501 + """ + pass + + def test_udm_dns_ptr_record_object_remove(self): + """Test case for udm_dns_ptr_record_object_remove + + Remove a Pointer records object # noqa: E501 + """ + pass + + def test_udm_dns_ptr_record_object_search(self): + """Test case for udm_dns_ptr_record_object_search + + Search for Pointer records objects # noqa: E501 + """ + pass + + def test_udm_dns_ptr_record_object_template(self): + """Test case for udm_dns_ptr_record_object_template + + Get a template for creating an Pointer record object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dns_ptr_record_object_update(self): + """Test case for udm_dns_ptr_record_object_update + + Modify an Pointer record object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ptr_record_list.py b/test/test_dns_ptr_record_list.py new file mode 100644 index 0000000..2eb65d8 --- /dev/null +++ b/test/test_dns_ptr_record_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ptr_record_list import DnsPtrRecordList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsPtrRecordList(unittest.TestCase): + """DnsPtrRecordList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsPtrRecordList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_ptr_record_list.DnsPtrRecordList() # noqa: E501 + if include_optional : + return DnsPtrRecordList( + embedded = openapi_client_udm.models.dns_ptr_record_list__embedded.dns_ptr_record_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsPtrRecordList( + ) + + def testDnsPtrRecordList(self): + """Test DnsPtrRecordList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ptr_record_list_embedded.py b/test/test_dns_ptr_record_list_embedded.py new file mode 100644 index 0000000..8c3e181 --- /dev/null +++ b/test/test_dns_ptr_record_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ptr_record_list_embedded import DnsPtrRecordListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsPtrRecordListEmbedded(unittest.TestCase): + """DnsPtrRecordListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsPtrRecordListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_ptr_record_list_embedded.DnsPtrRecordListEmbedded() # noqa: E501 + if include_optional : + return DnsPtrRecordListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsPtrRecordListEmbedded( + ) + + def testDnsPtrRecordListEmbedded(self): + """Test DnsPtrRecordListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ptr_record_request.py b/test/test_dns_ptr_record_request.py new file mode 100644 index 0000000..38b104f --- /dev/null +++ b/test/test_dns_ptr_record_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ptr_record_request import DnsPtrRecordRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsPtrRecordRequest(unittest.TestCase): + """DnsPtrRecordRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsPtrRecordRequest(self): + """Test DnsPtrRecordRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ptr_record_request_patch.py b/test/test_dns_ptr_record_request_patch.py new file mode 100644 index 0000000..b57fead --- /dev/null +++ b/test/test_dns_ptr_record_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ptr_record_request_patch import DnsPtrRecordRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsPtrRecordRequestPatch(unittest.TestCase): + """DnsPtrRecordRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsPtrRecordRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_ptr_record_request_patch.DnsPtrRecordRequestPatch() # noqa: E501 + if include_optional : + return DnsPtrRecordRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsPtrRecordRequestPatch( + ) + + def testDnsPtrRecordRequestPatch(self): + """Test DnsPtrRecordRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_ptr_record_response_mixin.py b/test/test_dns_ptr_record_response_mixin.py new file mode 100644 index 0000000..1bbbfec --- /dev/null +++ b/test/test_dns_ptr_record_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_ptr_record_response_mixin import DnsPtrRecordResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsPtrRecordResponseMixin(unittest.TestCase): + """DnsPtrRecordResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsPtrRecordResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_ptr_record_response_mixin.DnsPtrRecordResponseMixin() # noqa: E501 + if include_optional : + return DnsPtrRecordResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/ptr_record/relativeDomainName={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsPtrRecordResponseMixin( + ) + + def testDnsPtrRecordResponseMixin(self): + """Test DnsPtrRecordResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_reverse_zone.py b/test/test_dns_reverse_zone.py new file mode 100644 index 0000000..2d46dcc --- /dev/null +++ b/test/test_dns_reverse_zone.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_reverse_zone import DnsReverseZone # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsReverseZone(unittest.TestCase): + """DnsReverseZone unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsReverseZone(self): + """Test DnsReverseZone""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_reverse_zone_api.py b/test/test_dns_reverse_zone_api.py new file mode 100644 index 0000000..a1f5f35 --- /dev/null +++ b/test/test_dns_reverse_zone_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_reverse_zone_api import DnsReverseZoneApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsReverseZoneApi(unittest.TestCase): + """DnsReverseZoneApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_reverse_zone_api.DnsReverseZoneApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_reverse_zone_object(self): + """Test case for udm_dns_reverse_zone_object + + Get a representation of the Reverse lookup zone object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_reverse_zone_object_create(self): + """Test case for udm_dns_reverse_zone_object_create + + Create a new Reverse lookup zone object # noqa: E501 + """ + pass + + def test_udm_dns_reverse_zone_object_modify(self): + """Test case for udm_dns_reverse_zone_object_modify + + Modify or move an Reverse lookup zone object # noqa: E501 + """ + pass + + def test_udm_dns_reverse_zone_object_remove(self): + """Test case for udm_dns_reverse_zone_object_remove + + Remove a Reverse lookup zones object # noqa: E501 + """ + pass + + def test_udm_dns_reverse_zone_object_search(self): + """Test case for udm_dns_reverse_zone_object_search + + Search for Reverse lookup zones objects # noqa: E501 + """ + pass + + def test_udm_dns_reverse_zone_object_template(self): + """Test case for udm_dns_reverse_zone_object_template + + Get a template for creating an Reverse lookup zone object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dns_reverse_zone_object_update(self): + """Test case for udm_dns_reverse_zone_object_update + + Modify an Reverse lookup zone object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_reverse_zone_list.py b/test/test_dns_reverse_zone_list.py new file mode 100644 index 0000000..2cbb08c --- /dev/null +++ b/test/test_dns_reverse_zone_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_reverse_zone_list import DnsReverseZoneList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsReverseZoneList(unittest.TestCase): + """DnsReverseZoneList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsReverseZoneList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_reverse_zone_list.DnsReverseZoneList() # noqa: E501 + if include_optional : + return DnsReverseZoneList( + embedded = openapi_client_udm.models.dns_reverse_zone_list__embedded.dns_reverse_zone_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsReverseZoneList( + ) + + def testDnsReverseZoneList(self): + """Test DnsReverseZoneList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_reverse_zone_list_embedded.py b/test/test_dns_reverse_zone_list_embedded.py new file mode 100644 index 0000000..510df15 --- /dev/null +++ b/test/test_dns_reverse_zone_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_reverse_zone_list_embedded import DnsReverseZoneListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsReverseZoneListEmbedded(unittest.TestCase): + """DnsReverseZoneListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsReverseZoneListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_reverse_zone_list_embedded.DnsReverseZoneListEmbedded() # noqa: E501 + if include_optional : + return DnsReverseZoneListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsReverseZoneListEmbedded( + ) + + def testDnsReverseZoneListEmbedded(self): + """Test DnsReverseZoneListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_reverse_zone_policies.py b/test/test_dns_reverse_zone_policies.py new file mode 100644 index 0000000..45bb1ae --- /dev/null +++ b/test/test_dns_reverse_zone_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_reverse_zone_policies import DnsReverseZonePolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsReverseZonePolicies(unittest.TestCase): + """DnsReverseZonePolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsReverseZonePolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_reverse_zone_policies.DnsReverseZonePolicies() # noqa: E501 + if include_optional : + return DnsReverseZonePolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return DnsReverseZonePolicies( + ) + + def testDnsReverseZonePolicies(self): + """Test DnsReverseZonePolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_reverse_zone_request.py b/test/test_dns_reverse_zone_request.py new file mode 100644 index 0000000..a0545e3 --- /dev/null +++ b/test/test_dns_reverse_zone_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_reverse_zone_request import DnsReverseZoneRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsReverseZoneRequest(unittest.TestCase): + """DnsReverseZoneRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsReverseZoneRequest(self): + """Test DnsReverseZoneRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_reverse_zone_request_patch.py b/test/test_dns_reverse_zone_request_patch.py new file mode 100644 index 0000000..71ca3a6 --- /dev/null +++ b/test/test_dns_reverse_zone_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_reverse_zone_request_patch import DnsReverseZoneRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsReverseZoneRequestPatch(unittest.TestCase): + """DnsReverseZoneRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsReverseZoneRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_reverse_zone_request_patch.DnsReverseZoneRequestPatch() # noqa: E501 + if include_optional : + return DnsReverseZoneRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return DnsReverseZoneRequestPatch( + ) + + def testDnsReverseZoneRequestPatch(self): + """Test DnsReverseZoneRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_reverse_zone_response_mixin.py b/test/test_dns_reverse_zone_response_mixin.py new file mode 100644 index 0000000..ae3d155 --- /dev/null +++ b/test/test_dns_reverse_zone_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_reverse_zone_response_mixin import DnsReverseZoneResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsReverseZoneResponseMixin(unittest.TestCase): + """DnsReverseZoneResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsReverseZoneResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_reverse_zone_response_mixin.DnsReverseZoneResponseMixin() # noqa: E501 + if include_optional : + return DnsReverseZoneResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/reverse_zone/zoneName={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsReverseZoneResponseMixin( + ) + + def testDnsReverseZoneResponseMixin(self): + """Test DnsReverseZoneResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_srv_record.py b/test/test_dns_srv_record.py new file mode 100644 index 0000000..59e2f6c --- /dev/null +++ b/test/test_dns_srv_record.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_srv_record import DnsSrvRecord # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsSrvRecord(unittest.TestCase): + """DnsSrvRecord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsSrvRecord(self): + """Test DnsSrvRecord""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_srv_record_api.py b/test/test_dns_srv_record_api.py new file mode 100644 index 0000000..542ca2b --- /dev/null +++ b/test/test_dns_srv_record_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_srv_record_api import DnsSrvRecordApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsSrvRecordApi(unittest.TestCase): + """DnsSrvRecordApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_srv_record_api.DnsSrvRecordApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_srv_record_object(self): + """Test case for udm_dns_srv_record_object + + Get a representation of the Service record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_srv_record_object_create(self): + """Test case for udm_dns_srv_record_object_create + + Create a new Service record object # noqa: E501 + """ + pass + + def test_udm_dns_srv_record_object_modify(self): + """Test case for udm_dns_srv_record_object_modify + + Modify or move an Service record object # noqa: E501 + """ + pass + + def test_udm_dns_srv_record_object_remove(self): + """Test case for udm_dns_srv_record_object_remove + + Remove a Service records object # noqa: E501 + """ + pass + + def test_udm_dns_srv_record_object_search(self): + """Test case for udm_dns_srv_record_object_search + + Search for Service records objects # noqa: E501 + """ + pass + + def test_udm_dns_srv_record_object_template(self): + """Test case for udm_dns_srv_record_object_template + + Get a template for creating an Service record object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dns_srv_record_object_update(self): + """Test case for udm_dns_srv_record_object_update + + Modify an Service record object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_srv_record_list.py b/test/test_dns_srv_record_list.py new file mode 100644 index 0000000..c7a463f --- /dev/null +++ b/test/test_dns_srv_record_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_srv_record_list import DnsSrvRecordList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsSrvRecordList(unittest.TestCase): + """DnsSrvRecordList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsSrvRecordList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_srv_record_list.DnsSrvRecordList() # noqa: E501 + if include_optional : + return DnsSrvRecordList( + embedded = openapi_client_udm.models.dns_srv_record_list__embedded.dns_srv_record_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsSrvRecordList( + ) + + def testDnsSrvRecordList(self): + """Test DnsSrvRecordList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_srv_record_list_embedded.py b/test/test_dns_srv_record_list_embedded.py new file mode 100644 index 0000000..edaae2e --- /dev/null +++ b/test/test_dns_srv_record_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_srv_record_list_embedded import DnsSrvRecordListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsSrvRecordListEmbedded(unittest.TestCase): + """DnsSrvRecordListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsSrvRecordListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_srv_record_list_embedded.DnsSrvRecordListEmbedded() # noqa: E501 + if include_optional : + return DnsSrvRecordListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsSrvRecordListEmbedded( + ) + + def testDnsSrvRecordListEmbedded(self): + """Test DnsSrvRecordListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_srv_record_request.py b/test/test_dns_srv_record_request.py new file mode 100644 index 0000000..d19e2e1 --- /dev/null +++ b/test/test_dns_srv_record_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_srv_record_request import DnsSrvRecordRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsSrvRecordRequest(unittest.TestCase): + """DnsSrvRecordRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsSrvRecordRequest(self): + """Test DnsSrvRecordRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_srv_record_request_patch.py b/test/test_dns_srv_record_request_patch.py new file mode 100644 index 0000000..2e3e142 --- /dev/null +++ b/test/test_dns_srv_record_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_srv_record_request_patch import DnsSrvRecordRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsSrvRecordRequestPatch(unittest.TestCase): + """DnsSrvRecordRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsSrvRecordRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_srv_record_request_patch.DnsSrvRecordRequestPatch() # noqa: E501 + if include_optional : + return DnsSrvRecordRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsSrvRecordRequestPatch( + ) + + def testDnsSrvRecordRequestPatch(self): + """Test DnsSrvRecordRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_srv_record_response_mixin.py b/test/test_dns_srv_record_response_mixin.py new file mode 100644 index 0000000..a987d6b --- /dev/null +++ b/test/test_dns_srv_record_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_srv_record_response_mixin import DnsSrvRecordResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsSrvRecordResponseMixin(unittest.TestCase): + """DnsSrvRecordResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsSrvRecordResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_srv_record_response_mixin.DnsSrvRecordResponseMixin() # noqa: E501 + if include_optional : + return DnsSrvRecordResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/srv_record/relativeDomainName={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsSrvRecordResponseMixin( + ) + + def testDnsSrvRecordResponseMixin(self): + """Test DnsSrvRecordResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_txt_record.py b/test/test_dns_txt_record.py new file mode 100644 index 0000000..edbb819 --- /dev/null +++ b/test/test_dns_txt_record.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_txt_record import DnsTxtRecord # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsTxtRecord(unittest.TestCase): + """DnsTxtRecord unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsTxtRecord(self): + """Test DnsTxtRecord""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_txt_record_api.py b/test/test_dns_txt_record_api.py new file mode 100644 index 0000000..fba2504 --- /dev/null +++ b/test/test_dns_txt_record_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.dns_txt_record_api import DnsTxtRecordApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestDnsTxtRecordApi(unittest.TestCase): + """DnsTxtRecordApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.dns_txt_record_api.DnsTxtRecordApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_dns_txt_record_object(self): + """Test case for udm_dns_txt_record_object + + Get a representation of the TXT record object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_dns_txt_record_object_create(self): + """Test case for udm_dns_txt_record_object_create + + Create a new TXT record object # noqa: E501 + """ + pass + + def test_udm_dns_txt_record_object_modify(self): + """Test case for udm_dns_txt_record_object_modify + + Modify or move an TXT record object # noqa: E501 + """ + pass + + def test_udm_dns_txt_record_object_remove(self): + """Test case for udm_dns_txt_record_object_remove + + Remove a TXT record object # noqa: E501 + """ + pass + + def test_udm_dns_txt_record_object_search(self): + """Test case for udm_dns_txt_record_object_search + + Search for TXT record objects # noqa: E501 + """ + pass + + def test_udm_dns_txt_record_object_template(self): + """Test case for udm_dns_txt_record_object_template + + Get a template for creating an TXT record object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_dns_txt_record_object_update(self): + """Test case for udm_dns_txt_record_object_update + + Modify an TXT record object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_txt_record_list.py b/test/test_dns_txt_record_list.py new file mode 100644 index 0000000..a4d8f3e --- /dev/null +++ b/test/test_dns_txt_record_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_txt_record_list import DnsTxtRecordList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsTxtRecordList(unittest.TestCase): + """DnsTxtRecordList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsTxtRecordList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_txt_record_list.DnsTxtRecordList() # noqa: E501 + if include_optional : + return DnsTxtRecordList( + embedded = openapi_client_udm.models.dns_txt_record_list__embedded.dns_txt_record_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return DnsTxtRecordList( + ) + + def testDnsTxtRecordList(self): + """Test DnsTxtRecordList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_txt_record_list_embedded.py b/test/test_dns_txt_record_list_embedded.py new file mode 100644 index 0000000..14aa825 --- /dev/null +++ b/test/test_dns_txt_record_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_txt_record_list_embedded import DnsTxtRecordListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsTxtRecordListEmbedded(unittest.TestCase): + """DnsTxtRecordListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsTxtRecordListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_txt_record_list_embedded.DnsTxtRecordListEmbedded() # noqa: E501 + if include_optional : + return DnsTxtRecordListEmbedded( + udmobject = [ + null + ] + ) + else : + return DnsTxtRecordListEmbedded( + ) + + def testDnsTxtRecordListEmbedded(self): + """Test DnsTxtRecordListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_txt_record_request.py b/test/test_dns_txt_record_request.py new file mode 100644 index 0000000..11f1627 --- /dev/null +++ b/test/test_dns_txt_record_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_txt_record_request import DnsTxtRecordRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsTxtRecordRequest(unittest.TestCase): + """DnsTxtRecordRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDnsTxtRecordRequest(self): + """Test DnsTxtRecordRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_txt_record_request_patch.py b/test/test_dns_txt_record_request_patch.py new file mode 100644 index 0000000..6fd38df --- /dev/null +++ b/test/test_dns_txt_record_request_patch.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_txt_record_request_patch import DnsTxtRecordRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsTxtRecordRequestPatch(unittest.TestCase): + """DnsTxtRecordRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsTxtRecordRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_txt_record_request_patch.DnsTxtRecordRequestPatch() # noqa: E501 + if include_optional : + return DnsTxtRecordRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { }, + superordinate = 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsTxtRecordRequestPatch( + ) + + def testDnsTxtRecordRequestPatch(self): + """Test DnsTxtRecordRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dns_txt_record_response_mixin.py b/test/test_dns_txt_record_response_mixin.py new file mode 100644 index 0000000..942bd60 --- /dev/null +++ b/test/test_dns_txt_record_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.dns_txt_record_response_mixin import DnsTxtRecordResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestDnsTxtRecordResponseMixin(unittest.TestCase): + """DnsTxtRecordResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test DnsTxtRecordResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.dns_txt_record_response_mixin.DnsTxtRecordResponseMixin() # noqa: E501 + if include_optional : + return DnsTxtRecordResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/dns/txt_record/relativeDomainName={value},cn=dns,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return DnsTxtRecordResponseMixin( + ) + + def testDnsTxtRecordResponseMixin(self): + """Test DnsTxtRecordResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_embedded_error.py b/test/test_embedded_error.py new file mode 100644 index 0000000..807aee3 --- /dev/null +++ b/test/test_embedded_error.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.embedded_error import EmbeddedError # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestEmbeddedError(unittest.TestCase): + """EmbeddedError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test EmbeddedError + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.embedded_error.EmbeddedError() # noqa: E501 + if include_optional : + return EmbeddedError( + embedded = { }, + code = 400, + message = '', + title = '', + traceback = '' + ) + else : + return EmbeddedError( + ) + + def testEmbeddedError(self): + """Test EmbeddedError""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group.py b/test/test_groups_group.py new file mode 100644 index 0000000..3400355 --- /dev/null +++ b/test/test_groups_group.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.groups_group import GroupsGroup # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestGroupsGroup(unittest.TestCase): + """GroupsGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupsGroup(self): + """Test GroupsGroup""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group_api.py b/test/test_groups_group_api.py new file mode 100644 index 0000000..f6b1f3e --- /dev/null +++ b/test/test_groups_group_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.groups_group_api import GroupsGroupApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestGroupsGroupApi(unittest.TestCase): + """GroupsGroupApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.groups_group_api.GroupsGroupApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_groups_group_object(self): + """Test case for udm_groups_group_object + + Get a representation of the Group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_groups_group_object_create(self): + """Test case for udm_groups_group_object_create + + Create a new Group object # noqa: E501 + """ + pass + + def test_udm_groups_group_object_modify(self): + """Test case for udm_groups_group_object_modify + + Modify or move an Group object # noqa: E501 + """ + pass + + def test_udm_groups_group_object_remove(self): + """Test case for udm_groups_group_object_remove + + Remove a Groups object # noqa: E501 + """ + pass + + def test_udm_groups_group_object_search(self): + """Test case for udm_groups_group_object_search + + Search for Groups objects # noqa: E501 + """ + pass + + def test_udm_groups_group_object_template(self): + """Test case for udm_groups_group_object_template + + Get a template for creating an Group object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_groups_group_object_update(self): + """Test case for udm_groups_group_object_update + + Modify an Group object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group_list.py b/test/test_groups_group_list.py new file mode 100644 index 0000000..5be15ad --- /dev/null +++ b/test/test_groups_group_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.groups_group_list import GroupsGroupList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestGroupsGroupList(unittest.TestCase): + """GroupsGroupList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GroupsGroupList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.groups_group_list.GroupsGroupList() # noqa: E501 + if include_optional : + return GroupsGroupList( + embedded = openapi_client_udm.models.groups_group_list__embedded.groups_group_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return GroupsGroupList( + ) + + def testGroupsGroupList(self): + """Test GroupsGroupList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group_list_embedded.py b/test/test_groups_group_list_embedded.py new file mode 100644 index 0000000..debbbd7 --- /dev/null +++ b/test/test_groups_group_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.groups_group_list_embedded import GroupsGroupListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestGroupsGroupListEmbedded(unittest.TestCase): + """GroupsGroupListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GroupsGroupListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.groups_group_list_embedded.GroupsGroupListEmbedded() # noqa: E501 + if include_optional : + return GroupsGroupListEmbedded( + udmobject = [ + null + ] + ) + else : + return GroupsGroupListEmbedded( + ) + + def testGroupsGroupListEmbedded(self): + """Test GroupsGroupListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group_options.py b/test/test_groups_group_options.py new file mode 100644 index 0000000..fe2c855 --- /dev/null +++ b/test/test_groups_group_options.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.groups_group_options import GroupsGroupOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestGroupsGroupOptions(unittest.TestCase): + """GroupsGroupOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GroupsGroupOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.groups_group_options.GroupsGroupOptions() # noqa: E501 + if include_optional : + return GroupsGroupOptions( + posix = True, + samba = True + ) + else : + return GroupsGroupOptions( + ) + + def testGroupsGroupOptions(self): + """Test GroupsGroupOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group_policies.py b/test/test_groups_group_policies.py new file mode 100644 index 0000000..d13c0b9 --- /dev/null +++ b/test/test_groups_group_policies.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.groups_group_policies import GroupsGroupPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestGroupsGroupPolicies(unittest.TestCase): + """GroupsGroupPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GroupsGroupPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.groups_group_policies.GroupsGroupPolicies() # noqa: E501 + if include_optional : + return GroupsGroupPolicies( + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return GroupsGroupPolicies( + ) + + def testGroupsGroupPolicies(self): + """Test GroupsGroupPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group_request.py b/test/test_groups_group_request.py new file mode 100644 index 0000000..9481183 --- /dev/null +++ b/test/test_groups_group_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.groups_group_request import GroupsGroupRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestGroupsGroupRequest(unittest.TestCase): + """GroupsGroupRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGroupsGroupRequest(self): + """Test GroupsGroupRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group_request_patch.py b/test/test_groups_group_request_patch.py new file mode 100644 index 0000000..b0d0387 --- /dev/null +++ b/test/test_groups_group_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.groups_group_request_patch import GroupsGroupRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestGroupsGroupRequestPatch(unittest.TestCase): + """GroupsGroupRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GroupsGroupRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.groups_group_request_patch.GroupsGroupRequestPatch() # noqa: E501 + if include_optional : + return GroupsGroupRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return GroupsGroupRequestPatch( + ) + + def testGroupsGroupRequestPatch(self): + """Test GroupsGroupRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_groups_group_response_mixin.py b/test/test_groups_group_response_mixin.py new file mode 100644 index 0000000..c62f6f4 --- /dev/null +++ b/test/test_groups_group_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.groups_group_response_mixin import GroupsGroupResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestGroupsGroupResponseMixin(unittest.TestCase): + """GroupsGroupResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GroupsGroupResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.groups_group_response_mixin.GroupsGroupResponseMixin() # noqa: E501 + if include_optional : + return GroupsGroupResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/groups/group/cn={value},cn=groups,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return GroupsGroupResponseMixin( + ) + + def testGroupsGroupResponseMixin(self): + """Test GroupsGroupResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response201.py b/test/test_inline_response201.py new file mode 100644 index 0000000..bd31fa2 --- /dev/null +++ b/test/test_inline_response201.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.inline_response201 import InlineResponse201 # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestInlineResponse201(unittest.TestCase): + """InlineResponse201 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test InlineResponse201 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.inline_response201.InlineResponse201() # noqa: E501 + if include_optional : + return InlineResponse201( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435' + ) + else : + return InlineResponse201( + ) + + def testInlineResponse201(self): + """Test InlineResponse201""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kerberos_kdcentry.py b/test/test_kerberos_kdcentry.py new file mode 100644 index 0000000..bc1678b --- /dev/null +++ b/test/test_kerberos_kdcentry.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.kerberos_kdcentry import KerberosKdcentry # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestKerberosKdcentry(unittest.TestCase): + """KerberosKdcentry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKerberosKdcentry(self): + """Test KerberosKdcentry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kerberos_kdcentry_api.py b/test/test_kerberos_kdcentry_api.py new file mode 100644 index 0000000..8e898b9 --- /dev/null +++ b/test/test_kerberos_kdcentry_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.kerberos_kdcentry_api import KerberosKdcentryApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestKerberosKdcentryApi(unittest.TestCase): + """KerberosKdcentryApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.kerberos_kdcentry_api.KerberosKdcentryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_kerberos_kdcentry_object(self): + """Test case for udm_kerberos_kdcentry_object + + Get a representation of the KDC Entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_kerberos_kdcentry_object_create(self): + """Test case for udm_kerberos_kdcentry_object_create + + Create a new KDC Entry object # noqa: E501 + """ + pass + + def test_udm_kerberos_kdcentry_object_modify(self): + """Test case for udm_kerberos_kdcentry_object_modify + + Modify or move an KDC Entry object # noqa: E501 + """ + pass + + def test_udm_kerberos_kdcentry_object_remove(self): + """Test case for udm_kerberos_kdcentry_object_remove + + Remove a KDC Entries object # noqa: E501 + """ + pass + + def test_udm_kerberos_kdcentry_object_search(self): + """Test case for udm_kerberos_kdcentry_object_search + + Search for KDC Entries objects # noqa: E501 + """ + pass + + def test_udm_kerberos_kdcentry_object_template(self): + """Test case for udm_kerberos_kdcentry_object_template + + Get a template for creating an KDC Entry object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_kerberos_kdcentry_object_update(self): + """Test case for udm_kerberos_kdcentry_object_update + + Modify an KDC Entry object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kerberos_kdcentry_list.py b/test/test_kerberos_kdcentry_list.py new file mode 100644 index 0000000..2629de9 --- /dev/null +++ b/test/test_kerberos_kdcentry_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.kerberos_kdcentry_list import KerberosKdcentryList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestKerberosKdcentryList(unittest.TestCase): + """KerberosKdcentryList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test KerberosKdcentryList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.kerberos_kdcentry_list.KerberosKdcentryList() # noqa: E501 + if include_optional : + return KerberosKdcentryList( + embedded = openapi_client_udm.models.kerberos_kdcentry_list__embedded.kerberos_kdcentry_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return KerberosKdcentryList( + ) + + def testKerberosKdcentryList(self): + """Test KerberosKdcentryList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kerberos_kdcentry_list_embedded.py b/test/test_kerberos_kdcentry_list_embedded.py new file mode 100644 index 0000000..9d438d1 --- /dev/null +++ b/test/test_kerberos_kdcentry_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.kerberos_kdcentry_list_embedded import KerberosKdcentryListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestKerberosKdcentryListEmbedded(unittest.TestCase): + """KerberosKdcentryListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test KerberosKdcentryListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.kerberos_kdcentry_list_embedded.KerberosKdcentryListEmbedded() # noqa: E501 + if include_optional : + return KerberosKdcentryListEmbedded( + udmobject = [ + null + ] + ) + else : + return KerberosKdcentryListEmbedded( + ) + + def testKerberosKdcentryListEmbedded(self): + """Test KerberosKdcentryListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kerberos_kdcentry_request.py b/test/test_kerberos_kdcentry_request.py new file mode 100644 index 0000000..2e09d27 --- /dev/null +++ b/test/test_kerberos_kdcentry_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.kerberos_kdcentry_request import KerberosKdcentryRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestKerberosKdcentryRequest(unittest.TestCase): + """KerberosKdcentryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKerberosKdcentryRequest(self): + """Test KerberosKdcentryRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kerberos_kdcentry_request_patch.py b/test/test_kerberos_kdcentry_request_patch.py new file mode 100644 index 0000000..50e1616 --- /dev/null +++ b/test/test_kerberos_kdcentry_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.kerberos_kdcentry_request_patch import KerberosKdcentryRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestKerberosKdcentryRequestPatch(unittest.TestCase): + """KerberosKdcentryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test KerberosKdcentryRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.kerberos_kdcentry_request_patch.KerberosKdcentryRequestPatch() # noqa: E501 + if include_optional : + return KerberosKdcentryRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return KerberosKdcentryRequestPatch( + ) + + def testKerberosKdcentryRequestPatch(self): + """Test KerberosKdcentryRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kerberos_kdcentry_response_mixin.py b/test/test_kerberos_kdcentry_response_mixin.py new file mode 100644 index 0000000..0ac6678 --- /dev/null +++ b/test/test_kerberos_kdcentry_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.kerberos_kdcentry_response_mixin import KerberosKdcentryResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestKerberosKdcentryResponseMixin(unittest.TestCase): + """KerberosKdcentryResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test KerberosKdcentryResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.kerberos_kdcentry_response_mixin.KerberosKdcentryResponseMixin() # noqa: E501 + if include_optional : + return KerberosKdcentryResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/kerberos/kdcentry/uid={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return KerberosKdcentryResponseMixin( + ) + + def testKerberosKdcentryResponseMixin(self): + """Test KerberosKdcentryResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_links.py b/test/test_links.py new file mode 100644 index 0000000..24deac7 --- /dev/null +++ b/test/test_links.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.links import Links # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestLinks(unittest.TestCase): + """Links unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test Links + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.links.Links() # noqa: E501 + if include_optional : + return Links( + _self = [ + { } + ] + ) + else : + return Links( + ) + + def testLinks(self): + """Test Links""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_domain.py b/test/test_mail_domain.py new file mode 100644 index 0000000..6bf39a6 --- /dev/null +++ b/test/test_mail_domain.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_domain import MailDomain # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailDomain(unittest.TestCase): + """MailDomain unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMailDomain(self): + """Test MailDomain""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_domain_api.py b/test/test_mail_domain_api.py new file mode 100644 index 0000000..df91e95 --- /dev/null +++ b/test/test_mail_domain_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.mail_domain_api import MailDomainApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMailDomainApi(unittest.TestCase): + """MailDomainApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.mail_domain_api.MailDomainApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_mail_domain_object(self): + """Test case for udm_mail_domain_object + + Get a representation of the Mail domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_mail_domain_object_create(self): + """Test case for udm_mail_domain_object_create + + Create a new Mail domain object # noqa: E501 + """ + pass + + def test_udm_mail_domain_object_modify(self): + """Test case for udm_mail_domain_object_modify + + Modify or move an Mail domain object # noqa: E501 + """ + pass + + def test_udm_mail_domain_object_remove(self): + """Test case for udm_mail_domain_object_remove + + Remove a Mail domains object # noqa: E501 + """ + pass + + def test_udm_mail_domain_object_search(self): + """Test case for udm_mail_domain_object_search + + Search for Mail domains objects # noqa: E501 + """ + pass + + def test_udm_mail_domain_object_template(self): + """Test case for udm_mail_domain_object_template + + Get a template for creating an Mail domain object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_mail_domain_object_update(self): + """Test case for udm_mail_domain_object_update + + Modify an Mail domain object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_domain_list.py b/test/test_mail_domain_list.py new file mode 100644 index 0000000..a1cd9ac --- /dev/null +++ b/test/test_mail_domain_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_domain_list import MailDomainList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailDomainList(unittest.TestCase): + """MailDomainList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailDomainList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_domain_list.MailDomainList() # noqa: E501 + if include_optional : + return MailDomainList( + embedded = openapi_client_udm.models.mail_domain_list__embedded.mail_domain_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MailDomainList( + ) + + def testMailDomainList(self): + """Test MailDomainList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_domain_list_embedded.py b/test/test_mail_domain_list_embedded.py new file mode 100644 index 0000000..2206972 --- /dev/null +++ b/test/test_mail_domain_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_domain_list_embedded import MailDomainListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailDomainListEmbedded(unittest.TestCase): + """MailDomainListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailDomainListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_domain_list_embedded.MailDomainListEmbedded() # noqa: E501 + if include_optional : + return MailDomainListEmbedded( + udmobject = [ + null + ] + ) + else : + return MailDomainListEmbedded( + ) + + def testMailDomainListEmbedded(self): + """Test MailDomainListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_domain_request.py b/test/test_mail_domain_request.py new file mode 100644 index 0000000..6402931 --- /dev/null +++ b/test/test_mail_domain_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_domain_request import MailDomainRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailDomainRequest(unittest.TestCase): + """MailDomainRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMailDomainRequest(self): + """Test MailDomainRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_domain_request_patch.py b/test/test_mail_domain_request_patch.py new file mode 100644 index 0000000..a5e211b --- /dev/null +++ b/test/test_mail_domain_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_domain_request_patch import MailDomainRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailDomainRequestPatch(unittest.TestCase): + """MailDomainRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailDomainRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_domain_request_patch.MailDomainRequestPatch() # noqa: E501 + if include_optional : + return MailDomainRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MailDomainRequestPatch( + ) + + def testMailDomainRequestPatch(self): + """Test MailDomainRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_domain_response_mixin.py b/test/test_mail_domain_response_mixin.py new file mode 100644 index 0000000..fce823e --- /dev/null +++ b/test/test_mail_domain_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_domain_response_mixin import MailDomainResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailDomainResponseMixin(unittest.TestCase): + """MailDomainResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailDomainResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_domain_response_mixin.MailDomainResponseMixin() # noqa: E501 + if include_optional : + return MailDomainResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/mail/domain/cn={value},cn=domain,cn=mail,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MailDomainResponseMixin( + ) + + def testMailDomainResponseMixin(self): + """Test MailDomainResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_folder.py b/test/test_mail_folder.py new file mode 100644 index 0000000..2455de3 --- /dev/null +++ b/test/test_mail_folder.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_folder import MailFolder # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailFolder(unittest.TestCase): + """MailFolder unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMailFolder(self): + """Test MailFolder""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_folder_api.py b/test/test_mail_folder_api.py new file mode 100644 index 0000000..d003695 --- /dev/null +++ b/test/test_mail_folder_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.mail_folder_api import MailFolderApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMailFolderApi(unittest.TestCase): + """MailFolderApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.mail_folder_api.MailFolderApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_mail_folder_object(self): + """Test case for udm_mail_folder_object + + Get a representation of the IMAP mail folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_mail_folder_object_create(self): + """Test case for udm_mail_folder_object_create + + Create a new IMAP mail folder object # noqa: E501 + """ + pass + + def test_udm_mail_folder_object_modify(self): + """Test case for udm_mail_folder_object_modify + + Modify or move an IMAP mail folder object # noqa: E501 + """ + pass + + def test_udm_mail_folder_object_remove(self): + """Test case for udm_mail_folder_object_remove + + Remove a IMAP mail folders object # noqa: E501 + """ + pass + + def test_udm_mail_folder_object_search(self): + """Test case for udm_mail_folder_object_search + + Search for IMAP mail folders objects # noqa: E501 + """ + pass + + def test_udm_mail_folder_object_template(self): + """Test case for udm_mail_folder_object_template + + Get a template for creating an IMAP mail folder object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_mail_folder_object_update(self): + """Test case for udm_mail_folder_object_update + + Modify an IMAP mail folder object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_folder_list.py b/test/test_mail_folder_list.py new file mode 100644 index 0000000..5358783 --- /dev/null +++ b/test/test_mail_folder_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_folder_list import MailFolderList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailFolderList(unittest.TestCase): + """MailFolderList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailFolderList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_folder_list.MailFolderList() # noqa: E501 + if include_optional : + return MailFolderList( + embedded = openapi_client_udm.models.mail_folder_list__embedded.mail_folder_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MailFolderList( + ) + + def testMailFolderList(self): + """Test MailFolderList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_folder_list_embedded.py b/test/test_mail_folder_list_embedded.py new file mode 100644 index 0000000..22bb964 --- /dev/null +++ b/test/test_mail_folder_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_folder_list_embedded import MailFolderListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailFolderListEmbedded(unittest.TestCase): + """MailFolderListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailFolderListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_folder_list_embedded.MailFolderListEmbedded() # noqa: E501 + if include_optional : + return MailFolderListEmbedded( + udmobject = [ + null + ] + ) + else : + return MailFolderListEmbedded( + ) + + def testMailFolderListEmbedded(self): + """Test MailFolderListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_folder_request.py b/test/test_mail_folder_request.py new file mode 100644 index 0000000..e703aa0 --- /dev/null +++ b/test/test_mail_folder_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_folder_request import MailFolderRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailFolderRequest(unittest.TestCase): + """MailFolderRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMailFolderRequest(self): + """Test MailFolderRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_folder_request_patch.py b/test/test_mail_folder_request_patch.py new file mode 100644 index 0000000..04104b0 --- /dev/null +++ b/test/test_mail_folder_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_folder_request_patch import MailFolderRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailFolderRequestPatch(unittest.TestCase): + """MailFolderRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailFolderRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_folder_request_patch.MailFolderRequestPatch() # noqa: E501 + if include_optional : + return MailFolderRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MailFolderRequestPatch( + ) + + def testMailFolderRequestPatch(self): + """Test MailFolderRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_folder_response_mixin.py b/test/test_mail_folder_response_mixin.py new file mode 100644 index 0000000..6f3df1d --- /dev/null +++ b/test/test_mail_folder_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_folder_response_mixin import MailFolderResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailFolderResponseMixin(unittest.TestCase): + """MailFolderResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailFolderResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_folder_response_mixin.MailFolderResponseMixin() # noqa: E501 + if include_optional : + return MailFolderResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/mail/folder/cn={value},cn=domain,cn=mail,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MailFolderResponseMixin( + ) + + def testMailFolderResponseMixin(self): + """Test MailFolderResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_lists.py b/test/test_mail_lists.py new file mode 100644 index 0000000..9beee21 --- /dev/null +++ b/test/test_mail_lists.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_lists import MailLists # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailLists(unittest.TestCase): + """MailLists unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMailLists(self): + """Test MailLists""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_lists_api.py b/test/test_mail_lists_api.py new file mode 100644 index 0000000..bd9b5fe --- /dev/null +++ b/test/test_mail_lists_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.mail_lists_api import MailListsApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMailListsApi(unittest.TestCase): + """MailListsApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.mail_lists_api.MailListsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_mail_lists_object(self): + """Test case for udm_mail_lists_object + + Get a representation of the Mailing list object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_mail_lists_object_create(self): + """Test case for udm_mail_lists_object_create + + Create a new Mailing list object # noqa: E501 + """ + pass + + def test_udm_mail_lists_object_modify(self): + """Test case for udm_mail_lists_object_modify + + Modify or move an Mailing list object # noqa: E501 + """ + pass + + def test_udm_mail_lists_object_remove(self): + """Test case for udm_mail_lists_object_remove + + Remove a Mailing lists object # noqa: E501 + """ + pass + + def test_udm_mail_lists_object_search(self): + """Test case for udm_mail_lists_object_search + + Search for Mailing lists objects # noqa: E501 + """ + pass + + def test_udm_mail_lists_object_template(self): + """Test case for udm_mail_lists_object_template + + Get a template for creating an Mailing list object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_mail_lists_object_update(self): + """Test case for udm_mail_lists_object_update + + Modify an Mailing list object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_lists_list.py b/test/test_mail_lists_list.py new file mode 100644 index 0000000..7f1fb31 --- /dev/null +++ b/test/test_mail_lists_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_lists_list import MailListsList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailListsList(unittest.TestCase): + """MailListsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailListsList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_lists_list.MailListsList() # noqa: E501 + if include_optional : + return MailListsList( + embedded = openapi_client_udm.models.mail_lists_list__embedded.mail_lists_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MailListsList( + ) + + def testMailListsList(self): + """Test MailListsList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_lists_list_embedded.py b/test/test_mail_lists_list_embedded.py new file mode 100644 index 0000000..fabec74 --- /dev/null +++ b/test/test_mail_lists_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_lists_list_embedded import MailListsListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailListsListEmbedded(unittest.TestCase): + """MailListsListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailListsListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_lists_list_embedded.MailListsListEmbedded() # noqa: E501 + if include_optional : + return MailListsListEmbedded( + udmobject = [ + null + ] + ) + else : + return MailListsListEmbedded( + ) + + def testMailListsListEmbedded(self): + """Test MailListsListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_lists_request.py b/test/test_mail_lists_request.py new file mode 100644 index 0000000..3153169 --- /dev/null +++ b/test/test_mail_lists_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_lists_request import MailListsRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailListsRequest(unittest.TestCase): + """MailListsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMailListsRequest(self): + """Test MailListsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_lists_request_patch.py b/test/test_mail_lists_request_patch.py new file mode 100644 index 0000000..007dcc9 --- /dev/null +++ b/test/test_mail_lists_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_lists_request_patch import MailListsRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailListsRequestPatch(unittest.TestCase): + """MailListsRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailListsRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_lists_request_patch.MailListsRequestPatch() # noqa: E501 + if include_optional : + return MailListsRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MailListsRequestPatch( + ) + + def testMailListsRequestPatch(self): + """Test MailListsRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_lists_response_mixin.py b/test/test_mail_lists_response_mixin.py new file mode 100644 index 0000000..ea7143b --- /dev/null +++ b/test/test_mail_lists_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_lists_response_mixin import MailListsResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailListsResponseMixin(unittest.TestCase): + """MailListsResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailListsResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_lists_response_mixin.MailListsResponseMixin() # noqa: E501 + if include_optional : + return MailListsResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/mail/lists/cn={value},cn=domain,cn=mail,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MailListsResponseMixin( + ) + + def testMailListsResponseMixin(self): + """Test MailListsResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_mail.py b/test/test_mail_mail.py new file mode 100644 index 0000000..709a560 --- /dev/null +++ b/test/test_mail_mail.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_mail import MailMail # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailMail(unittest.TestCase): + """MailMail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMailMail(self): + """Test MailMail""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_mail_api.py b/test/test_mail_mail_api.py new file mode 100644 index 0000000..d2579cf --- /dev/null +++ b/test/test_mail_mail_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.mail_mail_api import MailMailApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMailMailApi(unittest.TestCase): + """MailMailApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.mail_mail_api.MailMailApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_mail_mail_object(self): + """Test case for udm_mail_mail_object + + Get a representation of the Mail object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_mail_mail_object_search(self): + """Test case for udm_mail_mail_object_search + + Search for Mail objects objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_mail_list.py b/test/test_mail_mail_list.py new file mode 100644 index 0000000..ed92d48 --- /dev/null +++ b/test/test_mail_mail_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_mail_list import MailMailList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailMailList(unittest.TestCase): + """MailMailList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailMailList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_mail_list.MailMailList() # noqa: E501 + if include_optional : + return MailMailList( + embedded = openapi_client_udm.models.mail_mail_list__embedded.mail_mail_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MailMailList( + ) + + def testMailMailList(self): + """Test MailMailList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_mail_list_embedded.py b/test/test_mail_mail_list_embedded.py new file mode 100644 index 0000000..71dce60 --- /dev/null +++ b/test/test_mail_mail_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_mail_list_embedded import MailMailListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailMailListEmbedded(unittest.TestCase): + """MailMailListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailMailListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_mail_list_embedded.MailMailListEmbedded() # noqa: E501 + if include_optional : + return MailMailListEmbedded( + udmobject = [ + null + ] + ) + else : + return MailMailListEmbedded( + ) + + def testMailMailListEmbedded(self): + """Test MailMailListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_mail_request.py b/test/test_mail_mail_request.py new file mode 100644 index 0000000..7e39fa0 --- /dev/null +++ b/test/test_mail_mail_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_mail_request import MailMailRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailMailRequest(unittest.TestCase): + """MailMailRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMailMailRequest(self): + """Test MailMailRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_mail_request_patch.py b/test/test_mail_mail_request_patch.py new file mode 100644 index 0000000..09ceb45 --- /dev/null +++ b/test/test_mail_mail_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_mail_request_patch import MailMailRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailMailRequestPatch(unittest.TestCase): + """MailMailRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailMailRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_mail_request_patch.MailMailRequestPatch() # noqa: E501 + if include_optional : + return MailMailRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MailMailRequestPatch( + ) + + def testMailMailRequestPatch(self): + """Test MailMailRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mail_mail_response_mixin.py b/test/test_mail_mail_response_mixin.py new file mode 100644 index 0000000..6fc94ca --- /dev/null +++ b/test/test_mail_mail_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.mail_mail_response_mixin import MailMailResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMailMailResponseMixin(unittest.TestCase): + """MailMailResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MailMailResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.mail_mail_response_mixin.MailMailResponseMixin() # noqa: E501 + if include_optional : + return MailMailResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/mail/mail/cn={value},cn=domain,cn=mail,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MailMailResponseMixin( + ) + + def testMailMailResponseMixin(self): + """Test MailMailResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_alert.py b/test/test_monitoring_alert.py new file mode 100644 index 0000000..f374dc2 --- /dev/null +++ b/test/test_monitoring_alert.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.monitoring_alert import MonitoringAlert # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMonitoringAlert(unittest.TestCase): + """MonitoringAlert unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMonitoringAlert(self): + """Test MonitoringAlert""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_alert_api.py b/test/test_monitoring_alert_api.py new file mode 100644 index 0000000..47bbf43 --- /dev/null +++ b/test/test_monitoring_alert_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.monitoring_alert_api import MonitoringAlertApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMonitoringAlertApi(unittest.TestCase): + """MonitoringAlertApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.monitoring_alert_api.MonitoringAlertApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_monitoring_alert_object(self): + """Test case for udm_monitoring_alert_object + + Get a representation of the Alert object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_monitoring_alert_object_create(self): + """Test case for udm_monitoring_alert_object_create + + Create a new Alert object # noqa: E501 + """ + pass + + def test_udm_monitoring_alert_object_modify(self): + """Test case for udm_monitoring_alert_object_modify + + Modify or move an Alert object # noqa: E501 + """ + pass + + def test_udm_monitoring_alert_object_remove(self): + """Test case for udm_monitoring_alert_object_remove + + Remove a Alerts object # noqa: E501 + """ + pass + + def test_udm_monitoring_alert_object_search(self): + """Test case for udm_monitoring_alert_object_search + + Search for Alerts objects # noqa: E501 + """ + pass + + def test_udm_monitoring_alert_object_template(self): + """Test case for udm_monitoring_alert_object_template + + Get a template for creating an Alert object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_monitoring_alert_object_update(self): + """Test case for udm_monitoring_alert_object_update + + Modify an Alert object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_alert_list.py b/test/test_monitoring_alert_list.py new file mode 100644 index 0000000..27f3ad0 --- /dev/null +++ b/test/test_monitoring_alert_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.monitoring_alert_list import MonitoringAlertList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMonitoringAlertList(unittest.TestCase): + """MonitoringAlertList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringAlertList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.monitoring_alert_list.MonitoringAlertList() # noqa: E501 + if include_optional : + return MonitoringAlertList( + embedded = openapi_client_udm.models.monitoring_alert_list__embedded.monitoring_alert_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MonitoringAlertList( + ) + + def testMonitoringAlertList(self): + """Test MonitoringAlertList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_alert_list_embedded.py b/test/test_monitoring_alert_list_embedded.py new file mode 100644 index 0000000..ab833ae --- /dev/null +++ b/test/test_monitoring_alert_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.monitoring_alert_list_embedded import MonitoringAlertListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMonitoringAlertListEmbedded(unittest.TestCase): + """MonitoringAlertListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringAlertListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.monitoring_alert_list_embedded.MonitoringAlertListEmbedded() # noqa: E501 + if include_optional : + return MonitoringAlertListEmbedded( + udmobject = [ + null + ] + ) + else : + return MonitoringAlertListEmbedded( + ) + + def testMonitoringAlertListEmbedded(self): + """Test MonitoringAlertListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_alert_request.py b/test/test_monitoring_alert_request.py new file mode 100644 index 0000000..fde42f9 --- /dev/null +++ b/test/test_monitoring_alert_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.monitoring_alert_request import MonitoringAlertRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMonitoringAlertRequest(unittest.TestCase): + """MonitoringAlertRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMonitoringAlertRequest(self): + """Test MonitoringAlertRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_alert_request_patch.py b/test/test_monitoring_alert_request_patch.py new file mode 100644 index 0000000..aad152e --- /dev/null +++ b/test/test_monitoring_alert_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.monitoring_alert_request_patch import MonitoringAlertRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMonitoringAlertRequestPatch(unittest.TestCase): + """MonitoringAlertRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringAlertRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.monitoring_alert_request_patch.MonitoringAlertRequestPatch() # noqa: E501 + if include_optional : + return MonitoringAlertRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MonitoringAlertRequestPatch( + ) + + def testMonitoringAlertRequestPatch(self): + """Test MonitoringAlertRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_monitoring_alert_response_mixin.py b/test/test_monitoring_alert_response_mixin.py new file mode 100644 index 0000000..7435960 --- /dev/null +++ b/test/test_monitoring_alert_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.monitoring_alert_response_mixin import MonitoringAlertResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMonitoringAlertResponseMixin(unittest.TestCase): + """MonitoringAlertResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MonitoringAlertResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.monitoring_alert_response_mixin.MonitoringAlertResponseMixin() # noqa: E501 + if include_optional : + return MonitoringAlertResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/monitoring/alert/cn={value},cn=monitoring,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MonitoringAlertResponseMixin( + ) + + def testMonitoringAlertResponseMixin(self): + """Test MonitoringAlertResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_domainpolicy.py b/test/test_ms_domainpolicy.py new file mode 100644 index 0000000..7f58c98 --- /dev/null +++ b/test/test_ms_domainpolicy.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_domainpolicy import MsDomainpolicy # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsDomainpolicy(unittest.TestCase): + """MsDomainpolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsDomainpolicy(self): + """Test MsDomainpolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_domainpolicy_api.py b/test/test_ms_domainpolicy_api.py new file mode 100644 index 0000000..5f16228 --- /dev/null +++ b/test/test_ms_domainpolicy_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_domainpolicy_api import MsDomainpolicyApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsDomainpolicyApi(unittest.TestCase): + """MsDomainpolicyApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_domainpolicy_api.MsDomainpolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_domainpolicy_object(self): + """Test case for udm_ms_domainpolicy_object + + Get a representation of the MS Domain Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_domainpolicy_object_create(self): + """Test case for udm_ms_domainpolicy_object_create + + Create a new MS Domain Policy object # noqa: E501 + """ + pass + + def test_udm_ms_domainpolicy_object_modify(self): + """Test case for udm_ms_domainpolicy_object_modify + + Modify or move an MS Domain Policy object # noqa: E501 + """ + pass + + def test_udm_ms_domainpolicy_object_remove(self): + """Test case for udm_ms_domainpolicy_object_remove + + Remove a MS Domain Policy object # noqa: E501 + """ + pass + + def test_udm_ms_domainpolicy_object_search(self): + """Test case for udm_ms_domainpolicy_object_search + + Search for MS Domain Policy objects # noqa: E501 + """ + pass + + def test_udm_ms_domainpolicy_object_template(self): + """Test case for udm_ms_domainpolicy_object_template + + Get a template for creating an MS Domain Policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_domainpolicy_object_update(self): + """Test case for udm_ms_domainpolicy_object_update + + Modify an MS Domain Policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_domainpolicy_list.py b/test/test_ms_domainpolicy_list.py new file mode 100644 index 0000000..2484a00 --- /dev/null +++ b/test/test_ms_domainpolicy_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_domainpolicy_list import MsDomainpolicyList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsDomainpolicyList(unittest.TestCase): + """MsDomainpolicyList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsDomainpolicyList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_domainpolicy_list.MsDomainpolicyList() # noqa: E501 + if include_optional : + return MsDomainpolicyList( + embedded = openapi_client_udm.models.ms_domainpolicy_list__embedded.ms_domainpolicy_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsDomainpolicyList( + ) + + def testMsDomainpolicyList(self): + """Test MsDomainpolicyList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_domainpolicy_list_embedded.py b/test/test_ms_domainpolicy_list_embedded.py new file mode 100644 index 0000000..d52067e --- /dev/null +++ b/test/test_ms_domainpolicy_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_domainpolicy_list_embedded import MsDomainpolicyListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsDomainpolicyListEmbedded(unittest.TestCase): + """MsDomainpolicyListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsDomainpolicyListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_domainpolicy_list_embedded.MsDomainpolicyListEmbedded() # noqa: E501 + if include_optional : + return MsDomainpolicyListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsDomainpolicyListEmbedded( + ) + + def testMsDomainpolicyListEmbedded(self): + """Test MsDomainpolicyListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_domainpolicy_policies.py b/test/test_ms_domainpolicy_policies.py new file mode 100644 index 0000000..b3ad93f --- /dev/null +++ b/test/test_ms_domainpolicy_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_domainpolicy_policies import MsDomainpolicyPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsDomainpolicyPolicies(unittest.TestCase): + """MsDomainpolicyPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsDomainpolicyPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_domainpolicy_policies.MsDomainpolicyPolicies() # noqa: E501 + if include_optional : + return MsDomainpolicyPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsDomainpolicyPolicies( + ) + + def testMsDomainpolicyPolicies(self): + """Test MsDomainpolicyPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_domainpolicy_request.py b/test/test_ms_domainpolicy_request.py new file mode 100644 index 0000000..c960c18 --- /dev/null +++ b/test/test_ms_domainpolicy_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_domainpolicy_request import MsDomainpolicyRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsDomainpolicyRequest(unittest.TestCase): + """MsDomainpolicyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsDomainpolicyRequest(self): + """Test MsDomainpolicyRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_domainpolicy_request_patch.py b/test/test_ms_domainpolicy_request_patch.py new file mode 100644 index 0000000..e3db60b --- /dev/null +++ b/test/test_ms_domainpolicy_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_domainpolicy_request_patch import MsDomainpolicyRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsDomainpolicyRequestPatch(unittest.TestCase): + """MsDomainpolicyRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsDomainpolicyRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_domainpolicy_request_patch.MsDomainpolicyRequestPatch() # noqa: E501 + if include_optional : + return MsDomainpolicyRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsDomainpolicyRequestPatch( + ) + + def testMsDomainpolicyRequestPatch(self): + """Test MsDomainpolicyRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_domainpolicy_response_mixin.py b/test/test_ms_domainpolicy_response_mixin.py new file mode 100644 index 0000000..2ccb5bd --- /dev/null +++ b/test/test_ms_domainpolicy_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_domainpolicy_response_mixin import MsDomainpolicyResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsDomainpolicyResponseMixin(unittest.TestCase): + """MsDomainpolicyResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsDomainpolicyResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_domainpolicy_response_mixin.MsDomainpolicyResponseMixin() # noqa: E501 + if include_optional : + return MsDomainpolicyResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/domainpolicy/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsDomainpolicyResponseMixin( + ) + + def testMsDomainpolicyResponseMixin(self): + """Test MsDomainpolicyResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_filter.py b/test/test_ms_gpipsec_filter.py new file mode 100644 index 0000000..c933476 --- /dev/null +++ b/test/test_ms_gpipsec_filter.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_filter import MsGpipsecFilter # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecFilter(unittest.TestCase): + """MsGpipsecFilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecFilter(self): + """Test MsGpipsecFilter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_filter_api.py b/test/test_ms_gpipsec_filter_api.py new file mode 100644 index 0000000..c3b95d7 --- /dev/null +++ b/test/test_ms_gpipsec_filter_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpipsec_filter_api import MsGpipsecFilterApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpipsecFilterApi(unittest.TestCase): + """MsGpipsecFilterApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpipsec_filter_api.MsGpipsecFilterApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpipsec_filter_object(self): + """Test case for udm_ms_gpipsec_filter_object + + Get a representation of the MS IPsec policy: filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_filter_object_create(self): + """Test case for udm_ms_gpipsec_filter_object_create + + Create a new MS IPsec policy: filter object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_filter_object_modify(self): + """Test case for udm_ms_gpipsec_filter_object_modify + + Modify or move an MS IPsec policy: filter object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_filter_object_remove(self): + """Test case for udm_ms_gpipsec_filter_object_remove + + Remove a MS IPsec policy: filter object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_filter_object_search(self): + """Test case for udm_ms_gpipsec_filter_object_search + + Search for MS IPsec policy: filter objects # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_filter_object_template(self): + """Test case for udm_ms_gpipsec_filter_object_template + + Get a template for creating an MS IPsec policy: filter object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_filter_object_update(self): + """Test case for udm_ms_gpipsec_filter_object_update + + Modify an MS IPsec policy: filter object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_filter_list.py b/test/test_ms_gpipsec_filter_list.py new file mode 100644 index 0000000..f35e965 --- /dev/null +++ b/test/test_ms_gpipsec_filter_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_filter_list import MsGpipsecFilterList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecFilterList(unittest.TestCase): + """MsGpipsecFilterList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecFilterList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_filter_list.MsGpipsecFilterList() # noqa: E501 + if include_optional : + return MsGpipsecFilterList( + embedded = openapi_client_udm.models.ms_gpipsec_filter_list__embedded.ms_gpipsec_filter_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpipsecFilterList( + ) + + def testMsGpipsecFilterList(self): + """Test MsGpipsecFilterList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_filter_list_embedded.py b/test/test_ms_gpipsec_filter_list_embedded.py new file mode 100644 index 0000000..ce5ba9d --- /dev/null +++ b/test/test_ms_gpipsec_filter_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_filter_list_embedded import MsGpipsecFilterListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecFilterListEmbedded(unittest.TestCase): + """MsGpipsecFilterListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecFilterListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_filter_list_embedded.MsGpipsecFilterListEmbedded() # noqa: E501 + if include_optional : + return MsGpipsecFilterListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpipsecFilterListEmbedded( + ) + + def testMsGpipsecFilterListEmbedded(self): + """Test MsGpipsecFilterListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_filter_policies.py b/test/test_ms_gpipsec_filter_policies.py new file mode 100644 index 0000000..7f416b7 --- /dev/null +++ b/test/test_ms_gpipsec_filter_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_filter_policies import MsGpipsecFilterPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecFilterPolicies(unittest.TestCase): + """MsGpipsecFilterPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecFilterPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_filter_policies.MsGpipsecFilterPolicies() # noqa: E501 + if include_optional : + return MsGpipsecFilterPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpipsecFilterPolicies( + ) + + def testMsGpipsecFilterPolicies(self): + """Test MsGpipsecFilterPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_filter_request.py b/test/test_ms_gpipsec_filter_request.py new file mode 100644 index 0000000..8213c4e --- /dev/null +++ b/test/test_ms_gpipsec_filter_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_filter_request import MsGpipsecFilterRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecFilterRequest(unittest.TestCase): + """MsGpipsecFilterRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecFilterRequest(self): + """Test MsGpipsecFilterRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_filter_request_patch.py b/test/test_ms_gpipsec_filter_request_patch.py new file mode 100644 index 0000000..233a278 --- /dev/null +++ b/test/test_ms_gpipsec_filter_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_filter_request_patch import MsGpipsecFilterRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecFilterRequestPatch(unittest.TestCase): + """MsGpipsecFilterRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecFilterRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_filter_request_patch.MsGpipsecFilterRequestPatch() # noqa: E501 + if include_optional : + return MsGpipsecFilterRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpipsecFilterRequestPatch( + ) + + def testMsGpipsecFilterRequestPatch(self): + """Test MsGpipsecFilterRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_filter_response_mixin.py b/test/test_ms_gpipsec_filter_response_mixin.py new file mode 100644 index 0000000..ec74632 --- /dev/null +++ b/test/test_ms_gpipsec_filter_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_filter_response_mixin import MsGpipsecFilterResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecFilterResponseMixin(unittest.TestCase): + """MsGpipsecFilterResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecFilterResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_filter_response_mixin.MsGpipsecFilterResponseMixin() # noqa: E501 + if include_optional : + return MsGpipsecFilterResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpipsec-filter/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpipsecFilterResponseMixin( + ) + + def testMsGpipsecFilterResponseMixin(self): + """Test MsGpipsecFilterResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_isakmp_policy.py b/test/test_ms_gpipsec_isakmp_policy.py new file mode 100644 index 0000000..397c7e6 --- /dev/null +++ b/test/test_ms_gpipsec_isakmp_policy.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_isakmp_policy import MsGpipsecIsakmpPolicy # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecIsakmpPolicy(unittest.TestCase): + """MsGpipsecIsakmpPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecIsakmpPolicy(self): + """Test MsGpipsecIsakmpPolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_isakmp_policy_api.py b/test/test_ms_gpipsec_isakmp_policy_api.py new file mode 100644 index 0000000..4e631d7 --- /dev/null +++ b/test/test_ms_gpipsec_isakmp_policy_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpipsec_isakmp_policy_api import MsGpipsecIsakmpPolicyApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpipsecIsakmpPolicyApi(unittest.TestCase): + """MsGpipsecIsakmpPolicyApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpipsec_isakmp_policy_api.MsGpipsecIsakmpPolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpipsec_isakmp_policy_object(self): + """Test case for udm_ms_gpipsec_isakmp_policy_object + + Get a representation of the MS IPsec policy: ISAKMP Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_isakmp_policy_object_create(self): + """Test case for udm_ms_gpipsec_isakmp_policy_object_create + + Create a new MS IPsec policy: ISAKMP Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_isakmp_policy_object_modify(self): + """Test case for udm_ms_gpipsec_isakmp_policy_object_modify + + Modify or move an MS IPsec policy: ISAKMP Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_isakmp_policy_object_remove(self): + """Test case for udm_ms_gpipsec_isakmp_policy_object_remove + + Remove a MS IPsec policy: ISAKMP Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_isakmp_policy_object_search(self): + """Test case for udm_ms_gpipsec_isakmp_policy_object_search + + Search for MS IPsec policy: ISAKMP Policy objects # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_isakmp_policy_object_template(self): + """Test case for udm_ms_gpipsec_isakmp_policy_object_template + + Get a template for creating an MS IPsec policy: ISAKMP Policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_isakmp_policy_object_update(self): + """Test case for udm_ms_gpipsec_isakmp_policy_object_update + + Modify an MS IPsec policy: ISAKMP Policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_isakmp_policy_list.py b/test/test_ms_gpipsec_isakmp_policy_list.py new file mode 100644 index 0000000..0dd972f --- /dev/null +++ b/test/test_ms_gpipsec_isakmp_policy_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_list import MsGpipsecIsakmpPolicyList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecIsakmpPolicyList(unittest.TestCase): + """MsGpipsecIsakmpPolicyList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecIsakmpPolicyList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_isakmp_policy_list.MsGpipsecIsakmpPolicyList() # noqa: E501 + if include_optional : + return MsGpipsecIsakmpPolicyList( + embedded = openapi_client_udm.models.ms_gpipsec_isakmp_policy_list__embedded.ms_gpipsec_isakmp_policy_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpipsecIsakmpPolicyList( + ) + + def testMsGpipsecIsakmpPolicyList(self): + """Test MsGpipsecIsakmpPolicyList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_isakmp_policy_list_embedded.py b/test/test_ms_gpipsec_isakmp_policy_list_embedded.py new file mode 100644 index 0000000..34dab1f --- /dev/null +++ b/test/test_ms_gpipsec_isakmp_policy_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_list_embedded import MsGpipsecIsakmpPolicyListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecIsakmpPolicyListEmbedded(unittest.TestCase): + """MsGpipsecIsakmpPolicyListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecIsakmpPolicyListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_isakmp_policy_list_embedded.MsGpipsecIsakmpPolicyListEmbedded() # noqa: E501 + if include_optional : + return MsGpipsecIsakmpPolicyListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpipsecIsakmpPolicyListEmbedded( + ) + + def testMsGpipsecIsakmpPolicyListEmbedded(self): + """Test MsGpipsecIsakmpPolicyListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_isakmp_policy_policies.py b/test/test_ms_gpipsec_isakmp_policy_policies.py new file mode 100644 index 0000000..2bd6c59 --- /dev/null +++ b/test/test_ms_gpipsec_isakmp_policy_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_policies import MsGpipsecIsakmpPolicyPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecIsakmpPolicyPolicies(unittest.TestCase): + """MsGpipsecIsakmpPolicyPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecIsakmpPolicyPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_isakmp_policy_policies.MsGpipsecIsakmpPolicyPolicies() # noqa: E501 + if include_optional : + return MsGpipsecIsakmpPolicyPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpipsecIsakmpPolicyPolicies( + ) + + def testMsGpipsecIsakmpPolicyPolicies(self): + """Test MsGpipsecIsakmpPolicyPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_isakmp_policy_request.py b/test/test_ms_gpipsec_isakmp_policy_request.py new file mode 100644 index 0000000..2e0b825 --- /dev/null +++ b/test/test_ms_gpipsec_isakmp_policy_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_request import MsGpipsecIsakmpPolicyRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecIsakmpPolicyRequest(unittest.TestCase): + """MsGpipsecIsakmpPolicyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecIsakmpPolicyRequest(self): + """Test MsGpipsecIsakmpPolicyRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_isakmp_policy_request_patch.py b/test/test_ms_gpipsec_isakmp_policy_request_patch.py new file mode 100644 index 0000000..778ab5e --- /dev/null +++ b/test/test_ms_gpipsec_isakmp_policy_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_request_patch import MsGpipsecIsakmpPolicyRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecIsakmpPolicyRequestPatch(unittest.TestCase): + """MsGpipsecIsakmpPolicyRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecIsakmpPolicyRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_isakmp_policy_request_patch.MsGpipsecIsakmpPolicyRequestPatch() # noqa: E501 + if include_optional : + return MsGpipsecIsakmpPolicyRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpipsecIsakmpPolicyRequestPatch( + ) + + def testMsGpipsecIsakmpPolicyRequestPatch(self): + """Test MsGpipsecIsakmpPolicyRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_isakmp_policy_response_mixin.py b/test/test_ms_gpipsec_isakmp_policy_response_mixin.py new file mode 100644 index 0000000..a76bd5b --- /dev/null +++ b/test/test_ms_gpipsec_isakmp_policy_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_isakmp_policy_response_mixin import MsGpipsecIsakmpPolicyResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecIsakmpPolicyResponseMixin(unittest.TestCase): + """MsGpipsecIsakmpPolicyResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecIsakmpPolicyResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_isakmp_policy_response_mixin.MsGpipsecIsakmpPolicyResponseMixin() # noqa: E501 + if include_optional : + return MsGpipsecIsakmpPolicyResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpipsec-isakmp-policy/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpipsecIsakmpPolicyResponseMixin( + ) + + def testMsGpipsecIsakmpPolicyResponseMixin(self): + """Test MsGpipsecIsakmpPolicyResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_negotiation_policy.py b/test/test_ms_gpipsec_negotiation_policy.py new file mode 100644 index 0000000..651abee --- /dev/null +++ b/test/test_ms_gpipsec_negotiation_policy.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_negotiation_policy import MsGpipsecNegotiationPolicy # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNegotiationPolicy(unittest.TestCase): + """MsGpipsecNegotiationPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecNegotiationPolicy(self): + """Test MsGpipsecNegotiationPolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_negotiation_policy_api.py b/test/test_ms_gpipsec_negotiation_policy_api.py new file mode 100644 index 0000000..c028bb0 --- /dev/null +++ b/test/test_ms_gpipsec_negotiation_policy_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpipsec_negotiation_policy_api import MsGpipsecNegotiationPolicyApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpipsecNegotiationPolicyApi(unittest.TestCase): + """MsGpipsecNegotiationPolicyApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpipsec_negotiation_policy_api.MsGpipsecNegotiationPolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpipsec_negotiation_policy_object(self): + """Test case for udm_ms_gpipsec_negotiation_policy_object + + Get a representation of the MS IPsec policy: Negotiation Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_negotiation_policy_object_create(self): + """Test case for udm_ms_gpipsec_negotiation_policy_object_create + + Create a new MS IPsec policy: Negotiation Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_negotiation_policy_object_modify(self): + """Test case for udm_ms_gpipsec_negotiation_policy_object_modify + + Modify or move an MS IPsec policy: Negotiation Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_negotiation_policy_object_remove(self): + """Test case for udm_ms_gpipsec_negotiation_policy_object_remove + + Remove a MS IPsec policy: Negotiation Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_negotiation_policy_object_search(self): + """Test case for udm_ms_gpipsec_negotiation_policy_object_search + + Search for MS IPsec policy: Negotiation Policy objects # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_negotiation_policy_object_template(self): + """Test case for udm_ms_gpipsec_negotiation_policy_object_template + + Get a template for creating an MS IPsec policy: Negotiation Policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_negotiation_policy_object_update(self): + """Test case for udm_ms_gpipsec_negotiation_policy_object_update + + Modify an MS IPsec policy: Negotiation Policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_negotiation_policy_list.py b/test/test_ms_gpipsec_negotiation_policy_list.py new file mode 100644 index 0000000..779b609 --- /dev/null +++ b/test/test_ms_gpipsec_negotiation_policy_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_list import MsGpipsecNegotiationPolicyList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNegotiationPolicyList(unittest.TestCase): + """MsGpipsecNegotiationPolicyList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNegotiationPolicyList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_negotiation_policy_list.MsGpipsecNegotiationPolicyList() # noqa: E501 + if include_optional : + return MsGpipsecNegotiationPolicyList( + embedded = openapi_client_udm.models.ms_gpipsec_negotiation_policy_list__embedded.ms_gpipsec_negotiation_policy_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpipsecNegotiationPolicyList( + ) + + def testMsGpipsecNegotiationPolicyList(self): + """Test MsGpipsecNegotiationPolicyList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_negotiation_policy_list_embedded.py b/test/test_ms_gpipsec_negotiation_policy_list_embedded.py new file mode 100644 index 0000000..e35358c --- /dev/null +++ b/test/test_ms_gpipsec_negotiation_policy_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_list_embedded import MsGpipsecNegotiationPolicyListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNegotiationPolicyListEmbedded(unittest.TestCase): + """MsGpipsecNegotiationPolicyListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNegotiationPolicyListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_negotiation_policy_list_embedded.MsGpipsecNegotiationPolicyListEmbedded() # noqa: E501 + if include_optional : + return MsGpipsecNegotiationPolicyListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpipsecNegotiationPolicyListEmbedded( + ) + + def testMsGpipsecNegotiationPolicyListEmbedded(self): + """Test MsGpipsecNegotiationPolicyListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_negotiation_policy_policies.py b/test/test_ms_gpipsec_negotiation_policy_policies.py new file mode 100644 index 0000000..d5b6be4 --- /dev/null +++ b/test/test_ms_gpipsec_negotiation_policy_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_policies import MsGpipsecNegotiationPolicyPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNegotiationPolicyPolicies(unittest.TestCase): + """MsGpipsecNegotiationPolicyPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNegotiationPolicyPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_negotiation_policy_policies.MsGpipsecNegotiationPolicyPolicies() # noqa: E501 + if include_optional : + return MsGpipsecNegotiationPolicyPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpipsecNegotiationPolicyPolicies( + ) + + def testMsGpipsecNegotiationPolicyPolicies(self): + """Test MsGpipsecNegotiationPolicyPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_negotiation_policy_request.py b/test/test_ms_gpipsec_negotiation_policy_request.py new file mode 100644 index 0000000..f24e833 --- /dev/null +++ b/test/test_ms_gpipsec_negotiation_policy_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_request import MsGpipsecNegotiationPolicyRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNegotiationPolicyRequest(unittest.TestCase): + """MsGpipsecNegotiationPolicyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecNegotiationPolicyRequest(self): + """Test MsGpipsecNegotiationPolicyRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_negotiation_policy_request_patch.py b/test/test_ms_gpipsec_negotiation_policy_request_patch.py new file mode 100644 index 0000000..b3cb813 --- /dev/null +++ b/test/test_ms_gpipsec_negotiation_policy_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_request_patch import MsGpipsecNegotiationPolicyRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNegotiationPolicyRequestPatch(unittest.TestCase): + """MsGpipsecNegotiationPolicyRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNegotiationPolicyRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_negotiation_policy_request_patch.MsGpipsecNegotiationPolicyRequestPatch() # noqa: E501 + if include_optional : + return MsGpipsecNegotiationPolicyRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpipsecNegotiationPolicyRequestPatch( + ) + + def testMsGpipsecNegotiationPolicyRequestPatch(self): + """Test MsGpipsecNegotiationPolicyRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_negotiation_policy_response_mixin.py b/test/test_ms_gpipsec_negotiation_policy_response_mixin.py new file mode 100644 index 0000000..3328bc1 --- /dev/null +++ b/test/test_ms_gpipsec_negotiation_policy_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_negotiation_policy_response_mixin import MsGpipsecNegotiationPolicyResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNegotiationPolicyResponseMixin(unittest.TestCase): + """MsGpipsecNegotiationPolicyResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNegotiationPolicyResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_negotiation_policy_response_mixin.MsGpipsecNegotiationPolicyResponseMixin() # noqa: E501 + if include_optional : + return MsGpipsecNegotiationPolicyResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpipsec-negotiation-policy/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpipsecNegotiationPolicyResponseMixin( + ) + + def testMsGpipsecNegotiationPolicyResponseMixin(self): + """Test MsGpipsecNegotiationPolicyResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_nfa.py b/test/test_ms_gpipsec_nfa.py new file mode 100644 index 0000000..4538f61 --- /dev/null +++ b/test/test_ms_gpipsec_nfa.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_nfa import MsGpipsecNfa # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNfa(unittest.TestCase): + """MsGpipsecNfa unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecNfa(self): + """Test MsGpipsecNfa""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_nfa_api.py b/test/test_ms_gpipsec_nfa_api.py new file mode 100644 index 0000000..29bc96a --- /dev/null +++ b/test/test_ms_gpipsec_nfa_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpipsec_nfa_api import MsGpipsecNfaApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpipsecNfaApi(unittest.TestCase): + """MsGpipsecNfaApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpipsec_nfa_api.MsGpipsecNfaApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpipsec_nfa_object(self): + """Test case for udm_ms_gpipsec_nfa_object + + Get a representation of the MS IPsec policy: NFA object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_nfa_object_create(self): + """Test case for udm_ms_gpipsec_nfa_object_create + + Create a new MS IPsec policy: NFA object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_nfa_object_modify(self): + """Test case for udm_ms_gpipsec_nfa_object_modify + + Modify or move an MS IPsec policy: NFA object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_nfa_object_remove(self): + """Test case for udm_ms_gpipsec_nfa_object_remove + + Remove a MS IPsec policy: NFA object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_nfa_object_search(self): + """Test case for udm_ms_gpipsec_nfa_object_search + + Search for MS IPsec policy: NFA objects # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_nfa_object_template(self): + """Test case for udm_ms_gpipsec_nfa_object_template + + Get a template for creating an MS IPsec policy: NFA object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_nfa_object_update(self): + """Test case for udm_ms_gpipsec_nfa_object_update + + Modify an MS IPsec policy: NFA object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_nfa_list.py b/test/test_ms_gpipsec_nfa_list.py new file mode 100644 index 0000000..4798709 --- /dev/null +++ b/test/test_ms_gpipsec_nfa_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_nfa_list import MsGpipsecNfaList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNfaList(unittest.TestCase): + """MsGpipsecNfaList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNfaList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_nfa_list.MsGpipsecNfaList() # noqa: E501 + if include_optional : + return MsGpipsecNfaList( + embedded = openapi_client_udm.models.ms_gpipsec_nfa_list__embedded.ms_gpipsec_nfa_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpipsecNfaList( + ) + + def testMsGpipsecNfaList(self): + """Test MsGpipsecNfaList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_nfa_list_embedded.py b/test/test_ms_gpipsec_nfa_list_embedded.py new file mode 100644 index 0000000..8a5a927 --- /dev/null +++ b/test/test_ms_gpipsec_nfa_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_nfa_list_embedded import MsGpipsecNfaListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNfaListEmbedded(unittest.TestCase): + """MsGpipsecNfaListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNfaListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_nfa_list_embedded.MsGpipsecNfaListEmbedded() # noqa: E501 + if include_optional : + return MsGpipsecNfaListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpipsecNfaListEmbedded( + ) + + def testMsGpipsecNfaListEmbedded(self): + """Test MsGpipsecNfaListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_nfa_policies.py b/test/test_ms_gpipsec_nfa_policies.py new file mode 100644 index 0000000..8cde4b5 --- /dev/null +++ b/test/test_ms_gpipsec_nfa_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_nfa_policies import MsGpipsecNfaPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNfaPolicies(unittest.TestCase): + """MsGpipsecNfaPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNfaPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_nfa_policies.MsGpipsecNfaPolicies() # noqa: E501 + if include_optional : + return MsGpipsecNfaPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpipsecNfaPolicies( + ) + + def testMsGpipsecNfaPolicies(self): + """Test MsGpipsecNfaPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_nfa_request.py b/test/test_ms_gpipsec_nfa_request.py new file mode 100644 index 0000000..b40a389 --- /dev/null +++ b/test/test_ms_gpipsec_nfa_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_nfa_request import MsGpipsecNfaRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNfaRequest(unittest.TestCase): + """MsGpipsecNfaRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecNfaRequest(self): + """Test MsGpipsecNfaRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_nfa_request_patch.py b/test/test_ms_gpipsec_nfa_request_patch.py new file mode 100644 index 0000000..d32b113 --- /dev/null +++ b/test/test_ms_gpipsec_nfa_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_nfa_request_patch import MsGpipsecNfaRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNfaRequestPatch(unittest.TestCase): + """MsGpipsecNfaRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNfaRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_nfa_request_patch.MsGpipsecNfaRequestPatch() # noqa: E501 + if include_optional : + return MsGpipsecNfaRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpipsecNfaRequestPatch( + ) + + def testMsGpipsecNfaRequestPatch(self): + """Test MsGpipsecNfaRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_nfa_response_mixin.py b/test/test_ms_gpipsec_nfa_response_mixin.py new file mode 100644 index 0000000..65d2ebd --- /dev/null +++ b/test/test_ms_gpipsec_nfa_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_nfa_response_mixin import MsGpipsecNfaResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecNfaResponseMixin(unittest.TestCase): + """MsGpipsecNfaResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecNfaResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_nfa_response_mixin.MsGpipsecNfaResponseMixin() # noqa: E501 + if include_optional : + return MsGpipsecNfaResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpipsec-nfa/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpipsecNfaResponseMixin( + ) + + def testMsGpipsecNfaResponseMixin(self): + """Test MsGpipsecNfaResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_policy.py b/test/test_ms_gpipsec_policy.py new file mode 100644 index 0000000..e7786a5 --- /dev/null +++ b/test/test_ms_gpipsec_policy.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_policy import MsGpipsecPolicy # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecPolicy(unittest.TestCase): + """MsGpipsecPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecPolicy(self): + """Test MsGpipsecPolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_policy_api.py b/test/test_ms_gpipsec_policy_api.py new file mode 100644 index 0000000..91ac46d --- /dev/null +++ b/test/test_ms_gpipsec_policy_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpipsec_policy_api import MsGpipsecPolicyApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpipsecPolicyApi(unittest.TestCase): + """MsGpipsecPolicyApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpipsec_policy_api.MsGpipsecPolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpipsec_policy_object(self): + """Test case for udm_ms_gpipsec_policy_object + + Get a representation of the MS IPsec policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_policy_object_create(self): + """Test case for udm_ms_gpipsec_policy_object_create + + Create a new MS IPsec policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_policy_object_modify(self): + """Test case for udm_ms_gpipsec_policy_object_modify + + Modify or move an MS IPsec policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_policy_object_remove(self): + """Test case for udm_ms_gpipsec_policy_object_remove + + Remove a MS IPsec policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_policy_object_search(self): + """Test case for udm_ms_gpipsec_policy_object_search + + Search for MS IPsec policy objects # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_policy_object_template(self): + """Test case for udm_ms_gpipsec_policy_object_template + + Get a template for creating an MS IPsec policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpipsec_policy_object_update(self): + """Test case for udm_ms_gpipsec_policy_object_update + + Modify an MS IPsec policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_policy_list.py b/test/test_ms_gpipsec_policy_list.py new file mode 100644 index 0000000..42097f4 --- /dev/null +++ b/test/test_ms_gpipsec_policy_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_policy_list import MsGpipsecPolicyList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecPolicyList(unittest.TestCase): + """MsGpipsecPolicyList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecPolicyList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_policy_list.MsGpipsecPolicyList() # noqa: E501 + if include_optional : + return MsGpipsecPolicyList( + embedded = openapi_client_udm.models.ms_gpipsec_policy_list__embedded.ms_gpipsec_policy_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpipsecPolicyList( + ) + + def testMsGpipsecPolicyList(self): + """Test MsGpipsecPolicyList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_policy_list_embedded.py b/test/test_ms_gpipsec_policy_list_embedded.py new file mode 100644 index 0000000..dac59bf --- /dev/null +++ b/test/test_ms_gpipsec_policy_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_policy_list_embedded import MsGpipsecPolicyListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecPolicyListEmbedded(unittest.TestCase): + """MsGpipsecPolicyListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecPolicyListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_policy_list_embedded.MsGpipsecPolicyListEmbedded() # noqa: E501 + if include_optional : + return MsGpipsecPolicyListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpipsecPolicyListEmbedded( + ) + + def testMsGpipsecPolicyListEmbedded(self): + """Test MsGpipsecPolicyListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_policy_policies.py b/test/test_ms_gpipsec_policy_policies.py new file mode 100644 index 0000000..d39e8eb --- /dev/null +++ b/test/test_ms_gpipsec_policy_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_policy_policies import MsGpipsecPolicyPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecPolicyPolicies(unittest.TestCase): + """MsGpipsecPolicyPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecPolicyPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_policy_policies.MsGpipsecPolicyPolicies() # noqa: E501 + if include_optional : + return MsGpipsecPolicyPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpipsecPolicyPolicies( + ) + + def testMsGpipsecPolicyPolicies(self): + """Test MsGpipsecPolicyPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_policy_request.py b/test/test_ms_gpipsec_policy_request.py new file mode 100644 index 0000000..f76d750 --- /dev/null +++ b/test/test_ms_gpipsec_policy_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_policy_request import MsGpipsecPolicyRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecPolicyRequest(unittest.TestCase): + """MsGpipsecPolicyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpipsecPolicyRequest(self): + """Test MsGpipsecPolicyRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_policy_request_patch.py b/test/test_ms_gpipsec_policy_request_patch.py new file mode 100644 index 0000000..72ab985 --- /dev/null +++ b/test/test_ms_gpipsec_policy_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_policy_request_patch import MsGpipsecPolicyRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecPolicyRequestPatch(unittest.TestCase): + """MsGpipsecPolicyRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecPolicyRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_policy_request_patch.MsGpipsecPolicyRequestPatch() # noqa: E501 + if include_optional : + return MsGpipsecPolicyRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpipsecPolicyRequestPatch( + ) + + def testMsGpipsecPolicyRequestPatch(self): + """Test MsGpipsecPolicyRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpipsec_policy_response_mixin.py b/test/test_ms_gpipsec_policy_response_mixin.py new file mode 100644 index 0000000..af44caf --- /dev/null +++ b/test/test_ms_gpipsec_policy_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpipsec_policy_response_mixin import MsGpipsecPolicyResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpipsecPolicyResponseMixin(unittest.TestCase): + """MsGpipsecPolicyResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpipsecPolicyResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpipsec_policy_response_mixin.MsGpipsecPolicyResponseMixin() # noqa: E501 + if include_optional : + return MsGpipsecPolicyResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpipsec-policy/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpipsecPolicyResponseMixin( + ) + + def testMsGpipsecPolicyResponseMixin(self): + """Test MsGpipsecPolicyResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_category_registration.py b/test/test_ms_gpsi_category_registration.py new file mode 100644 index 0000000..3b8d1c9 --- /dev/null +++ b/test/test_ms_gpsi_category_registration.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_category_registration import MsGpsiCategoryRegistration # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiCategoryRegistration(unittest.TestCase): + """MsGpsiCategoryRegistration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpsiCategoryRegistration(self): + """Test MsGpsiCategoryRegistration""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_category_registration_api.py b/test/test_ms_gpsi_category_registration_api.py new file mode 100644 index 0000000..be61264 --- /dev/null +++ b/test/test_ms_gpsi_category_registration_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpsi_category_registration_api import MsGpsiCategoryRegistrationApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpsiCategoryRegistrationApi(unittest.TestCase): + """MsGpsiCategoryRegistrationApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpsi_category_registration_api.MsGpsiCategoryRegistrationApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpsi_category_registration_object(self): + """Test case for udm_ms_gpsi_category_registration_object + + Get a representation of the MS Software Installation Group Policy: Category Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_category_registration_object_create(self): + """Test case for udm_ms_gpsi_category_registration_object_create + + Create a new MS Software Installation Group Policy: Category Registration object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_category_registration_object_modify(self): + """Test case for udm_ms_gpsi_category_registration_object_modify + + Modify or move an MS Software Installation Group Policy: Category Registration object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_category_registration_object_remove(self): + """Test case for udm_ms_gpsi_category_registration_object_remove + + Remove a MS Software Installation Group Policy: Category Registration object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_category_registration_object_search(self): + """Test case for udm_ms_gpsi_category_registration_object_search + + Search for MS Software Installation Group Policy: Category Registration objects # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_category_registration_object_template(self): + """Test case for udm_ms_gpsi_category_registration_object_template + + Get a template for creating an MS Software Installation Group Policy: Category Registration object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_category_registration_object_update(self): + """Test case for udm_ms_gpsi_category_registration_object_update + + Modify an MS Software Installation Group Policy: Category Registration object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_category_registration_list.py b/test/test_ms_gpsi_category_registration_list.py new file mode 100644 index 0000000..9215bab --- /dev/null +++ b/test/test_ms_gpsi_category_registration_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_category_registration_list import MsGpsiCategoryRegistrationList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiCategoryRegistrationList(unittest.TestCase): + """MsGpsiCategoryRegistrationList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiCategoryRegistrationList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_category_registration_list.MsGpsiCategoryRegistrationList() # noqa: E501 + if include_optional : + return MsGpsiCategoryRegistrationList( + embedded = openapi_client_udm.models.ms_gpsi_category_registration_list__embedded.ms_gpsi_category_registration_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpsiCategoryRegistrationList( + ) + + def testMsGpsiCategoryRegistrationList(self): + """Test MsGpsiCategoryRegistrationList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_category_registration_list_embedded.py b/test/test_ms_gpsi_category_registration_list_embedded.py new file mode 100644 index 0000000..a61f47a --- /dev/null +++ b/test/test_ms_gpsi_category_registration_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_category_registration_list_embedded import MsGpsiCategoryRegistrationListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiCategoryRegistrationListEmbedded(unittest.TestCase): + """MsGpsiCategoryRegistrationListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiCategoryRegistrationListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_category_registration_list_embedded.MsGpsiCategoryRegistrationListEmbedded() # noqa: E501 + if include_optional : + return MsGpsiCategoryRegistrationListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpsiCategoryRegistrationListEmbedded( + ) + + def testMsGpsiCategoryRegistrationListEmbedded(self): + """Test MsGpsiCategoryRegistrationListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_category_registration_policies.py b/test/test_ms_gpsi_category_registration_policies.py new file mode 100644 index 0000000..e1adc1f --- /dev/null +++ b/test/test_ms_gpsi_category_registration_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_category_registration_policies import MsGpsiCategoryRegistrationPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiCategoryRegistrationPolicies(unittest.TestCase): + """MsGpsiCategoryRegistrationPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiCategoryRegistrationPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_category_registration_policies.MsGpsiCategoryRegistrationPolicies() # noqa: E501 + if include_optional : + return MsGpsiCategoryRegistrationPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpsiCategoryRegistrationPolicies( + ) + + def testMsGpsiCategoryRegistrationPolicies(self): + """Test MsGpsiCategoryRegistrationPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_category_registration_request.py b/test/test_ms_gpsi_category_registration_request.py new file mode 100644 index 0000000..eb6527a --- /dev/null +++ b/test/test_ms_gpsi_category_registration_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_category_registration_request import MsGpsiCategoryRegistrationRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiCategoryRegistrationRequest(unittest.TestCase): + """MsGpsiCategoryRegistrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpsiCategoryRegistrationRequest(self): + """Test MsGpsiCategoryRegistrationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_category_registration_request_patch.py b/test/test_ms_gpsi_category_registration_request_patch.py new file mode 100644 index 0000000..b00af9e --- /dev/null +++ b/test/test_ms_gpsi_category_registration_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_category_registration_request_patch import MsGpsiCategoryRegistrationRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiCategoryRegistrationRequestPatch(unittest.TestCase): + """MsGpsiCategoryRegistrationRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiCategoryRegistrationRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_category_registration_request_patch.MsGpsiCategoryRegistrationRequestPatch() # noqa: E501 + if include_optional : + return MsGpsiCategoryRegistrationRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpsiCategoryRegistrationRequestPatch( + ) + + def testMsGpsiCategoryRegistrationRequestPatch(self): + """Test MsGpsiCategoryRegistrationRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_category_registration_response_mixin.py b/test/test_ms_gpsi_category_registration_response_mixin.py new file mode 100644 index 0000000..d63ff4d --- /dev/null +++ b/test/test_ms_gpsi_category_registration_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_category_registration_response_mixin import MsGpsiCategoryRegistrationResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiCategoryRegistrationResponseMixin(unittest.TestCase): + """MsGpsiCategoryRegistrationResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiCategoryRegistrationResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_category_registration_response_mixin.MsGpsiCategoryRegistrationResponseMixin() # noqa: E501 + if include_optional : + return MsGpsiCategoryRegistrationResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpsi-category-registration/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpsiCategoryRegistrationResponseMixin( + ) + + def testMsGpsiCategoryRegistrationResponseMixin(self): + """Test MsGpsiCategoryRegistrationResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_class_store.py b/test/test_ms_gpsi_class_store.py new file mode 100644 index 0000000..ce3467f --- /dev/null +++ b/test/test_ms_gpsi_class_store.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_class_store import MsGpsiClassStore # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiClassStore(unittest.TestCase): + """MsGpsiClassStore unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpsiClassStore(self): + """Test MsGpsiClassStore""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_class_store_api.py b/test/test_ms_gpsi_class_store_api.py new file mode 100644 index 0000000..c42d55f --- /dev/null +++ b/test/test_ms_gpsi_class_store_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpsi_class_store_api import MsGpsiClassStoreApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpsiClassStoreApi(unittest.TestCase): + """MsGpsiClassStoreApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpsi_class_store_api.MsGpsiClassStoreApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpsi_class_store_object(self): + """Test case for udm_ms_gpsi_class_store_object + + Get a representation of the Software Installation Group Policy: Class Store object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_class_store_object_create(self): + """Test case for udm_ms_gpsi_class_store_object_create + + Create a new Software Installation Group Policy: Class Store object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_class_store_object_modify(self): + """Test case for udm_ms_gpsi_class_store_object_modify + + Modify or move an Software Installation Group Policy: Class Store object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_class_store_object_remove(self): + """Test case for udm_ms_gpsi_class_store_object_remove + + Remove a Software Installation Group Policy: Class Store object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_class_store_object_search(self): + """Test case for udm_ms_gpsi_class_store_object_search + + Search for Software Installation Group Policy: Class Store objects # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_class_store_object_template(self): + """Test case for udm_ms_gpsi_class_store_object_template + + Get a template for creating an Software Installation Group Policy: Class Store object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_class_store_object_update(self): + """Test case for udm_ms_gpsi_class_store_object_update + + Modify an Software Installation Group Policy: Class Store object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_class_store_list.py b/test/test_ms_gpsi_class_store_list.py new file mode 100644 index 0000000..aa1f857 --- /dev/null +++ b/test/test_ms_gpsi_class_store_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_class_store_list import MsGpsiClassStoreList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiClassStoreList(unittest.TestCase): + """MsGpsiClassStoreList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiClassStoreList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_class_store_list.MsGpsiClassStoreList() # noqa: E501 + if include_optional : + return MsGpsiClassStoreList( + embedded = openapi_client_udm.models.ms_gpsi_class_store_list__embedded.ms_gpsi_class_store_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpsiClassStoreList( + ) + + def testMsGpsiClassStoreList(self): + """Test MsGpsiClassStoreList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_class_store_list_embedded.py b/test/test_ms_gpsi_class_store_list_embedded.py new file mode 100644 index 0000000..5802a50 --- /dev/null +++ b/test/test_ms_gpsi_class_store_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_class_store_list_embedded import MsGpsiClassStoreListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiClassStoreListEmbedded(unittest.TestCase): + """MsGpsiClassStoreListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiClassStoreListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_class_store_list_embedded.MsGpsiClassStoreListEmbedded() # noqa: E501 + if include_optional : + return MsGpsiClassStoreListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpsiClassStoreListEmbedded( + ) + + def testMsGpsiClassStoreListEmbedded(self): + """Test MsGpsiClassStoreListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_class_store_policies.py b/test/test_ms_gpsi_class_store_policies.py new file mode 100644 index 0000000..eaead3e --- /dev/null +++ b/test/test_ms_gpsi_class_store_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_class_store_policies import MsGpsiClassStorePolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiClassStorePolicies(unittest.TestCase): + """MsGpsiClassStorePolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiClassStorePolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_class_store_policies.MsGpsiClassStorePolicies() # noqa: E501 + if include_optional : + return MsGpsiClassStorePolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpsiClassStorePolicies( + ) + + def testMsGpsiClassStorePolicies(self): + """Test MsGpsiClassStorePolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_class_store_request.py b/test/test_ms_gpsi_class_store_request.py new file mode 100644 index 0000000..fed9ae6 --- /dev/null +++ b/test/test_ms_gpsi_class_store_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_class_store_request import MsGpsiClassStoreRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiClassStoreRequest(unittest.TestCase): + """MsGpsiClassStoreRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpsiClassStoreRequest(self): + """Test MsGpsiClassStoreRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_class_store_request_patch.py b/test/test_ms_gpsi_class_store_request_patch.py new file mode 100644 index 0000000..4111816 --- /dev/null +++ b/test/test_ms_gpsi_class_store_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_class_store_request_patch import MsGpsiClassStoreRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiClassStoreRequestPatch(unittest.TestCase): + """MsGpsiClassStoreRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiClassStoreRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_class_store_request_patch.MsGpsiClassStoreRequestPatch() # noqa: E501 + if include_optional : + return MsGpsiClassStoreRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpsiClassStoreRequestPatch( + ) + + def testMsGpsiClassStoreRequestPatch(self): + """Test MsGpsiClassStoreRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_class_store_response_mixin.py b/test/test_ms_gpsi_class_store_response_mixin.py new file mode 100644 index 0000000..76e0f14 --- /dev/null +++ b/test/test_ms_gpsi_class_store_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_class_store_response_mixin import MsGpsiClassStoreResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiClassStoreResponseMixin(unittest.TestCase): + """MsGpsiClassStoreResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiClassStoreResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_class_store_response_mixin.MsGpsiClassStoreResponseMixin() # noqa: E501 + if include_optional : + return MsGpsiClassStoreResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpsi-class-store/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpsiClassStoreResponseMixin( + ) + + def testMsGpsiClassStoreResponseMixin(self): + """Test MsGpsiClassStoreResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_package_registration.py b/test/test_ms_gpsi_package_registration.py new file mode 100644 index 0000000..8b8d382 --- /dev/null +++ b/test/test_ms_gpsi_package_registration.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_package_registration import MsGpsiPackageRegistration # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiPackageRegistration(unittest.TestCase): + """MsGpsiPackageRegistration unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpsiPackageRegistration(self): + """Test MsGpsiPackageRegistration""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_package_registration_api.py b/test/test_ms_gpsi_package_registration_api.py new file mode 100644 index 0000000..f709c01 --- /dev/null +++ b/test/test_ms_gpsi_package_registration_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpsi_package_registration_api import MsGpsiPackageRegistrationApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpsiPackageRegistrationApi(unittest.TestCase): + """MsGpsiPackageRegistrationApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpsi_package_registration_api.MsGpsiPackageRegistrationApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpsi_package_registration_object(self): + """Test case for udm_ms_gpsi_package_registration_object + + Get a representation of the Software Installation Group Policy: Package Registration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_package_registration_object_create(self): + """Test case for udm_ms_gpsi_package_registration_object_create + + Create a new Software Installation Group Policy: Package Registration object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_package_registration_object_modify(self): + """Test case for udm_ms_gpsi_package_registration_object_modify + + Modify or move an Software Installation Group Policy: Package Registration object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_package_registration_object_remove(self): + """Test case for udm_ms_gpsi_package_registration_object_remove + + Remove a Software Installation Group Policy: Package Registration object # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_package_registration_object_search(self): + """Test case for udm_ms_gpsi_package_registration_object_search + + Search for Software Installation Group Policy: Package Registration objects # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_package_registration_object_template(self): + """Test case for udm_ms_gpsi_package_registration_object_template + + Get a template for creating an Software Installation Group Policy: Package Registration object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpsi_package_registration_object_update(self): + """Test case for udm_ms_gpsi_package_registration_object_update + + Modify an Software Installation Group Policy: Package Registration object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_package_registration_list.py b/test/test_ms_gpsi_package_registration_list.py new file mode 100644 index 0000000..9fcc426 --- /dev/null +++ b/test/test_ms_gpsi_package_registration_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_package_registration_list import MsGpsiPackageRegistrationList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiPackageRegistrationList(unittest.TestCase): + """MsGpsiPackageRegistrationList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiPackageRegistrationList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_package_registration_list.MsGpsiPackageRegistrationList() # noqa: E501 + if include_optional : + return MsGpsiPackageRegistrationList( + embedded = openapi_client_udm.models.ms_gpsi_package_registration_list__embedded.ms_gpsi_package_registration_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpsiPackageRegistrationList( + ) + + def testMsGpsiPackageRegistrationList(self): + """Test MsGpsiPackageRegistrationList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_package_registration_list_embedded.py b/test/test_ms_gpsi_package_registration_list_embedded.py new file mode 100644 index 0000000..5f0bc3d --- /dev/null +++ b/test/test_ms_gpsi_package_registration_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_package_registration_list_embedded import MsGpsiPackageRegistrationListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiPackageRegistrationListEmbedded(unittest.TestCase): + """MsGpsiPackageRegistrationListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiPackageRegistrationListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_package_registration_list_embedded.MsGpsiPackageRegistrationListEmbedded() # noqa: E501 + if include_optional : + return MsGpsiPackageRegistrationListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpsiPackageRegistrationListEmbedded( + ) + + def testMsGpsiPackageRegistrationListEmbedded(self): + """Test MsGpsiPackageRegistrationListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_package_registration_policies.py b/test/test_ms_gpsi_package_registration_policies.py new file mode 100644 index 0000000..7a042b0 --- /dev/null +++ b/test/test_ms_gpsi_package_registration_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_package_registration_policies import MsGpsiPackageRegistrationPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiPackageRegistrationPolicies(unittest.TestCase): + """MsGpsiPackageRegistrationPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiPackageRegistrationPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_package_registration_policies.MsGpsiPackageRegistrationPolicies() # noqa: E501 + if include_optional : + return MsGpsiPackageRegistrationPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpsiPackageRegistrationPolicies( + ) + + def testMsGpsiPackageRegistrationPolicies(self): + """Test MsGpsiPackageRegistrationPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_package_registration_request.py b/test/test_ms_gpsi_package_registration_request.py new file mode 100644 index 0000000..a65a3e9 --- /dev/null +++ b/test/test_ms_gpsi_package_registration_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_package_registration_request import MsGpsiPackageRegistrationRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiPackageRegistrationRequest(unittest.TestCase): + """MsGpsiPackageRegistrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpsiPackageRegistrationRequest(self): + """Test MsGpsiPackageRegistrationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_package_registration_request_patch.py b/test/test_ms_gpsi_package_registration_request_patch.py new file mode 100644 index 0000000..9bc5d68 --- /dev/null +++ b/test/test_ms_gpsi_package_registration_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_package_registration_request_patch import MsGpsiPackageRegistrationRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiPackageRegistrationRequestPatch(unittest.TestCase): + """MsGpsiPackageRegistrationRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiPackageRegistrationRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_package_registration_request_patch.MsGpsiPackageRegistrationRequestPatch() # noqa: E501 + if include_optional : + return MsGpsiPackageRegistrationRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpsiPackageRegistrationRequestPatch( + ) + + def testMsGpsiPackageRegistrationRequestPatch(self): + """Test MsGpsiPackageRegistrationRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpsi_package_registration_response_mixin.py b/test/test_ms_gpsi_package_registration_response_mixin.py new file mode 100644 index 0000000..60aa4f4 --- /dev/null +++ b/test/test_ms_gpsi_package_registration_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpsi_package_registration_response_mixin import MsGpsiPackageRegistrationResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpsiPackageRegistrationResponseMixin(unittest.TestCase): + """MsGpsiPackageRegistrationResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpsiPackageRegistrationResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpsi_package_registration_response_mixin.MsGpsiPackageRegistrationResponseMixin() # noqa: E501 + if include_optional : + return MsGpsiPackageRegistrationResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpsi-package-registration/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpsiPackageRegistrationResponseMixin( + ) + + def testMsGpsiPackageRegistrationResponseMixin(self): + """Test MsGpsiPackageRegistrationResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wired.py b/test/test_ms_gpwl_wired.py new file mode 100644 index 0000000..9f3a76a --- /dev/null +++ b/test/test_ms_gpwl_wired.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wired import MsGpwlWired # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWired(unittest.TestCase): + """MsGpwlWired unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpwlWired(self): + """Test MsGpwlWired""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wired_api.py b/test/test_ms_gpwl_wired_api.py new file mode 100644 index 0000000..193bbee --- /dev/null +++ b/test/test_ms_gpwl_wired_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpwl_wired_api import MsGpwlWiredApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpwlWiredApi(unittest.TestCase): + """MsGpwlWiredApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpwl_wired_api.MsGpwlWiredApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpwl_wired_object(self): + """Test case for udm_ms_gpwl_wired_object + + Get a representation of the MS wired Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wired_object_create(self): + """Test case for udm_ms_gpwl_wired_object_create + + Create a new MS wired Group Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wired_object_modify(self): + """Test case for udm_ms_gpwl_wired_object_modify + + Modify or move an MS wired Group Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wired_object_remove(self): + """Test case for udm_ms_gpwl_wired_object_remove + + Remove a MS wired Group Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wired_object_search(self): + """Test case for udm_ms_gpwl_wired_object_search + + Search for MS wired Group Policy objects # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wired_object_template(self): + """Test case for udm_ms_gpwl_wired_object_template + + Get a template for creating an MS wired Group Policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wired_object_update(self): + """Test case for udm_ms_gpwl_wired_object_update + + Modify an MS wired Group Policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wired_list.py b/test/test_ms_gpwl_wired_list.py new file mode 100644 index 0000000..fb50309 --- /dev/null +++ b/test/test_ms_gpwl_wired_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wired_list import MsGpwlWiredList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWiredList(unittest.TestCase): + """MsGpwlWiredList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWiredList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wired_list.MsGpwlWiredList() # noqa: E501 + if include_optional : + return MsGpwlWiredList( + embedded = openapi_client_udm.models.ms_gpwl_wired_list__embedded.ms_gpwl_wired_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpwlWiredList( + ) + + def testMsGpwlWiredList(self): + """Test MsGpwlWiredList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wired_list_embedded.py b/test/test_ms_gpwl_wired_list_embedded.py new file mode 100644 index 0000000..74c9f1e --- /dev/null +++ b/test/test_ms_gpwl_wired_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wired_list_embedded import MsGpwlWiredListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWiredListEmbedded(unittest.TestCase): + """MsGpwlWiredListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWiredListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wired_list_embedded.MsGpwlWiredListEmbedded() # noqa: E501 + if include_optional : + return MsGpwlWiredListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpwlWiredListEmbedded( + ) + + def testMsGpwlWiredListEmbedded(self): + """Test MsGpwlWiredListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wired_policies.py b/test/test_ms_gpwl_wired_policies.py new file mode 100644 index 0000000..6afdbd0 --- /dev/null +++ b/test/test_ms_gpwl_wired_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wired_policies import MsGpwlWiredPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWiredPolicies(unittest.TestCase): + """MsGpwlWiredPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWiredPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wired_policies.MsGpwlWiredPolicies() # noqa: E501 + if include_optional : + return MsGpwlWiredPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpwlWiredPolicies( + ) + + def testMsGpwlWiredPolicies(self): + """Test MsGpwlWiredPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wired_request.py b/test/test_ms_gpwl_wired_request.py new file mode 100644 index 0000000..2cd3af4 --- /dev/null +++ b/test/test_ms_gpwl_wired_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wired_request import MsGpwlWiredRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWiredRequest(unittest.TestCase): + """MsGpwlWiredRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpwlWiredRequest(self): + """Test MsGpwlWiredRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wired_request_patch.py b/test/test_ms_gpwl_wired_request_patch.py new file mode 100644 index 0000000..318718c --- /dev/null +++ b/test/test_ms_gpwl_wired_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wired_request_patch import MsGpwlWiredRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWiredRequestPatch(unittest.TestCase): + """MsGpwlWiredRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWiredRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wired_request_patch.MsGpwlWiredRequestPatch() # noqa: E501 + if include_optional : + return MsGpwlWiredRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpwlWiredRequestPatch( + ) + + def testMsGpwlWiredRequestPatch(self): + """Test MsGpwlWiredRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wired_response_mixin.py b/test/test_ms_gpwl_wired_response_mixin.py new file mode 100644 index 0000000..f5b212f --- /dev/null +++ b/test/test_ms_gpwl_wired_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wired_response_mixin import MsGpwlWiredResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWiredResponseMixin(unittest.TestCase): + """MsGpwlWiredResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWiredResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wired_response_mixin.MsGpwlWiredResponseMixin() # noqa: E501 + if include_optional : + return MsGpwlWiredResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpwl-wired/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpwlWiredResponseMixin( + ) + + def testMsGpwlWiredResponseMixin(self): + """Test MsGpwlWiredResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless.py b/test/test_ms_gpwl_wireless.py new file mode 100644 index 0000000..e1e71de --- /dev/null +++ b/test/test_ms_gpwl_wireless.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless import MsGpwlWireless # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWireless(unittest.TestCase): + """MsGpwlWireless unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpwlWireless(self): + """Test MsGpwlWireless""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_api.py b/test/test_ms_gpwl_wireless_api.py new file mode 100644 index 0000000..b655714 --- /dev/null +++ b/test/test_ms_gpwl_wireless_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpwl_wireless_api import MsGpwlWirelessApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpwlWirelessApi(unittest.TestCase): + """MsGpwlWirelessApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpwl_wireless_api.MsGpwlWirelessApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpwl_wireless_object(self): + """Test case for udm_ms_gpwl_wireless_object + + Get a representation of the MS wireless Group Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_object_create(self): + """Test case for udm_ms_gpwl_wireless_object_create + + Create a new MS wireless Group Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_object_modify(self): + """Test case for udm_ms_gpwl_wireless_object_modify + + Modify or move an MS wireless Group Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_object_remove(self): + """Test case for udm_ms_gpwl_wireless_object_remove + + Remove a MS wireless Group Policy object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_object_search(self): + """Test case for udm_ms_gpwl_wireless_object_search + + Search for MS wireless Group Policy objects # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_object_template(self): + """Test case for udm_ms_gpwl_wireless_object_template + + Get a template for creating an MS wireless Group Policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_object_update(self): + """Test case for udm_ms_gpwl_wireless_object_update + + Modify an MS wireless Group Policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_blob.py b/test/test_ms_gpwl_wireless_blob.py new file mode 100644 index 0000000..ec63ff8 --- /dev/null +++ b/test/test_ms_gpwl_wireless_blob.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_blob import MsGpwlWirelessBlob # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessBlob(unittest.TestCase): + """MsGpwlWirelessBlob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpwlWirelessBlob(self): + """Test MsGpwlWirelessBlob""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_blob_api.py b/test/test_ms_gpwl_wireless_blob_api.py new file mode 100644 index 0000000..e954c6f --- /dev/null +++ b/test/test_ms_gpwl_wireless_blob_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.ms_gpwl_wireless_blob_api import MsGpwlWirelessBlobApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestMsGpwlWirelessBlobApi(unittest.TestCase): + """MsGpwlWirelessBlobApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.ms_gpwl_wireless_blob_api.MsGpwlWirelessBlobApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_ms_gpwl_wireless_blob_object(self): + """Test case for udm_ms_gpwl_wireless_blob_object + + Get a representation of the MS wireless Group Policy blob object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_blob_object_create(self): + """Test case for udm_ms_gpwl_wireless_blob_object_create + + Create a new MS wireless Group Policy blob object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_blob_object_modify(self): + """Test case for udm_ms_gpwl_wireless_blob_object_modify + + Modify or move an MS wireless Group Policy blob object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_blob_object_remove(self): + """Test case for udm_ms_gpwl_wireless_blob_object_remove + + Remove a MS wireless Group Policy blob object # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_blob_object_search(self): + """Test case for udm_ms_gpwl_wireless_blob_object_search + + Search for MS wireless Group Policy blob objects # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_blob_object_template(self): + """Test case for udm_ms_gpwl_wireless_blob_object_template + + Get a template for creating an MS wireless Group Policy blob object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_ms_gpwl_wireless_blob_object_update(self): + """Test case for udm_ms_gpwl_wireless_blob_object_update + + Modify an MS wireless Group Policy blob object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_blob_list.py b/test/test_ms_gpwl_wireless_blob_list.py new file mode 100644 index 0000000..ccef5a3 --- /dev/null +++ b/test/test_ms_gpwl_wireless_blob_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_blob_list import MsGpwlWirelessBlobList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessBlobList(unittest.TestCase): + """MsGpwlWirelessBlobList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessBlobList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_blob_list.MsGpwlWirelessBlobList() # noqa: E501 + if include_optional : + return MsGpwlWirelessBlobList( + embedded = openapi_client_udm.models.ms_gpwl_wireless_blob_list__embedded.ms_gpwl_wireless_blob_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpwlWirelessBlobList( + ) + + def testMsGpwlWirelessBlobList(self): + """Test MsGpwlWirelessBlobList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_blob_list_embedded.py b/test/test_ms_gpwl_wireless_blob_list_embedded.py new file mode 100644 index 0000000..d56f1c3 --- /dev/null +++ b/test/test_ms_gpwl_wireless_blob_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_blob_list_embedded import MsGpwlWirelessBlobListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessBlobListEmbedded(unittest.TestCase): + """MsGpwlWirelessBlobListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessBlobListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_blob_list_embedded.MsGpwlWirelessBlobListEmbedded() # noqa: E501 + if include_optional : + return MsGpwlWirelessBlobListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpwlWirelessBlobListEmbedded( + ) + + def testMsGpwlWirelessBlobListEmbedded(self): + """Test MsGpwlWirelessBlobListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_blob_policies.py b/test/test_ms_gpwl_wireless_blob_policies.py new file mode 100644 index 0000000..c11ea86 --- /dev/null +++ b/test/test_ms_gpwl_wireless_blob_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_blob_policies import MsGpwlWirelessBlobPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessBlobPolicies(unittest.TestCase): + """MsGpwlWirelessBlobPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessBlobPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_blob_policies.MsGpwlWirelessBlobPolicies() # noqa: E501 + if include_optional : + return MsGpwlWirelessBlobPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpwlWirelessBlobPolicies( + ) + + def testMsGpwlWirelessBlobPolicies(self): + """Test MsGpwlWirelessBlobPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_blob_request.py b/test/test_ms_gpwl_wireless_blob_request.py new file mode 100644 index 0000000..9fb8e7a --- /dev/null +++ b/test/test_ms_gpwl_wireless_blob_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_blob_request import MsGpwlWirelessBlobRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessBlobRequest(unittest.TestCase): + """MsGpwlWirelessBlobRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpwlWirelessBlobRequest(self): + """Test MsGpwlWirelessBlobRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_blob_request_patch.py b/test/test_ms_gpwl_wireless_blob_request_patch.py new file mode 100644 index 0000000..09b00bc --- /dev/null +++ b/test/test_ms_gpwl_wireless_blob_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_blob_request_patch import MsGpwlWirelessBlobRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessBlobRequestPatch(unittest.TestCase): + """MsGpwlWirelessBlobRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessBlobRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_blob_request_patch.MsGpwlWirelessBlobRequestPatch() # noqa: E501 + if include_optional : + return MsGpwlWirelessBlobRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpwlWirelessBlobRequestPatch( + ) + + def testMsGpwlWirelessBlobRequestPatch(self): + """Test MsGpwlWirelessBlobRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_blob_response_mixin.py b/test/test_ms_gpwl_wireless_blob_response_mixin.py new file mode 100644 index 0000000..b0cbfdb --- /dev/null +++ b/test/test_ms_gpwl_wireless_blob_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_blob_response_mixin import MsGpwlWirelessBlobResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessBlobResponseMixin(unittest.TestCase): + """MsGpwlWirelessBlobResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessBlobResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_blob_response_mixin.MsGpwlWirelessBlobResponseMixin() # noqa: E501 + if include_optional : + return MsGpwlWirelessBlobResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpwl-wireless-blob/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpwlWirelessBlobResponseMixin( + ) + + def testMsGpwlWirelessBlobResponseMixin(self): + """Test MsGpwlWirelessBlobResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_list.py b/test/test_ms_gpwl_wireless_list.py new file mode 100644 index 0000000..9747d51 --- /dev/null +++ b/test/test_ms_gpwl_wireless_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_list import MsGpwlWirelessList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessList(unittest.TestCase): + """MsGpwlWirelessList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_list.MsGpwlWirelessList() # noqa: E501 + if include_optional : + return MsGpwlWirelessList( + embedded = openapi_client_udm.models.ms_gpwl_wireless_list__embedded.ms_gpwl_wireless_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return MsGpwlWirelessList( + ) + + def testMsGpwlWirelessList(self): + """Test MsGpwlWirelessList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_list_embedded.py b/test/test_ms_gpwl_wireless_list_embedded.py new file mode 100644 index 0000000..47f19f8 --- /dev/null +++ b/test/test_ms_gpwl_wireless_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_list_embedded import MsGpwlWirelessListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessListEmbedded(unittest.TestCase): + """MsGpwlWirelessListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_list_embedded.MsGpwlWirelessListEmbedded() # noqa: E501 + if include_optional : + return MsGpwlWirelessListEmbedded( + udmobject = [ + null + ] + ) + else : + return MsGpwlWirelessListEmbedded( + ) + + def testMsGpwlWirelessListEmbedded(self): + """Test MsGpwlWirelessListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_policies.py b/test/test_ms_gpwl_wireless_policies.py new file mode 100644 index 0000000..353fda7 --- /dev/null +++ b/test/test_ms_gpwl_wireless_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_policies import MsGpwlWirelessPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessPolicies(unittest.TestCase): + """MsGpwlWirelessPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_policies.MsGpwlWirelessPolicies() # noqa: E501 + if include_optional : + return MsGpwlWirelessPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return MsGpwlWirelessPolicies( + ) + + def testMsGpwlWirelessPolicies(self): + """Test MsGpwlWirelessPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_request.py b/test/test_ms_gpwl_wireless_request.py new file mode 100644 index 0000000..aaf2829 --- /dev/null +++ b/test/test_ms_gpwl_wireless_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_request import MsGpwlWirelessRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessRequest(unittest.TestCase): + """MsGpwlWirelessRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMsGpwlWirelessRequest(self): + """Test MsGpwlWirelessRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_request_patch.py b/test/test_ms_gpwl_wireless_request_patch.py new file mode 100644 index 0000000..4a40ed6 --- /dev/null +++ b/test/test_ms_gpwl_wireless_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_request_patch import MsGpwlWirelessRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessRequestPatch(unittest.TestCase): + """MsGpwlWirelessRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_request_patch.MsGpwlWirelessRequestPatch() # noqa: E501 + if include_optional : + return MsGpwlWirelessRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return MsGpwlWirelessRequestPatch( + ) + + def testMsGpwlWirelessRequestPatch(self): + """Test MsGpwlWirelessRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ms_gpwl_wireless_response_mixin.py b/test/test_ms_gpwl_wireless_response_mixin.py new file mode 100644 index 0000000..779edff --- /dev/null +++ b/test/test_ms_gpwl_wireless_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.ms_gpwl_wireless_response_mixin import MsGpwlWirelessResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestMsGpwlWirelessResponseMixin(unittest.TestCase): + """MsGpwlWirelessResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test MsGpwlWirelessResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.ms_gpwl_wireless_response_mixin.MsGpwlWirelessResponseMixin() # noqa: E501 + if include_optional : + return MsGpwlWirelessResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/ms/gpwl-wireless/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return MsGpwlWirelessResponseMixin( + ) + + def testMsGpwlWirelessResponseMixin(self): + """Test MsGpwlWirelessResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_nagios.py b/test/test_nagios_nagios.py new file mode 100644 index 0000000..205bbb7 --- /dev/null +++ b/test/test_nagios_nagios.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_nagios import NagiosNagios # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosNagios(unittest.TestCase): + """NagiosNagios unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNagiosNagios(self): + """Test NagiosNagios""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_nagios_api.py b/test/test_nagios_nagios_api.py new file mode 100644 index 0000000..64ae8fa --- /dev/null +++ b/test/test_nagios_nagios_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.nagios_nagios_api import NagiosNagiosApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestNagiosNagiosApi(unittest.TestCase): + """NagiosNagiosApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.nagios_nagios_api.NagiosNagiosApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_nagios_nagios_object(self): + """Test case for udm_nagios_nagios_object + + Get a representation of the Nagios object object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_nagios_nagios_object_search(self): + """Test case for udm_nagios_nagios_object_search + + Search for Nagios objects objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_nagios_list.py b/test/test_nagios_nagios_list.py new file mode 100644 index 0000000..09c3193 --- /dev/null +++ b/test/test_nagios_nagios_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_nagios_list import NagiosNagiosList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosNagiosList(unittest.TestCase): + """NagiosNagiosList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosNagiosList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_nagios_list.NagiosNagiosList() # noqa: E501 + if include_optional : + return NagiosNagiosList( + embedded = openapi_client_udm.models.nagios_nagios_list__embedded.nagios_nagios_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return NagiosNagiosList( + ) + + def testNagiosNagiosList(self): + """Test NagiosNagiosList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_nagios_list_embedded.py b/test/test_nagios_nagios_list_embedded.py new file mode 100644 index 0000000..a16cdb3 --- /dev/null +++ b/test/test_nagios_nagios_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_nagios_list_embedded import NagiosNagiosListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosNagiosListEmbedded(unittest.TestCase): + """NagiosNagiosListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosNagiosListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_nagios_list_embedded.NagiosNagiosListEmbedded() # noqa: E501 + if include_optional : + return NagiosNagiosListEmbedded( + udmobject = [ + null + ] + ) + else : + return NagiosNagiosListEmbedded( + ) + + def testNagiosNagiosListEmbedded(self): + """Test NagiosNagiosListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_nagios_request.py b/test/test_nagios_nagios_request.py new file mode 100644 index 0000000..462d2f9 --- /dev/null +++ b/test/test_nagios_nagios_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_nagios_request import NagiosNagiosRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosNagiosRequest(unittest.TestCase): + """NagiosNagiosRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNagiosNagiosRequest(self): + """Test NagiosNagiosRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_nagios_request_patch.py b/test/test_nagios_nagios_request_patch.py new file mode 100644 index 0000000..c79e49a --- /dev/null +++ b/test/test_nagios_nagios_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_nagios_request_patch import NagiosNagiosRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosNagiosRequestPatch(unittest.TestCase): + """NagiosNagiosRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosNagiosRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_nagios_request_patch.NagiosNagiosRequestPatch() # noqa: E501 + if include_optional : + return NagiosNagiosRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return NagiosNagiosRequestPatch( + ) + + def testNagiosNagiosRequestPatch(self): + """Test NagiosNagiosRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_nagios_response_mixin.py b/test/test_nagios_nagios_response_mixin.py new file mode 100644 index 0000000..98b2daa --- /dev/null +++ b/test/test_nagios_nagios_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_nagios_response_mixin import NagiosNagiosResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosNagiosResponseMixin(unittest.TestCase): + """NagiosNagiosResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosNagiosResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_nagios_response_mixin.NagiosNagiosResponseMixin() # noqa: E501 + if include_optional : + return NagiosNagiosResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/nagios/nagios/cn={value},cn=nagios,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return NagiosNagiosResponseMixin( + ) + + def testNagiosNagiosResponseMixin(self): + """Test NagiosNagiosResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_service.py b/test/test_nagios_service.py new file mode 100644 index 0000000..8317145 --- /dev/null +++ b/test/test_nagios_service.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_service import NagiosService # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosService(unittest.TestCase): + """NagiosService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNagiosService(self): + """Test NagiosService""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_service_api.py b/test/test_nagios_service_api.py new file mode 100644 index 0000000..93cba0d --- /dev/null +++ b/test/test_nagios_service_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.nagios_service_api import NagiosServiceApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestNagiosServiceApi(unittest.TestCase): + """NagiosServiceApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.nagios_service_api.NagiosServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_nagios_service_object(self): + """Test case for udm_nagios_service_object + + Get a representation of the Nagios service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_nagios_service_object_create(self): + """Test case for udm_nagios_service_object_create + + Create a new Nagios service object # noqa: E501 + """ + pass + + def test_udm_nagios_service_object_modify(self): + """Test case for udm_nagios_service_object_modify + + Modify or move an Nagios service object # noqa: E501 + """ + pass + + def test_udm_nagios_service_object_remove(self): + """Test case for udm_nagios_service_object_remove + + Remove a Nagios services object # noqa: E501 + """ + pass + + def test_udm_nagios_service_object_search(self): + """Test case for udm_nagios_service_object_search + + Search for Nagios services objects # noqa: E501 + """ + pass + + def test_udm_nagios_service_object_template(self): + """Test case for udm_nagios_service_object_template + + Get a template for creating an Nagios service object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_nagios_service_object_update(self): + """Test case for udm_nagios_service_object_update + + Modify an Nagios service object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_service_list.py b/test/test_nagios_service_list.py new file mode 100644 index 0000000..6b179e9 --- /dev/null +++ b/test/test_nagios_service_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_service_list import NagiosServiceList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosServiceList(unittest.TestCase): + """NagiosServiceList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosServiceList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_service_list.NagiosServiceList() # noqa: E501 + if include_optional : + return NagiosServiceList( + embedded = openapi_client_udm.models.nagios_service_list__embedded.nagios_service_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return NagiosServiceList( + ) + + def testNagiosServiceList(self): + """Test NagiosServiceList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_service_list_embedded.py b/test/test_nagios_service_list_embedded.py new file mode 100644 index 0000000..807df13 --- /dev/null +++ b/test/test_nagios_service_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_service_list_embedded import NagiosServiceListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosServiceListEmbedded(unittest.TestCase): + """NagiosServiceListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosServiceListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_service_list_embedded.NagiosServiceListEmbedded() # noqa: E501 + if include_optional : + return NagiosServiceListEmbedded( + udmobject = [ + null + ] + ) + else : + return NagiosServiceListEmbedded( + ) + + def testNagiosServiceListEmbedded(self): + """Test NagiosServiceListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_service_request.py b/test/test_nagios_service_request.py new file mode 100644 index 0000000..52f0d7a --- /dev/null +++ b/test/test_nagios_service_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_service_request import NagiosServiceRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosServiceRequest(unittest.TestCase): + """NagiosServiceRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNagiosServiceRequest(self): + """Test NagiosServiceRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_service_request_patch.py b/test/test_nagios_service_request_patch.py new file mode 100644 index 0000000..05ab077 --- /dev/null +++ b/test/test_nagios_service_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_service_request_patch import NagiosServiceRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosServiceRequestPatch(unittest.TestCase): + """NagiosServiceRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosServiceRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_service_request_patch.NagiosServiceRequestPatch() # noqa: E501 + if include_optional : + return NagiosServiceRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return NagiosServiceRequestPatch( + ) + + def testNagiosServiceRequestPatch(self): + """Test NagiosServiceRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_service_response_mixin.py b/test/test_nagios_service_response_mixin.py new file mode 100644 index 0000000..78a09e3 --- /dev/null +++ b/test/test_nagios_service_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_service_response_mixin import NagiosServiceResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosServiceResponseMixin(unittest.TestCase): + """NagiosServiceResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosServiceResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_service_response_mixin.NagiosServiceResponseMixin() # noqa: E501 + if include_optional : + return NagiosServiceResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/nagios/service/cn={value},cn=nagios,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return NagiosServiceResponseMixin( + ) + + def testNagiosServiceResponseMixin(self): + """Test NagiosServiceResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_timeperiod.py b/test/test_nagios_timeperiod.py new file mode 100644 index 0000000..12c8fd8 --- /dev/null +++ b/test/test_nagios_timeperiod.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_timeperiod import NagiosTimeperiod # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosTimeperiod(unittest.TestCase): + """NagiosTimeperiod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNagiosTimeperiod(self): + """Test NagiosTimeperiod""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_timeperiod_api.py b/test/test_nagios_timeperiod_api.py new file mode 100644 index 0000000..270a216 --- /dev/null +++ b/test/test_nagios_timeperiod_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.nagios_timeperiod_api import NagiosTimeperiodApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestNagiosTimeperiodApi(unittest.TestCase): + """NagiosTimeperiodApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.nagios_timeperiod_api.NagiosTimeperiodApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_nagios_timeperiod_object(self): + """Test case for udm_nagios_timeperiod_object + + Get a representation of the Nagios time period object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_nagios_timeperiod_object_create(self): + """Test case for udm_nagios_timeperiod_object_create + + Create a new Nagios time period object # noqa: E501 + """ + pass + + def test_udm_nagios_timeperiod_object_modify(self): + """Test case for udm_nagios_timeperiod_object_modify + + Modify or move an Nagios time period object # noqa: E501 + """ + pass + + def test_udm_nagios_timeperiod_object_remove(self): + """Test case for udm_nagios_timeperiod_object_remove + + Remove a Nagios time periods object # noqa: E501 + """ + pass + + def test_udm_nagios_timeperiod_object_search(self): + """Test case for udm_nagios_timeperiod_object_search + + Search for Nagios time periods objects # noqa: E501 + """ + pass + + def test_udm_nagios_timeperiod_object_template(self): + """Test case for udm_nagios_timeperiod_object_template + + Get a template for creating an Nagios time period object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_nagios_timeperiod_object_update(self): + """Test case for udm_nagios_timeperiod_object_update + + Modify an Nagios time period object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_timeperiod_list.py b/test/test_nagios_timeperiod_list.py new file mode 100644 index 0000000..dae3e94 --- /dev/null +++ b/test/test_nagios_timeperiod_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_timeperiod_list import NagiosTimeperiodList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosTimeperiodList(unittest.TestCase): + """NagiosTimeperiodList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosTimeperiodList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_timeperiod_list.NagiosTimeperiodList() # noqa: E501 + if include_optional : + return NagiosTimeperiodList( + embedded = openapi_client_udm.models.nagios_timeperiod_list__embedded.nagios_timeperiod_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return NagiosTimeperiodList( + ) + + def testNagiosTimeperiodList(self): + """Test NagiosTimeperiodList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_timeperiod_list_embedded.py b/test/test_nagios_timeperiod_list_embedded.py new file mode 100644 index 0000000..5479d4d --- /dev/null +++ b/test/test_nagios_timeperiod_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_timeperiod_list_embedded import NagiosTimeperiodListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosTimeperiodListEmbedded(unittest.TestCase): + """NagiosTimeperiodListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosTimeperiodListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_timeperiod_list_embedded.NagiosTimeperiodListEmbedded() # noqa: E501 + if include_optional : + return NagiosTimeperiodListEmbedded( + udmobject = [ + null + ] + ) + else : + return NagiosTimeperiodListEmbedded( + ) + + def testNagiosTimeperiodListEmbedded(self): + """Test NagiosTimeperiodListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_timeperiod_request.py b/test/test_nagios_timeperiod_request.py new file mode 100644 index 0000000..42e745d --- /dev/null +++ b/test/test_nagios_timeperiod_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_timeperiod_request import NagiosTimeperiodRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosTimeperiodRequest(unittest.TestCase): + """NagiosTimeperiodRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNagiosTimeperiodRequest(self): + """Test NagiosTimeperiodRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_timeperiod_request_patch.py b/test/test_nagios_timeperiod_request_patch.py new file mode 100644 index 0000000..57bc174 --- /dev/null +++ b/test/test_nagios_timeperiod_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_timeperiod_request_patch import NagiosTimeperiodRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosTimeperiodRequestPatch(unittest.TestCase): + """NagiosTimeperiodRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosTimeperiodRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_timeperiod_request_patch.NagiosTimeperiodRequestPatch() # noqa: E501 + if include_optional : + return NagiosTimeperiodRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return NagiosTimeperiodRequestPatch( + ) + + def testNagiosTimeperiodRequestPatch(self): + """Test NagiosTimeperiodRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nagios_timeperiod_response_mixin.py b/test/test_nagios_timeperiod_response_mixin.py new file mode 100644 index 0000000..74c3fcd --- /dev/null +++ b/test/test_nagios_timeperiod_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.nagios_timeperiod_response_mixin import NagiosTimeperiodResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNagiosTimeperiodResponseMixin(unittest.TestCase): + """NagiosTimeperiodResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NagiosTimeperiodResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.nagios_timeperiod_response_mixin.NagiosTimeperiodResponseMixin() # noqa: E501 + if include_optional : + return NagiosTimeperiodResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/nagios/timeperiod/cn={value},cn=nagios,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return NagiosTimeperiodResponseMixin( + ) + + def testNagiosTimeperiodResponseMixin(self): + """Test NagiosTimeperiodResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_networks_network.py b/test/test_networks_network.py new file mode 100644 index 0000000..d5a436a --- /dev/null +++ b/test/test_networks_network.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.networks_network import NetworksNetwork # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNetworksNetwork(unittest.TestCase): + """NetworksNetwork unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworksNetwork(self): + """Test NetworksNetwork""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_networks_network_api.py b/test/test_networks_network_api.py new file mode 100644 index 0000000..4adafa4 --- /dev/null +++ b/test/test_networks_network_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.networks_network_api import NetworksNetworkApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestNetworksNetworkApi(unittest.TestCase): + """NetworksNetworkApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.networks_network_api.NetworksNetworkApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_networks_network_object(self): + """Test case for udm_networks_network_object + + Get a representation of the Network object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_networks_network_object_create(self): + """Test case for udm_networks_network_object_create + + Create a new Network object # noqa: E501 + """ + pass + + def test_udm_networks_network_object_modify(self): + """Test case for udm_networks_network_object_modify + + Modify or move an Network object # noqa: E501 + """ + pass + + def test_udm_networks_network_object_remove(self): + """Test case for udm_networks_network_object_remove + + Remove a Networks object # noqa: E501 + """ + pass + + def test_udm_networks_network_object_search(self): + """Test case for udm_networks_network_object_search + + Search for Networks objects # noqa: E501 + """ + pass + + def test_udm_networks_network_object_template(self): + """Test case for udm_networks_network_object_template + + Get a template for creating an Network object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_networks_network_object_update(self): + """Test case for udm_networks_network_object_update + + Modify an Network object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_networks_network_list.py b/test/test_networks_network_list.py new file mode 100644 index 0000000..061e5bf --- /dev/null +++ b/test/test_networks_network_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.networks_network_list import NetworksNetworkList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNetworksNetworkList(unittest.TestCase): + """NetworksNetworkList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NetworksNetworkList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.networks_network_list.NetworksNetworkList() # noqa: E501 + if include_optional : + return NetworksNetworkList( + embedded = openapi_client_udm.models.networks_network_list__embedded.networks_network_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return NetworksNetworkList( + ) + + def testNetworksNetworkList(self): + """Test NetworksNetworkList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_networks_network_list_embedded.py b/test/test_networks_network_list_embedded.py new file mode 100644 index 0000000..0980ab4 --- /dev/null +++ b/test/test_networks_network_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.networks_network_list_embedded import NetworksNetworkListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNetworksNetworkListEmbedded(unittest.TestCase): + """NetworksNetworkListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NetworksNetworkListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.networks_network_list_embedded.NetworksNetworkListEmbedded() # noqa: E501 + if include_optional : + return NetworksNetworkListEmbedded( + udmobject = [ + null + ] + ) + else : + return NetworksNetworkListEmbedded( + ) + + def testNetworksNetworkListEmbedded(self): + """Test NetworksNetworkListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_networks_network_request.py b/test/test_networks_network_request.py new file mode 100644 index 0000000..9e86854 --- /dev/null +++ b/test/test_networks_network_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.networks_network_request import NetworksNetworkRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNetworksNetworkRequest(unittest.TestCase): + """NetworksNetworkRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworksNetworkRequest(self): + """Test NetworksNetworkRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_networks_network_request_patch.py b/test/test_networks_network_request_patch.py new file mode 100644 index 0000000..661ed28 --- /dev/null +++ b/test/test_networks_network_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.networks_network_request_patch import NetworksNetworkRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNetworksNetworkRequestPatch(unittest.TestCase): + """NetworksNetworkRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NetworksNetworkRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.networks_network_request_patch.NetworksNetworkRequestPatch() # noqa: E501 + if include_optional : + return NetworksNetworkRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return NetworksNetworkRequestPatch( + ) + + def testNetworksNetworkRequestPatch(self): + """Test NetworksNetworkRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_networks_network_response_mixin.py b/test/test_networks_network_response_mixin.py new file mode 100644 index 0000000..9326b9f --- /dev/null +++ b/test/test_networks_network_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.networks_network_response_mixin import NetworksNetworkResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestNetworksNetworkResponseMixin(unittest.TestCase): + """NetworksNetworkResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NetworksNetworkResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.networks_network_response_mixin.NetworksNetworkResponseMixin() # noqa: E501 + if include_optional : + return NetworksNetworkResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/networks/network/cn={value},cn=networks,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return NetworksNetworkResponseMixin( + ) + + def testNetworksNetworkResponseMixin(self): + """Test NetworksNetworkResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_admin_container.py b/test/test_policies_admin_container.py new file mode 100644 index 0000000..1255ff7 --- /dev/null +++ b/test/test_policies_admin_container.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_admin_container import PoliciesAdminContainer # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesAdminContainer(unittest.TestCase): + """PoliciesAdminContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesAdminContainer(self): + """Test PoliciesAdminContainer""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_admin_container_api.py b/test/test_policies_admin_container_api.py new file mode 100644 index 0000000..7b70cc3 --- /dev/null +++ b/test/test_policies_admin_container_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_admin_container_api import PoliciesAdminContainerApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesAdminContainerApi(unittest.TestCase): + """PoliciesAdminContainerApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_admin_container_api.PoliciesAdminContainerApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_admin_container_object(self): + """Test case for udm_policies_admin_container_object + + Get a representation of the Univention Directory Manager container settings policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_admin_container_object_create(self): + """Test case for udm_policies_admin_container_object_create + + Create a new Univention Directory Manager container settings policy object # noqa: E501 + """ + pass + + def test_udm_policies_admin_container_object_modify(self): + """Test case for udm_policies_admin_container_object_modify + + Modify or move an Univention Directory Manager container settings policy object # noqa: E501 + """ + pass + + def test_udm_policies_admin_container_object_remove(self): + """Test case for udm_policies_admin_container_object_remove + + Remove a Univention Directory Manager container settings policies object # noqa: E501 + """ + pass + + def test_udm_policies_admin_container_object_search(self): + """Test case for udm_policies_admin_container_object_search + + Search for Univention Directory Manager container settings policies objects # noqa: E501 + """ + pass + + def test_udm_policies_admin_container_object_template(self): + """Test case for udm_policies_admin_container_object_template + + Get a template for creating an Univention Directory Manager container settings policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_admin_container_object_update(self): + """Test case for udm_policies_admin_container_object_update + + Modify an Univention Directory Manager container settings policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_admin_container_list.py b/test/test_policies_admin_container_list.py new file mode 100644 index 0000000..94ab49c --- /dev/null +++ b/test/test_policies_admin_container_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_admin_container_list import PoliciesAdminContainerList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesAdminContainerList(unittest.TestCase): + """PoliciesAdminContainerList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesAdminContainerList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_admin_container_list.PoliciesAdminContainerList() # noqa: E501 + if include_optional : + return PoliciesAdminContainerList( + embedded = openapi_client_udm.models.policies_admin_container_list__embedded.policies_admin_container_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesAdminContainerList( + ) + + def testPoliciesAdminContainerList(self): + """Test PoliciesAdminContainerList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_admin_container_list_embedded.py b/test/test_policies_admin_container_list_embedded.py new file mode 100644 index 0000000..c106b2d --- /dev/null +++ b/test/test_policies_admin_container_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_admin_container_list_embedded import PoliciesAdminContainerListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesAdminContainerListEmbedded(unittest.TestCase): + """PoliciesAdminContainerListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesAdminContainerListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_admin_container_list_embedded.PoliciesAdminContainerListEmbedded() # noqa: E501 + if include_optional : + return PoliciesAdminContainerListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesAdminContainerListEmbedded( + ) + + def testPoliciesAdminContainerListEmbedded(self): + """Test PoliciesAdminContainerListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_admin_container_request.py b/test/test_policies_admin_container_request.py new file mode 100644 index 0000000..0042ede --- /dev/null +++ b/test/test_policies_admin_container_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_admin_container_request import PoliciesAdminContainerRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesAdminContainerRequest(unittest.TestCase): + """PoliciesAdminContainerRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesAdminContainerRequest(self): + """Test PoliciesAdminContainerRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_admin_container_request_patch.py b/test/test_policies_admin_container_request_patch.py new file mode 100644 index 0000000..2a0df04 --- /dev/null +++ b/test/test_policies_admin_container_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_admin_container_request_patch import PoliciesAdminContainerRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesAdminContainerRequestPatch(unittest.TestCase): + """PoliciesAdminContainerRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesAdminContainerRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_admin_container_request_patch.PoliciesAdminContainerRequestPatch() # noqa: E501 + if include_optional : + return PoliciesAdminContainerRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesAdminContainerRequestPatch( + ) + + def testPoliciesAdminContainerRequestPatch(self): + """Test PoliciesAdminContainerRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_admin_container_response_mixin.py b/test/test_policies_admin_container_response_mixin.py new file mode 100644 index 0000000..109c246 --- /dev/null +++ b/test/test_policies_admin_container_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_admin_container_response_mixin import PoliciesAdminContainerResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesAdminContainerResponseMixin(unittest.TestCase): + """PoliciesAdminContainerResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesAdminContainerResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_admin_container_response_mixin.PoliciesAdminContainerResponseMixin() # noqa: E501 + if include_optional : + return PoliciesAdminContainerResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/admin_container/cn={value},cn=container,cn=admin,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesAdminContainerResponseMixin( + ) + + def testPoliciesAdminContainerResponseMixin(self): + """Test PoliciesAdminContainerResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_desktop.py b/test/test_policies_desktop.py new file mode 100644 index 0000000..245cac0 --- /dev/null +++ b/test/test_policies_desktop.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_desktop import PoliciesDesktop # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDesktop(unittest.TestCase): + """PoliciesDesktop unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDesktop(self): + """Test PoliciesDesktop""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_desktop_api.py b/test/test_policies_desktop_api.py new file mode 100644 index 0000000..3194737 --- /dev/null +++ b/test/test_policies_desktop_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_desktop_api import PoliciesDesktopApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDesktopApi(unittest.TestCase): + """PoliciesDesktopApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_desktop_api.PoliciesDesktopApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_desktop_object(self): + """Test case for udm_policies_desktop_object + + Get a representation of the Desktop policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_desktop_object_create(self): + """Test case for udm_policies_desktop_object_create + + Create a new Desktop policy object # noqa: E501 + """ + pass + + def test_udm_policies_desktop_object_modify(self): + """Test case for udm_policies_desktop_object_modify + + Modify or move an Desktop policy object # noqa: E501 + """ + pass + + def test_udm_policies_desktop_object_remove(self): + """Test case for udm_policies_desktop_object_remove + + Remove a Desktop policies object # noqa: E501 + """ + pass + + def test_udm_policies_desktop_object_search(self): + """Test case for udm_policies_desktop_object_search + + Search for Desktop policies objects # noqa: E501 + """ + pass + + def test_udm_policies_desktop_object_template(self): + """Test case for udm_policies_desktop_object_template + + Get a template for creating an Desktop policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_desktop_object_update(self): + """Test case for udm_policies_desktop_object_update + + Modify an Desktop policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_desktop_list.py b/test/test_policies_desktop_list.py new file mode 100644 index 0000000..9033a4e --- /dev/null +++ b/test/test_policies_desktop_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_desktop_list import PoliciesDesktopList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDesktopList(unittest.TestCase): + """PoliciesDesktopList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDesktopList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_desktop_list.PoliciesDesktopList() # noqa: E501 + if include_optional : + return PoliciesDesktopList( + embedded = openapi_client_udm.models.policies_desktop_list__embedded.policies_desktop_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDesktopList( + ) + + def testPoliciesDesktopList(self): + """Test PoliciesDesktopList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_desktop_list_embedded.py b/test/test_policies_desktop_list_embedded.py new file mode 100644 index 0000000..68ad765 --- /dev/null +++ b/test/test_policies_desktop_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_desktop_list_embedded import PoliciesDesktopListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDesktopListEmbedded(unittest.TestCase): + """PoliciesDesktopListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDesktopListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_desktop_list_embedded.PoliciesDesktopListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDesktopListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDesktopListEmbedded( + ) + + def testPoliciesDesktopListEmbedded(self): + """Test PoliciesDesktopListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_desktop_request.py b/test/test_policies_desktop_request.py new file mode 100644 index 0000000..ec82604 --- /dev/null +++ b/test/test_policies_desktop_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_desktop_request import PoliciesDesktopRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDesktopRequest(unittest.TestCase): + """PoliciesDesktopRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDesktopRequest(self): + """Test PoliciesDesktopRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_desktop_request_patch.py b/test/test_policies_desktop_request_patch.py new file mode 100644 index 0000000..5dd7577 --- /dev/null +++ b/test/test_policies_desktop_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_desktop_request_patch import PoliciesDesktopRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDesktopRequestPatch(unittest.TestCase): + """PoliciesDesktopRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDesktopRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_desktop_request_patch.PoliciesDesktopRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDesktopRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDesktopRequestPatch( + ) + + def testPoliciesDesktopRequestPatch(self): + """Test PoliciesDesktopRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_desktop_response_mixin.py b/test/test_policies_desktop_response_mixin.py new file mode 100644 index 0000000..0e8fef9 --- /dev/null +++ b/test/test_policies_desktop_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_desktop_response_mixin import PoliciesDesktopResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDesktopResponseMixin(unittest.TestCase): + """PoliciesDesktopResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDesktopResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_desktop_response_mixin.PoliciesDesktopResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDesktopResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/desktop/cn={value},cn=desktop,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDesktopResponseMixin( + ) + + def testPoliciesDesktopResponseMixin(self): + """Test PoliciesDesktopResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_boot.py b/test/test_policies_dhcp_boot.py new file mode 100644 index 0000000..5f77d84 --- /dev/null +++ b/test/test_policies_dhcp_boot.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_boot import PoliciesDhcpBoot # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpBoot(unittest.TestCase): + """PoliciesDhcpBoot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpBoot(self): + """Test PoliciesDhcpBoot""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_boot_api.py b/test/test_policies_dhcp_boot_api.py new file mode 100644 index 0000000..77cb8d6 --- /dev/null +++ b/test/test_policies_dhcp_boot_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_dhcp_boot_api import PoliciesDhcpBootApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDhcpBootApi(unittest.TestCase): + """PoliciesDhcpBootApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_dhcp_boot_api.PoliciesDhcpBootApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_dhcp_boot_object(self): + """Test case for udm_policies_dhcp_boot_object + + Get a representation of the DHCP Boot policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_boot_object_create(self): + """Test case for udm_policies_dhcp_boot_object_create + + Create a new DHCP Boot policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_boot_object_modify(self): + """Test case for udm_policies_dhcp_boot_object_modify + + Modify or move an DHCP Boot policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_boot_object_remove(self): + """Test case for udm_policies_dhcp_boot_object_remove + + Remove a DHCP Boot policies object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_boot_object_search(self): + """Test case for udm_policies_dhcp_boot_object_search + + Search for DHCP Boot policies objects # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_boot_object_template(self): + """Test case for udm_policies_dhcp_boot_object_template + + Get a template for creating an DHCP Boot policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_boot_object_update(self): + """Test case for udm_policies_dhcp_boot_object_update + + Modify an DHCP Boot policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_boot_list.py b/test/test_policies_dhcp_boot_list.py new file mode 100644 index 0000000..4ac6b40 --- /dev/null +++ b/test/test_policies_dhcp_boot_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_boot_list import PoliciesDhcpBootList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpBootList(unittest.TestCase): + """PoliciesDhcpBootList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpBootList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_boot_list.PoliciesDhcpBootList() # noqa: E501 + if include_optional : + return PoliciesDhcpBootList( + embedded = openapi_client_udm.models.policies_dhcp_boot_list__embedded.policies_dhcp_boot_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDhcpBootList( + ) + + def testPoliciesDhcpBootList(self): + """Test PoliciesDhcpBootList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_boot_list_embedded.py b/test/test_policies_dhcp_boot_list_embedded.py new file mode 100644 index 0000000..af70c5e --- /dev/null +++ b/test/test_policies_dhcp_boot_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_boot_list_embedded import PoliciesDhcpBootListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpBootListEmbedded(unittest.TestCase): + """PoliciesDhcpBootListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpBootListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_boot_list_embedded.PoliciesDhcpBootListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDhcpBootListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDhcpBootListEmbedded( + ) + + def testPoliciesDhcpBootListEmbedded(self): + """Test PoliciesDhcpBootListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_boot_request.py b/test/test_policies_dhcp_boot_request.py new file mode 100644 index 0000000..0738f18 --- /dev/null +++ b/test/test_policies_dhcp_boot_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_boot_request import PoliciesDhcpBootRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpBootRequest(unittest.TestCase): + """PoliciesDhcpBootRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpBootRequest(self): + """Test PoliciesDhcpBootRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_boot_request_patch.py b/test/test_policies_dhcp_boot_request_patch.py new file mode 100644 index 0000000..960ae7f --- /dev/null +++ b/test/test_policies_dhcp_boot_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_boot_request_patch import PoliciesDhcpBootRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpBootRequestPatch(unittest.TestCase): + """PoliciesDhcpBootRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpBootRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_boot_request_patch.PoliciesDhcpBootRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDhcpBootRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDhcpBootRequestPatch( + ) + + def testPoliciesDhcpBootRequestPatch(self): + """Test PoliciesDhcpBootRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_boot_response_mixin.py b/test/test_policies_dhcp_boot_response_mixin.py new file mode 100644 index 0000000..9ac697a --- /dev/null +++ b/test/test_policies_dhcp_boot_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_boot_response_mixin import PoliciesDhcpBootResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpBootResponseMixin(unittest.TestCase): + """PoliciesDhcpBootResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpBootResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_boot_response_mixin.PoliciesDhcpBootResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDhcpBootResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/dhcp_boot/cn={value},cn=boot,cn=dhcp,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDhcpBootResponseMixin( + ) + + def testPoliciesDhcpBootResponseMixin(self): + """Test PoliciesDhcpBootResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dns.py b/test/test_policies_dhcp_dns.py new file mode 100644 index 0000000..da48bd1 --- /dev/null +++ b/test/test_policies_dhcp_dns.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dns import PoliciesDhcpDns # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDns(unittest.TestCase): + """PoliciesDhcpDns unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpDns(self): + """Test PoliciesDhcpDns""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dns_api.py b/test/test_policies_dhcp_dns_api.py new file mode 100644 index 0000000..9abb846 --- /dev/null +++ b/test/test_policies_dhcp_dns_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_dhcp_dns_api import PoliciesDhcpDnsApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDhcpDnsApi(unittest.TestCase): + """PoliciesDhcpDnsApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_dhcp_dns_api.PoliciesDhcpDnsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_dhcp_dns_object(self): + """Test case for udm_policies_dhcp_dns_object + + Get a representation of the DHCP DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dns_object_create(self): + """Test case for udm_policies_dhcp_dns_object_create + + Create a new DHCP DNS policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dns_object_modify(self): + """Test case for udm_policies_dhcp_dns_object_modify + + Modify or move an DHCP DNS policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dns_object_remove(self): + """Test case for udm_policies_dhcp_dns_object_remove + + Remove a DHCP DNS policies object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dns_object_search(self): + """Test case for udm_policies_dhcp_dns_object_search + + Search for DHCP DNS policies objects # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dns_object_template(self): + """Test case for udm_policies_dhcp_dns_object_template + + Get a template for creating an DHCP DNS policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dns_object_update(self): + """Test case for udm_policies_dhcp_dns_object_update + + Modify an DHCP DNS policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dns_list.py b/test/test_policies_dhcp_dns_list.py new file mode 100644 index 0000000..bfdcffc --- /dev/null +++ b/test/test_policies_dhcp_dns_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dns_list import PoliciesDhcpDnsList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsList(unittest.TestCase): + """PoliciesDhcpDnsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpDnsList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_dns_list.PoliciesDhcpDnsList() # noqa: E501 + if include_optional : + return PoliciesDhcpDnsList( + embedded = openapi_client_udm.models.policies_dhcp_dns_list__embedded.policies_dhcp_dns_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDhcpDnsList( + ) + + def testPoliciesDhcpDnsList(self): + """Test PoliciesDhcpDnsList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dns_list_embedded.py b/test/test_policies_dhcp_dns_list_embedded.py new file mode 100644 index 0000000..932bf12 --- /dev/null +++ b/test/test_policies_dhcp_dns_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dns_list_embedded import PoliciesDhcpDnsListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsListEmbedded(unittest.TestCase): + """PoliciesDhcpDnsListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpDnsListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_dns_list_embedded.PoliciesDhcpDnsListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDhcpDnsListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDhcpDnsListEmbedded( + ) + + def testPoliciesDhcpDnsListEmbedded(self): + """Test PoliciesDhcpDnsListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dns_request.py b/test/test_policies_dhcp_dns_request.py new file mode 100644 index 0000000..4b28a47 --- /dev/null +++ b/test/test_policies_dhcp_dns_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dns_request import PoliciesDhcpDnsRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsRequest(unittest.TestCase): + """PoliciesDhcpDnsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpDnsRequest(self): + """Test PoliciesDhcpDnsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dns_request_patch.py b/test/test_policies_dhcp_dns_request_patch.py new file mode 100644 index 0000000..2886885 --- /dev/null +++ b/test/test_policies_dhcp_dns_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dns_request_patch import PoliciesDhcpDnsRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsRequestPatch(unittest.TestCase): + """PoliciesDhcpDnsRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpDnsRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_dns_request_patch.PoliciesDhcpDnsRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDhcpDnsRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDhcpDnsRequestPatch( + ) + + def testPoliciesDhcpDnsRequestPatch(self): + """Test PoliciesDhcpDnsRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dns_response_mixin.py b/test/test_policies_dhcp_dns_response_mixin.py new file mode 100644 index 0000000..6bc15a6 --- /dev/null +++ b/test/test_policies_dhcp_dns_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dns_response_mixin import PoliciesDhcpDnsResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsResponseMixin(unittest.TestCase): + """PoliciesDhcpDnsResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpDnsResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_dns_response_mixin.PoliciesDhcpDnsResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDhcpDnsResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/dhcp_dns/cn={value},cn=dns,cn=dhcp,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDhcpDnsResponseMixin( + ) + + def testPoliciesDhcpDnsResponseMixin(self): + """Test PoliciesDhcpDnsResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dnsupdate.py b/test/test_policies_dhcp_dnsupdate.py new file mode 100644 index 0000000..5becfcf --- /dev/null +++ b/test/test_policies_dhcp_dnsupdate.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dnsupdate import PoliciesDhcpDnsupdate # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsupdate(unittest.TestCase): + """PoliciesDhcpDnsupdate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpDnsupdate(self): + """Test PoliciesDhcpDnsupdate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dnsupdate_api.py b/test/test_policies_dhcp_dnsupdate_api.py new file mode 100644 index 0000000..78449e7 --- /dev/null +++ b/test/test_policies_dhcp_dnsupdate_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_dhcp_dnsupdate_api import PoliciesDhcpDnsupdateApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDhcpDnsupdateApi(unittest.TestCase): + """PoliciesDhcpDnsupdateApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_dhcp_dnsupdate_api.PoliciesDhcpDnsupdateApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_dhcp_dnsupdate_object(self): + """Test case for udm_policies_dhcp_dnsupdate_object + + Get a representation of the DHCP Dynamic DNS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dnsupdate_object_create(self): + """Test case for udm_policies_dhcp_dnsupdate_object_create + + Create a new DHCP Dynamic DNS policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dnsupdate_object_modify(self): + """Test case for udm_policies_dhcp_dnsupdate_object_modify + + Modify or move an DHCP Dynamic DNS policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dnsupdate_object_remove(self): + """Test case for udm_policies_dhcp_dnsupdate_object_remove + + Remove a DHCP Dynamic DNS policies object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dnsupdate_object_search(self): + """Test case for udm_policies_dhcp_dnsupdate_object_search + + Search for DHCP Dynamic DNS policies objects # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dnsupdate_object_template(self): + """Test case for udm_policies_dhcp_dnsupdate_object_template + + Get a template for creating an DHCP Dynamic DNS policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_dnsupdate_object_update(self): + """Test case for udm_policies_dhcp_dnsupdate_object_update + + Modify an DHCP Dynamic DNS policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dnsupdate_list.py b/test/test_policies_dhcp_dnsupdate_list.py new file mode 100644 index 0000000..fb4e8d0 --- /dev/null +++ b/test/test_policies_dhcp_dnsupdate_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dnsupdate_list import PoliciesDhcpDnsupdateList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsupdateList(unittest.TestCase): + """PoliciesDhcpDnsupdateList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpDnsupdateList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_dnsupdate_list.PoliciesDhcpDnsupdateList() # noqa: E501 + if include_optional : + return PoliciesDhcpDnsupdateList( + embedded = openapi_client_udm.models.policies_dhcp_dnsupdate_list__embedded.policies_dhcp_dnsupdate_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDhcpDnsupdateList( + ) + + def testPoliciesDhcpDnsupdateList(self): + """Test PoliciesDhcpDnsupdateList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dnsupdate_list_embedded.py b/test/test_policies_dhcp_dnsupdate_list_embedded.py new file mode 100644 index 0000000..c4b8df2 --- /dev/null +++ b/test/test_policies_dhcp_dnsupdate_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dnsupdate_list_embedded import PoliciesDhcpDnsupdateListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsupdateListEmbedded(unittest.TestCase): + """PoliciesDhcpDnsupdateListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpDnsupdateListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_dnsupdate_list_embedded.PoliciesDhcpDnsupdateListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDhcpDnsupdateListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDhcpDnsupdateListEmbedded( + ) + + def testPoliciesDhcpDnsupdateListEmbedded(self): + """Test PoliciesDhcpDnsupdateListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dnsupdate_request.py b/test/test_policies_dhcp_dnsupdate_request.py new file mode 100644 index 0000000..8c76e9c --- /dev/null +++ b/test/test_policies_dhcp_dnsupdate_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dnsupdate_request import PoliciesDhcpDnsupdateRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsupdateRequest(unittest.TestCase): + """PoliciesDhcpDnsupdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpDnsupdateRequest(self): + """Test PoliciesDhcpDnsupdateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dnsupdate_request_patch.py b/test/test_policies_dhcp_dnsupdate_request_patch.py new file mode 100644 index 0000000..9fe13cf --- /dev/null +++ b/test/test_policies_dhcp_dnsupdate_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dnsupdate_request_patch import PoliciesDhcpDnsupdateRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsupdateRequestPatch(unittest.TestCase): + """PoliciesDhcpDnsupdateRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpDnsupdateRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_dnsupdate_request_patch.PoliciesDhcpDnsupdateRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDhcpDnsupdateRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDhcpDnsupdateRequestPatch( + ) + + def testPoliciesDhcpDnsupdateRequestPatch(self): + """Test PoliciesDhcpDnsupdateRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_dnsupdate_response_mixin.py b/test/test_policies_dhcp_dnsupdate_response_mixin.py new file mode 100644 index 0000000..31d130a --- /dev/null +++ b/test/test_policies_dhcp_dnsupdate_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_dnsupdate_response_mixin import PoliciesDhcpDnsupdateResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpDnsupdateResponseMixin(unittest.TestCase): + """PoliciesDhcpDnsupdateResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpDnsupdateResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_dnsupdate_response_mixin.PoliciesDhcpDnsupdateResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDhcpDnsupdateResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/dhcp_dnsupdate/cn={value},cn=dnsupdate,cn=dhcp,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDhcpDnsupdateResponseMixin( + ) + + def testPoliciesDhcpDnsupdateResponseMixin(self): + """Test PoliciesDhcpDnsupdateResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_leasetime.py b/test/test_policies_dhcp_leasetime.py new file mode 100644 index 0000000..50d5724 --- /dev/null +++ b/test/test_policies_dhcp_leasetime.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_leasetime import PoliciesDhcpLeasetime # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpLeasetime(unittest.TestCase): + """PoliciesDhcpLeasetime unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpLeasetime(self): + """Test PoliciesDhcpLeasetime""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_leasetime_api.py b/test/test_policies_dhcp_leasetime_api.py new file mode 100644 index 0000000..a3e2f85 --- /dev/null +++ b/test/test_policies_dhcp_leasetime_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_dhcp_leasetime_api import PoliciesDhcpLeasetimeApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDhcpLeasetimeApi(unittest.TestCase): + """PoliciesDhcpLeasetimeApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_dhcp_leasetime_api.PoliciesDhcpLeasetimeApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_dhcp_leasetime_object(self): + """Test case for udm_policies_dhcp_leasetime_object + + Get a representation of the DHCP lease time policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_leasetime_object_create(self): + """Test case for udm_policies_dhcp_leasetime_object_create + + Create a new DHCP lease time policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_leasetime_object_modify(self): + """Test case for udm_policies_dhcp_leasetime_object_modify + + Modify or move an DHCP lease time policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_leasetime_object_remove(self): + """Test case for udm_policies_dhcp_leasetime_object_remove + + Remove a DHCP lease time policies object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_leasetime_object_search(self): + """Test case for udm_policies_dhcp_leasetime_object_search + + Search for DHCP lease time policies objects # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_leasetime_object_template(self): + """Test case for udm_policies_dhcp_leasetime_object_template + + Get a template for creating an DHCP lease time policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_leasetime_object_update(self): + """Test case for udm_policies_dhcp_leasetime_object_update + + Modify an DHCP lease time policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_leasetime_list.py b/test/test_policies_dhcp_leasetime_list.py new file mode 100644 index 0000000..1e6abd9 --- /dev/null +++ b/test/test_policies_dhcp_leasetime_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_leasetime_list import PoliciesDhcpLeasetimeList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpLeasetimeList(unittest.TestCase): + """PoliciesDhcpLeasetimeList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpLeasetimeList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_leasetime_list.PoliciesDhcpLeasetimeList() # noqa: E501 + if include_optional : + return PoliciesDhcpLeasetimeList( + embedded = openapi_client_udm.models.policies_dhcp_leasetime_list__embedded.policies_dhcp_leasetime_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDhcpLeasetimeList( + ) + + def testPoliciesDhcpLeasetimeList(self): + """Test PoliciesDhcpLeasetimeList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_leasetime_list_embedded.py b/test/test_policies_dhcp_leasetime_list_embedded.py new file mode 100644 index 0000000..9e514d6 --- /dev/null +++ b/test/test_policies_dhcp_leasetime_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_leasetime_list_embedded import PoliciesDhcpLeasetimeListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpLeasetimeListEmbedded(unittest.TestCase): + """PoliciesDhcpLeasetimeListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpLeasetimeListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_leasetime_list_embedded.PoliciesDhcpLeasetimeListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDhcpLeasetimeListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDhcpLeasetimeListEmbedded( + ) + + def testPoliciesDhcpLeasetimeListEmbedded(self): + """Test PoliciesDhcpLeasetimeListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_leasetime_request.py b/test/test_policies_dhcp_leasetime_request.py new file mode 100644 index 0000000..dabaa15 --- /dev/null +++ b/test/test_policies_dhcp_leasetime_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_leasetime_request import PoliciesDhcpLeasetimeRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpLeasetimeRequest(unittest.TestCase): + """PoliciesDhcpLeasetimeRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpLeasetimeRequest(self): + """Test PoliciesDhcpLeasetimeRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_leasetime_request_patch.py b/test/test_policies_dhcp_leasetime_request_patch.py new file mode 100644 index 0000000..050f7ef --- /dev/null +++ b/test/test_policies_dhcp_leasetime_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_leasetime_request_patch import PoliciesDhcpLeasetimeRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpLeasetimeRequestPatch(unittest.TestCase): + """PoliciesDhcpLeasetimeRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpLeasetimeRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_leasetime_request_patch.PoliciesDhcpLeasetimeRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDhcpLeasetimeRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDhcpLeasetimeRequestPatch( + ) + + def testPoliciesDhcpLeasetimeRequestPatch(self): + """Test PoliciesDhcpLeasetimeRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_leasetime_response_mixin.py b/test/test_policies_dhcp_leasetime_response_mixin.py new file mode 100644 index 0000000..fb26794 --- /dev/null +++ b/test/test_policies_dhcp_leasetime_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_leasetime_response_mixin import PoliciesDhcpLeasetimeResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpLeasetimeResponseMixin(unittest.TestCase): + """PoliciesDhcpLeasetimeResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpLeasetimeResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_leasetime_response_mixin.PoliciesDhcpLeasetimeResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDhcpLeasetimeResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/dhcp_leasetime/cn={value},cn=leasetime,cn=dhcp,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDhcpLeasetimeResponseMixin( + ) + + def testPoliciesDhcpLeasetimeResponseMixin(self): + """Test PoliciesDhcpLeasetimeResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_netbios.py b/test/test_policies_dhcp_netbios.py new file mode 100644 index 0000000..e28a37b --- /dev/null +++ b/test/test_policies_dhcp_netbios.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_netbios import PoliciesDhcpNetbios # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpNetbios(unittest.TestCase): + """PoliciesDhcpNetbios unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpNetbios(self): + """Test PoliciesDhcpNetbios""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_netbios_api.py b/test/test_policies_dhcp_netbios_api.py new file mode 100644 index 0000000..003215c --- /dev/null +++ b/test/test_policies_dhcp_netbios_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_dhcp_netbios_api import PoliciesDhcpNetbiosApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDhcpNetbiosApi(unittest.TestCase): + """PoliciesDhcpNetbiosApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_dhcp_netbios_api.PoliciesDhcpNetbiosApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_dhcp_netbios_object(self): + """Test case for udm_policies_dhcp_netbios_object + + Get a representation of the DHCP NetBIOS policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_netbios_object_create(self): + """Test case for udm_policies_dhcp_netbios_object_create + + Create a new DHCP NetBIOS policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_netbios_object_modify(self): + """Test case for udm_policies_dhcp_netbios_object_modify + + Modify or move an DHCP NetBIOS policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_netbios_object_remove(self): + """Test case for udm_policies_dhcp_netbios_object_remove + + Remove a DHCP NetBIOS policies object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_netbios_object_search(self): + """Test case for udm_policies_dhcp_netbios_object_search + + Search for DHCP NetBIOS policies objects # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_netbios_object_template(self): + """Test case for udm_policies_dhcp_netbios_object_template + + Get a template for creating an DHCP NetBIOS policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_netbios_object_update(self): + """Test case for udm_policies_dhcp_netbios_object_update + + Modify an DHCP NetBIOS policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_netbios_list.py b/test/test_policies_dhcp_netbios_list.py new file mode 100644 index 0000000..a93fc9f --- /dev/null +++ b/test/test_policies_dhcp_netbios_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_netbios_list import PoliciesDhcpNetbiosList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpNetbiosList(unittest.TestCase): + """PoliciesDhcpNetbiosList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpNetbiosList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_netbios_list.PoliciesDhcpNetbiosList() # noqa: E501 + if include_optional : + return PoliciesDhcpNetbiosList( + embedded = openapi_client_udm.models.policies_dhcp_netbios_list__embedded.policies_dhcp_netbios_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDhcpNetbiosList( + ) + + def testPoliciesDhcpNetbiosList(self): + """Test PoliciesDhcpNetbiosList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_netbios_list_embedded.py b/test/test_policies_dhcp_netbios_list_embedded.py new file mode 100644 index 0000000..2dd7bb1 --- /dev/null +++ b/test/test_policies_dhcp_netbios_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_netbios_list_embedded import PoliciesDhcpNetbiosListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpNetbiosListEmbedded(unittest.TestCase): + """PoliciesDhcpNetbiosListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpNetbiosListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_netbios_list_embedded.PoliciesDhcpNetbiosListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDhcpNetbiosListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDhcpNetbiosListEmbedded( + ) + + def testPoliciesDhcpNetbiosListEmbedded(self): + """Test PoliciesDhcpNetbiosListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_netbios_request.py b/test/test_policies_dhcp_netbios_request.py new file mode 100644 index 0000000..a73fa0b --- /dev/null +++ b/test/test_policies_dhcp_netbios_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_netbios_request import PoliciesDhcpNetbiosRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpNetbiosRequest(unittest.TestCase): + """PoliciesDhcpNetbiosRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpNetbiosRequest(self): + """Test PoliciesDhcpNetbiosRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_netbios_request_patch.py b/test/test_policies_dhcp_netbios_request_patch.py new file mode 100644 index 0000000..ba9d4c2 --- /dev/null +++ b/test/test_policies_dhcp_netbios_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_netbios_request_patch import PoliciesDhcpNetbiosRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpNetbiosRequestPatch(unittest.TestCase): + """PoliciesDhcpNetbiosRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpNetbiosRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_netbios_request_patch.PoliciesDhcpNetbiosRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDhcpNetbiosRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDhcpNetbiosRequestPatch( + ) + + def testPoliciesDhcpNetbiosRequestPatch(self): + """Test PoliciesDhcpNetbiosRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_netbios_response_mixin.py b/test/test_policies_dhcp_netbios_response_mixin.py new file mode 100644 index 0000000..bf81f80 --- /dev/null +++ b/test/test_policies_dhcp_netbios_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_netbios_response_mixin import PoliciesDhcpNetbiosResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpNetbiosResponseMixin(unittest.TestCase): + """PoliciesDhcpNetbiosResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpNetbiosResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_netbios_response_mixin.PoliciesDhcpNetbiosResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDhcpNetbiosResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/dhcp_netbios/cn={value},cn=netbios,cn=dhcp,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDhcpNetbiosResponseMixin( + ) + + def testPoliciesDhcpNetbiosResponseMixin(self): + """Test PoliciesDhcpNetbiosResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_routing.py b/test/test_policies_dhcp_routing.py new file mode 100644 index 0000000..2fbdee5 --- /dev/null +++ b/test/test_policies_dhcp_routing.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_routing import PoliciesDhcpRouting # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpRouting(unittest.TestCase): + """PoliciesDhcpRouting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpRouting(self): + """Test PoliciesDhcpRouting""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_routing_api.py b/test/test_policies_dhcp_routing_api.py new file mode 100644 index 0000000..45dda7d --- /dev/null +++ b/test/test_policies_dhcp_routing_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_dhcp_routing_api import PoliciesDhcpRoutingApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDhcpRoutingApi(unittest.TestCase): + """PoliciesDhcpRoutingApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_dhcp_routing_api.PoliciesDhcpRoutingApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_dhcp_routing_object(self): + """Test case for udm_policies_dhcp_routing_object + + Get a representation of the DHCP routing policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_routing_object_create(self): + """Test case for udm_policies_dhcp_routing_object_create + + Create a new DHCP routing policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_routing_object_modify(self): + """Test case for udm_policies_dhcp_routing_object_modify + + Modify or move an DHCP routing policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_routing_object_remove(self): + """Test case for udm_policies_dhcp_routing_object_remove + + Remove a DHCP routing policies object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_routing_object_search(self): + """Test case for udm_policies_dhcp_routing_object_search + + Search for DHCP routing policies objects # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_routing_object_template(self): + """Test case for udm_policies_dhcp_routing_object_template + + Get a template for creating an DHCP routing policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_routing_object_update(self): + """Test case for udm_policies_dhcp_routing_object_update + + Modify an DHCP routing policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_routing_list.py b/test/test_policies_dhcp_routing_list.py new file mode 100644 index 0000000..ece4ee3 --- /dev/null +++ b/test/test_policies_dhcp_routing_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_routing_list import PoliciesDhcpRoutingList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpRoutingList(unittest.TestCase): + """PoliciesDhcpRoutingList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpRoutingList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_routing_list.PoliciesDhcpRoutingList() # noqa: E501 + if include_optional : + return PoliciesDhcpRoutingList( + embedded = openapi_client_udm.models.policies_dhcp_routing_list__embedded.policies_dhcp_routing_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDhcpRoutingList( + ) + + def testPoliciesDhcpRoutingList(self): + """Test PoliciesDhcpRoutingList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_routing_list_embedded.py b/test/test_policies_dhcp_routing_list_embedded.py new file mode 100644 index 0000000..cb9c080 --- /dev/null +++ b/test/test_policies_dhcp_routing_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_routing_list_embedded import PoliciesDhcpRoutingListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpRoutingListEmbedded(unittest.TestCase): + """PoliciesDhcpRoutingListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpRoutingListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_routing_list_embedded.PoliciesDhcpRoutingListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDhcpRoutingListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDhcpRoutingListEmbedded( + ) + + def testPoliciesDhcpRoutingListEmbedded(self): + """Test PoliciesDhcpRoutingListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_routing_request.py b/test/test_policies_dhcp_routing_request.py new file mode 100644 index 0000000..73f6f39 --- /dev/null +++ b/test/test_policies_dhcp_routing_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_routing_request import PoliciesDhcpRoutingRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpRoutingRequest(unittest.TestCase): + """PoliciesDhcpRoutingRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpRoutingRequest(self): + """Test PoliciesDhcpRoutingRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_routing_request_patch.py b/test/test_policies_dhcp_routing_request_patch.py new file mode 100644 index 0000000..6fa284e --- /dev/null +++ b/test/test_policies_dhcp_routing_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_routing_request_patch import PoliciesDhcpRoutingRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpRoutingRequestPatch(unittest.TestCase): + """PoliciesDhcpRoutingRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpRoutingRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_routing_request_patch.PoliciesDhcpRoutingRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDhcpRoutingRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDhcpRoutingRequestPatch( + ) + + def testPoliciesDhcpRoutingRequestPatch(self): + """Test PoliciesDhcpRoutingRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_routing_response_mixin.py b/test/test_policies_dhcp_routing_response_mixin.py new file mode 100644 index 0000000..dc0e482 --- /dev/null +++ b/test/test_policies_dhcp_routing_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_routing_response_mixin import PoliciesDhcpRoutingResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpRoutingResponseMixin(unittest.TestCase): + """PoliciesDhcpRoutingResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpRoutingResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_routing_response_mixin.PoliciesDhcpRoutingResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDhcpRoutingResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/dhcp_routing/cn={value},cn=routing,cn=dhcp,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDhcpRoutingResponseMixin( + ) + + def testPoliciesDhcpRoutingResponseMixin(self): + """Test PoliciesDhcpRoutingResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_scope.py b/test/test_policies_dhcp_scope.py new file mode 100644 index 0000000..ca67743 --- /dev/null +++ b/test/test_policies_dhcp_scope.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_scope import PoliciesDhcpScope # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpScope(unittest.TestCase): + """PoliciesDhcpScope unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpScope(self): + """Test PoliciesDhcpScope""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_scope_api.py b/test/test_policies_dhcp_scope_api.py new file mode 100644 index 0000000..8790316 --- /dev/null +++ b/test/test_policies_dhcp_scope_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_dhcp_scope_api import PoliciesDhcpScopeApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDhcpScopeApi(unittest.TestCase): + """PoliciesDhcpScopeApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_dhcp_scope_api.PoliciesDhcpScopeApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_dhcp_scope_object(self): + """Test case for udm_policies_dhcp_scope_object + + Get a representation of the DHCP Allow/Deny policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_scope_object_create(self): + """Test case for udm_policies_dhcp_scope_object_create + + Create a new DHCP Allow/Deny policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_scope_object_modify(self): + """Test case for udm_policies_dhcp_scope_object_modify + + Modify or move an DHCP Allow/Deny policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_scope_object_remove(self): + """Test case for udm_policies_dhcp_scope_object_remove + + Remove a DHCP Allow/Deny policies object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_scope_object_search(self): + """Test case for udm_policies_dhcp_scope_object_search + + Search for DHCP Allow/Deny policies objects # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_scope_object_template(self): + """Test case for udm_policies_dhcp_scope_object_template + + Get a template for creating an DHCP Allow/Deny policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_scope_object_update(self): + """Test case for udm_policies_dhcp_scope_object_update + + Modify an DHCP Allow/Deny policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_scope_list.py b/test/test_policies_dhcp_scope_list.py new file mode 100644 index 0000000..b4bf66d --- /dev/null +++ b/test/test_policies_dhcp_scope_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_scope_list import PoliciesDhcpScopeList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpScopeList(unittest.TestCase): + """PoliciesDhcpScopeList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpScopeList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_scope_list.PoliciesDhcpScopeList() # noqa: E501 + if include_optional : + return PoliciesDhcpScopeList( + embedded = openapi_client_udm.models.policies_dhcp_scope_list__embedded.policies_dhcp_scope_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDhcpScopeList( + ) + + def testPoliciesDhcpScopeList(self): + """Test PoliciesDhcpScopeList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_scope_list_embedded.py b/test/test_policies_dhcp_scope_list_embedded.py new file mode 100644 index 0000000..c3e1650 --- /dev/null +++ b/test/test_policies_dhcp_scope_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_scope_list_embedded import PoliciesDhcpScopeListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpScopeListEmbedded(unittest.TestCase): + """PoliciesDhcpScopeListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpScopeListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_scope_list_embedded.PoliciesDhcpScopeListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDhcpScopeListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDhcpScopeListEmbedded( + ) + + def testPoliciesDhcpScopeListEmbedded(self): + """Test PoliciesDhcpScopeListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_scope_request.py b/test/test_policies_dhcp_scope_request.py new file mode 100644 index 0000000..28454f2 --- /dev/null +++ b/test/test_policies_dhcp_scope_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_scope_request import PoliciesDhcpScopeRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpScopeRequest(unittest.TestCase): + """PoliciesDhcpScopeRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpScopeRequest(self): + """Test PoliciesDhcpScopeRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_scope_request_patch.py b/test/test_policies_dhcp_scope_request_patch.py new file mode 100644 index 0000000..19b1b06 --- /dev/null +++ b/test/test_policies_dhcp_scope_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_scope_request_patch import PoliciesDhcpScopeRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpScopeRequestPatch(unittest.TestCase): + """PoliciesDhcpScopeRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpScopeRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_scope_request_patch.PoliciesDhcpScopeRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDhcpScopeRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDhcpScopeRequestPatch( + ) + + def testPoliciesDhcpScopeRequestPatch(self): + """Test PoliciesDhcpScopeRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_scope_response_mixin.py b/test/test_policies_dhcp_scope_response_mixin.py new file mode 100644 index 0000000..fda821a --- /dev/null +++ b/test/test_policies_dhcp_scope_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_scope_response_mixin import PoliciesDhcpScopeResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpScopeResponseMixin(unittest.TestCase): + """PoliciesDhcpScopeResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpScopeResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_scope_response_mixin.PoliciesDhcpScopeResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDhcpScopeResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/dhcp_scope/cn={value},cn=scope,cn=dhcp,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDhcpScopeResponseMixin( + ) + + def testPoliciesDhcpScopeResponseMixin(self): + """Test PoliciesDhcpScopeResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_statements.py b/test/test_policies_dhcp_statements.py new file mode 100644 index 0000000..eb71eed --- /dev/null +++ b/test/test_policies_dhcp_statements.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_statements import PoliciesDhcpStatements # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpStatements(unittest.TestCase): + """PoliciesDhcpStatements unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpStatements(self): + """Test PoliciesDhcpStatements""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_statements_api.py b/test/test_policies_dhcp_statements_api.py new file mode 100644 index 0000000..c485c14 --- /dev/null +++ b/test/test_policies_dhcp_statements_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_dhcp_statements_api import PoliciesDhcpStatementsApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesDhcpStatementsApi(unittest.TestCase): + """PoliciesDhcpStatementsApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_dhcp_statements_api.PoliciesDhcpStatementsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_dhcp_statements_object(self): + """Test case for udm_policies_dhcp_statements_object + + Get a representation of the DHCP statements policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_statements_object_create(self): + """Test case for udm_policies_dhcp_statements_object_create + + Create a new DHCP statements policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_statements_object_modify(self): + """Test case for udm_policies_dhcp_statements_object_modify + + Modify or move an DHCP statements policy object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_statements_object_remove(self): + """Test case for udm_policies_dhcp_statements_object_remove + + Remove a DHCP statements policies object # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_statements_object_search(self): + """Test case for udm_policies_dhcp_statements_object_search + + Search for DHCP statements policies objects # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_statements_object_template(self): + """Test case for udm_policies_dhcp_statements_object_template + + Get a template for creating an DHCP statements policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_dhcp_statements_object_update(self): + """Test case for udm_policies_dhcp_statements_object_update + + Modify an DHCP statements policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_statements_list.py b/test/test_policies_dhcp_statements_list.py new file mode 100644 index 0000000..1451171 --- /dev/null +++ b/test/test_policies_dhcp_statements_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_statements_list import PoliciesDhcpStatementsList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpStatementsList(unittest.TestCase): + """PoliciesDhcpStatementsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpStatementsList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_statements_list.PoliciesDhcpStatementsList() # noqa: E501 + if include_optional : + return PoliciesDhcpStatementsList( + embedded = openapi_client_udm.models.policies_dhcp_statements_list__embedded.policies_dhcp_statements_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesDhcpStatementsList( + ) + + def testPoliciesDhcpStatementsList(self): + """Test PoliciesDhcpStatementsList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_statements_list_embedded.py b/test/test_policies_dhcp_statements_list_embedded.py new file mode 100644 index 0000000..4d4ade9 --- /dev/null +++ b/test/test_policies_dhcp_statements_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_statements_list_embedded import PoliciesDhcpStatementsListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpStatementsListEmbedded(unittest.TestCase): + """PoliciesDhcpStatementsListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpStatementsListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_statements_list_embedded.PoliciesDhcpStatementsListEmbedded() # noqa: E501 + if include_optional : + return PoliciesDhcpStatementsListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesDhcpStatementsListEmbedded( + ) + + def testPoliciesDhcpStatementsListEmbedded(self): + """Test PoliciesDhcpStatementsListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_statements_request.py b/test/test_policies_dhcp_statements_request.py new file mode 100644 index 0000000..62abe4d --- /dev/null +++ b/test/test_policies_dhcp_statements_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_statements_request import PoliciesDhcpStatementsRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpStatementsRequest(unittest.TestCase): + """PoliciesDhcpStatementsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesDhcpStatementsRequest(self): + """Test PoliciesDhcpStatementsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_statements_request_patch.py b/test/test_policies_dhcp_statements_request_patch.py new file mode 100644 index 0000000..4daa91b --- /dev/null +++ b/test/test_policies_dhcp_statements_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_statements_request_patch import PoliciesDhcpStatementsRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpStatementsRequestPatch(unittest.TestCase): + """PoliciesDhcpStatementsRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpStatementsRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_statements_request_patch.PoliciesDhcpStatementsRequestPatch() # noqa: E501 + if include_optional : + return PoliciesDhcpStatementsRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesDhcpStatementsRequestPatch( + ) + + def testPoliciesDhcpStatementsRequestPatch(self): + """Test PoliciesDhcpStatementsRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_dhcp_statements_response_mixin.py b/test/test_policies_dhcp_statements_response_mixin.py new file mode 100644 index 0000000..701dc6d --- /dev/null +++ b/test/test_policies_dhcp_statements_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_dhcp_statements_response_mixin import PoliciesDhcpStatementsResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesDhcpStatementsResponseMixin(unittest.TestCase): + """PoliciesDhcpStatementsResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesDhcpStatementsResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_dhcp_statements_response_mixin.PoliciesDhcpStatementsResponseMixin() # noqa: E501 + if include_optional : + return PoliciesDhcpStatementsResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/dhcp_statements/cn={value},cn=statements,cn=dhcp,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesDhcpStatementsResponseMixin( + ) + + def testPoliciesDhcpStatementsResponseMixin(self): + """Test PoliciesDhcpStatementsResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_ldapserver.py b/test/test_policies_ldapserver.py new file mode 100644 index 0000000..6272b91 --- /dev/null +++ b/test/test_policies_ldapserver.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_ldapserver import PoliciesLdapserver # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesLdapserver(unittest.TestCase): + """PoliciesLdapserver unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesLdapserver(self): + """Test PoliciesLdapserver""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_ldapserver_api.py b/test/test_policies_ldapserver_api.py new file mode 100644 index 0000000..94aaa72 --- /dev/null +++ b/test/test_policies_ldapserver_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_ldapserver_api import PoliciesLdapserverApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesLdapserverApi(unittest.TestCase): + """PoliciesLdapserverApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_ldapserver_api.PoliciesLdapserverApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_ldapserver_object(self): + """Test case for udm_policies_ldapserver_object + + Get a representation of the LDAP server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_ldapserver_object_create(self): + """Test case for udm_policies_ldapserver_object_create + + Create a new LDAP server policy object # noqa: E501 + """ + pass + + def test_udm_policies_ldapserver_object_modify(self): + """Test case for udm_policies_ldapserver_object_modify + + Modify or move an LDAP server policy object # noqa: E501 + """ + pass + + def test_udm_policies_ldapserver_object_remove(self): + """Test case for udm_policies_ldapserver_object_remove + + Remove a LDAP server policies object # noqa: E501 + """ + pass + + def test_udm_policies_ldapserver_object_search(self): + """Test case for udm_policies_ldapserver_object_search + + Search for LDAP server policies objects # noqa: E501 + """ + pass + + def test_udm_policies_ldapserver_object_template(self): + """Test case for udm_policies_ldapserver_object_template + + Get a template for creating an LDAP server policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_ldapserver_object_update(self): + """Test case for udm_policies_ldapserver_object_update + + Modify an LDAP server policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_ldapserver_list.py b/test/test_policies_ldapserver_list.py new file mode 100644 index 0000000..12dd97a --- /dev/null +++ b/test/test_policies_ldapserver_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_ldapserver_list import PoliciesLdapserverList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesLdapserverList(unittest.TestCase): + """PoliciesLdapserverList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesLdapserverList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_ldapserver_list.PoliciesLdapserverList() # noqa: E501 + if include_optional : + return PoliciesLdapserverList( + embedded = openapi_client_udm.models.policies_ldapserver_list__embedded.policies_ldapserver_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesLdapserverList( + ) + + def testPoliciesLdapserverList(self): + """Test PoliciesLdapserverList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_ldapserver_list_embedded.py b/test/test_policies_ldapserver_list_embedded.py new file mode 100644 index 0000000..fdddb82 --- /dev/null +++ b/test/test_policies_ldapserver_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_ldapserver_list_embedded import PoliciesLdapserverListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesLdapserverListEmbedded(unittest.TestCase): + """PoliciesLdapserverListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesLdapserverListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_ldapserver_list_embedded.PoliciesLdapserverListEmbedded() # noqa: E501 + if include_optional : + return PoliciesLdapserverListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesLdapserverListEmbedded( + ) + + def testPoliciesLdapserverListEmbedded(self): + """Test PoliciesLdapserverListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_ldapserver_request.py b/test/test_policies_ldapserver_request.py new file mode 100644 index 0000000..62b6c10 --- /dev/null +++ b/test/test_policies_ldapserver_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_ldapserver_request import PoliciesLdapserverRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesLdapserverRequest(unittest.TestCase): + """PoliciesLdapserverRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesLdapserverRequest(self): + """Test PoliciesLdapserverRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_ldapserver_request_patch.py b/test/test_policies_ldapserver_request_patch.py new file mode 100644 index 0000000..2b85586 --- /dev/null +++ b/test/test_policies_ldapserver_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_ldapserver_request_patch import PoliciesLdapserverRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesLdapserverRequestPatch(unittest.TestCase): + """PoliciesLdapserverRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesLdapserverRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_ldapserver_request_patch.PoliciesLdapserverRequestPatch() # noqa: E501 + if include_optional : + return PoliciesLdapserverRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesLdapserverRequestPatch( + ) + + def testPoliciesLdapserverRequestPatch(self): + """Test PoliciesLdapserverRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_ldapserver_response_mixin.py b/test/test_policies_ldapserver_response_mixin.py new file mode 100644 index 0000000..766d705 --- /dev/null +++ b/test/test_policies_ldapserver_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_ldapserver_response_mixin import PoliciesLdapserverResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesLdapserverResponseMixin(unittest.TestCase): + """PoliciesLdapserverResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesLdapserverResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_ldapserver_response_mixin.PoliciesLdapserverResponseMixin() # noqa: E501 + if include_optional : + return PoliciesLdapserverResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/ldapserver/cn={value},cn=ldap,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesLdapserverResponseMixin( + ) + + def testPoliciesLdapserverResponseMixin(self): + """Test PoliciesLdapserverResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_maintenance.py b/test/test_policies_maintenance.py new file mode 100644 index 0000000..a2b553b --- /dev/null +++ b/test/test_policies_maintenance.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_maintenance import PoliciesMaintenance # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMaintenance(unittest.TestCase): + """PoliciesMaintenance unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesMaintenance(self): + """Test PoliciesMaintenance""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_maintenance_api.py b/test/test_policies_maintenance_api.py new file mode 100644 index 0000000..36f9d4d --- /dev/null +++ b/test/test_policies_maintenance_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_maintenance_api import PoliciesMaintenanceApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesMaintenanceApi(unittest.TestCase): + """PoliciesMaintenanceApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_maintenance_api.PoliciesMaintenanceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_maintenance_object(self): + """Test case for udm_policies_maintenance_object + + Get a representation of the Maintenance policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_maintenance_object_create(self): + """Test case for udm_policies_maintenance_object_create + + Create a new Maintenance policy object # noqa: E501 + """ + pass + + def test_udm_policies_maintenance_object_modify(self): + """Test case for udm_policies_maintenance_object_modify + + Modify or move an Maintenance policy object # noqa: E501 + """ + pass + + def test_udm_policies_maintenance_object_remove(self): + """Test case for udm_policies_maintenance_object_remove + + Remove a Maintenance policies object # noqa: E501 + """ + pass + + def test_udm_policies_maintenance_object_search(self): + """Test case for udm_policies_maintenance_object_search + + Search for Maintenance policies objects # noqa: E501 + """ + pass + + def test_udm_policies_maintenance_object_template(self): + """Test case for udm_policies_maintenance_object_template + + Get a template for creating an Maintenance policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_maintenance_object_update(self): + """Test case for udm_policies_maintenance_object_update + + Modify an Maintenance policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_maintenance_list.py b/test/test_policies_maintenance_list.py new file mode 100644 index 0000000..0e0460e --- /dev/null +++ b/test/test_policies_maintenance_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_maintenance_list import PoliciesMaintenanceList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMaintenanceList(unittest.TestCase): + """PoliciesMaintenanceList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMaintenanceList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_maintenance_list.PoliciesMaintenanceList() # noqa: E501 + if include_optional : + return PoliciesMaintenanceList( + embedded = openapi_client_udm.models.policies_maintenance_list__embedded.policies_maintenance_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesMaintenanceList( + ) + + def testPoliciesMaintenanceList(self): + """Test PoliciesMaintenanceList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_maintenance_list_embedded.py b/test/test_policies_maintenance_list_embedded.py new file mode 100644 index 0000000..9370b83 --- /dev/null +++ b/test/test_policies_maintenance_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_maintenance_list_embedded import PoliciesMaintenanceListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMaintenanceListEmbedded(unittest.TestCase): + """PoliciesMaintenanceListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMaintenanceListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_maintenance_list_embedded.PoliciesMaintenanceListEmbedded() # noqa: E501 + if include_optional : + return PoliciesMaintenanceListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesMaintenanceListEmbedded( + ) + + def testPoliciesMaintenanceListEmbedded(self): + """Test PoliciesMaintenanceListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_maintenance_request.py b/test/test_policies_maintenance_request.py new file mode 100644 index 0000000..2eb895e --- /dev/null +++ b/test/test_policies_maintenance_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_maintenance_request import PoliciesMaintenanceRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMaintenanceRequest(unittest.TestCase): + """PoliciesMaintenanceRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesMaintenanceRequest(self): + """Test PoliciesMaintenanceRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_maintenance_request_patch.py b/test/test_policies_maintenance_request_patch.py new file mode 100644 index 0000000..375cf87 --- /dev/null +++ b/test/test_policies_maintenance_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_maintenance_request_patch import PoliciesMaintenanceRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMaintenanceRequestPatch(unittest.TestCase): + """PoliciesMaintenanceRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMaintenanceRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_maintenance_request_patch.PoliciesMaintenanceRequestPatch() # noqa: E501 + if include_optional : + return PoliciesMaintenanceRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesMaintenanceRequestPatch( + ) + + def testPoliciesMaintenanceRequestPatch(self): + """Test PoliciesMaintenanceRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_maintenance_response_mixin.py b/test/test_policies_maintenance_response_mixin.py new file mode 100644 index 0000000..e994742 --- /dev/null +++ b/test/test_policies_maintenance_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_maintenance_response_mixin import PoliciesMaintenanceResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMaintenanceResponseMixin(unittest.TestCase): + """PoliciesMaintenanceResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMaintenanceResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_maintenance_response_mixin.PoliciesMaintenanceResponseMixin() # noqa: E501 + if include_optional : + return PoliciesMaintenanceResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/maintenance/cn={value},cn=installation,cn=update,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesMaintenanceResponseMixin( + ) + + def testPoliciesMaintenanceResponseMixin(self): + """Test PoliciesMaintenanceResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_masterpackages.py b/test/test_policies_masterpackages.py new file mode 100644 index 0000000..de552ca --- /dev/null +++ b/test/test_policies_masterpackages.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_masterpackages import PoliciesMasterpackages # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMasterpackages(unittest.TestCase): + """PoliciesMasterpackages unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesMasterpackages(self): + """Test PoliciesMasterpackages""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_masterpackages_api.py b/test/test_policies_masterpackages_api.py new file mode 100644 index 0000000..02b8d9b --- /dev/null +++ b/test/test_policies_masterpackages_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_masterpackages_api import PoliciesMasterpackagesApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesMasterpackagesApi(unittest.TestCase): + """PoliciesMasterpackagesApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_masterpackages_api.PoliciesMasterpackagesApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_masterpackages_object(self): + """Test case for udm_policies_masterpackages_object + + Get a representation of the Primary/Backup Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_masterpackages_object_create(self): + """Test case for udm_policies_masterpackages_object_create + + Create a new Primary/Backup Node packages policy object # noqa: E501 + """ + pass + + def test_udm_policies_masterpackages_object_modify(self): + """Test case for udm_policies_masterpackages_object_modify + + Modify or move an Primary/Backup Node packages policy object # noqa: E501 + """ + pass + + def test_udm_policies_masterpackages_object_remove(self): + """Test case for udm_policies_masterpackages_object_remove + + Remove a Primary/Backup Node packages policies object # noqa: E501 + """ + pass + + def test_udm_policies_masterpackages_object_search(self): + """Test case for udm_policies_masterpackages_object_search + + Search for Primary/Backup Node packages policies objects # noqa: E501 + """ + pass + + def test_udm_policies_masterpackages_object_template(self): + """Test case for udm_policies_masterpackages_object_template + + Get a template for creating an Primary/Backup Node packages policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_masterpackages_object_update(self): + """Test case for udm_policies_masterpackages_object_update + + Modify an Primary/Backup Node packages policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_masterpackages_list.py b/test/test_policies_masterpackages_list.py new file mode 100644 index 0000000..d6a5af8 --- /dev/null +++ b/test/test_policies_masterpackages_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_masterpackages_list import PoliciesMasterpackagesList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMasterpackagesList(unittest.TestCase): + """PoliciesMasterpackagesList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMasterpackagesList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_masterpackages_list.PoliciesMasterpackagesList() # noqa: E501 + if include_optional : + return PoliciesMasterpackagesList( + embedded = openapi_client_udm.models.policies_masterpackages_list__embedded.policies_masterpackages_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesMasterpackagesList( + ) + + def testPoliciesMasterpackagesList(self): + """Test PoliciesMasterpackagesList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_masterpackages_list_embedded.py b/test/test_policies_masterpackages_list_embedded.py new file mode 100644 index 0000000..3c60806 --- /dev/null +++ b/test/test_policies_masterpackages_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_masterpackages_list_embedded import PoliciesMasterpackagesListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMasterpackagesListEmbedded(unittest.TestCase): + """PoliciesMasterpackagesListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMasterpackagesListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_masterpackages_list_embedded.PoliciesMasterpackagesListEmbedded() # noqa: E501 + if include_optional : + return PoliciesMasterpackagesListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesMasterpackagesListEmbedded( + ) + + def testPoliciesMasterpackagesListEmbedded(self): + """Test PoliciesMasterpackagesListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_masterpackages_request.py b/test/test_policies_masterpackages_request.py new file mode 100644 index 0000000..6ed978e --- /dev/null +++ b/test/test_policies_masterpackages_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_masterpackages_request import PoliciesMasterpackagesRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMasterpackagesRequest(unittest.TestCase): + """PoliciesMasterpackagesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesMasterpackagesRequest(self): + """Test PoliciesMasterpackagesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_masterpackages_request_patch.py b/test/test_policies_masterpackages_request_patch.py new file mode 100644 index 0000000..f8b3d24 --- /dev/null +++ b/test/test_policies_masterpackages_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_masterpackages_request_patch import PoliciesMasterpackagesRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMasterpackagesRequestPatch(unittest.TestCase): + """PoliciesMasterpackagesRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMasterpackagesRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_masterpackages_request_patch.PoliciesMasterpackagesRequestPatch() # noqa: E501 + if include_optional : + return PoliciesMasterpackagesRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesMasterpackagesRequestPatch( + ) + + def testPoliciesMasterpackagesRequestPatch(self): + """Test PoliciesMasterpackagesRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_masterpackages_response_mixin.py b/test/test_policies_masterpackages_response_mixin.py new file mode 100644 index 0000000..85cdbcc --- /dev/null +++ b/test/test_policies_masterpackages_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_masterpackages_response_mixin import PoliciesMasterpackagesResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMasterpackagesResponseMixin(unittest.TestCase): + """PoliciesMasterpackagesResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMasterpackagesResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_masterpackages_response_mixin.PoliciesMasterpackagesResponseMixin() # noqa: E501 + if include_optional : + return PoliciesMasterpackagesResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/masterpackages/cn={value},cn=packages,cn=update,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesMasterpackagesResponseMixin( + ) + + def testPoliciesMasterpackagesResponseMixin(self): + """Test PoliciesMasterpackagesResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_memberpackages.py b/test/test_policies_memberpackages.py new file mode 100644 index 0000000..2183026 --- /dev/null +++ b/test/test_policies_memberpackages.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_memberpackages import PoliciesMemberpackages # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMemberpackages(unittest.TestCase): + """PoliciesMemberpackages unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesMemberpackages(self): + """Test PoliciesMemberpackages""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_memberpackages_api.py b/test/test_policies_memberpackages_api.py new file mode 100644 index 0000000..b5b2a75 --- /dev/null +++ b/test/test_policies_memberpackages_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_memberpackages_api import PoliciesMemberpackagesApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesMemberpackagesApi(unittest.TestCase): + """PoliciesMemberpackagesApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_memberpackages_api.PoliciesMemberpackagesApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_memberpackages_object(self): + """Test case for udm_policies_memberpackages_object + + Get a representation of the Managed Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_memberpackages_object_create(self): + """Test case for udm_policies_memberpackages_object_create + + Create a new Managed Node packages policy object # noqa: E501 + """ + pass + + def test_udm_policies_memberpackages_object_modify(self): + """Test case for udm_policies_memberpackages_object_modify + + Modify or move an Managed Node packages policy object # noqa: E501 + """ + pass + + def test_udm_policies_memberpackages_object_remove(self): + """Test case for udm_policies_memberpackages_object_remove + + Remove a Managed Node packages policies object # noqa: E501 + """ + pass + + def test_udm_policies_memberpackages_object_search(self): + """Test case for udm_policies_memberpackages_object_search + + Search for Managed Node packages policies objects # noqa: E501 + """ + pass + + def test_udm_policies_memberpackages_object_template(self): + """Test case for udm_policies_memberpackages_object_template + + Get a template for creating an Managed Node packages policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_memberpackages_object_update(self): + """Test case for udm_policies_memberpackages_object_update + + Modify an Managed Node packages policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_memberpackages_list.py b/test/test_policies_memberpackages_list.py new file mode 100644 index 0000000..2ed0169 --- /dev/null +++ b/test/test_policies_memberpackages_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_memberpackages_list import PoliciesMemberpackagesList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMemberpackagesList(unittest.TestCase): + """PoliciesMemberpackagesList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMemberpackagesList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_memberpackages_list.PoliciesMemberpackagesList() # noqa: E501 + if include_optional : + return PoliciesMemberpackagesList( + embedded = openapi_client_udm.models.policies_memberpackages_list__embedded.policies_memberpackages_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesMemberpackagesList( + ) + + def testPoliciesMemberpackagesList(self): + """Test PoliciesMemberpackagesList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_memberpackages_list_embedded.py b/test/test_policies_memberpackages_list_embedded.py new file mode 100644 index 0000000..f20e24f --- /dev/null +++ b/test/test_policies_memberpackages_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_memberpackages_list_embedded import PoliciesMemberpackagesListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMemberpackagesListEmbedded(unittest.TestCase): + """PoliciesMemberpackagesListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMemberpackagesListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_memberpackages_list_embedded.PoliciesMemberpackagesListEmbedded() # noqa: E501 + if include_optional : + return PoliciesMemberpackagesListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesMemberpackagesListEmbedded( + ) + + def testPoliciesMemberpackagesListEmbedded(self): + """Test PoliciesMemberpackagesListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_memberpackages_request.py b/test/test_policies_memberpackages_request.py new file mode 100644 index 0000000..18f784f --- /dev/null +++ b/test/test_policies_memberpackages_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_memberpackages_request import PoliciesMemberpackagesRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMemberpackagesRequest(unittest.TestCase): + """PoliciesMemberpackagesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesMemberpackagesRequest(self): + """Test PoliciesMemberpackagesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_memberpackages_request_patch.py b/test/test_policies_memberpackages_request_patch.py new file mode 100644 index 0000000..7ec7936 --- /dev/null +++ b/test/test_policies_memberpackages_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_memberpackages_request_patch import PoliciesMemberpackagesRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMemberpackagesRequestPatch(unittest.TestCase): + """PoliciesMemberpackagesRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMemberpackagesRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_memberpackages_request_patch.PoliciesMemberpackagesRequestPatch() # noqa: E501 + if include_optional : + return PoliciesMemberpackagesRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesMemberpackagesRequestPatch( + ) + + def testPoliciesMemberpackagesRequestPatch(self): + """Test PoliciesMemberpackagesRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_memberpackages_response_mixin.py b/test/test_policies_memberpackages_response_mixin.py new file mode 100644 index 0000000..d18a1c0 --- /dev/null +++ b/test/test_policies_memberpackages_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_memberpackages_response_mixin import PoliciesMemberpackagesResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesMemberpackagesResponseMixin(unittest.TestCase): + """PoliciesMemberpackagesResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesMemberpackagesResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_memberpackages_response_mixin.PoliciesMemberpackagesResponseMixin() # noqa: E501 + if include_optional : + return PoliciesMemberpackagesResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/memberpackages/cn={value},cn=packages,cn=update,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesMemberpackagesResponseMixin( + ) + + def testPoliciesMemberpackagesResponseMixin(self): + """Test PoliciesMemberpackagesResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_nfsmounts.py b/test/test_policies_nfsmounts.py new file mode 100644 index 0000000..4908573 --- /dev/null +++ b/test/test_policies_nfsmounts.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_nfsmounts import PoliciesNfsmounts # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesNfsmounts(unittest.TestCase): + """PoliciesNfsmounts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesNfsmounts(self): + """Test PoliciesNfsmounts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_nfsmounts_api.py b/test/test_policies_nfsmounts_api.py new file mode 100644 index 0000000..0eb041a --- /dev/null +++ b/test/test_policies_nfsmounts_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_nfsmounts_api import PoliciesNfsmountsApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesNfsmountsApi(unittest.TestCase): + """PoliciesNfsmountsApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_nfsmounts_api.PoliciesNfsmountsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_nfsmounts_object(self): + """Test case for udm_policies_nfsmounts_object + + Get a representation of the NFS mounts policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_nfsmounts_object_create(self): + """Test case for udm_policies_nfsmounts_object_create + + Create a new NFS mounts policy object # noqa: E501 + """ + pass + + def test_udm_policies_nfsmounts_object_modify(self): + """Test case for udm_policies_nfsmounts_object_modify + + Modify or move an NFS mounts policy object # noqa: E501 + """ + pass + + def test_udm_policies_nfsmounts_object_remove(self): + """Test case for udm_policies_nfsmounts_object_remove + + Remove a NFS mounts policies object # noqa: E501 + """ + pass + + def test_udm_policies_nfsmounts_object_search(self): + """Test case for udm_policies_nfsmounts_object_search + + Search for NFS mounts policies objects # noqa: E501 + """ + pass + + def test_udm_policies_nfsmounts_object_template(self): + """Test case for udm_policies_nfsmounts_object_template + + Get a template for creating an NFS mounts policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_nfsmounts_object_update(self): + """Test case for udm_policies_nfsmounts_object_update + + Modify an NFS mounts policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_nfsmounts_list.py b/test/test_policies_nfsmounts_list.py new file mode 100644 index 0000000..cab90fc --- /dev/null +++ b/test/test_policies_nfsmounts_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_nfsmounts_list import PoliciesNfsmountsList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesNfsmountsList(unittest.TestCase): + """PoliciesNfsmountsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesNfsmountsList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_nfsmounts_list.PoliciesNfsmountsList() # noqa: E501 + if include_optional : + return PoliciesNfsmountsList( + embedded = openapi_client_udm.models.policies_nfsmounts_list__embedded.policies_nfsmounts_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesNfsmountsList( + ) + + def testPoliciesNfsmountsList(self): + """Test PoliciesNfsmountsList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_nfsmounts_list_embedded.py b/test/test_policies_nfsmounts_list_embedded.py new file mode 100644 index 0000000..1f2d2a2 --- /dev/null +++ b/test/test_policies_nfsmounts_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_nfsmounts_list_embedded import PoliciesNfsmountsListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesNfsmountsListEmbedded(unittest.TestCase): + """PoliciesNfsmountsListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesNfsmountsListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_nfsmounts_list_embedded.PoliciesNfsmountsListEmbedded() # noqa: E501 + if include_optional : + return PoliciesNfsmountsListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesNfsmountsListEmbedded( + ) + + def testPoliciesNfsmountsListEmbedded(self): + """Test PoliciesNfsmountsListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_nfsmounts_request.py b/test/test_policies_nfsmounts_request.py new file mode 100644 index 0000000..06f36ab --- /dev/null +++ b/test/test_policies_nfsmounts_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_nfsmounts_request import PoliciesNfsmountsRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesNfsmountsRequest(unittest.TestCase): + """PoliciesNfsmountsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesNfsmountsRequest(self): + """Test PoliciesNfsmountsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_nfsmounts_request_patch.py b/test/test_policies_nfsmounts_request_patch.py new file mode 100644 index 0000000..9055cc5 --- /dev/null +++ b/test/test_policies_nfsmounts_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_nfsmounts_request_patch import PoliciesNfsmountsRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesNfsmountsRequestPatch(unittest.TestCase): + """PoliciesNfsmountsRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesNfsmountsRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_nfsmounts_request_patch.PoliciesNfsmountsRequestPatch() # noqa: E501 + if include_optional : + return PoliciesNfsmountsRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesNfsmountsRequestPatch( + ) + + def testPoliciesNfsmountsRequestPatch(self): + """Test PoliciesNfsmountsRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_nfsmounts_response_mixin.py b/test/test_policies_nfsmounts_response_mixin.py new file mode 100644 index 0000000..f55465b --- /dev/null +++ b/test/test_policies_nfsmounts_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_nfsmounts_response_mixin import PoliciesNfsmountsResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesNfsmountsResponseMixin(unittest.TestCase): + """PoliciesNfsmountsResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesNfsmountsResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_nfsmounts_response_mixin.PoliciesNfsmountsResponseMixin() # noqa: E501 + if include_optional : + return PoliciesNfsmountsResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/nfsmounts/cn={value},cn=nfsmounts,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesNfsmountsResponseMixin( + ) + + def testPoliciesNfsmountsResponseMixin(self): + """Test PoliciesNfsmountsResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_policy.py b/test/test_policies_policy.py new file mode 100644 index 0000000..4afad55 --- /dev/null +++ b/test/test_policies_policy.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_policy import PoliciesPolicy # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPolicy(unittest.TestCase): + """PoliciesPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesPolicy(self): + """Test PoliciesPolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_policy_api.py b/test/test_policies_policy_api.py new file mode 100644 index 0000000..1572bdc --- /dev/null +++ b/test/test_policies_policy_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_policy_api import PoliciesPolicyApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesPolicyApi(unittest.TestCase): + """PoliciesPolicyApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_policy_api.PoliciesPolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_policy_object(self): + """Test case for udm_policies_policy_object + + Get a representation of the Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_policy_object_search(self): + """Test case for udm_policies_policy_object_search + + Search for Policies objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_policy_list.py b/test/test_policies_policy_list.py new file mode 100644 index 0000000..a44c3af --- /dev/null +++ b/test/test_policies_policy_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_policy_list import PoliciesPolicyList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPolicyList(unittest.TestCase): + """PoliciesPolicyList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPolicyList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_policy_list.PoliciesPolicyList() # noqa: E501 + if include_optional : + return PoliciesPolicyList( + embedded = openapi_client_udm.models.policies_policy_list__embedded.policies_policy_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesPolicyList( + ) + + def testPoliciesPolicyList(self): + """Test PoliciesPolicyList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_policy_list_embedded.py b/test/test_policies_policy_list_embedded.py new file mode 100644 index 0000000..e2b83f0 --- /dev/null +++ b/test/test_policies_policy_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_policy_list_embedded import PoliciesPolicyListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPolicyListEmbedded(unittest.TestCase): + """PoliciesPolicyListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPolicyListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_policy_list_embedded.PoliciesPolicyListEmbedded() # noqa: E501 + if include_optional : + return PoliciesPolicyListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesPolicyListEmbedded( + ) + + def testPoliciesPolicyListEmbedded(self): + """Test PoliciesPolicyListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_policy_request.py b/test/test_policies_policy_request.py new file mode 100644 index 0000000..daf1a6e --- /dev/null +++ b/test/test_policies_policy_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_policy_request import PoliciesPolicyRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPolicyRequest(unittest.TestCase): + """PoliciesPolicyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesPolicyRequest(self): + """Test PoliciesPolicyRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_policy_request_patch.py b/test/test_policies_policy_request_patch.py new file mode 100644 index 0000000..d716054 --- /dev/null +++ b/test/test_policies_policy_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_policy_request_patch import PoliciesPolicyRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPolicyRequestPatch(unittest.TestCase): + """PoliciesPolicyRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPolicyRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_policy_request_patch.PoliciesPolicyRequestPatch() # noqa: E501 + if include_optional : + return PoliciesPolicyRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesPolicyRequestPatch( + ) + + def testPoliciesPolicyRequestPatch(self): + """Test PoliciesPolicyRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_policy_response_mixin.py b/test/test_policies_policy_response_mixin.py new file mode 100644 index 0000000..e04decb --- /dev/null +++ b/test/test_policies_policy_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_policy_response_mixin import PoliciesPolicyResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPolicyResponseMixin(unittest.TestCase): + """PoliciesPolicyResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPolicyResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_policy_response_mixin.PoliciesPolicyResponseMixin() # noqa: E501 + if include_optional : + return PoliciesPolicyResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/policy/cn={value},cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesPolicyResponseMixin( + ) + + def testPoliciesPolicyResponseMixin(self): + """Test PoliciesPolicyResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_printserver.py b/test/test_policies_printserver.py new file mode 100644 index 0000000..b3b2f72 --- /dev/null +++ b/test/test_policies_printserver.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_printserver import PoliciesPrintserver # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPrintserver(unittest.TestCase): + """PoliciesPrintserver unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesPrintserver(self): + """Test PoliciesPrintserver""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_printserver_api.py b/test/test_policies_printserver_api.py new file mode 100644 index 0000000..f7ed020 --- /dev/null +++ b/test/test_policies_printserver_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_printserver_api import PoliciesPrintserverApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesPrintserverApi(unittest.TestCase): + """PoliciesPrintserverApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_printserver_api.PoliciesPrintserverApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_printserver_object(self): + """Test case for udm_policies_printserver_object + + Get a representation of the Print server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_printserver_object_create(self): + """Test case for udm_policies_printserver_object_create + + Create a new Print server policy object # noqa: E501 + """ + pass + + def test_udm_policies_printserver_object_modify(self): + """Test case for udm_policies_printserver_object_modify + + Modify or move an Print server policy object # noqa: E501 + """ + pass + + def test_udm_policies_printserver_object_remove(self): + """Test case for udm_policies_printserver_object_remove + + Remove a Print server policies object # noqa: E501 + """ + pass + + def test_udm_policies_printserver_object_search(self): + """Test case for udm_policies_printserver_object_search + + Search for Print server policies objects # noqa: E501 + """ + pass + + def test_udm_policies_printserver_object_template(self): + """Test case for udm_policies_printserver_object_template + + Get a template for creating an Print server policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_printserver_object_update(self): + """Test case for udm_policies_printserver_object_update + + Modify an Print server policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_printserver_list.py b/test/test_policies_printserver_list.py new file mode 100644 index 0000000..b8b949a --- /dev/null +++ b/test/test_policies_printserver_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_printserver_list import PoliciesPrintserverList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPrintserverList(unittest.TestCase): + """PoliciesPrintserverList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPrintserverList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_printserver_list.PoliciesPrintserverList() # noqa: E501 + if include_optional : + return PoliciesPrintserverList( + embedded = openapi_client_udm.models.policies_printserver_list__embedded.policies_printserver_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesPrintserverList( + ) + + def testPoliciesPrintserverList(self): + """Test PoliciesPrintserverList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_printserver_list_embedded.py b/test/test_policies_printserver_list_embedded.py new file mode 100644 index 0000000..f148609 --- /dev/null +++ b/test/test_policies_printserver_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_printserver_list_embedded import PoliciesPrintserverListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPrintserverListEmbedded(unittest.TestCase): + """PoliciesPrintserverListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPrintserverListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_printserver_list_embedded.PoliciesPrintserverListEmbedded() # noqa: E501 + if include_optional : + return PoliciesPrintserverListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesPrintserverListEmbedded( + ) + + def testPoliciesPrintserverListEmbedded(self): + """Test PoliciesPrintserverListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_printserver_request.py b/test/test_policies_printserver_request.py new file mode 100644 index 0000000..b52a469 --- /dev/null +++ b/test/test_policies_printserver_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_printserver_request import PoliciesPrintserverRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPrintserverRequest(unittest.TestCase): + """PoliciesPrintserverRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesPrintserverRequest(self): + """Test PoliciesPrintserverRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_printserver_request_patch.py b/test/test_policies_printserver_request_patch.py new file mode 100644 index 0000000..2a6efbd --- /dev/null +++ b/test/test_policies_printserver_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_printserver_request_patch import PoliciesPrintserverRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPrintserverRequestPatch(unittest.TestCase): + """PoliciesPrintserverRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPrintserverRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_printserver_request_patch.PoliciesPrintserverRequestPatch() # noqa: E501 + if include_optional : + return PoliciesPrintserverRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesPrintserverRequestPatch( + ) + + def testPoliciesPrintserverRequestPatch(self): + """Test PoliciesPrintserverRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_printserver_response_mixin.py b/test/test_policies_printserver_response_mixin.py new file mode 100644 index 0000000..00d55d6 --- /dev/null +++ b/test/test_policies_printserver_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_printserver_response_mixin import PoliciesPrintserverResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPrintserverResponseMixin(unittest.TestCase): + """PoliciesPrintserverResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPrintserverResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_printserver_response_mixin.PoliciesPrintserverResponseMixin() # noqa: E501 + if include_optional : + return PoliciesPrintserverResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/printserver/cn={value},cn=printservers,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesPrintserverResponseMixin( + ) + + def testPoliciesPrintserverResponseMixin(self): + """Test PoliciesPrintserverResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_pwhistory.py b/test/test_policies_pwhistory.py new file mode 100644 index 0000000..afe61a4 --- /dev/null +++ b/test/test_policies_pwhistory.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_pwhistory import PoliciesPwhistory # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPwhistory(unittest.TestCase): + """PoliciesPwhistory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesPwhistory(self): + """Test PoliciesPwhistory""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_pwhistory_api.py b/test/test_policies_pwhistory_api.py new file mode 100644 index 0000000..724c500 --- /dev/null +++ b/test/test_policies_pwhistory_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_pwhistory_api import PoliciesPwhistoryApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesPwhistoryApi(unittest.TestCase): + """PoliciesPwhistoryApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_pwhistory_api.PoliciesPwhistoryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_pwhistory_object(self): + """Test case for udm_policies_pwhistory_object + + Get a representation of the Passwords policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_pwhistory_object_create(self): + """Test case for udm_policies_pwhistory_object_create + + Create a new Passwords policy object # noqa: E501 + """ + pass + + def test_udm_policies_pwhistory_object_modify(self): + """Test case for udm_policies_pwhistory_object_modify + + Modify or move an Passwords policy object # noqa: E501 + """ + pass + + def test_udm_policies_pwhistory_object_remove(self): + """Test case for udm_policies_pwhistory_object_remove + + Remove a Passwords policies object # noqa: E501 + """ + pass + + def test_udm_policies_pwhistory_object_search(self): + """Test case for udm_policies_pwhistory_object_search + + Search for Passwords policies objects # noqa: E501 + """ + pass + + def test_udm_policies_pwhistory_object_template(self): + """Test case for udm_policies_pwhistory_object_template + + Get a template for creating an Passwords policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_pwhistory_object_update(self): + """Test case for udm_policies_pwhistory_object_update + + Modify an Passwords policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_pwhistory_list.py b/test/test_policies_pwhistory_list.py new file mode 100644 index 0000000..945acf1 --- /dev/null +++ b/test/test_policies_pwhistory_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_pwhistory_list import PoliciesPwhistoryList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPwhistoryList(unittest.TestCase): + """PoliciesPwhistoryList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPwhistoryList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_pwhistory_list.PoliciesPwhistoryList() # noqa: E501 + if include_optional : + return PoliciesPwhistoryList( + embedded = openapi_client_udm.models.policies_pwhistory_list__embedded.policies_pwhistory_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesPwhistoryList( + ) + + def testPoliciesPwhistoryList(self): + """Test PoliciesPwhistoryList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_pwhistory_list_embedded.py b/test/test_policies_pwhistory_list_embedded.py new file mode 100644 index 0000000..9b3df59 --- /dev/null +++ b/test/test_policies_pwhistory_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_pwhistory_list_embedded import PoliciesPwhistoryListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPwhistoryListEmbedded(unittest.TestCase): + """PoliciesPwhistoryListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPwhistoryListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_pwhistory_list_embedded.PoliciesPwhistoryListEmbedded() # noqa: E501 + if include_optional : + return PoliciesPwhistoryListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesPwhistoryListEmbedded( + ) + + def testPoliciesPwhistoryListEmbedded(self): + """Test PoliciesPwhistoryListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_pwhistory_request.py b/test/test_policies_pwhistory_request.py new file mode 100644 index 0000000..5c22f7d --- /dev/null +++ b/test/test_policies_pwhistory_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_pwhistory_request import PoliciesPwhistoryRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPwhistoryRequest(unittest.TestCase): + """PoliciesPwhistoryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesPwhistoryRequest(self): + """Test PoliciesPwhistoryRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_pwhistory_request_patch.py b/test/test_policies_pwhistory_request_patch.py new file mode 100644 index 0000000..e4e7941 --- /dev/null +++ b/test/test_policies_pwhistory_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_pwhistory_request_patch import PoliciesPwhistoryRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPwhistoryRequestPatch(unittest.TestCase): + """PoliciesPwhistoryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPwhistoryRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_pwhistory_request_patch.PoliciesPwhistoryRequestPatch() # noqa: E501 + if include_optional : + return PoliciesPwhistoryRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesPwhistoryRequestPatch( + ) + + def testPoliciesPwhistoryRequestPatch(self): + """Test PoliciesPwhistoryRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_pwhistory_response_mixin.py b/test/test_policies_pwhistory_response_mixin.py new file mode 100644 index 0000000..71cf47b --- /dev/null +++ b/test/test_policies_pwhistory_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_pwhistory_response_mixin import PoliciesPwhistoryResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesPwhistoryResponseMixin(unittest.TestCase): + """PoliciesPwhistoryResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesPwhistoryResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_pwhistory_response_mixin.PoliciesPwhistoryResponseMixin() # noqa: E501 + if include_optional : + return PoliciesPwhistoryResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/pwhistory/cn={value},cn=pwhistory,cn=users,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesPwhistoryResponseMixin( + ) + + def testPoliciesPwhistoryResponseMixin(self): + """Test PoliciesPwhistoryResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_registry.py b/test/test_policies_registry.py new file mode 100644 index 0000000..a3e09f0 --- /dev/null +++ b/test/test_policies_registry.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_registry import PoliciesRegistry # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRegistry(unittest.TestCase): + """PoliciesRegistry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesRegistry(self): + """Test PoliciesRegistry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_registry_api.py b/test/test_policies_registry_api.py new file mode 100644 index 0000000..1bd7520 --- /dev/null +++ b/test/test_policies_registry_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_registry_api import PoliciesRegistryApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesRegistryApi(unittest.TestCase): + """PoliciesRegistryApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_registry_api.PoliciesRegistryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_registry_object(self): + """Test case for udm_policies_registry_object + + Get a representation of the Univention Configuration Registry policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_registry_object_create(self): + """Test case for udm_policies_registry_object_create + + Create a new Univention Configuration Registry policy object # noqa: E501 + """ + pass + + def test_udm_policies_registry_object_modify(self): + """Test case for udm_policies_registry_object_modify + + Modify or move an Univention Configuration Registry policy object # noqa: E501 + """ + pass + + def test_udm_policies_registry_object_remove(self): + """Test case for udm_policies_registry_object_remove + + Remove a Univention Configuration Registry policies object # noqa: E501 + """ + pass + + def test_udm_policies_registry_object_search(self): + """Test case for udm_policies_registry_object_search + + Search for Univention Configuration Registry policies objects # noqa: E501 + """ + pass + + def test_udm_policies_registry_object_template(self): + """Test case for udm_policies_registry_object_template + + Get a template for creating an Univention Configuration Registry policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_registry_object_update(self): + """Test case for udm_policies_registry_object_update + + Modify an Univention Configuration Registry policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_registry_list.py b/test/test_policies_registry_list.py new file mode 100644 index 0000000..e55c1ea --- /dev/null +++ b/test/test_policies_registry_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_registry_list import PoliciesRegistryList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRegistryList(unittest.TestCase): + """PoliciesRegistryList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRegistryList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_registry_list.PoliciesRegistryList() # noqa: E501 + if include_optional : + return PoliciesRegistryList( + embedded = openapi_client_udm.models.policies_registry_list__embedded.policies_registry_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesRegistryList( + ) + + def testPoliciesRegistryList(self): + """Test PoliciesRegistryList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_registry_list_embedded.py b/test/test_policies_registry_list_embedded.py new file mode 100644 index 0000000..520cf29 --- /dev/null +++ b/test/test_policies_registry_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_registry_list_embedded import PoliciesRegistryListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRegistryListEmbedded(unittest.TestCase): + """PoliciesRegistryListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRegistryListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_registry_list_embedded.PoliciesRegistryListEmbedded() # noqa: E501 + if include_optional : + return PoliciesRegistryListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesRegistryListEmbedded( + ) + + def testPoliciesRegistryListEmbedded(self): + """Test PoliciesRegistryListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_registry_request.py b/test/test_policies_registry_request.py new file mode 100644 index 0000000..9b9cbc9 --- /dev/null +++ b/test/test_policies_registry_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_registry_request import PoliciesRegistryRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRegistryRequest(unittest.TestCase): + """PoliciesRegistryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesRegistryRequest(self): + """Test PoliciesRegistryRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_registry_request_patch.py b/test/test_policies_registry_request_patch.py new file mode 100644 index 0000000..96250a4 --- /dev/null +++ b/test/test_policies_registry_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_registry_request_patch import PoliciesRegistryRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRegistryRequestPatch(unittest.TestCase): + """PoliciesRegistryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRegistryRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_registry_request_patch.PoliciesRegistryRequestPatch() # noqa: E501 + if include_optional : + return PoliciesRegistryRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesRegistryRequestPatch( + ) + + def testPoliciesRegistryRequestPatch(self): + """Test PoliciesRegistryRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_registry_response_mixin.py b/test/test_policies_registry_response_mixin.py new file mode 100644 index 0000000..573ce7d --- /dev/null +++ b/test/test_policies_registry_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_registry_response_mixin import PoliciesRegistryResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRegistryResponseMixin(unittest.TestCase): + """PoliciesRegistryResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRegistryResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_registry_response_mixin.PoliciesRegistryResponseMixin() # noqa: E501 + if include_optional : + return PoliciesRegistryResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/registry/cn={value},cn=config-registry,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesRegistryResponseMixin( + ) + + def testPoliciesRegistryResponseMixin(self): + """Test PoliciesRegistryResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_release.py b/test/test_policies_release.py new file mode 100644 index 0000000..119f72f --- /dev/null +++ b/test/test_policies_release.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_release import PoliciesRelease # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRelease(unittest.TestCase): + """PoliciesRelease unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesRelease(self): + """Test PoliciesRelease""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_release_api.py b/test/test_policies_release_api.py new file mode 100644 index 0000000..b996ce3 --- /dev/null +++ b/test/test_policies_release_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_release_api import PoliciesReleaseApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesReleaseApi(unittest.TestCase): + """PoliciesReleaseApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_release_api.PoliciesReleaseApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_release_object(self): + """Test case for udm_policies_release_object + + Get a representation of the Automatic updates policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_release_object_create(self): + """Test case for udm_policies_release_object_create + + Create a new Automatic updates policy object # noqa: E501 + """ + pass + + def test_udm_policies_release_object_modify(self): + """Test case for udm_policies_release_object_modify + + Modify or move an Automatic updates policy object # noqa: E501 + """ + pass + + def test_udm_policies_release_object_remove(self): + """Test case for udm_policies_release_object_remove + + Remove a Automatic updates policies object # noqa: E501 + """ + pass + + def test_udm_policies_release_object_search(self): + """Test case for udm_policies_release_object_search + + Search for Automatic updates policies objects # noqa: E501 + """ + pass + + def test_udm_policies_release_object_template(self): + """Test case for udm_policies_release_object_template + + Get a template for creating an Automatic updates policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_release_object_update(self): + """Test case for udm_policies_release_object_update + + Modify an Automatic updates policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_release_list.py b/test/test_policies_release_list.py new file mode 100644 index 0000000..4dfd0e0 --- /dev/null +++ b/test/test_policies_release_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_release_list import PoliciesReleaseList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesReleaseList(unittest.TestCase): + """PoliciesReleaseList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesReleaseList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_release_list.PoliciesReleaseList() # noqa: E501 + if include_optional : + return PoliciesReleaseList( + embedded = openapi_client_udm.models.policies_release_list__embedded.policies_release_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesReleaseList( + ) + + def testPoliciesReleaseList(self): + """Test PoliciesReleaseList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_release_list_embedded.py b/test/test_policies_release_list_embedded.py new file mode 100644 index 0000000..a9c9e06 --- /dev/null +++ b/test/test_policies_release_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_release_list_embedded import PoliciesReleaseListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesReleaseListEmbedded(unittest.TestCase): + """PoliciesReleaseListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesReleaseListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_release_list_embedded.PoliciesReleaseListEmbedded() # noqa: E501 + if include_optional : + return PoliciesReleaseListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesReleaseListEmbedded( + ) + + def testPoliciesReleaseListEmbedded(self): + """Test PoliciesReleaseListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_release_request.py b/test/test_policies_release_request.py new file mode 100644 index 0000000..7eeaf68 --- /dev/null +++ b/test/test_policies_release_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_release_request import PoliciesReleaseRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesReleaseRequest(unittest.TestCase): + """PoliciesReleaseRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesReleaseRequest(self): + """Test PoliciesReleaseRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_release_request_patch.py b/test/test_policies_release_request_patch.py new file mode 100644 index 0000000..d3aa56f --- /dev/null +++ b/test/test_policies_release_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_release_request_patch import PoliciesReleaseRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesReleaseRequestPatch(unittest.TestCase): + """PoliciesReleaseRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesReleaseRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_release_request_patch.PoliciesReleaseRequestPatch() # noqa: E501 + if include_optional : + return PoliciesReleaseRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesReleaseRequestPatch( + ) + + def testPoliciesReleaseRequestPatch(self): + """Test PoliciesReleaseRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_release_response_mixin.py b/test/test_policies_release_response_mixin.py new file mode 100644 index 0000000..59c0f4d --- /dev/null +++ b/test/test_policies_release_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_release_response_mixin import PoliciesReleaseResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesReleaseResponseMixin(unittest.TestCase): + """PoliciesReleaseResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesReleaseResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_release_response_mixin.PoliciesReleaseResponseMixin() # noqa: E501 + if include_optional : + return PoliciesReleaseResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/release/cn={value},cn=update,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesReleaseResponseMixin( + ) + + def testPoliciesReleaseResponseMixin(self): + """Test PoliciesReleaseResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositoryserver.py b/test/test_policies_repositoryserver.py new file mode 100644 index 0000000..60dcc5f --- /dev/null +++ b/test/test_policies_repositoryserver.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositoryserver import PoliciesRepositoryserver # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositoryserver(unittest.TestCase): + """PoliciesRepositoryserver unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesRepositoryserver(self): + """Test PoliciesRepositoryserver""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositoryserver_api.py b/test/test_policies_repositoryserver_api.py new file mode 100644 index 0000000..66989ca --- /dev/null +++ b/test/test_policies_repositoryserver_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_repositoryserver_api import PoliciesRepositoryserverApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesRepositoryserverApi(unittest.TestCase): + """PoliciesRepositoryserverApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_repositoryserver_api.PoliciesRepositoryserverApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_repositoryserver_object(self): + """Test case for udm_policies_repositoryserver_object + + Get a representation of the Repository server policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_repositoryserver_object_create(self): + """Test case for udm_policies_repositoryserver_object_create + + Create a new Repository server policy object # noqa: E501 + """ + pass + + def test_udm_policies_repositoryserver_object_modify(self): + """Test case for udm_policies_repositoryserver_object_modify + + Modify or move an Repository server policy object # noqa: E501 + """ + pass + + def test_udm_policies_repositoryserver_object_remove(self): + """Test case for udm_policies_repositoryserver_object_remove + + Remove a Repository server policies object # noqa: E501 + """ + pass + + def test_udm_policies_repositoryserver_object_search(self): + """Test case for udm_policies_repositoryserver_object_search + + Search for Repository server policies objects # noqa: E501 + """ + pass + + def test_udm_policies_repositoryserver_object_template(self): + """Test case for udm_policies_repositoryserver_object_template + + Get a template for creating an Repository server policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_repositoryserver_object_update(self): + """Test case for udm_policies_repositoryserver_object_update + + Modify an Repository server policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositoryserver_list.py b/test/test_policies_repositoryserver_list.py new file mode 100644 index 0000000..9547cde --- /dev/null +++ b/test/test_policies_repositoryserver_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositoryserver_list import PoliciesRepositoryserverList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositoryserverList(unittest.TestCase): + """PoliciesRepositoryserverList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRepositoryserverList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_repositoryserver_list.PoliciesRepositoryserverList() # noqa: E501 + if include_optional : + return PoliciesRepositoryserverList( + embedded = openapi_client_udm.models.policies_repositoryserver_list__embedded.policies_repositoryserver_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesRepositoryserverList( + ) + + def testPoliciesRepositoryserverList(self): + """Test PoliciesRepositoryserverList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositoryserver_list_embedded.py b/test/test_policies_repositoryserver_list_embedded.py new file mode 100644 index 0000000..16054c2 --- /dev/null +++ b/test/test_policies_repositoryserver_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositoryserver_list_embedded import PoliciesRepositoryserverListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositoryserverListEmbedded(unittest.TestCase): + """PoliciesRepositoryserverListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRepositoryserverListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_repositoryserver_list_embedded.PoliciesRepositoryserverListEmbedded() # noqa: E501 + if include_optional : + return PoliciesRepositoryserverListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesRepositoryserverListEmbedded( + ) + + def testPoliciesRepositoryserverListEmbedded(self): + """Test PoliciesRepositoryserverListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositoryserver_request.py b/test/test_policies_repositoryserver_request.py new file mode 100644 index 0000000..1c732a5 --- /dev/null +++ b/test/test_policies_repositoryserver_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositoryserver_request import PoliciesRepositoryserverRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositoryserverRequest(unittest.TestCase): + """PoliciesRepositoryserverRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesRepositoryserverRequest(self): + """Test PoliciesRepositoryserverRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositoryserver_request_patch.py b/test/test_policies_repositoryserver_request_patch.py new file mode 100644 index 0000000..91d0fc0 --- /dev/null +++ b/test/test_policies_repositoryserver_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositoryserver_request_patch import PoliciesRepositoryserverRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositoryserverRequestPatch(unittest.TestCase): + """PoliciesRepositoryserverRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRepositoryserverRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_repositoryserver_request_patch.PoliciesRepositoryserverRequestPatch() # noqa: E501 + if include_optional : + return PoliciesRepositoryserverRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesRepositoryserverRequestPatch( + ) + + def testPoliciesRepositoryserverRequestPatch(self): + """Test PoliciesRepositoryserverRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositoryserver_response_mixin.py b/test/test_policies_repositoryserver_response_mixin.py new file mode 100644 index 0000000..f5a33fc --- /dev/null +++ b/test/test_policies_repositoryserver_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositoryserver_response_mixin import PoliciesRepositoryserverResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositoryserverResponseMixin(unittest.TestCase): + """PoliciesRepositoryserverResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRepositoryserverResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_repositoryserver_response_mixin.PoliciesRepositoryserverResponseMixin() # noqa: E501 + if include_optional : + return PoliciesRepositoryserverResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/repositoryserver/cn={value},cn=repository,cn=update,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesRepositoryserverResponseMixin( + ) + + def testPoliciesRepositoryserverResponseMixin(self): + """Test PoliciesRepositoryserverResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositorysync.py b/test/test_policies_repositorysync.py new file mode 100644 index 0000000..af9f006 --- /dev/null +++ b/test/test_policies_repositorysync.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositorysync import PoliciesRepositorysync # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositorysync(unittest.TestCase): + """PoliciesRepositorysync unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesRepositorysync(self): + """Test PoliciesRepositorysync""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositorysync_api.py b/test/test_policies_repositorysync_api.py new file mode 100644 index 0000000..064fec8 --- /dev/null +++ b/test/test_policies_repositorysync_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_repositorysync_api import PoliciesRepositorysyncApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesRepositorysyncApi(unittest.TestCase): + """PoliciesRepositorysyncApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_repositorysync_api.PoliciesRepositorysyncApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_repositorysync_object(self): + """Test case for udm_policies_repositorysync_object + + Get a representation of the Repository synchronisation policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_repositorysync_object_create(self): + """Test case for udm_policies_repositorysync_object_create + + Create a new Repository synchronisation policy object # noqa: E501 + """ + pass + + def test_udm_policies_repositorysync_object_modify(self): + """Test case for udm_policies_repositorysync_object_modify + + Modify or move an Repository synchronisation policy object # noqa: E501 + """ + pass + + def test_udm_policies_repositorysync_object_remove(self): + """Test case for udm_policies_repositorysync_object_remove + + Remove a Repository synchronisation policies object # noqa: E501 + """ + pass + + def test_udm_policies_repositorysync_object_search(self): + """Test case for udm_policies_repositorysync_object_search + + Search for Repository synchronisation policies objects # noqa: E501 + """ + pass + + def test_udm_policies_repositorysync_object_template(self): + """Test case for udm_policies_repositorysync_object_template + + Get a template for creating an Repository synchronisation policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_repositorysync_object_update(self): + """Test case for udm_policies_repositorysync_object_update + + Modify an Repository synchronisation policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositorysync_list.py b/test/test_policies_repositorysync_list.py new file mode 100644 index 0000000..6e13d76 --- /dev/null +++ b/test/test_policies_repositorysync_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositorysync_list import PoliciesRepositorysyncList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositorysyncList(unittest.TestCase): + """PoliciesRepositorysyncList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRepositorysyncList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_repositorysync_list.PoliciesRepositorysyncList() # noqa: E501 + if include_optional : + return PoliciesRepositorysyncList( + embedded = openapi_client_udm.models.policies_repositorysync_list__embedded.policies_repositorysync_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesRepositorysyncList( + ) + + def testPoliciesRepositorysyncList(self): + """Test PoliciesRepositorysyncList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositorysync_list_embedded.py b/test/test_policies_repositorysync_list_embedded.py new file mode 100644 index 0000000..2a23ef3 --- /dev/null +++ b/test/test_policies_repositorysync_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositorysync_list_embedded import PoliciesRepositorysyncListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositorysyncListEmbedded(unittest.TestCase): + """PoliciesRepositorysyncListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRepositorysyncListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_repositorysync_list_embedded.PoliciesRepositorysyncListEmbedded() # noqa: E501 + if include_optional : + return PoliciesRepositorysyncListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesRepositorysyncListEmbedded( + ) + + def testPoliciesRepositorysyncListEmbedded(self): + """Test PoliciesRepositorysyncListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositorysync_request.py b/test/test_policies_repositorysync_request.py new file mode 100644 index 0000000..8ff2336 --- /dev/null +++ b/test/test_policies_repositorysync_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositorysync_request import PoliciesRepositorysyncRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositorysyncRequest(unittest.TestCase): + """PoliciesRepositorysyncRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesRepositorysyncRequest(self): + """Test PoliciesRepositorysyncRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositorysync_request_patch.py b/test/test_policies_repositorysync_request_patch.py new file mode 100644 index 0000000..588ea8f --- /dev/null +++ b/test/test_policies_repositorysync_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositorysync_request_patch import PoliciesRepositorysyncRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositorysyncRequestPatch(unittest.TestCase): + """PoliciesRepositorysyncRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRepositorysyncRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_repositorysync_request_patch.PoliciesRepositorysyncRequestPatch() # noqa: E501 + if include_optional : + return PoliciesRepositorysyncRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesRepositorysyncRequestPatch( + ) + + def testPoliciesRepositorysyncRequestPatch(self): + """Test PoliciesRepositorysyncRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_repositorysync_response_mixin.py b/test/test_policies_repositorysync_response_mixin.py new file mode 100644 index 0000000..3ce723a --- /dev/null +++ b/test/test_policies_repositorysync_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_repositorysync_response_mixin import PoliciesRepositorysyncResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesRepositorysyncResponseMixin(unittest.TestCase): + """PoliciesRepositorysyncResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesRepositorysyncResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_repositorysync_response_mixin.PoliciesRepositorysyncResponseMixin() # noqa: E501 + if include_optional : + return PoliciesRepositorysyncResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/repositorysync/cn={value},cn=repository,cn=update,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesRepositorysyncResponseMixin( + ) + + def testPoliciesRepositorysyncResponseMixin(self): + """Test PoliciesRepositorysyncResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_share_userquota.py b/test/test_policies_share_userquota.py new file mode 100644 index 0000000..1483874 --- /dev/null +++ b/test/test_policies_share_userquota.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_share_userquota import PoliciesShareUserquota # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesShareUserquota(unittest.TestCase): + """PoliciesShareUserquota unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesShareUserquota(self): + """Test PoliciesShareUserquota""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_share_userquota_api.py b/test/test_policies_share_userquota_api.py new file mode 100644 index 0000000..603ada0 --- /dev/null +++ b/test/test_policies_share_userquota_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_share_userquota_api import PoliciesShareUserquotaApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesShareUserquotaApi(unittest.TestCase): + """PoliciesShareUserquotaApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_share_userquota_api.PoliciesShareUserquotaApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_share_userquota_object(self): + """Test case for udm_policies_share_userquota_object + + Get a representation of the User quota policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_share_userquota_object_create(self): + """Test case for udm_policies_share_userquota_object_create + + Create a new User quota policy object # noqa: E501 + """ + pass + + def test_udm_policies_share_userquota_object_modify(self): + """Test case for udm_policies_share_userquota_object_modify + + Modify or move an User quota policy object # noqa: E501 + """ + pass + + def test_udm_policies_share_userquota_object_remove(self): + """Test case for udm_policies_share_userquota_object_remove + + Remove a User quota policies object # noqa: E501 + """ + pass + + def test_udm_policies_share_userquota_object_search(self): + """Test case for udm_policies_share_userquota_object_search + + Search for User quota policies objects # noqa: E501 + """ + pass + + def test_udm_policies_share_userquota_object_template(self): + """Test case for udm_policies_share_userquota_object_template + + Get a template for creating an User quota policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_share_userquota_object_update(self): + """Test case for udm_policies_share_userquota_object_update + + Modify an User quota policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_share_userquota_list.py b/test/test_policies_share_userquota_list.py new file mode 100644 index 0000000..fca1c5e --- /dev/null +++ b/test/test_policies_share_userquota_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_share_userquota_list import PoliciesShareUserquotaList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesShareUserquotaList(unittest.TestCase): + """PoliciesShareUserquotaList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesShareUserquotaList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_share_userquota_list.PoliciesShareUserquotaList() # noqa: E501 + if include_optional : + return PoliciesShareUserquotaList( + embedded = openapi_client_udm.models.policies_share_userquota_list__embedded.policies_share_userquota_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesShareUserquotaList( + ) + + def testPoliciesShareUserquotaList(self): + """Test PoliciesShareUserquotaList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_share_userquota_list_embedded.py b/test/test_policies_share_userquota_list_embedded.py new file mode 100644 index 0000000..179674b --- /dev/null +++ b/test/test_policies_share_userquota_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_share_userquota_list_embedded import PoliciesShareUserquotaListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesShareUserquotaListEmbedded(unittest.TestCase): + """PoliciesShareUserquotaListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesShareUserquotaListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_share_userquota_list_embedded.PoliciesShareUserquotaListEmbedded() # noqa: E501 + if include_optional : + return PoliciesShareUserquotaListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesShareUserquotaListEmbedded( + ) + + def testPoliciesShareUserquotaListEmbedded(self): + """Test PoliciesShareUserquotaListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_share_userquota_request.py b/test/test_policies_share_userquota_request.py new file mode 100644 index 0000000..2ca9f37 --- /dev/null +++ b/test/test_policies_share_userquota_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_share_userquota_request import PoliciesShareUserquotaRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesShareUserquotaRequest(unittest.TestCase): + """PoliciesShareUserquotaRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesShareUserquotaRequest(self): + """Test PoliciesShareUserquotaRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_share_userquota_request_patch.py b/test/test_policies_share_userquota_request_patch.py new file mode 100644 index 0000000..bc5e74b --- /dev/null +++ b/test/test_policies_share_userquota_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_share_userquota_request_patch import PoliciesShareUserquotaRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesShareUserquotaRequestPatch(unittest.TestCase): + """PoliciesShareUserquotaRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesShareUserquotaRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_share_userquota_request_patch.PoliciesShareUserquotaRequestPatch() # noqa: E501 + if include_optional : + return PoliciesShareUserquotaRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesShareUserquotaRequestPatch( + ) + + def testPoliciesShareUserquotaRequestPatch(self): + """Test PoliciesShareUserquotaRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_share_userquota_response_mixin.py b/test/test_policies_share_userquota_response_mixin.py new file mode 100644 index 0000000..13bb800 --- /dev/null +++ b/test/test_policies_share_userquota_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_share_userquota_response_mixin import PoliciesShareUserquotaResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesShareUserquotaResponseMixin(unittest.TestCase): + """PoliciesShareUserquotaResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesShareUserquotaResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_share_userquota_response_mixin.PoliciesShareUserquotaResponseMixin() # noqa: E501 + if include_optional : + return PoliciesShareUserquotaResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/share_userquota/cn={value},cn=userquota,cn=shares,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesShareUserquotaResponseMixin( + ) + + def testPoliciesShareUserquotaResponseMixin(self): + """Test PoliciesShareUserquotaResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_slavepackages.py b/test/test_policies_slavepackages.py new file mode 100644 index 0000000..8af5266 --- /dev/null +++ b/test/test_policies_slavepackages.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_slavepackages import PoliciesSlavepackages # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesSlavepackages(unittest.TestCase): + """PoliciesSlavepackages unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesSlavepackages(self): + """Test PoliciesSlavepackages""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_slavepackages_api.py b/test/test_policies_slavepackages_api.py new file mode 100644 index 0000000..5ead8fe --- /dev/null +++ b/test/test_policies_slavepackages_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_slavepackages_api import PoliciesSlavepackagesApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesSlavepackagesApi(unittest.TestCase): + """PoliciesSlavepackagesApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_slavepackages_api.PoliciesSlavepackagesApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_slavepackages_object(self): + """Test case for udm_policies_slavepackages_object + + Get a representation of the Replica Node packages policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_slavepackages_object_create(self): + """Test case for udm_policies_slavepackages_object_create + + Create a new Replica Node packages policy object # noqa: E501 + """ + pass + + def test_udm_policies_slavepackages_object_modify(self): + """Test case for udm_policies_slavepackages_object_modify + + Modify or move an Replica Node packages policy object # noqa: E501 + """ + pass + + def test_udm_policies_slavepackages_object_remove(self): + """Test case for udm_policies_slavepackages_object_remove + + Remove a Replica Node packages policies object # noqa: E501 + """ + pass + + def test_udm_policies_slavepackages_object_search(self): + """Test case for udm_policies_slavepackages_object_search + + Search for Replica Node packages policies objects # noqa: E501 + """ + pass + + def test_udm_policies_slavepackages_object_template(self): + """Test case for udm_policies_slavepackages_object_template + + Get a template for creating an Replica Node packages policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_slavepackages_object_update(self): + """Test case for udm_policies_slavepackages_object_update + + Modify an Replica Node packages policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_slavepackages_list.py b/test/test_policies_slavepackages_list.py new file mode 100644 index 0000000..aef74c3 --- /dev/null +++ b/test/test_policies_slavepackages_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_slavepackages_list import PoliciesSlavepackagesList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesSlavepackagesList(unittest.TestCase): + """PoliciesSlavepackagesList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesSlavepackagesList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_slavepackages_list.PoliciesSlavepackagesList() # noqa: E501 + if include_optional : + return PoliciesSlavepackagesList( + embedded = openapi_client_udm.models.policies_slavepackages_list__embedded.policies_slavepackages_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesSlavepackagesList( + ) + + def testPoliciesSlavepackagesList(self): + """Test PoliciesSlavepackagesList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_slavepackages_list_embedded.py b/test/test_policies_slavepackages_list_embedded.py new file mode 100644 index 0000000..c3b9ba9 --- /dev/null +++ b/test/test_policies_slavepackages_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_slavepackages_list_embedded import PoliciesSlavepackagesListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesSlavepackagesListEmbedded(unittest.TestCase): + """PoliciesSlavepackagesListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesSlavepackagesListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_slavepackages_list_embedded.PoliciesSlavepackagesListEmbedded() # noqa: E501 + if include_optional : + return PoliciesSlavepackagesListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesSlavepackagesListEmbedded( + ) + + def testPoliciesSlavepackagesListEmbedded(self): + """Test PoliciesSlavepackagesListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_slavepackages_request.py b/test/test_policies_slavepackages_request.py new file mode 100644 index 0000000..b56cde4 --- /dev/null +++ b/test/test_policies_slavepackages_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_slavepackages_request import PoliciesSlavepackagesRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesSlavepackagesRequest(unittest.TestCase): + """PoliciesSlavepackagesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesSlavepackagesRequest(self): + """Test PoliciesSlavepackagesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_slavepackages_request_patch.py b/test/test_policies_slavepackages_request_patch.py new file mode 100644 index 0000000..a1b507a --- /dev/null +++ b/test/test_policies_slavepackages_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_slavepackages_request_patch import PoliciesSlavepackagesRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesSlavepackagesRequestPatch(unittest.TestCase): + """PoliciesSlavepackagesRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesSlavepackagesRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_slavepackages_request_patch.PoliciesSlavepackagesRequestPatch() # noqa: E501 + if include_optional : + return PoliciesSlavepackagesRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesSlavepackagesRequestPatch( + ) + + def testPoliciesSlavepackagesRequestPatch(self): + """Test PoliciesSlavepackagesRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_slavepackages_response_mixin.py b/test/test_policies_slavepackages_response_mixin.py new file mode 100644 index 0000000..222e183 --- /dev/null +++ b/test/test_policies_slavepackages_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_slavepackages_response_mixin import PoliciesSlavepackagesResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesSlavepackagesResponseMixin(unittest.TestCase): + """PoliciesSlavepackagesResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesSlavepackagesResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_slavepackages_response_mixin.PoliciesSlavepackagesResponseMixin() # noqa: E501 + if include_optional : + return PoliciesSlavepackagesResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/slavepackages/cn={value},cn=packages,cn=update,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesSlavepackagesResponseMixin( + ) + + def testPoliciesSlavepackagesResponseMixin(self): + """Test PoliciesSlavepackagesResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_umc.py b/test/test_policies_umc.py new file mode 100644 index 0000000..8499308 --- /dev/null +++ b/test/test_policies_umc.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_umc import PoliciesUmc # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesUmc(unittest.TestCase): + """PoliciesUmc unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesUmc(self): + """Test PoliciesUmc""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_umc_api.py b/test/test_policies_umc_api.py new file mode 100644 index 0000000..bae520e --- /dev/null +++ b/test/test_policies_umc_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.policies_umc_api import PoliciesUmcApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPoliciesUmcApi(unittest.TestCase): + """PoliciesUmcApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.policies_umc_api.PoliciesUmcApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_policies_umc_object(self): + """Test case for udm_policies_umc_object + + Get a representation of the UMC policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_policies_umc_object_create(self): + """Test case for udm_policies_umc_object_create + + Create a new UMC policy object # noqa: E501 + """ + pass + + def test_udm_policies_umc_object_modify(self): + """Test case for udm_policies_umc_object_modify + + Modify or move an UMC policy object # noqa: E501 + """ + pass + + def test_udm_policies_umc_object_remove(self): + """Test case for udm_policies_umc_object_remove + + Remove a UMC policies object # noqa: E501 + """ + pass + + def test_udm_policies_umc_object_search(self): + """Test case for udm_policies_umc_object_search + + Search for UMC policies objects # noqa: E501 + """ + pass + + def test_udm_policies_umc_object_template(self): + """Test case for udm_policies_umc_object_template + + Get a template for creating an UMC policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_policies_umc_object_update(self): + """Test case for udm_policies_umc_object_update + + Modify an UMC policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_umc_list.py b/test/test_policies_umc_list.py new file mode 100644 index 0000000..44feb65 --- /dev/null +++ b/test/test_policies_umc_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_umc_list import PoliciesUmcList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesUmcList(unittest.TestCase): + """PoliciesUmcList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesUmcList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_umc_list.PoliciesUmcList() # noqa: E501 + if include_optional : + return PoliciesUmcList( + embedded = openapi_client_udm.models.policies_umc_list__embedded.policies_umc_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PoliciesUmcList( + ) + + def testPoliciesUmcList(self): + """Test PoliciesUmcList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_umc_list_embedded.py b/test/test_policies_umc_list_embedded.py new file mode 100644 index 0000000..7f7d9fa --- /dev/null +++ b/test/test_policies_umc_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_umc_list_embedded import PoliciesUmcListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesUmcListEmbedded(unittest.TestCase): + """PoliciesUmcListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesUmcListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_umc_list_embedded.PoliciesUmcListEmbedded() # noqa: E501 + if include_optional : + return PoliciesUmcListEmbedded( + udmobject = [ + null + ] + ) + else : + return PoliciesUmcListEmbedded( + ) + + def testPoliciesUmcListEmbedded(self): + """Test PoliciesUmcListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_umc_request.py b/test/test_policies_umc_request.py new file mode 100644 index 0000000..abc9fe6 --- /dev/null +++ b/test/test_policies_umc_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_umc_request import PoliciesUmcRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesUmcRequest(unittest.TestCase): + """PoliciesUmcRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPoliciesUmcRequest(self): + """Test PoliciesUmcRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_umc_request_patch.py b/test/test_policies_umc_request_patch.py new file mode 100644 index 0000000..cd27f38 --- /dev/null +++ b/test/test_policies_umc_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_umc_request_patch import PoliciesUmcRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesUmcRequestPatch(unittest.TestCase): + """PoliciesUmcRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesUmcRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_umc_request_patch.PoliciesUmcRequestPatch() # noqa: E501 + if include_optional : + return PoliciesUmcRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PoliciesUmcRequestPatch( + ) + + def testPoliciesUmcRequestPatch(self): + """Test PoliciesUmcRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_policies_umc_response_mixin.py b/test/test_policies_umc_response_mixin.py new file mode 100644 index 0000000..98f683d --- /dev/null +++ b/test/test_policies_umc_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.policies_umc_response_mixin import PoliciesUmcResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPoliciesUmcResponseMixin(unittest.TestCase): + """PoliciesUmcResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PoliciesUmcResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.policies_umc_response_mixin.PoliciesUmcResponseMixin() # noqa: E501 + if include_optional : + return PoliciesUmcResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/policies/umc/cn={value},cn=UMC,cn=policies,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PoliciesUmcResponseMixin( + ) + + def testPoliciesUmcResponseMixin(self): + """Test PoliciesUmcResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_all.py b/test/test_portals_all.py new file mode 100644 index 0000000..0225c6f --- /dev/null +++ b/test/test_portals_all.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_all import PortalsAll # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAll(unittest.TestCase): + """PortalsAll unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsAll(self): + """Test PortalsAll""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_all_api.py b/test/test_portals_all_api.py new file mode 100644 index 0000000..36d43a1 --- /dev/null +++ b/test/test_portals_all_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.portals_all_api import PortalsAllApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPortalsAllApi(unittest.TestCase): + """PortalsAllApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.portals_all_api.PortalsAllApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_portals_all_object(self): + """Test case for udm_portals_all_object + + Get a representation of the Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_portals_all_object_search(self): + """Test case for udm_portals_all_object_search + + Search for Portal: Settings objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_all_list.py b/test/test_portals_all_list.py new file mode 100644 index 0000000..d64074b --- /dev/null +++ b/test/test_portals_all_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_all_list import PortalsAllList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAllList(unittest.TestCase): + """PortalsAllList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsAllList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_all_list.PortalsAllList() # noqa: E501 + if include_optional : + return PortalsAllList( + embedded = openapi_client_udm.models.portals_all_list__embedded.portals_all_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PortalsAllList( + ) + + def testPortalsAllList(self): + """Test PortalsAllList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_all_list_embedded.py b/test/test_portals_all_list_embedded.py new file mode 100644 index 0000000..804451e --- /dev/null +++ b/test/test_portals_all_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_all_list_embedded import PortalsAllListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAllListEmbedded(unittest.TestCase): + """PortalsAllListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsAllListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_all_list_embedded.PortalsAllListEmbedded() # noqa: E501 + if include_optional : + return PortalsAllListEmbedded( + udmobject = [ + null + ] + ) + else : + return PortalsAllListEmbedded( + ) + + def testPortalsAllListEmbedded(self): + """Test PortalsAllListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_all_request.py b/test/test_portals_all_request.py new file mode 100644 index 0000000..1b42591 --- /dev/null +++ b/test/test_portals_all_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_all_request import PortalsAllRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAllRequest(unittest.TestCase): + """PortalsAllRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsAllRequest(self): + """Test PortalsAllRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_all_request_patch.py b/test/test_portals_all_request_patch.py new file mode 100644 index 0000000..d52ed97 --- /dev/null +++ b/test/test_portals_all_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_all_request_patch import PortalsAllRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAllRequestPatch(unittest.TestCase): + """PortalsAllRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsAllRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_all_request_patch.PortalsAllRequestPatch() # noqa: E501 + if include_optional : + return PortalsAllRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PortalsAllRequestPatch( + ) + + def testPortalsAllRequestPatch(self): + """Test PortalsAllRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_all_response_mixin.py b/test/test_portals_all_response_mixin.py new file mode 100644 index 0000000..50b32b0 --- /dev/null +++ b/test/test_portals_all_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_all_response_mixin import PortalsAllResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAllResponseMixin(unittest.TestCase): + """PortalsAllResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsAllResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_all_response_mixin.PortalsAllResponseMixin() # noqa: E501 + if include_optional : + return PortalsAllResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/portals/all/cn={value},cn=portal,cn=portals,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PortalsAllResponseMixin( + ) + + def testPortalsAllResponseMixin(self): + """Test PortalsAllResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_announcement.py b/test/test_portals_announcement.py new file mode 100644 index 0000000..7b3dfc5 --- /dev/null +++ b/test/test_portals_announcement.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_announcement import PortalsAnnouncement # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAnnouncement(unittest.TestCase): + """PortalsAnnouncement unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsAnnouncement(self): + """Test PortalsAnnouncement""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_announcement_api.py b/test/test_portals_announcement_api.py new file mode 100644 index 0000000..8b0f6c2 --- /dev/null +++ b/test/test_portals_announcement_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.portals_announcement_api import PortalsAnnouncementApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPortalsAnnouncementApi(unittest.TestCase): + """PortalsAnnouncementApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.portals_announcement_api.PortalsAnnouncementApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_portals_announcement_object(self): + """Test case for udm_portals_announcement_object + + Get a representation of the Portal announcement object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_portals_announcement_object_create(self): + """Test case for udm_portals_announcement_object_create + + Create a new Portal announcement object # noqa: E501 + """ + pass + + def test_udm_portals_announcement_object_modify(self): + """Test case for udm_portals_announcement_object_modify + + Modify or move an Portal announcement object # noqa: E501 + """ + pass + + def test_udm_portals_announcement_object_remove(self): + """Test case for udm_portals_announcement_object_remove + + Remove a Portal announcements object # noqa: E501 + """ + pass + + def test_udm_portals_announcement_object_search(self): + """Test case for udm_portals_announcement_object_search + + Search for Portal announcements objects # noqa: E501 + """ + pass + + def test_udm_portals_announcement_object_template(self): + """Test case for udm_portals_announcement_object_template + + Get a template for creating an Portal announcement object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_portals_announcement_object_update(self): + """Test case for udm_portals_announcement_object_update + + Modify an Portal announcement object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_announcement_list.py b/test/test_portals_announcement_list.py new file mode 100644 index 0000000..4b99f7f --- /dev/null +++ b/test/test_portals_announcement_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_announcement_list import PortalsAnnouncementList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAnnouncementList(unittest.TestCase): + """PortalsAnnouncementList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsAnnouncementList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_announcement_list.PortalsAnnouncementList() # noqa: E501 + if include_optional : + return PortalsAnnouncementList( + embedded = openapi_client_udm.models.portals_announcement_list__embedded.portals_announcement_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PortalsAnnouncementList( + ) + + def testPortalsAnnouncementList(self): + """Test PortalsAnnouncementList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_announcement_list_embedded.py b/test/test_portals_announcement_list_embedded.py new file mode 100644 index 0000000..03ae465 --- /dev/null +++ b/test/test_portals_announcement_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_announcement_list_embedded import PortalsAnnouncementListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAnnouncementListEmbedded(unittest.TestCase): + """PortalsAnnouncementListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsAnnouncementListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_announcement_list_embedded.PortalsAnnouncementListEmbedded() # noqa: E501 + if include_optional : + return PortalsAnnouncementListEmbedded( + udmobject = [ + null + ] + ) + else : + return PortalsAnnouncementListEmbedded( + ) + + def testPortalsAnnouncementListEmbedded(self): + """Test PortalsAnnouncementListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_announcement_request.py b/test/test_portals_announcement_request.py new file mode 100644 index 0000000..74c1046 --- /dev/null +++ b/test/test_portals_announcement_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_announcement_request import PortalsAnnouncementRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAnnouncementRequest(unittest.TestCase): + """PortalsAnnouncementRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsAnnouncementRequest(self): + """Test PortalsAnnouncementRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_announcement_request_patch.py b/test/test_portals_announcement_request_patch.py new file mode 100644 index 0000000..f90a64c --- /dev/null +++ b/test/test_portals_announcement_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_announcement_request_patch import PortalsAnnouncementRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAnnouncementRequestPatch(unittest.TestCase): + """PortalsAnnouncementRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsAnnouncementRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_announcement_request_patch.PortalsAnnouncementRequestPatch() # noqa: E501 + if include_optional : + return PortalsAnnouncementRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PortalsAnnouncementRequestPatch( + ) + + def testPortalsAnnouncementRequestPatch(self): + """Test PortalsAnnouncementRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_announcement_response_mixin.py b/test/test_portals_announcement_response_mixin.py new file mode 100644 index 0000000..d19f1b0 --- /dev/null +++ b/test/test_portals_announcement_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_announcement_response_mixin import PortalsAnnouncementResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsAnnouncementResponseMixin(unittest.TestCase): + """PortalsAnnouncementResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsAnnouncementResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_announcement_response_mixin.PortalsAnnouncementResponseMixin() # noqa: E501 + if include_optional : + return PortalsAnnouncementResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/portals/announcement/cn={value},cn=announcement,cn=portals,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PortalsAnnouncementResponseMixin( + ) + + def testPortalsAnnouncementResponseMixin(self): + """Test PortalsAnnouncementResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_category.py b/test/test_portals_category.py new file mode 100644 index 0000000..af1c852 --- /dev/null +++ b/test/test_portals_category.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_category import PortalsCategory # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsCategory(unittest.TestCase): + """PortalsCategory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsCategory(self): + """Test PortalsCategory""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_category_api.py b/test/test_portals_category_api.py new file mode 100644 index 0000000..5a191c2 --- /dev/null +++ b/test/test_portals_category_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.portals_category_api import PortalsCategoryApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPortalsCategoryApi(unittest.TestCase): + """PortalsCategoryApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.portals_category_api.PortalsCategoryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_portals_category_object(self): + """Test case for udm_portals_category_object + + Get a representation of the Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_portals_category_object_create(self): + """Test case for udm_portals_category_object_create + + Create a new Portal category object # noqa: E501 + """ + pass + + def test_udm_portals_category_object_modify(self): + """Test case for udm_portals_category_object_modify + + Modify or move an Portal category object # noqa: E501 + """ + pass + + def test_udm_portals_category_object_remove(self): + """Test case for udm_portals_category_object_remove + + Remove a Portal categories object # noqa: E501 + """ + pass + + def test_udm_portals_category_object_search(self): + """Test case for udm_portals_category_object_search + + Search for Portal categories objects # noqa: E501 + """ + pass + + def test_udm_portals_category_object_template(self): + """Test case for udm_portals_category_object_template + + Get a template for creating an Portal category object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_portals_category_object_update(self): + """Test case for udm_portals_category_object_update + + Modify an Portal category object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_category_list.py b/test/test_portals_category_list.py new file mode 100644 index 0000000..345065f --- /dev/null +++ b/test/test_portals_category_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_category_list import PortalsCategoryList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsCategoryList(unittest.TestCase): + """PortalsCategoryList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsCategoryList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_category_list.PortalsCategoryList() # noqa: E501 + if include_optional : + return PortalsCategoryList( + embedded = openapi_client_udm.models.portals_category_list__embedded.portals_category_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PortalsCategoryList( + ) + + def testPortalsCategoryList(self): + """Test PortalsCategoryList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_category_list_embedded.py b/test/test_portals_category_list_embedded.py new file mode 100644 index 0000000..a1141ab --- /dev/null +++ b/test/test_portals_category_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_category_list_embedded import PortalsCategoryListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsCategoryListEmbedded(unittest.TestCase): + """PortalsCategoryListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsCategoryListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_category_list_embedded.PortalsCategoryListEmbedded() # noqa: E501 + if include_optional : + return PortalsCategoryListEmbedded( + udmobject = [ + null + ] + ) + else : + return PortalsCategoryListEmbedded( + ) + + def testPortalsCategoryListEmbedded(self): + """Test PortalsCategoryListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_category_request.py b/test/test_portals_category_request.py new file mode 100644 index 0000000..5e4a2ea --- /dev/null +++ b/test/test_portals_category_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_category_request import PortalsCategoryRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsCategoryRequest(unittest.TestCase): + """PortalsCategoryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsCategoryRequest(self): + """Test PortalsCategoryRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_category_request_patch.py b/test/test_portals_category_request_patch.py new file mode 100644 index 0000000..dbdc49c --- /dev/null +++ b/test/test_portals_category_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_category_request_patch import PortalsCategoryRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsCategoryRequestPatch(unittest.TestCase): + """PortalsCategoryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsCategoryRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_category_request_patch.PortalsCategoryRequestPatch() # noqa: E501 + if include_optional : + return PortalsCategoryRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PortalsCategoryRequestPatch( + ) + + def testPortalsCategoryRequestPatch(self): + """Test PortalsCategoryRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_category_response_mixin.py b/test/test_portals_category_response_mixin.py new file mode 100644 index 0000000..054be98 --- /dev/null +++ b/test/test_portals_category_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_category_response_mixin import PortalsCategoryResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsCategoryResponseMixin(unittest.TestCase): + """PortalsCategoryResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsCategoryResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_category_response_mixin.PortalsCategoryResponseMixin() # noqa: E501 + if include_optional : + return PortalsCategoryResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/portals/category/cn={value},cn=category,cn=portals,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PortalsCategoryResponseMixin( + ) + + def testPortalsCategoryResponseMixin(self): + """Test PortalsCategoryResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_entry.py b/test/test_portals_entry.py new file mode 100644 index 0000000..976d9fe --- /dev/null +++ b/test/test_portals_entry.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_entry import PortalsEntry # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsEntry(unittest.TestCase): + """PortalsEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsEntry(self): + """Test PortalsEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_entry_api.py b/test/test_portals_entry_api.py new file mode 100644 index 0000000..0ab1085 --- /dev/null +++ b/test/test_portals_entry_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.portals_entry_api import PortalsEntryApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPortalsEntryApi(unittest.TestCase): + """PortalsEntryApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.portals_entry_api.PortalsEntryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_portals_entry_object(self): + """Test case for udm_portals_entry_object + + Get a representation of the Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_portals_entry_object_create(self): + """Test case for udm_portals_entry_object_create + + Create a new Portal entry object # noqa: E501 + """ + pass + + def test_udm_portals_entry_object_modify(self): + """Test case for udm_portals_entry_object_modify + + Modify or move an Portal entry object # noqa: E501 + """ + pass + + def test_udm_portals_entry_object_remove(self): + """Test case for udm_portals_entry_object_remove + + Remove a Portal entries object # noqa: E501 + """ + pass + + def test_udm_portals_entry_object_search(self): + """Test case for udm_portals_entry_object_search + + Search for Portal entries objects # noqa: E501 + """ + pass + + def test_udm_portals_entry_object_template(self): + """Test case for udm_portals_entry_object_template + + Get a template for creating an Portal entry object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_portals_entry_object_update(self): + """Test case for udm_portals_entry_object_update + + Modify an Portal entry object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_entry_list.py b/test/test_portals_entry_list.py new file mode 100644 index 0000000..ea89cdd --- /dev/null +++ b/test/test_portals_entry_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_entry_list import PortalsEntryList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsEntryList(unittest.TestCase): + """PortalsEntryList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsEntryList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_entry_list.PortalsEntryList() # noqa: E501 + if include_optional : + return PortalsEntryList( + embedded = openapi_client_udm.models.portals_entry_list__embedded.portals_entry_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PortalsEntryList( + ) + + def testPortalsEntryList(self): + """Test PortalsEntryList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_entry_list_embedded.py b/test/test_portals_entry_list_embedded.py new file mode 100644 index 0000000..f3cee66 --- /dev/null +++ b/test/test_portals_entry_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_entry_list_embedded import PortalsEntryListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsEntryListEmbedded(unittest.TestCase): + """PortalsEntryListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsEntryListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_entry_list_embedded.PortalsEntryListEmbedded() # noqa: E501 + if include_optional : + return PortalsEntryListEmbedded( + udmobject = [ + null + ] + ) + else : + return PortalsEntryListEmbedded( + ) + + def testPortalsEntryListEmbedded(self): + """Test PortalsEntryListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_entry_request.py b/test/test_portals_entry_request.py new file mode 100644 index 0000000..cb8cc52 --- /dev/null +++ b/test/test_portals_entry_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_entry_request import PortalsEntryRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsEntryRequest(unittest.TestCase): + """PortalsEntryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsEntryRequest(self): + """Test PortalsEntryRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_entry_request_patch.py b/test/test_portals_entry_request_patch.py new file mode 100644 index 0000000..951dead --- /dev/null +++ b/test/test_portals_entry_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_entry_request_patch import PortalsEntryRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsEntryRequestPatch(unittest.TestCase): + """PortalsEntryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsEntryRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_entry_request_patch.PortalsEntryRequestPatch() # noqa: E501 + if include_optional : + return PortalsEntryRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PortalsEntryRequestPatch( + ) + + def testPortalsEntryRequestPatch(self): + """Test PortalsEntryRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_entry_response_mixin.py b/test/test_portals_entry_response_mixin.py new file mode 100644 index 0000000..9c3f107 --- /dev/null +++ b/test/test_portals_entry_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_entry_response_mixin import PortalsEntryResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsEntryResponseMixin(unittest.TestCase): + """PortalsEntryResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsEntryResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_entry_response_mixin.PortalsEntryResponseMixin() # noqa: E501 + if include_optional : + return PortalsEntryResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/portals/entry/cn={value},cn=entry,cn=portals,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PortalsEntryResponseMixin( + ) + + def testPortalsEntryResponseMixin(self): + """Test PortalsEntryResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_folder.py b/test/test_portals_folder.py new file mode 100644 index 0000000..4263f26 --- /dev/null +++ b/test/test_portals_folder.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_folder import PortalsFolder # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsFolder(unittest.TestCase): + """PortalsFolder unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsFolder(self): + """Test PortalsFolder""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_folder_api.py b/test/test_portals_folder_api.py new file mode 100644 index 0000000..19b006d --- /dev/null +++ b/test/test_portals_folder_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.portals_folder_api import PortalsFolderApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPortalsFolderApi(unittest.TestCase): + """PortalsFolderApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.portals_folder_api.PortalsFolderApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_portals_folder_object(self): + """Test case for udm_portals_folder_object + + Get a representation of the Portal folder object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_portals_folder_object_create(self): + """Test case for udm_portals_folder_object_create + + Create a new Portal folder object # noqa: E501 + """ + pass + + def test_udm_portals_folder_object_modify(self): + """Test case for udm_portals_folder_object_modify + + Modify or move an Portal folder object # noqa: E501 + """ + pass + + def test_udm_portals_folder_object_remove(self): + """Test case for udm_portals_folder_object_remove + + Remove a Portal folders object # noqa: E501 + """ + pass + + def test_udm_portals_folder_object_search(self): + """Test case for udm_portals_folder_object_search + + Search for Portal folders objects # noqa: E501 + """ + pass + + def test_udm_portals_folder_object_template(self): + """Test case for udm_portals_folder_object_template + + Get a template for creating an Portal folder object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_portals_folder_object_update(self): + """Test case for udm_portals_folder_object_update + + Modify an Portal folder object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_folder_list.py b/test/test_portals_folder_list.py new file mode 100644 index 0000000..6fa7797 --- /dev/null +++ b/test/test_portals_folder_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_folder_list import PortalsFolderList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsFolderList(unittest.TestCase): + """PortalsFolderList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsFolderList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_folder_list.PortalsFolderList() # noqa: E501 + if include_optional : + return PortalsFolderList( + embedded = openapi_client_udm.models.portals_folder_list__embedded.portals_folder_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PortalsFolderList( + ) + + def testPortalsFolderList(self): + """Test PortalsFolderList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_folder_list_embedded.py b/test/test_portals_folder_list_embedded.py new file mode 100644 index 0000000..13f28cb --- /dev/null +++ b/test/test_portals_folder_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_folder_list_embedded import PortalsFolderListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsFolderListEmbedded(unittest.TestCase): + """PortalsFolderListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsFolderListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_folder_list_embedded.PortalsFolderListEmbedded() # noqa: E501 + if include_optional : + return PortalsFolderListEmbedded( + udmobject = [ + null + ] + ) + else : + return PortalsFolderListEmbedded( + ) + + def testPortalsFolderListEmbedded(self): + """Test PortalsFolderListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_folder_request.py b/test/test_portals_folder_request.py new file mode 100644 index 0000000..710e22f --- /dev/null +++ b/test/test_portals_folder_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_folder_request import PortalsFolderRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsFolderRequest(unittest.TestCase): + """PortalsFolderRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsFolderRequest(self): + """Test PortalsFolderRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_folder_request_patch.py b/test/test_portals_folder_request_patch.py new file mode 100644 index 0000000..a9e0617 --- /dev/null +++ b/test/test_portals_folder_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_folder_request_patch import PortalsFolderRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsFolderRequestPatch(unittest.TestCase): + """PortalsFolderRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsFolderRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_folder_request_patch.PortalsFolderRequestPatch() # noqa: E501 + if include_optional : + return PortalsFolderRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PortalsFolderRequestPatch( + ) + + def testPortalsFolderRequestPatch(self): + """Test PortalsFolderRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_folder_response_mixin.py b/test/test_portals_folder_response_mixin.py new file mode 100644 index 0000000..af4ca9a --- /dev/null +++ b/test/test_portals_folder_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_folder_response_mixin import PortalsFolderResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsFolderResponseMixin(unittest.TestCase): + """PortalsFolderResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsFolderResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_folder_response_mixin.PortalsFolderResponseMixin() # noqa: E501 + if include_optional : + return PortalsFolderResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/portals/folder/cn={value},cn=folder,cn=portals,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PortalsFolderResponseMixin( + ) + + def testPortalsFolderResponseMixin(self): + """Test PortalsFolderResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_portal.py b/test/test_portals_portal.py new file mode 100644 index 0000000..28a12da --- /dev/null +++ b/test/test_portals_portal.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_portal import PortalsPortal # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsPortal(unittest.TestCase): + """PortalsPortal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsPortal(self): + """Test PortalsPortal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_portal_api.py b/test/test_portals_portal_api.py new file mode 100644 index 0000000..0965f2d --- /dev/null +++ b/test/test_portals_portal_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.portals_portal_api import PortalsPortalApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestPortalsPortalApi(unittest.TestCase): + """PortalsPortalApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.portals_portal_api.PortalsPortalApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_portals_portal_object(self): + """Test case for udm_portals_portal_object + + Get a representation of the Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_portals_portal_object_create(self): + """Test case for udm_portals_portal_object_create + + Create a new Portal object # noqa: E501 + """ + pass + + def test_udm_portals_portal_object_modify(self): + """Test case for udm_portals_portal_object_modify + + Modify or move an Portal object # noqa: E501 + """ + pass + + def test_udm_portals_portal_object_remove(self): + """Test case for udm_portals_portal_object_remove + + Remove a Portals object # noqa: E501 + """ + pass + + def test_udm_portals_portal_object_search(self): + """Test case for udm_portals_portal_object_search + + Search for Portals objects # noqa: E501 + """ + pass + + def test_udm_portals_portal_object_template(self): + """Test case for udm_portals_portal_object_template + + Get a template for creating an Portal object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_portals_portal_object_update(self): + """Test case for udm_portals_portal_object_update + + Modify an Portal object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_portal_list.py b/test/test_portals_portal_list.py new file mode 100644 index 0000000..81f6e65 --- /dev/null +++ b/test/test_portals_portal_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_portal_list import PortalsPortalList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsPortalList(unittest.TestCase): + """PortalsPortalList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsPortalList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_portal_list.PortalsPortalList() # noqa: E501 + if include_optional : + return PortalsPortalList( + embedded = openapi_client_udm.models.portals_portal_list__embedded.portals_portal_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return PortalsPortalList( + ) + + def testPortalsPortalList(self): + """Test PortalsPortalList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_portal_list_embedded.py b/test/test_portals_portal_list_embedded.py new file mode 100644 index 0000000..3835324 --- /dev/null +++ b/test/test_portals_portal_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_portal_list_embedded import PortalsPortalListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsPortalListEmbedded(unittest.TestCase): + """PortalsPortalListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsPortalListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_portal_list_embedded.PortalsPortalListEmbedded() # noqa: E501 + if include_optional : + return PortalsPortalListEmbedded( + udmobject = [ + null + ] + ) + else : + return PortalsPortalListEmbedded( + ) + + def testPortalsPortalListEmbedded(self): + """Test PortalsPortalListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_portal_request.py b/test/test_portals_portal_request.py new file mode 100644 index 0000000..0ba8f94 --- /dev/null +++ b/test/test_portals_portal_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_portal_request import PortalsPortalRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsPortalRequest(unittest.TestCase): + """PortalsPortalRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPortalsPortalRequest(self): + """Test PortalsPortalRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_portal_request_patch.py b/test/test_portals_portal_request_patch.py new file mode 100644 index 0000000..a8d80f6 --- /dev/null +++ b/test/test_portals_portal_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_portal_request_patch import PortalsPortalRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsPortalRequestPatch(unittest.TestCase): + """PortalsPortalRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsPortalRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_portal_request_patch.PortalsPortalRequestPatch() # noqa: E501 + if include_optional : + return PortalsPortalRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return PortalsPortalRequestPatch( + ) + + def testPortalsPortalRequestPatch(self): + """Test PortalsPortalRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_portals_portal_response_mixin.py b/test/test_portals_portal_response_mixin.py new file mode 100644 index 0000000..060d6c7 --- /dev/null +++ b/test/test_portals_portal_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.portals_portal_response_mixin import PortalsPortalResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestPortalsPortalResponseMixin(unittest.TestCase): + """PortalsPortalResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test PortalsPortalResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.portals_portal_response_mixin.PortalsPortalResponseMixin() # noqa: E501 + if include_optional : + return PortalsPortalResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/portals/portal/cn={value},cn=portal,cn=portals,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return PortalsPortalResponseMixin( + ) + + def testPortalsPortalResponseMixin(self): + """Test PortalsPortalResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_idpconfig.py b/test/test_saml_idpconfig.py new file mode 100644 index 0000000..f2cb848 --- /dev/null +++ b/test/test_saml_idpconfig.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_idpconfig import SamlIdpconfig # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlIdpconfig(unittest.TestCase): + """SamlIdpconfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSamlIdpconfig(self): + """Test SamlIdpconfig""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_idpconfig_api.py b/test/test_saml_idpconfig_api.py new file mode 100644 index 0000000..872d471 --- /dev/null +++ b/test/test_saml_idpconfig_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.saml_idpconfig_api import SamlIdpconfigApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSamlIdpconfigApi(unittest.TestCase): + """SamlIdpconfigApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.saml_idpconfig_api.SamlIdpconfigApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_saml_idpconfig_object(self): + """Test case for udm_saml_idpconfig_object + + Get a representation of the SAML IdP configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_saml_idpconfig_object_create(self): + """Test case for udm_saml_idpconfig_object_create + + Create a new SAML IdP configuration object # noqa: E501 + """ + pass + + def test_udm_saml_idpconfig_object_modify(self): + """Test case for udm_saml_idpconfig_object_modify + + Modify or move an SAML IdP configuration object # noqa: E501 + """ + pass + + def test_udm_saml_idpconfig_object_remove(self): + """Test case for udm_saml_idpconfig_object_remove + + Remove a SAML IdP configurations object # noqa: E501 + """ + pass + + def test_udm_saml_idpconfig_object_search(self): + """Test case for udm_saml_idpconfig_object_search + + Search for SAML IdP configurations objects # noqa: E501 + """ + pass + + def test_udm_saml_idpconfig_object_template(self): + """Test case for udm_saml_idpconfig_object_template + + Get a template for creating an SAML IdP configuration object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_saml_idpconfig_object_update(self): + """Test case for udm_saml_idpconfig_object_update + + Modify an SAML IdP configuration object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_idpconfig_list.py b/test/test_saml_idpconfig_list.py new file mode 100644 index 0000000..156eae0 --- /dev/null +++ b/test/test_saml_idpconfig_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_idpconfig_list import SamlIdpconfigList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlIdpconfigList(unittest.TestCase): + """SamlIdpconfigList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SamlIdpconfigList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.saml_idpconfig_list.SamlIdpconfigList() # noqa: E501 + if include_optional : + return SamlIdpconfigList( + embedded = openapi_client_udm.models.saml_idpconfig_list__embedded.saml_idpconfig_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SamlIdpconfigList( + ) + + def testSamlIdpconfigList(self): + """Test SamlIdpconfigList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_idpconfig_list_embedded.py b/test/test_saml_idpconfig_list_embedded.py new file mode 100644 index 0000000..03fd061 --- /dev/null +++ b/test/test_saml_idpconfig_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_idpconfig_list_embedded import SamlIdpconfigListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlIdpconfigListEmbedded(unittest.TestCase): + """SamlIdpconfigListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SamlIdpconfigListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.saml_idpconfig_list_embedded.SamlIdpconfigListEmbedded() # noqa: E501 + if include_optional : + return SamlIdpconfigListEmbedded( + udmobject = [ + null + ] + ) + else : + return SamlIdpconfigListEmbedded( + ) + + def testSamlIdpconfigListEmbedded(self): + """Test SamlIdpconfigListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_idpconfig_request.py b/test/test_saml_idpconfig_request.py new file mode 100644 index 0000000..cc508da --- /dev/null +++ b/test/test_saml_idpconfig_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_idpconfig_request import SamlIdpconfigRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlIdpconfigRequest(unittest.TestCase): + """SamlIdpconfigRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSamlIdpconfigRequest(self): + """Test SamlIdpconfigRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_idpconfig_request_patch.py b/test/test_saml_idpconfig_request_patch.py new file mode 100644 index 0000000..8bed62b --- /dev/null +++ b/test/test_saml_idpconfig_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_idpconfig_request_patch import SamlIdpconfigRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlIdpconfigRequestPatch(unittest.TestCase): + """SamlIdpconfigRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SamlIdpconfigRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.saml_idpconfig_request_patch.SamlIdpconfigRequestPatch() # noqa: E501 + if include_optional : + return SamlIdpconfigRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SamlIdpconfigRequestPatch( + ) + + def testSamlIdpconfigRequestPatch(self): + """Test SamlIdpconfigRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_idpconfig_response_mixin.py b/test/test_saml_idpconfig_response_mixin.py new file mode 100644 index 0000000..6f64218 --- /dev/null +++ b/test/test_saml_idpconfig_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_idpconfig_response_mixin import SamlIdpconfigResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlIdpconfigResponseMixin(unittest.TestCase): + """SamlIdpconfigResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SamlIdpconfigResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.saml_idpconfig_response_mixin.SamlIdpconfigResponseMixin() # noqa: E501 + if include_optional : + return SamlIdpconfigResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/saml/idpconfig/id={value},cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SamlIdpconfigResponseMixin( + ) + + def testSamlIdpconfigResponseMixin(self): + """Test SamlIdpconfigResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_serviceprovider.py b/test/test_saml_serviceprovider.py new file mode 100644 index 0000000..4f21fbf --- /dev/null +++ b/test/test_saml_serviceprovider.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_serviceprovider import SamlServiceprovider # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlServiceprovider(unittest.TestCase): + """SamlServiceprovider unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSamlServiceprovider(self): + """Test SamlServiceprovider""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_serviceprovider_api.py b/test/test_saml_serviceprovider_api.py new file mode 100644 index 0000000..5a0cefa --- /dev/null +++ b/test/test_saml_serviceprovider_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.saml_serviceprovider_api import SamlServiceproviderApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSamlServiceproviderApi(unittest.TestCase): + """SamlServiceproviderApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.saml_serviceprovider_api.SamlServiceproviderApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_saml_serviceprovider_object(self): + """Test case for udm_saml_serviceprovider_object + + Get a representation of the SAML service provider object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_saml_serviceprovider_object_create(self): + """Test case for udm_saml_serviceprovider_object_create + + Create a new SAML service provider object # noqa: E501 + """ + pass + + def test_udm_saml_serviceprovider_object_modify(self): + """Test case for udm_saml_serviceprovider_object_modify + + Modify or move an SAML service provider object # noqa: E501 + """ + pass + + def test_udm_saml_serviceprovider_object_remove(self): + """Test case for udm_saml_serviceprovider_object_remove + + Remove a SAML service providers object # noqa: E501 + """ + pass + + def test_udm_saml_serviceprovider_object_search(self): + """Test case for udm_saml_serviceprovider_object_search + + Search for SAML service providers objects # noqa: E501 + """ + pass + + def test_udm_saml_serviceprovider_object_template(self): + """Test case for udm_saml_serviceprovider_object_template + + Get a template for creating an SAML service provider object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_saml_serviceprovider_object_update(self): + """Test case for udm_saml_serviceprovider_object_update + + Modify an SAML service provider object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_serviceprovider_list.py b/test/test_saml_serviceprovider_list.py new file mode 100644 index 0000000..25de09c --- /dev/null +++ b/test/test_saml_serviceprovider_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_serviceprovider_list import SamlServiceproviderList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlServiceproviderList(unittest.TestCase): + """SamlServiceproviderList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SamlServiceproviderList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.saml_serviceprovider_list.SamlServiceproviderList() # noqa: E501 + if include_optional : + return SamlServiceproviderList( + embedded = openapi_client_udm.models.saml_serviceprovider_list__embedded.saml_serviceprovider_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SamlServiceproviderList( + ) + + def testSamlServiceproviderList(self): + """Test SamlServiceproviderList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_serviceprovider_list_embedded.py b/test/test_saml_serviceprovider_list_embedded.py new file mode 100644 index 0000000..ff630d5 --- /dev/null +++ b/test/test_saml_serviceprovider_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_serviceprovider_list_embedded import SamlServiceproviderListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlServiceproviderListEmbedded(unittest.TestCase): + """SamlServiceproviderListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SamlServiceproviderListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.saml_serviceprovider_list_embedded.SamlServiceproviderListEmbedded() # noqa: E501 + if include_optional : + return SamlServiceproviderListEmbedded( + udmobject = [ + null + ] + ) + else : + return SamlServiceproviderListEmbedded( + ) + + def testSamlServiceproviderListEmbedded(self): + """Test SamlServiceproviderListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_serviceprovider_request.py b/test/test_saml_serviceprovider_request.py new file mode 100644 index 0000000..314351c --- /dev/null +++ b/test/test_saml_serviceprovider_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_serviceprovider_request import SamlServiceproviderRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlServiceproviderRequest(unittest.TestCase): + """SamlServiceproviderRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSamlServiceproviderRequest(self): + """Test SamlServiceproviderRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_serviceprovider_request_patch.py b/test/test_saml_serviceprovider_request_patch.py new file mode 100644 index 0000000..cb21c5f --- /dev/null +++ b/test/test_saml_serviceprovider_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_serviceprovider_request_patch import SamlServiceproviderRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlServiceproviderRequestPatch(unittest.TestCase): + """SamlServiceproviderRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SamlServiceproviderRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.saml_serviceprovider_request_patch.SamlServiceproviderRequestPatch() # noqa: E501 + if include_optional : + return SamlServiceproviderRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SamlServiceproviderRequestPatch( + ) + + def testSamlServiceproviderRequestPatch(self): + """Test SamlServiceproviderRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_saml_serviceprovider_response_mixin.py b/test/test_saml_serviceprovider_response_mixin.py new file mode 100644 index 0000000..96fb0ae --- /dev/null +++ b/test/test_saml_serviceprovider_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.saml_serviceprovider_response_mixin import SamlServiceproviderResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSamlServiceproviderResponseMixin(unittest.TestCase): + """SamlServiceproviderResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SamlServiceproviderResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.saml_serviceprovider_response_mixin.SamlServiceproviderResponseMixin() # noqa: E501 + if include_optional : + return SamlServiceproviderResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/saml/serviceprovider/SAMLServiceProviderIdentifier={value},cn=saml-serviceprovider,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SamlServiceproviderResponseMixin( + ) + + def testSamlServiceproviderResponseMixin(self): + """Test SamlServiceproviderResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_cn.py b/test/test_settings_cn.py new file mode 100644 index 0000000..852cb2a --- /dev/null +++ b/test/test_settings_cn.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_cn import SettingsCn # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsCn(unittest.TestCase): + """SettingsCn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsCn(self): + """Test SettingsCn""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_cn_api.py b/test/test_settings_cn_api.py new file mode 100644 index 0000000..97909f9 --- /dev/null +++ b/test/test_settings_cn_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_cn_api import SettingsCnApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsCnApi(unittest.TestCase): + """SettingsCnApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_cn_api.SettingsCnApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_cn_object(self): + """Test case for udm_settings_cn_object + + Get a representation of the Univention Setting object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_cn_object_search(self): + """Test case for udm_settings_cn_object_search + + Search for Univention Settings objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_cn_list.py b/test/test_settings_cn_list.py new file mode 100644 index 0000000..99e3d39 --- /dev/null +++ b/test/test_settings_cn_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_cn_list import SettingsCnList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsCnList(unittest.TestCase): + """SettingsCnList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsCnList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_cn_list.SettingsCnList() # noqa: E501 + if include_optional : + return SettingsCnList( + embedded = openapi_client_udm.models.settings_cn_list__embedded.settings_cn_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsCnList( + ) + + def testSettingsCnList(self): + """Test SettingsCnList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_cn_list_embedded.py b/test/test_settings_cn_list_embedded.py new file mode 100644 index 0000000..05c3973 --- /dev/null +++ b/test/test_settings_cn_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_cn_list_embedded import SettingsCnListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsCnListEmbedded(unittest.TestCase): + """SettingsCnListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsCnListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_cn_list_embedded.SettingsCnListEmbedded() # noqa: E501 + if include_optional : + return SettingsCnListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsCnListEmbedded( + ) + + def testSettingsCnListEmbedded(self): + """Test SettingsCnListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_cn_policies.py b/test/test_settings_cn_policies.py new file mode 100644 index 0000000..85bf65e --- /dev/null +++ b/test/test_settings_cn_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_cn_policies import SettingsCnPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsCnPolicies(unittest.TestCase): + """SettingsCnPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsCnPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_cn_policies.SettingsCnPolicies() # noqa: E501 + if include_optional : + return SettingsCnPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return SettingsCnPolicies( + ) + + def testSettingsCnPolicies(self): + """Test SettingsCnPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_cn_request.py b/test/test_settings_cn_request.py new file mode 100644 index 0000000..0bfa1cd --- /dev/null +++ b/test/test_settings_cn_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_cn_request import SettingsCnRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsCnRequest(unittest.TestCase): + """SettingsCnRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsCnRequest(self): + """Test SettingsCnRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_cn_request_patch.py b/test/test_settings_cn_request_patch.py new file mode 100644 index 0000000..3488387 --- /dev/null +++ b/test/test_settings_cn_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_cn_request_patch import SettingsCnRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsCnRequestPatch(unittest.TestCase): + """SettingsCnRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsCnRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_cn_request_patch.SettingsCnRequestPatch() # noqa: E501 + if include_optional : + return SettingsCnRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsCnRequestPatch( + ) + + def testSettingsCnRequestPatch(self): + """Test SettingsCnRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_cn_response_mixin.py b/test/test_settings_cn_response_mixin.py new file mode 100644 index 0000000..f2f80f0 --- /dev/null +++ b/test/test_settings_cn_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_cn_response_mixin import SettingsCnResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsCnResponseMixin(unittest.TestCase): + """SettingsCnResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsCnResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_cn_response_mixin.SettingsCnResponseMixin() # noqa: E501 + if include_optional : + return SettingsCnResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/cn/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsCnResponseMixin( + ) + + def testSettingsCnResponseMixin(self): + """Test SettingsCnResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_data.py b/test/test_settings_data.py new file mode 100644 index 0000000..ed07ace --- /dev/null +++ b/test/test_settings_data.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_data import SettingsData # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsData(unittest.TestCase): + """SettingsData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsData(self): + """Test SettingsData""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_data_api.py b/test/test_settings_data_api.py new file mode 100644 index 0000000..4a8dae3 --- /dev/null +++ b/test/test_settings_data_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_data_api import SettingsDataApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsDataApi(unittest.TestCase): + """SettingsDataApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_data_api.SettingsDataApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_data_object(self): + """Test case for udm_settings_data_object + + Get a representation of the Data object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_data_object_create(self): + """Test case for udm_settings_data_object_create + + Create a new Data object # noqa: E501 + """ + pass + + def test_udm_settings_data_object_modify(self): + """Test case for udm_settings_data_object_modify + + Modify or move an Data object # noqa: E501 + """ + pass + + def test_udm_settings_data_object_remove(self): + """Test case for udm_settings_data_object_remove + + Remove a Data object # noqa: E501 + """ + pass + + def test_udm_settings_data_object_search(self): + """Test case for udm_settings_data_object_search + + Search for Data objects # noqa: E501 + """ + pass + + def test_udm_settings_data_object_template(self): + """Test case for udm_settings_data_object_template + + Get a template for creating an Data object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_data_object_update(self): + """Test case for udm_settings_data_object_update + + Modify an Data object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_data_list.py b/test/test_settings_data_list.py new file mode 100644 index 0000000..e5aa2d7 --- /dev/null +++ b/test/test_settings_data_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_data_list import SettingsDataList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDataList(unittest.TestCase): + """SettingsDataList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDataList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_data_list.SettingsDataList() # noqa: E501 + if include_optional : + return SettingsDataList( + embedded = openapi_client_udm.models.settings_data_list__embedded.settings_data_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsDataList( + ) + + def testSettingsDataList(self): + """Test SettingsDataList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_data_list_embedded.py b/test/test_settings_data_list_embedded.py new file mode 100644 index 0000000..4e20128 --- /dev/null +++ b/test/test_settings_data_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_data_list_embedded import SettingsDataListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDataListEmbedded(unittest.TestCase): + """SettingsDataListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDataListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_data_list_embedded.SettingsDataListEmbedded() # noqa: E501 + if include_optional : + return SettingsDataListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsDataListEmbedded( + ) + + def testSettingsDataListEmbedded(self): + """Test SettingsDataListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_data_request.py b/test/test_settings_data_request.py new file mode 100644 index 0000000..b7191f4 --- /dev/null +++ b/test/test_settings_data_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_data_request import SettingsDataRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDataRequest(unittest.TestCase): + """SettingsDataRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsDataRequest(self): + """Test SettingsDataRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_data_request_patch.py b/test/test_settings_data_request_patch.py new file mode 100644 index 0000000..8e7b6f2 --- /dev/null +++ b/test/test_settings_data_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_data_request_patch import SettingsDataRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDataRequestPatch(unittest.TestCase): + """SettingsDataRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDataRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_data_request_patch.SettingsDataRequestPatch() # noqa: E501 + if include_optional : + return SettingsDataRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsDataRequestPatch( + ) + + def testSettingsDataRequestPatch(self): + """Test SettingsDataRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_data_response_mixin.py b/test/test_settings_data_response_mixin.py new file mode 100644 index 0000000..64e2683 --- /dev/null +++ b/test/test_settings_data_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_data_response_mixin import SettingsDataResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDataResponseMixin(unittest.TestCase): + """SettingsDataResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDataResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_data_response_mixin.SettingsDataResponseMixin() # noqa: E501 + if include_optional : + return SettingsDataResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/data/cn={value},cn=data,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsDataResponseMixin( + ) + + def testSettingsDataResponseMixin(self): + """Test SettingsDataResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_default.py b/test/test_settings_default.py new file mode 100644 index 0000000..0e8012a --- /dev/null +++ b/test/test_settings_default.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_default import SettingsDefault # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDefault(unittest.TestCase): + """SettingsDefault unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsDefault(self): + """Test SettingsDefault""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_default_api.py b/test/test_settings_default_api.py new file mode 100644 index 0000000..882cec7 --- /dev/null +++ b/test/test_settings_default_api.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_default_api import SettingsDefaultApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsDefaultApi(unittest.TestCase): + """SettingsDefaultApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_default_api.SettingsDefaultApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_default_object(self): + """Test case for udm_settings_default_object + + Get a representation of the Default preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_default_object_modify(self): + """Test case for udm_settings_default_object_modify + + Modify or move an Default preference object # noqa: E501 + """ + pass + + def test_udm_settings_default_object_search(self): + """Test case for udm_settings_default_object_search + + Search for Default preferences objects # noqa: E501 + """ + pass + + def test_udm_settings_default_object_update(self): + """Test case for udm_settings_default_object_update + + Modify an Default preference object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_default_list.py b/test/test_settings_default_list.py new file mode 100644 index 0000000..8172de6 --- /dev/null +++ b/test/test_settings_default_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_default_list import SettingsDefaultList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDefaultList(unittest.TestCase): + """SettingsDefaultList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDefaultList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_default_list.SettingsDefaultList() # noqa: E501 + if include_optional : + return SettingsDefaultList( + embedded = openapi_client_udm.models.settings_default_list__embedded.settings_default_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsDefaultList( + ) + + def testSettingsDefaultList(self): + """Test SettingsDefaultList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_default_list_embedded.py b/test/test_settings_default_list_embedded.py new file mode 100644 index 0000000..ce9220a --- /dev/null +++ b/test/test_settings_default_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_default_list_embedded import SettingsDefaultListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDefaultListEmbedded(unittest.TestCase): + """SettingsDefaultListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDefaultListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_default_list_embedded.SettingsDefaultListEmbedded() # noqa: E501 + if include_optional : + return SettingsDefaultListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsDefaultListEmbedded( + ) + + def testSettingsDefaultListEmbedded(self): + """Test SettingsDefaultListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_default_request.py b/test/test_settings_default_request.py new file mode 100644 index 0000000..d9f39c0 --- /dev/null +++ b/test/test_settings_default_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_default_request import SettingsDefaultRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDefaultRequest(unittest.TestCase): + """SettingsDefaultRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsDefaultRequest(self): + """Test SettingsDefaultRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_default_request_patch.py b/test/test_settings_default_request_patch.py new file mode 100644 index 0000000..b776d31 --- /dev/null +++ b/test/test_settings_default_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_default_request_patch import SettingsDefaultRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDefaultRequestPatch(unittest.TestCase): + """SettingsDefaultRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDefaultRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_default_request_patch.SettingsDefaultRequestPatch() # noqa: E501 + if include_optional : + return SettingsDefaultRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsDefaultRequestPatch( + ) + + def testSettingsDefaultRequestPatch(self): + """Test SettingsDefaultRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_default_response_mixin.py b/test/test_settings_default_response_mixin.py new file mode 100644 index 0000000..7e636ff --- /dev/null +++ b/test/test_settings_default_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_default_response_mixin import SettingsDefaultResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDefaultResponseMixin(unittest.TestCase): + """SettingsDefaultResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDefaultResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_default_response_mixin.SettingsDefaultResponseMixin() # noqa: E501 + if include_optional : + return SettingsDefaultResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/default/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsDefaultResponseMixin( + ) + + def testSettingsDefaultResponseMixin(self): + """Test SettingsDefaultResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_directory.py b/test/test_settings_directory.py new file mode 100644 index 0000000..20c612e --- /dev/null +++ b/test/test_settings_directory.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_directory import SettingsDirectory # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDirectory(unittest.TestCase): + """SettingsDirectory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsDirectory(self): + """Test SettingsDirectory""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_directory_api.py b/test/test_settings_directory_api.py new file mode 100644 index 0000000..4a26277 --- /dev/null +++ b/test/test_settings_directory_api.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_directory_api import SettingsDirectoryApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsDirectoryApi(unittest.TestCase): + """SettingsDirectoryApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_directory_api.SettingsDirectoryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_directory_object(self): + """Test case for udm_settings_directory_object + + Get a representation of the Default container object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_directory_object_modify(self): + """Test case for udm_settings_directory_object_modify + + Modify or move an Default container object # noqa: E501 + """ + pass + + def test_udm_settings_directory_object_search(self): + """Test case for udm_settings_directory_object_search + + Search for Default containers objects # noqa: E501 + """ + pass + + def test_udm_settings_directory_object_update(self): + """Test case for udm_settings_directory_object_update + + Modify an Default container object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_directory_list.py b/test/test_settings_directory_list.py new file mode 100644 index 0000000..82932d3 --- /dev/null +++ b/test/test_settings_directory_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_directory_list import SettingsDirectoryList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDirectoryList(unittest.TestCase): + """SettingsDirectoryList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDirectoryList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_directory_list.SettingsDirectoryList() # noqa: E501 + if include_optional : + return SettingsDirectoryList( + embedded = openapi_client_udm.models.settings_directory_list__embedded.settings_directory_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsDirectoryList( + ) + + def testSettingsDirectoryList(self): + """Test SettingsDirectoryList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_directory_list_embedded.py b/test/test_settings_directory_list_embedded.py new file mode 100644 index 0000000..f376577 --- /dev/null +++ b/test/test_settings_directory_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_directory_list_embedded import SettingsDirectoryListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDirectoryListEmbedded(unittest.TestCase): + """SettingsDirectoryListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDirectoryListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_directory_list_embedded.SettingsDirectoryListEmbedded() # noqa: E501 + if include_optional : + return SettingsDirectoryListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsDirectoryListEmbedded( + ) + + def testSettingsDirectoryListEmbedded(self): + """Test SettingsDirectoryListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_directory_request.py b/test/test_settings_directory_request.py new file mode 100644 index 0000000..918999c --- /dev/null +++ b/test/test_settings_directory_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_directory_request import SettingsDirectoryRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDirectoryRequest(unittest.TestCase): + """SettingsDirectoryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsDirectoryRequest(self): + """Test SettingsDirectoryRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_directory_request_patch.py b/test/test_settings_directory_request_patch.py new file mode 100644 index 0000000..7f6b44b --- /dev/null +++ b/test/test_settings_directory_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_directory_request_patch import SettingsDirectoryRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDirectoryRequestPatch(unittest.TestCase): + """SettingsDirectoryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDirectoryRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_directory_request_patch.SettingsDirectoryRequestPatch() # noqa: E501 + if include_optional : + return SettingsDirectoryRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsDirectoryRequestPatch( + ) + + def testSettingsDirectoryRequestPatch(self): + """Test SettingsDirectoryRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_directory_response_mixin.py b/test/test_settings_directory_response_mixin.py new file mode 100644 index 0000000..971336f --- /dev/null +++ b/test/test_settings_directory_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_directory_response_mixin import SettingsDirectoryResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsDirectoryResponseMixin(unittest.TestCase): + """SettingsDirectoryResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsDirectoryResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_directory_response_mixin.SettingsDirectoryResponseMixin() # noqa: E501 + if include_optional : + return SettingsDirectoryResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/directory/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsDirectoryResponseMixin( + ) + + def testSettingsDirectoryResponseMixin(self): + """Test SettingsDirectoryResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_attribute.py b/test/test_settings_extended_attribute.py new file mode 100644 index 0000000..035f920 --- /dev/null +++ b/test/test_settings_extended_attribute.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_attribute import SettingsExtendedAttribute # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedAttribute(unittest.TestCase): + """SettingsExtendedAttribute unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsExtendedAttribute(self): + """Test SettingsExtendedAttribute""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_attribute_api.py b/test/test_settings_extended_attribute_api.py new file mode 100644 index 0000000..32c5150 --- /dev/null +++ b/test/test_settings_extended_attribute_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_extended_attribute_api import SettingsExtendedAttributeApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsExtendedAttributeApi(unittest.TestCase): + """SettingsExtendedAttributeApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_extended_attribute_api.SettingsExtendedAttributeApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_extended_attribute_object(self): + """Test case for udm_settings_extended_attribute_object + + Get a representation of the Extended attribute object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_extended_attribute_object_create(self): + """Test case for udm_settings_extended_attribute_object_create + + Create a new Extended attribute object # noqa: E501 + """ + pass + + def test_udm_settings_extended_attribute_object_modify(self): + """Test case for udm_settings_extended_attribute_object_modify + + Modify or move an Extended attribute object # noqa: E501 + """ + pass + + def test_udm_settings_extended_attribute_object_remove(self): + """Test case for udm_settings_extended_attribute_object_remove + + Remove a Extended attributes object # noqa: E501 + """ + pass + + def test_udm_settings_extended_attribute_object_search(self): + """Test case for udm_settings_extended_attribute_object_search + + Search for Extended attributes objects # noqa: E501 + """ + pass + + def test_udm_settings_extended_attribute_object_template(self): + """Test case for udm_settings_extended_attribute_object_template + + Get a template for creating an Extended attribute object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_extended_attribute_object_update(self): + """Test case for udm_settings_extended_attribute_object_update + + Modify an Extended attribute object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_attribute_list.py b/test/test_settings_extended_attribute_list.py new file mode 100644 index 0000000..1c799d8 --- /dev/null +++ b/test/test_settings_extended_attribute_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_attribute_list import SettingsExtendedAttributeList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedAttributeList(unittest.TestCase): + """SettingsExtendedAttributeList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsExtendedAttributeList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_extended_attribute_list.SettingsExtendedAttributeList() # noqa: E501 + if include_optional : + return SettingsExtendedAttributeList( + embedded = openapi_client_udm.models.settings_extended_attribute_list__embedded.settings_extended_attribute_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsExtendedAttributeList( + ) + + def testSettingsExtendedAttributeList(self): + """Test SettingsExtendedAttributeList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_attribute_list_embedded.py b/test/test_settings_extended_attribute_list_embedded.py new file mode 100644 index 0000000..42f324b --- /dev/null +++ b/test/test_settings_extended_attribute_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_attribute_list_embedded import SettingsExtendedAttributeListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedAttributeListEmbedded(unittest.TestCase): + """SettingsExtendedAttributeListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsExtendedAttributeListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_extended_attribute_list_embedded.SettingsExtendedAttributeListEmbedded() # noqa: E501 + if include_optional : + return SettingsExtendedAttributeListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsExtendedAttributeListEmbedded( + ) + + def testSettingsExtendedAttributeListEmbedded(self): + """Test SettingsExtendedAttributeListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_attribute_request.py b/test/test_settings_extended_attribute_request.py new file mode 100644 index 0000000..69eca40 --- /dev/null +++ b/test/test_settings_extended_attribute_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_attribute_request import SettingsExtendedAttributeRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedAttributeRequest(unittest.TestCase): + """SettingsExtendedAttributeRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsExtendedAttributeRequest(self): + """Test SettingsExtendedAttributeRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_attribute_request_patch.py b/test/test_settings_extended_attribute_request_patch.py new file mode 100644 index 0000000..ad56e33 --- /dev/null +++ b/test/test_settings_extended_attribute_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_attribute_request_patch import SettingsExtendedAttributeRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedAttributeRequestPatch(unittest.TestCase): + """SettingsExtendedAttributeRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsExtendedAttributeRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_extended_attribute_request_patch.SettingsExtendedAttributeRequestPatch() # noqa: E501 + if include_optional : + return SettingsExtendedAttributeRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsExtendedAttributeRequestPatch( + ) + + def testSettingsExtendedAttributeRequestPatch(self): + """Test SettingsExtendedAttributeRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_attribute_response_mixin.py b/test/test_settings_extended_attribute_response_mixin.py new file mode 100644 index 0000000..9a84b75 --- /dev/null +++ b/test/test_settings_extended_attribute_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_attribute_response_mixin import SettingsExtendedAttributeResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedAttributeResponseMixin(unittest.TestCase): + """SettingsExtendedAttributeResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsExtendedAttributeResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_extended_attribute_response_mixin.SettingsExtendedAttributeResponseMixin() # noqa: E501 + if include_optional : + return SettingsExtendedAttributeResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/extended_attribute/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsExtendedAttributeResponseMixin( + ) + + def testSettingsExtendedAttributeResponseMixin(self): + """Test SettingsExtendedAttributeResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_options.py b/test/test_settings_extended_options.py new file mode 100644 index 0000000..0a941b9 --- /dev/null +++ b/test/test_settings_extended_options.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_options import SettingsExtendedOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedOptions(unittest.TestCase): + """SettingsExtendedOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsExtendedOptions(self): + """Test SettingsExtendedOptions""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_options_api.py b/test/test_settings_extended_options_api.py new file mode 100644 index 0000000..54b84c3 --- /dev/null +++ b/test/test_settings_extended_options_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_extended_options_api import SettingsExtendedOptionsApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsExtendedOptionsApi(unittest.TestCase): + """SettingsExtendedOptionsApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_extended_options_api.SettingsExtendedOptionsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_extended_options_object(self): + """Test case for udm_settings_extended_options_object + + Get a representation of the Extended option object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_extended_options_object_create(self): + """Test case for udm_settings_extended_options_object_create + + Create a new Extended option object # noqa: E501 + """ + pass + + def test_udm_settings_extended_options_object_modify(self): + """Test case for udm_settings_extended_options_object_modify + + Modify or move an Extended option object # noqa: E501 + """ + pass + + def test_udm_settings_extended_options_object_remove(self): + """Test case for udm_settings_extended_options_object_remove + + Remove a Extended options object # noqa: E501 + """ + pass + + def test_udm_settings_extended_options_object_search(self): + """Test case for udm_settings_extended_options_object_search + + Search for Extended options objects # noqa: E501 + """ + pass + + def test_udm_settings_extended_options_object_template(self): + """Test case for udm_settings_extended_options_object_template + + Get a template for creating an Extended option object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_extended_options_object_update(self): + """Test case for udm_settings_extended_options_object_update + + Modify an Extended option object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_options_list.py b/test/test_settings_extended_options_list.py new file mode 100644 index 0000000..a6e75f1 --- /dev/null +++ b/test/test_settings_extended_options_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_options_list import SettingsExtendedOptionsList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedOptionsList(unittest.TestCase): + """SettingsExtendedOptionsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsExtendedOptionsList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_extended_options_list.SettingsExtendedOptionsList() # noqa: E501 + if include_optional : + return SettingsExtendedOptionsList( + embedded = openapi_client_udm.models.settings_extended_options_list__embedded.settings_extended_options_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsExtendedOptionsList( + ) + + def testSettingsExtendedOptionsList(self): + """Test SettingsExtendedOptionsList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_options_list_embedded.py b/test/test_settings_extended_options_list_embedded.py new file mode 100644 index 0000000..dd79c2b --- /dev/null +++ b/test/test_settings_extended_options_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_options_list_embedded import SettingsExtendedOptionsListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedOptionsListEmbedded(unittest.TestCase): + """SettingsExtendedOptionsListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsExtendedOptionsListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_extended_options_list_embedded.SettingsExtendedOptionsListEmbedded() # noqa: E501 + if include_optional : + return SettingsExtendedOptionsListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsExtendedOptionsListEmbedded( + ) + + def testSettingsExtendedOptionsListEmbedded(self): + """Test SettingsExtendedOptionsListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_options_request.py b/test/test_settings_extended_options_request.py new file mode 100644 index 0000000..6cfb495 --- /dev/null +++ b/test/test_settings_extended_options_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_options_request import SettingsExtendedOptionsRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedOptionsRequest(unittest.TestCase): + """SettingsExtendedOptionsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsExtendedOptionsRequest(self): + """Test SettingsExtendedOptionsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_options_request_patch.py b/test/test_settings_extended_options_request_patch.py new file mode 100644 index 0000000..4a9a6c5 --- /dev/null +++ b/test/test_settings_extended_options_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_options_request_patch import SettingsExtendedOptionsRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedOptionsRequestPatch(unittest.TestCase): + """SettingsExtendedOptionsRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsExtendedOptionsRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_extended_options_request_patch.SettingsExtendedOptionsRequestPatch() # noqa: E501 + if include_optional : + return SettingsExtendedOptionsRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsExtendedOptionsRequestPatch( + ) + + def testSettingsExtendedOptionsRequestPatch(self): + """Test SettingsExtendedOptionsRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_extended_options_response_mixin.py b/test/test_settings_extended_options_response_mixin.py new file mode 100644 index 0000000..16fa80c --- /dev/null +++ b/test/test_settings_extended_options_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_extended_options_response_mixin import SettingsExtendedOptionsResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsExtendedOptionsResponseMixin(unittest.TestCase): + """SettingsExtendedOptionsResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsExtendedOptionsResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_extended_options_response_mixin.SettingsExtendedOptionsResponseMixin() # noqa: E501 + if include_optional : + return SettingsExtendedOptionsResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/extended_options/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsExtendedOptionsResponseMixin( + ) + + def testSettingsExtendedOptionsResponseMixin(self): + """Test SettingsExtendedOptionsResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapacl.py b/test/test_settings_ldapacl.py new file mode 100644 index 0000000..1f2d350 --- /dev/null +++ b/test/test_settings_ldapacl.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapacl import SettingsLdapacl # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapacl(unittest.TestCase): + """SettingsLdapacl unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsLdapacl(self): + """Test SettingsLdapacl""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapacl_api.py b/test/test_settings_ldapacl_api.py new file mode 100644 index 0000000..2252918 --- /dev/null +++ b/test/test_settings_ldapacl_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_ldapacl_api import SettingsLdapaclApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsLdapaclApi(unittest.TestCase): + """SettingsLdapaclApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_ldapacl_api.SettingsLdapaclApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_ldapacl_object(self): + """Test case for udm_settings_ldapacl_object + + Get a representation of the LDAP ACL Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_ldapacl_object_create(self): + """Test case for udm_settings_ldapacl_object_create + + Create a new LDAP ACL Extension object # noqa: E501 + """ + pass + + def test_udm_settings_ldapacl_object_modify(self): + """Test case for udm_settings_ldapacl_object_modify + + Modify or move an LDAP ACL Extension object # noqa: E501 + """ + pass + + def test_udm_settings_ldapacl_object_remove(self): + """Test case for udm_settings_ldapacl_object_remove + + Remove a LDAP ACL Extensions object # noqa: E501 + """ + pass + + def test_udm_settings_ldapacl_object_search(self): + """Test case for udm_settings_ldapacl_object_search + + Search for LDAP ACL Extensions objects # noqa: E501 + """ + pass + + def test_udm_settings_ldapacl_object_template(self): + """Test case for udm_settings_ldapacl_object_template + + Get a template for creating an LDAP ACL Extension object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_ldapacl_object_update(self): + """Test case for udm_settings_ldapacl_object_update + + Modify an LDAP ACL Extension object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapacl_list.py b/test/test_settings_ldapacl_list.py new file mode 100644 index 0000000..ab29b75 --- /dev/null +++ b/test/test_settings_ldapacl_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapacl_list import SettingsLdapaclList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapaclList(unittest.TestCase): + """SettingsLdapaclList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLdapaclList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_ldapacl_list.SettingsLdapaclList() # noqa: E501 + if include_optional : + return SettingsLdapaclList( + embedded = openapi_client_udm.models.settings_ldapacl_list__embedded.settings_ldapacl_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsLdapaclList( + ) + + def testSettingsLdapaclList(self): + """Test SettingsLdapaclList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapacl_list_embedded.py b/test/test_settings_ldapacl_list_embedded.py new file mode 100644 index 0000000..250d0c2 --- /dev/null +++ b/test/test_settings_ldapacl_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapacl_list_embedded import SettingsLdapaclListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapaclListEmbedded(unittest.TestCase): + """SettingsLdapaclListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLdapaclListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_ldapacl_list_embedded.SettingsLdapaclListEmbedded() # noqa: E501 + if include_optional : + return SettingsLdapaclListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsLdapaclListEmbedded( + ) + + def testSettingsLdapaclListEmbedded(self): + """Test SettingsLdapaclListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapacl_request.py b/test/test_settings_ldapacl_request.py new file mode 100644 index 0000000..873dbc9 --- /dev/null +++ b/test/test_settings_ldapacl_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapacl_request import SettingsLdapaclRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapaclRequest(unittest.TestCase): + """SettingsLdapaclRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsLdapaclRequest(self): + """Test SettingsLdapaclRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapacl_request_patch.py b/test/test_settings_ldapacl_request_patch.py new file mode 100644 index 0000000..7e5ec53 --- /dev/null +++ b/test/test_settings_ldapacl_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapacl_request_patch import SettingsLdapaclRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapaclRequestPatch(unittest.TestCase): + """SettingsLdapaclRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLdapaclRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_ldapacl_request_patch.SettingsLdapaclRequestPatch() # noqa: E501 + if include_optional : + return SettingsLdapaclRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsLdapaclRequestPatch( + ) + + def testSettingsLdapaclRequestPatch(self): + """Test SettingsLdapaclRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapacl_response_mixin.py b/test/test_settings_ldapacl_response_mixin.py new file mode 100644 index 0000000..d1ffe19 --- /dev/null +++ b/test/test_settings_ldapacl_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapacl_response_mixin import SettingsLdapaclResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapaclResponseMixin(unittest.TestCase): + """SettingsLdapaclResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLdapaclResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_ldapacl_response_mixin.SettingsLdapaclResponseMixin() # noqa: E501 + if include_optional : + return SettingsLdapaclResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/ldapacl/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsLdapaclResponseMixin( + ) + + def testSettingsLdapaclResponseMixin(self): + """Test SettingsLdapaclResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapschema.py b/test/test_settings_ldapschema.py new file mode 100644 index 0000000..3aeda99 --- /dev/null +++ b/test/test_settings_ldapschema.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapschema import SettingsLdapschema # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapschema(unittest.TestCase): + """SettingsLdapschema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsLdapschema(self): + """Test SettingsLdapschema""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapschema_api.py b/test/test_settings_ldapschema_api.py new file mode 100644 index 0000000..6e69aab --- /dev/null +++ b/test/test_settings_ldapschema_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_ldapschema_api import SettingsLdapschemaApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsLdapschemaApi(unittest.TestCase): + """SettingsLdapschemaApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_ldapschema_api.SettingsLdapschemaApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_ldapschema_object(self): + """Test case for udm_settings_ldapschema_object + + Get a representation of the LDAP Schema Extension object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_ldapschema_object_create(self): + """Test case for udm_settings_ldapschema_object_create + + Create a new LDAP Schema Extension object # noqa: E501 + """ + pass + + def test_udm_settings_ldapschema_object_modify(self): + """Test case for udm_settings_ldapschema_object_modify + + Modify or move an LDAP Schema Extension object # noqa: E501 + """ + pass + + def test_udm_settings_ldapschema_object_remove(self): + """Test case for udm_settings_ldapschema_object_remove + + Remove a LDAP Schema Extensions object # noqa: E501 + """ + pass + + def test_udm_settings_ldapschema_object_search(self): + """Test case for udm_settings_ldapschema_object_search + + Search for LDAP Schema Extensions objects # noqa: E501 + """ + pass + + def test_udm_settings_ldapschema_object_template(self): + """Test case for udm_settings_ldapschema_object_template + + Get a template for creating an LDAP Schema Extension object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_ldapschema_object_update(self): + """Test case for udm_settings_ldapschema_object_update + + Modify an LDAP Schema Extension object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapschema_list.py b/test/test_settings_ldapschema_list.py new file mode 100644 index 0000000..80e57a6 --- /dev/null +++ b/test/test_settings_ldapschema_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapschema_list import SettingsLdapschemaList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapschemaList(unittest.TestCase): + """SettingsLdapschemaList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLdapschemaList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_ldapschema_list.SettingsLdapschemaList() # noqa: E501 + if include_optional : + return SettingsLdapschemaList( + embedded = openapi_client_udm.models.settings_ldapschema_list__embedded.settings_ldapschema_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsLdapschemaList( + ) + + def testSettingsLdapschemaList(self): + """Test SettingsLdapschemaList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapschema_list_embedded.py b/test/test_settings_ldapschema_list_embedded.py new file mode 100644 index 0000000..54384f9 --- /dev/null +++ b/test/test_settings_ldapschema_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapschema_list_embedded import SettingsLdapschemaListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapschemaListEmbedded(unittest.TestCase): + """SettingsLdapschemaListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLdapschemaListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_ldapschema_list_embedded.SettingsLdapschemaListEmbedded() # noqa: E501 + if include_optional : + return SettingsLdapschemaListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsLdapschemaListEmbedded( + ) + + def testSettingsLdapschemaListEmbedded(self): + """Test SettingsLdapschemaListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapschema_request.py b/test/test_settings_ldapschema_request.py new file mode 100644 index 0000000..45c7e3f --- /dev/null +++ b/test/test_settings_ldapschema_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapschema_request import SettingsLdapschemaRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapschemaRequest(unittest.TestCase): + """SettingsLdapschemaRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsLdapschemaRequest(self): + """Test SettingsLdapschemaRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapschema_request_patch.py b/test/test_settings_ldapschema_request_patch.py new file mode 100644 index 0000000..05c9387 --- /dev/null +++ b/test/test_settings_ldapschema_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapschema_request_patch import SettingsLdapschemaRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapschemaRequestPatch(unittest.TestCase): + """SettingsLdapschemaRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLdapschemaRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_ldapschema_request_patch.SettingsLdapschemaRequestPatch() # noqa: E501 + if include_optional : + return SettingsLdapschemaRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsLdapschemaRequestPatch( + ) + + def testSettingsLdapschemaRequestPatch(self): + """Test SettingsLdapschemaRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_ldapschema_response_mixin.py b/test/test_settings_ldapschema_response_mixin.py new file mode 100644 index 0000000..22a21c0 --- /dev/null +++ b/test/test_settings_ldapschema_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_ldapschema_response_mixin import SettingsLdapschemaResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLdapschemaResponseMixin(unittest.TestCase): + """SettingsLdapschemaResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLdapschemaResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_ldapschema_response_mixin.SettingsLdapschemaResponseMixin() # noqa: E501 + if include_optional : + return SettingsLdapschemaResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/ldapschema/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsLdapschemaResponseMixin( + ) + + def testSettingsLdapschemaResponseMixin(self): + """Test SettingsLdapschemaResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_license.py b/test/test_settings_license.py new file mode 100644 index 0000000..f8e2d65 --- /dev/null +++ b/test/test_settings_license.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_license import SettingsLicense # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLicense(unittest.TestCase): + """SettingsLicense unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsLicense(self): + """Test SettingsLicense""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_license_api.py b/test/test_settings_license_api.py new file mode 100644 index 0000000..4d9c2f7 --- /dev/null +++ b/test/test_settings_license_api.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_license_api import SettingsLicenseApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsLicenseApi(unittest.TestCase): + """SettingsLicenseApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_license_api.SettingsLicenseApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_license_object(self): + """Test case for udm_settings_license_object + + Get a representation of the License object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_license_object_remove(self): + """Test case for udm_settings_license_object_remove + + Remove a Licenses object # noqa: E501 + """ + pass + + def test_udm_settings_license_object_search(self): + """Test case for udm_settings_license_object_search + + Search for Licenses objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_license_list.py b/test/test_settings_license_list.py new file mode 100644 index 0000000..ee5ec9b --- /dev/null +++ b/test/test_settings_license_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_license_list import SettingsLicenseList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLicenseList(unittest.TestCase): + """SettingsLicenseList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLicenseList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_license_list.SettingsLicenseList() # noqa: E501 + if include_optional : + return SettingsLicenseList( + embedded = openapi_client_udm.models.settings_license_list__embedded.settings_license_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsLicenseList( + ) + + def testSettingsLicenseList(self): + """Test SettingsLicenseList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_license_list_embedded.py b/test/test_settings_license_list_embedded.py new file mode 100644 index 0000000..bc2e7c6 --- /dev/null +++ b/test/test_settings_license_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_license_list_embedded import SettingsLicenseListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLicenseListEmbedded(unittest.TestCase): + """SettingsLicenseListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLicenseListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_license_list_embedded.SettingsLicenseListEmbedded() # noqa: E501 + if include_optional : + return SettingsLicenseListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsLicenseListEmbedded( + ) + + def testSettingsLicenseListEmbedded(self): + """Test SettingsLicenseListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_license_options.py b/test/test_settings_license_options.py new file mode 100644 index 0000000..ae8db06 --- /dev/null +++ b/test/test_settings_license_options.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_license_options import SettingsLicenseOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLicenseOptions(unittest.TestCase): + """SettingsLicenseOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLicenseOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_license_options.SettingsLicenseOptions() # noqa: E501 + if include_optional : + return SettingsLicenseOptions( + version_1 = False, + version_2 = True + ) + else : + return SettingsLicenseOptions( + ) + + def testSettingsLicenseOptions(self): + """Test SettingsLicenseOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_license_request.py b/test/test_settings_license_request.py new file mode 100644 index 0000000..fc12bd0 --- /dev/null +++ b/test/test_settings_license_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_license_request import SettingsLicenseRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLicenseRequest(unittest.TestCase): + """SettingsLicenseRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsLicenseRequest(self): + """Test SettingsLicenseRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_license_request_patch.py b/test/test_settings_license_request_patch.py new file mode 100644 index 0000000..f7c9f5b --- /dev/null +++ b/test/test_settings_license_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_license_request_patch import SettingsLicenseRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLicenseRequestPatch(unittest.TestCase): + """SettingsLicenseRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLicenseRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_license_request_patch.SettingsLicenseRequestPatch() # noqa: E501 + if include_optional : + return SettingsLicenseRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsLicenseRequestPatch( + ) + + def testSettingsLicenseRequestPatch(self): + """Test SettingsLicenseRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_license_response_mixin.py b/test/test_settings_license_response_mixin.py new file mode 100644 index 0000000..a24c1b2 --- /dev/null +++ b/test/test_settings_license_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_license_response_mixin import SettingsLicenseResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLicenseResponseMixin(unittest.TestCase): + """SettingsLicenseResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLicenseResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_license_response_mixin.SettingsLicenseResponseMixin() # noqa: E501 + if include_optional : + return SettingsLicenseResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/license/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsLicenseResponseMixin( + ) + + def testSettingsLicenseResponseMixin(self): + """Test SettingsLicenseResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_lock.py b/test/test_settings_lock.py new file mode 100644 index 0000000..bea08b3 --- /dev/null +++ b/test/test_settings_lock.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_lock import SettingsLock # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLock(unittest.TestCase): + """SettingsLock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsLock(self): + """Test SettingsLock""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_lock_api.py b/test/test_settings_lock_api.py new file mode 100644 index 0000000..12be814 --- /dev/null +++ b/test/test_settings_lock_api.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_lock_api import SettingsLockApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsLockApi(unittest.TestCase): + """SettingsLockApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_lock_api.SettingsLockApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_lock_object(self): + """Test case for udm_settings_lock_object + + Get a representation of the Lock object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_lock_object_modify(self): + """Test case for udm_settings_lock_object_modify + + Modify or move an Lock object # noqa: E501 + """ + pass + + def test_udm_settings_lock_object_remove(self): + """Test case for udm_settings_lock_object_remove + + Remove a Locks object # noqa: E501 + """ + pass + + def test_udm_settings_lock_object_search(self): + """Test case for udm_settings_lock_object_search + + Search for Locks objects # noqa: E501 + """ + pass + + def test_udm_settings_lock_object_update(self): + """Test case for udm_settings_lock_object_update + + Modify an Lock object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_lock_list.py b/test/test_settings_lock_list.py new file mode 100644 index 0000000..97ccdfe --- /dev/null +++ b/test/test_settings_lock_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_lock_list import SettingsLockList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLockList(unittest.TestCase): + """SettingsLockList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLockList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_lock_list.SettingsLockList() # noqa: E501 + if include_optional : + return SettingsLockList( + embedded = openapi_client_udm.models.settings_lock_list__embedded.settings_lock_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsLockList( + ) + + def testSettingsLockList(self): + """Test SettingsLockList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_lock_list_embedded.py b/test/test_settings_lock_list_embedded.py new file mode 100644 index 0000000..827915d --- /dev/null +++ b/test/test_settings_lock_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_lock_list_embedded import SettingsLockListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLockListEmbedded(unittest.TestCase): + """SettingsLockListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLockListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_lock_list_embedded.SettingsLockListEmbedded() # noqa: E501 + if include_optional : + return SettingsLockListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsLockListEmbedded( + ) + + def testSettingsLockListEmbedded(self): + """Test SettingsLockListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_lock_request.py b/test/test_settings_lock_request.py new file mode 100644 index 0000000..9f3ae18 --- /dev/null +++ b/test/test_settings_lock_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_lock_request import SettingsLockRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLockRequest(unittest.TestCase): + """SettingsLockRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsLockRequest(self): + """Test SettingsLockRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_lock_request_patch.py b/test/test_settings_lock_request_patch.py new file mode 100644 index 0000000..942d7e9 --- /dev/null +++ b/test/test_settings_lock_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_lock_request_patch import SettingsLockRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLockRequestPatch(unittest.TestCase): + """SettingsLockRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLockRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_lock_request_patch.SettingsLockRequestPatch() # noqa: E501 + if include_optional : + return SettingsLockRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsLockRequestPatch( + ) + + def testSettingsLockRequestPatch(self): + """Test SettingsLockRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_lock_response_mixin.py b/test/test_settings_lock_response_mixin.py new file mode 100644 index 0000000..e07481d --- /dev/null +++ b/test/test_settings_lock_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_lock_response_mixin import SettingsLockResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsLockResponseMixin(unittest.TestCase): + """SettingsLockResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsLockResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_lock_response_mixin.SettingsLockResponseMixin() # noqa: E501 + if include_optional : + return SettingsLockResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/lock/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsLockResponseMixin( + ) + + def testSettingsLockResponseMixin(self): + """Test SettingsLockResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_msprintconnectionpolicy.py b/test/test_settings_msprintconnectionpolicy.py new file mode 100644 index 0000000..183d056 --- /dev/null +++ b/test/test_settings_msprintconnectionpolicy.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_msprintconnectionpolicy import SettingsMsprintconnectionpolicy # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMsprintconnectionpolicy(unittest.TestCase): + """SettingsMsprintconnectionpolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsMsprintconnectionpolicy(self): + """Test SettingsMsprintconnectionpolicy""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_msprintconnectionpolicy_api.py b/test/test_settings_msprintconnectionpolicy_api.py new file mode 100644 index 0000000..ff26c06 --- /dev/null +++ b/test/test_settings_msprintconnectionpolicy_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_msprintconnectionpolicy_api import SettingsMsprintconnectionpolicyApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsMsprintconnectionpolicyApi(unittest.TestCase): + """SettingsMsprintconnectionpolicyApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_msprintconnectionpolicy_api.SettingsMsprintconnectionpolicyApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_msprintconnectionpolicy_object(self): + """Test case for udm_settings_msprintconnectionpolicy_object + + Get a representation of the Settings: MS Print Connection Policy object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_msprintconnectionpolicy_object_create(self): + """Test case for udm_settings_msprintconnectionpolicy_object_create + + Create a new Settings: MS Print Connection Policy object # noqa: E501 + """ + pass + + def test_udm_settings_msprintconnectionpolicy_object_modify(self): + """Test case for udm_settings_msprintconnectionpolicy_object_modify + + Modify or move an Settings: MS Print Connection Policy object # noqa: E501 + """ + pass + + def test_udm_settings_msprintconnectionpolicy_object_remove(self): + """Test case for udm_settings_msprintconnectionpolicy_object_remove + + Remove a Settings: MS Print Connection Policy object # noqa: E501 + """ + pass + + def test_udm_settings_msprintconnectionpolicy_object_search(self): + """Test case for udm_settings_msprintconnectionpolicy_object_search + + Search for Settings: MS Print Connection Policy objects # noqa: E501 + """ + pass + + def test_udm_settings_msprintconnectionpolicy_object_template(self): + """Test case for udm_settings_msprintconnectionpolicy_object_template + + Get a template for creating an Settings: MS Print Connection Policy object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_msprintconnectionpolicy_object_update(self): + """Test case for udm_settings_msprintconnectionpolicy_object_update + + Modify an Settings: MS Print Connection Policy object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_msprintconnectionpolicy_list.py b/test/test_settings_msprintconnectionpolicy_list.py new file mode 100644 index 0000000..9ffcbd2 --- /dev/null +++ b/test/test_settings_msprintconnectionpolicy_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_msprintconnectionpolicy_list import SettingsMsprintconnectionpolicyList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMsprintconnectionpolicyList(unittest.TestCase): + """SettingsMsprintconnectionpolicyList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMsprintconnectionpolicyList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_msprintconnectionpolicy_list.SettingsMsprintconnectionpolicyList() # noqa: E501 + if include_optional : + return SettingsMsprintconnectionpolicyList( + embedded = openapi_client_udm.models.settings_msprintconnectionpolicy_list__embedded.settings_msprintconnectionpolicy_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsMsprintconnectionpolicyList( + ) + + def testSettingsMsprintconnectionpolicyList(self): + """Test SettingsMsprintconnectionpolicyList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_msprintconnectionpolicy_list_embedded.py b/test/test_settings_msprintconnectionpolicy_list_embedded.py new file mode 100644 index 0000000..6e94797 --- /dev/null +++ b/test/test_settings_msprintconnectionpolicy_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_msprintconnectionpolicy_list_embedded import SettingsMsprintconnectionpolicyListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMsprintconnectionpolicyListEmbedded(unittest.TestCase): + """SettingsMsprintconnectionpolicyListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMsprintconnectionpolicyListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_msprintconnectionpolicy_list_embedded.SettingsMsprintconnectionpolicyListEmbedded() # noqa: E501 + if include_optional : + return SettingsMsprintconnectionpolicyListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsMsprintconnectionpolicyListEmbedded( + ) + + def testSettingsMsprintconnectionpolicyListEmbedded(self): + """Test SettingsMsprintconnectionpolicyListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_msprintconnectionpolicy_policies.py b/test/test_settings_msprintconnectionpolicy_policies.py new file mode 100644 index 0000000..78e8c75 --- /dev/null +++ b/test/test_settings_msprintconnectionpolicy_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_msprintconnectionpolicy_policies import SettingsMsprintconnectionpolicyPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMsprintconnectionpolicyPolicies(unittest.TestCase): + """SettingsMsprintconnectionpolicyPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMsprintconnectionpolicyPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_msprintconnectionpolicy_policies.SettingsMsprintconnectionpolicyPolicies() # noqa: E501 + if include_optional : + return SettingsMsprintconnectionpolicyPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return SettingsMsprintconnectionpolicyPolicies( + ) + + def testSettingsMsprintconnectionpolicyPolicies(self): + """Test SettingsMsprintconnectionpolicyPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_msprintconnectionpolicy_request.py b/test/test_settings_msprintconnectionpolicy_request.py new file mode 100644 index 0000000..3890d22 --- /dev/null +++ b/test/test_settings_msprintconnectionpolicy_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_msprintconnectionpolicy_request import SettingsMsprintconnectionpolicyRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMsprintconnectionpolicyRequest(unittest.TestCase): + """SettingsMsprintconnectionpolicyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsMsprintconnectionpolicyRequest(self): + """Test SettingsMsprintconnectionpolicyRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_msprintconnectionpolicy_request_patch.py b/test/test_settings_msprintconnectionpolicy_request_patch.py new file mode 100644 index 0000000..29a7f88 --- /dev/null +++ b/test/test_settings_msprintconnectionpolicy_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_msprintconnectionpolicy_request_patch import SettingsMsprintconnectionpolicyRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMsprintconnectionpolicyRequestPatch(unittest.TestCase): + """SettingsMsprintconnectionpolicyRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMsprintconnectionpolicyRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_msprintconnectionpolicy_request_patch.SettingsMsprintconnectionpolicyRequestPatch() # noqa: E501 + if include_optional : + return SettingsMsprintconnectionpolicyRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsMsprintconnectionpolicyRequestPatch( + ) + + def testSettingsMsprintconnectionpolicyRequestPatch(self): + """Test SettingsMsprintconnectionpolicyRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_msprintconnectionpolicy_response_mixin.py b/test/test_settings_msprintconnectionpolicy_response_mixin.py new file mode 100644 index 0000000..8d8ca51 --- /dev/null +++ b/test/test_settings_msprintconnectionpolicy_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_msprintconnectionpolicy_response_mixin import SettingsMsprintconnectionpolicyResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMsprintconnectionpolicyResponseMixin(unittest.TestCase): + """SettingsMsprintconnectionpolicyResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMsprintconnectionpolicyResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_msprintconnectionpolicy_response_mixin.SettingsMsprintconnectionpolicyResponseMixin() # noqa: E501 + if include_optional : + return SettingsMsprintconnectionpolicyResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/msprintconnectionpolicy/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsMsprintconnectionpolicyResponseMixin( + ) + + def testSettingsMsprintconnectionpolicyResponseMixin(self): + """Test SettingsMsprintconnectionpolicyResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_mswmifilter.py b/test/test_settings_mswmifilter.py new file mode 100644 index 0000000..f379e42 --- /dev/null +++ b/test/test_settings_mswmifilter.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_mswmifilter import SettingsMswmifilter # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMswmifilter(unittest.TestCase): + """SettingsMswmifilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsMswmifilter(self): + """Test SettingsMswmifilter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_mswmifilter_api.py b/test/test_settings_mswmifilter_api.py new file mode 100644 index 0000000..c77866e --- /dev/null +++ b/test/test_settings_mswmifilter_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_mswmifilter_api import SettingsMswmifilterApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsMswmifilterApi(unittest.TestCase): + """SettingsMswmifilterApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_mswmifilter_api.SettingsMswmifilterApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_mswmifilter_object(self): + """Test case for udm_settings_mswmifilter_object + + Get a representation of the Settings: MS WMI Filter object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_mswmifilter_object_create(self): + """Test case for udm_settings_mswmifilter_object_create + + Create a new Settings: MS WMI Filter object # noqa: E501 + """ + pass + + def test_udm_settings_mswmifilter_object_modify(self): + """Test case for udm_settings_mswmifilter_object_modify + + Modify or move an Settings: MS WMI Filter object # noqa: E501 + """ + pass + + def test_udm_settings_mswmifilter_object_remove(self): + """Test case for udm_settings_mswmifilter_object_remove + + Remove a Settings: MS WMI Filter object # noqa: E501 + """ + pass + + def test_udm_settings_mswmifilter_object_search(self): + """Test case for udm_settings_mswmifilter_object_search + + Search for Settings: MS WMI Filter objects # noqa: E501 + """ + pass + + def test_udm_settings_mswmifilter_object_template(self): + """Test case for udm_settings_mswmifilter_object_template + + Get a template for creating an Settings: MS WMI Filter object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_mswmifilter_object_update(self): + """Test case for udm_settings_mswmifilter_object_update + + Modify an Settings: MS WMI Filter object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_mswmifilter_list.py b/test/test_settings_mswmifilter_list.py new file mode 100644 index 0000000..7cdeba2 --- /dev/null +++ b/test/test_settings_mswmifilter_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_mswmifilter_list import SettingsMswmifilterList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMswmifilterList(unittest.TestCase): + """SettingsMswmifilterList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMswmifilterList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_mswmifilter_list.SettingsMswmifilterList() # noqa: E501 + if include_optional : + return SettingsMswmifilterList( + embedded = openapi_client_udm.models.settings_mswmifilter_list__embedded.settings_mswmifilter_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsMswmifilterList( + ) + + def testSettingsMswmifilterList(self): + """Test SettingsMswmifilterList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_mswmifilter_list_embedded.py b/test/test_settings_mswmifilter_list_embedded.py new file mode 100644 index 0000000..877ee25 --- /dev/null +++ b/test/test_settings_mswmifilter_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_mswmifilter_list_embedded import SettingsMswmifilterListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMswmifilterListEmbedded(unittest.TestCase): + """SettingsMswmifilterListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMswmifilterListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_mswmifilter_list_embedded.SettingsMswmifilterListEmbedded() # noqa: E501 + if include_optional : + return SettingsMswmifilterListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsMswmifilterListEmbedded( + ) + + def testSettingsMswmifilterListEmbedded(self): + """Test SettingsMswmifilterListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_mswmifilter_policies.py b/test/test_settings_mswmifilter_policies.py new file mode 100644 index 0000000..704bc17 --- /dev/null +++ b/test/test_settings_mswmifilter_policies.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_mswmifilter_policies import SettingsMswmifilterPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMswmifilterPolicies(unittest.TestCase): + """SettingsMswmifilterPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMswmifilterPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_mswmifilter_policies.SettingsMswmifilterPolicies() # noqa: E501 + if include_optional : + return SettingsMswmifilterPolicies( + policies_slavepackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dns = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_printserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_scope = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_dnsupdate = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_boot = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositorysync = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_statements = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_nfsmounts = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_memberpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_maintenance = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_netbios = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_admin_container = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_routing = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_release = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_dhcp_leasetime = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_registry = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_masterpackages = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_ldapserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_repositoryserver = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return SettingsMswmifilterPolicies( + ) + + def testSettingsMswmifilterPolicies(self): + """Test SettingsMswmifilterPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_mswmifilter_request.py b/test/test_settings_mswmifilter_request.py new file mode 100644 index 0000000..0491bb8 --- /dev/null +++ b/test/test_settings_mswmifilter_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_mswmifilter_request import SettingsMswmifilterRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMswmifilterRequest(unittest.TestCase): + """SettingsMswmifilterRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsMswmifilterRequest(self): + """Test SettingsMswmifilterRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_mswmifilter_request_patch.py b/test/test_settings_mswmifilter_request_patch.py new file mode 100644 index 0000000..0cef4d6 --- /dev/null +++ b/test/test_settings_mswmifilter_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_mswmifilter_request_patch import SettingsMswmifilterRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMswmifilterRequestPatch(unittest.TestCase): + """SettingsMswmifilterRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMswmifilterRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_mswmifilter_request_patch.SettingsMswmifilterRequestPatch() # noqa: E501 + if include_optional : + return SettingsMswmifilterRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsMswmifilterRequestPatch( + ) + + def testSettingsMswmifilterRequestPatch(self): + """Test SettingsMswmifilterRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_mswmifilter_response_mixin.py b/test/test_settings_mswmifilter_response_mixin.py new file mode 100644 index 0000000..c71a2a0 --- /dev/null +++ b/test/test_settings_mswmifilter_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_mswmifilter_response_mixin import SettingsMswmifilterResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsMswmifilterResponseMixin(unittest.TestCase): + """SettingsMswmifilterResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsMswmifilterResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_mswmifilter_response_mixin.SettingsMswmifilterResponseMixin() # noqa: E501 + if include_optional : + return SettingsMswmifilterResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/mswmifilter/msWMIID={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsMswmifilterResponseMixin( + ) + + def testSettingsMswmifilterResponseMixin(self): + """Test SettingsMswmifilterResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_packages.py b/test/test_settings_packages.py new file mode 100644 index 0000000..330f1bd --- /dev/null +++ b/test/test_settings_packages.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_packages import SettingsPackages # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPackages(unittest.TestCase): + """SettingsPackages unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPackages(self): + """Test SettingsPackages""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_packages_api.py b/test/test_settings_packages_api.py new file mode 100644 index 0000000..657aeaa --- /dev/null +++ b/test/test_settings_packages_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_packages_api import SettingsPackagesApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsPackagesApi(unittest.TestCase): + """SettingsPackagesApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_packages_api.SettingsPackagesApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_packages_object(self): + """Test case for udm_settings_packages_object + + Get a representation of the Package List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_packages_object_create(self): + """Test case for udm_settings_packages_object_create + + Create a new Package List object # noqa: E501 + """ + pass + + def test_udm_settings_packages_object_modify(self): + """Test case for udm_settings_packages_object_modify + + Modify or move an Package List object # noqa: E501 + """ + pass + + def test_udm_settings_packages_object_remove(self): + """Test case for udm_settings_packages_object_remove + + Remove a Package Lists object # noqa: E501 + """ + pass + + def test_udm_settings_packages_object_search(self): + """Test case for udm_settings_packages_object_search + + Search for Package Lists objects # noqa: E501 + """ + pass + + def test_udm_settings_packages_object_template(self): + """Test case for udm_settings_packages_object_template + + Get a template for creating an Package List object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_packages_object_update(self): + """Test case for udm_settings_packages_object_update + + Modify an Package List object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_packages_list.py b/test/test_settings_packages_list.py new file mode 100644 index 0000000..1a2ac9b --- /dev/null +++ b/test/test_settings_packages_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_packages_list import SettingsPackagesList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPackagesList(unittest.TestCase): + """SettingsPackagesList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPackagesList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_packages_list.SettingsPackagesList() # noqa: E501 + if include_optional : + return SettingsPackagesList( + embedded = openapi_client_udm.models.settings_packages_list__embedded.settings_packages_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsPackagesList( + ) + + def testSettingsPackagesList(self): + """Test SettingsPackagesList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_packages_list_embedded.py b/test/test_settings_packages_list_embedded.py new file mode 100644 index 0000000..a8411c4 --- /dev/null +++ b/test/test_settings_packages_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_packages_list_embedded import SettingsPackagesListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPackagesListEmbedded(unittest.TestCase): + """SettingsPackagesListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPackagesListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_packages_list_embedded.SettingsPackagesListEmbedded() # noqa: E501 + if include_optional : + return SettingsPackagesListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsPackagesListEmbedded( + ) + + def testSettingsPackagesListEmbedded(self): + """Test SettingsPackagesListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_packages_request.py b/test/test_settings_packages_request.py new file mode 100644 index 0000000..b4ed962 --- /dev/null +++ b/test/test_settings_packages_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_packages_request import SettingsPackagesRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPackagesRequest(unittest.TestCase): + """SettingsPackagesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPackagesRequest(self): + """Test SettingsPackagesRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_packages_request_patch.py b/test/test_settings_packages_request_patch.py new file mode 100644 index 0000000..4fe9f6b --- /dev/null +++ b/test/test_settings_packages_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_packages_request_patch import SettingsPackagesRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPackagesRequestPatch(unittest.TestCase): + """SettingsPackagesRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPackagesRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_packages_request_patch.SettingsPackagesRequestPatch() # noqa: E501 + if include_optional : + return SettingsPackagesRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsPackagesRequestPatch( + ) + + def testSettingsPackagesRequestPatch(self): + """Test SettingsPackagesRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_packages_response_mixin.py b/test/test_settings_packages_response_mixin.py new file mode 100644 index 0000000..ff0f9ed --- /dev/null +++ b/test/test_settings_packages_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_packages_response_mixin import SettingsPackagesResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPackagesResponseMixin(unittest.TestCase): + """SettingsPackagesResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPackagesResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_packages_response_mixin.SettingsPackagesResponseMixin() # noqa: E501 + if include_optional : + return SettingsPackagesResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/packages/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsPackagesResponseMixin( + ) + + def testSettingsPackagesResponseMixin(self): + """Test SettingsPackagesResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal.py b/test/test_settings_portal.py new file mode 100644 index 0000000..f63c759 --- /dev/null +++ b/test/test_settings_portal.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal import SettingsPortal # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortal(unittest.TestCase): + """SettingsPortal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPortal(self): + """Test SettingsPortal""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_all.py b/test/test_settings_portal_all.py new file mode 100644 index 0000000..243ae0e --- /dev/null +++ b/test/test_settings_portal_all.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_all import SettingsPortalAll # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalAll(unittest.TestCase): + """SettingsPortalAll unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPortalAll(self): + """Test SettingsPortalAll""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_all_api.py b/test/test_settings_portal_all_api.py new file mode 100644 index 0000000..050e9cb --- /dev/null +++ b/test/test_settings_portal_all_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_portal_all_api import SettingsPortalAllApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsPortalAllApi(unittest.TestCase): + """SettingsPortalAllApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_portal_all_api.SettingsPortalAllApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_portal_all_object(self): + """Test case for udm_settings_portal_all_object + + Get a representation of the Deprecated Portal: Settings object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_portal_all_object_search(self): + """Test case for udm_settings_portal_all_object_search + + Search for Deprecated Portal: Settings objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_all_list.py b/test/test_settings_portal_all_list.py new file mode 100644 index 0000000..849d549 --- /dev/null +++ b/test/test_settings_portal_all_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_all_list import SettingsPortalAllList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalAllList(unittest.TestCase): + """SettingsPortalAllList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalAllList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_all_list.SettingsPortalAllList() # noqa: E501 + if include_optional : + return SettingsPortalAllList( + embedded = openapi_client_udm.models.settings_portal_all_list__embedded.settings_portal_all_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsPortalAllList( + ) + + def testSettingsPortalAllList(self): + """Test SettingsPortalAllList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_all_list_embedded.py b/test/test_settings_portal_all_list_embedded.py new file mode 100644 index 0000000..91a697e --- /dev/null +++ b/test/test_settings_portal_all_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_all_list_embedded import SettingsPortalAllListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalAllListEmbedded(unittest.TestCase): + """SettingsPortalAllListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalAllListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_all_list_embedded.SettingsPortalAllListEmbedded() # noqa: E501 + if include_optional : + return SettingsPortalAllListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsPortalAllListEmbedded( + ) + + def testSettingsPortalAllListEmbedded(self): + """Test SettingsPortalAllListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_all_request.py b/test/test_settings_portal_all_request.py new file mode 100644 index 0000000..00e36ed --- /dev/null +++ b/test/test_settings_portal_all_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_all_request import SettingsPortalAllRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalAllRequest(unittest.TestCase): + """SettingsPortalAllRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPortalAllRequest(self): + """Test SettingsPortalAllRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_all_request_patch.py b/test/test_settings_portal_all_request_patch.py new file mode 100644 index 0000000..d850969 --- /dev/null +++ b/test/test_settings_portal_all_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_all_request_patch import SettingsPortalAllRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalAllRequestPatch(unittest.TestCase): + """SettingsPortalAllRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalAllRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_all_request_patch.SettingsPortalAllRequestPatch() # noqa: E501 + if include_optional : + return SettingsPortalAllRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsPortalAllRequestPatch( + ) + + def testSettingsPortalAllRequestPatch(self): + """Test SettingsPortalAllRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_all_response_mixin.py b/test/test_settings_portal_all_response_mixin.py new file mode 100644 index 0000000..01db281 --- /dev/null +++ b/test/test_settings_portal_all_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_all_response_mixin import SettingsPortalAllResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalAllResponseMixin(unittest.TestCase): + """SettingsPortalAllResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalAllResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_all_response_mixin.SettingsPortalAllResponseMixin() # noqa: E501 + if include_optional : + return SettingsPortalAllResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/portal_all/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsPortalAllResponseMixin( + ) + + def testSettingsPortalAllResponseMixin(self): + """Test SettingsPortalAllResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_api.py b/test/test_settings_portal_api.py new file mode 100644 index 0000000..7333beb --- /dev/null +++ b/test/test_settings_portal_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_portal_api import SettingsPortalApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsPortalApi(unittest.TestCase): + """SettingsPortalApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_portal_api.SettingsPortalApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_portal_object(self): + """Test case for udm_settings_portal_object + + Get a representation of the Deprecated Portal object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_portal_object_create(self): + """Test case for udm_settings_portal_object_create + + Create a new Deprecated Portal object # noqa: E501 + """ + pass + + def test_udm_settings_portal_object_modify(self): + """Test case for udm_settings_portal_object_modify + + Modify or move an Deprecated Portal object # noqa: E501 + """ + pass + + def test_udm_settings_portal_object_remove(self): + """Test case for udm_settings_portal_object_remove + + Remove a Deprecated Portals object # noqa: E501 + """ + pass + + def test_udm_settings_portal_object_search(self): + """Test case for udm_settings_portal_object_search + + Search for Deprecated Portals objects # noqa: E501 + """ + pass + + def test_udm_settings_portal_object_template(self): + """Test case for udm_settings_portal_object_template + + Get a template for creating an Deprecated Portal object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_portal_object_update(self): + """Test case for udm_settings_portal_object_update + + Modify an Deprecated Portal object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_category.py b/test/test_settings_portal_category.py new file mode 100644 index 0000000..909b8ae --- /dev/null +++ b/test/test_settings_portal_category.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_category import SettingsPortalCategory # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalCategory(unittest.TestCase): + """SettingsPortalCategory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPortalCategory(self): + """Test SettingsPortalCategory""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_category_api.py b/test/test_settings_portal_category_api.py new file mode 100644 index 0000000..e1739f6 --- /dev/null +++ b/test/test_settings_portal_category_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_portal_category_api import SettingsPortalCategoryApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsPortalCategoryApi(unittest.TestCase): + """SettingsPortalCategoryApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_portal_category_api.SettingsPortalCategoryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_portal_category_object(self): + """Test case for udm_settings_portal_category_object + + Get a representation of the Deprecated Portal category object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_portal_category_object_create(self): + """Test case for udm_settings_portal_category_object_create + + Create a new Deprecated Portal category object # noqa: E501 + """ + pass + + def test_udm_settings_portal_category_object_modify(self): + """Test case for udm_settings_portal_category_object_modify + + Modify or move an Deprecated Portal category object # noqa: E501 + """ + pass + + def test_udm_settings_portal_category_object_remove(self): + """Test case for udm_settings_portal_category_object_remove + + Remove a Deprecated Portal categories object # noqa: E501 + """ + pass + + def test_udm_settings_portal_category_object_search(self): + """Test case for udm_settings_portal_category_object_search + + Search for Deprecated Portal categories objects # noqa: E501 + """ + pass + + def test_udm_settings_portal_category_object_template(self): + """Test case for udm_settings_portal_category_object_template + + Get a template for creating an Deprecated Portal category object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_portal_category_object_update(self): + """Test case for udm_settings_portal_category_object_update + + Modify an Deprecated Portal category object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_category_list.py b/test/test_settings_portal_category_list.py new file mode 100644 index 0000000..d2c8aee --- /dev/null +++ b/test/test_settings_portal_category_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_category_list import SettingsPortalCategoryList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalCategoryList(unittest.TestCase): + """SettingsPortalCategoryList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalCategoryList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_category_list.SettingsPortalCategoryList() # noqa: E501 + if include_optional : + return SettingsPortalCategoryList( + embedded = openapi_client_udm.models.settings_portal_category_list__embedded.settings_portal_category_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsPortalCategoryList( + ) + + def testSettingsPortalCategoryList(self): + """Test SettingsPortalCategoryList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_category_list_embedded.py b/test/test_settings_portal_category_list_embedded.py new file mode 100644 index 0000000..c8b3cec --- /dev/null +++ b/test/test_settings_portal_category_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_category_list_embedded import SettingsPortalCategoryListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalCategoryListEmbedded(unittest.TestCase): + """SettingsPortalCategoryListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalCategoryListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_category_list_embedded.SettingsPortalCategoryListEmbedded() # noqa: E501 + if include_optional : + return SettingsPortalCategoryListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsPortalCategoryListEmbedded( + ) + + def testSettingsPortalCategoryListEmbedded(self): + """Test SettingsPortalCategoryListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_category_request.py b/test/test_settings_portal_category_request.py new file mode 100644 index 0000000..2b49c75 --- /dev/null +++ b/test/test_settings_portal_category_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_category_request import SettingsPortalCategoryRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalCategoryRequest(unittest.TestCase): + """SettingsPortalCategoryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPortalCategoryRequest(self): + """Test SettingsPortalCategoryRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_category_request_patch.py b/test/test_settings_portal_category_request_patch.py new file mode 100644 index 0000000..2ad5e56 --- /dev/null +++ b/test/test_settings_portal_category_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_category_request_patch import SettingsPortalCategoryRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalCategoryRequestPatch(unittest.TestCase): + """SettingsPortalCategoryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalCategoryRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_category_request_patch.SettingsPortalCategoryRequestPatch() # noqa: E501 + if include_optional : + return SettingsPortalCategoryRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsPortalCategoryRequestPatch( + ) + + def testSettingsPortalCategoryRequestPatch(self): + """Test SettingsPortalCategoryRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_category_response_mixin.py b/test/test_settings_portal_category_response_mixin.py new file mode 100644 index 0000000..c71c951 --- /dev/null +++ b/test/test_settings_portal_category_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_category_response_mixin import SettingsPortalCategoryResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalCategoryResponseMixin(unittest.TestCase): + """SettingsPortalCategoryResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalCategoryResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_category_response_mixin.SettingsPortalCategoryResponseMixin() # noqa: E501 + if include_optional : + return SettingsPortalCategoryResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/portal_category/cn={value},cn=categories,cn=portal,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsPortalCategoryResponseMixin( + ) + + def testSettingsPortalCategoryResponseMixin(self): + """Test SettingsPortalCategoryResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_entry.py b/test/test_settings_portal_entry.py new file mode 100644 index 0000000..89567d0 --- /dev/null +++ b/test/test_settings_portal_entry.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_entry import SettingsPortalEntry # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalEntry(unittest.TestCase): + """SettingsPortalEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPortalEntry(self): + """Test SettingsPortalEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_entry_api.py b/test/test_settings_portal_entry_api.py new file mode 100644 index 0000000..97a76c9 --- /dev/null +++ b/test/test_settings_portal_entry_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_portal_entry_api import SettingsPortalEntryApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsPortalEntryApi(unittest.TestCase): + """SettingsPortalEntryApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_portal_entry_api.SettingsPortalEntryApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_portal_entry_object(self): + """Test case for udm_settings_portal_entry_object + + Get a representation of the Deprecated Portal entry object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_portal_entry_object_create(self): + """Test case for udm_settings_portal_entry_object_create + + Create a new Deprecated Portal entry object # noqa: E501 + """ + pass + + def test_udm_settings_portal_entry_object_modify(self): + """Test case for udm_settings_portal_entry_object_modify + + Modify or move an Deprecated Portal entry object # noqa: E501 + """ + pass + + def test_udm_settings_portal_entry_object_remove(self): + """Test case for udm_settings_portal_entry_object_remove + + Remove a Deprecated Portal entries object # noqa: E501 + """ + pass + + def test_udm_settings_portal_entry_object_search(self): + """Test case for udm_settings_portal_entry_object_search + + Search for Deprecated Portal entries objects # noqa: E501 + """ + pass + + def test_udm_settings_portal_entry_object_template(self): + """Test case for udm_settings_portal_entry_object_template + + Get a template for creating an Deprecated Portal entry object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_portal_entry_object_update(self): + """Test case for udm_settings_portal_entry_object_update + + Modify an Deprecated Portal entry object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_entry_list.py b/test/test_settings_portal_entry_list.py new file mode 100644 index 0000000..3328f05 --- /dev/null +++ b/test/test_settings_portal_entry_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_entry_list import SettingsPortalEntryList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalEntryList(unittest.TestCase): + """SettingsPortalEntryList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalEntryList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_entry_list.SettingsPortalEntryList() # noqa: E501 + if include_optional : + return SettingsPortalEntryList( + embedded = openapi_client_udm.models.settings_portal_entry_list__embedded.settings_portal_entry_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsPortalEntryList( + ) + + def testSettingsPortalEntryList(self): + """Test SettingsPortalEntryList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_entry_list_embedded.py b/test/test_settings_portal_entry_list_embedded.py new file mode 100644 index 0000000..d82a504 --- /dev/null +++ b/test/test_settings_portal_entry_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_entry_list_embedded import SettingsPortalEntryListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalEntryListEmbedded(unittest.TestCase): + """SettingsPortalEntryListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalEntryListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_entry_list_embedded.SettingsPortalEntryListEmbedded() # noqa: E501 + if include_optional : + return SettingsPortalEntryListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsPortalEntryListEmbedded( + ) + + def testSettingsPortalEntryListEmbedded(self): + """Test SettingsPortalEntryListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_entry_request.py b/test/test_settings_portal_entry_request.py new file mode 100644 index 0000000..54cdccb --- /dev/null +++ b/test/test_settings_portal_entry_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_entry_request import SettingsPortalEntryRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalEntryRequest(unittest.TestCase): + """SettingsPortalEntryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPortalEntryRequest(self): + """Test SettingsPortalEntryRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_entry_request_patch.py b/test/test_settings_portal_entry_request_patch.py new file mode 100644 index 0000000..de6a86f --- /dev/null +++ b/test/test_settings_portal_entry_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_entry_request_patch import SettingsPortalEntryRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalEntryRequestPatch(unittest.TestCase): + """SettingsPortalEntryRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalEntryRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_entry_request_patch.SettingsPortalEntryRequestPatch() # noqa: E501 + if include_optional : + return SettingsPortalEntryRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsPortalEntryRequestPatch( + ) + + def testSettingsPortalEntryRequestPatch(self): + """Test SettingsPortalEntryRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_entry_response_mixin.py b/test/test_settings_portal_entry_response_mixin.py new file mode 100644 index 0000000..b63fb9e --- /dev/null +++ b/test/test_settings_portal_entry_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_entry_response_mixin import SettingsPortalEntryResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalEntryResponseMixin(unittest.TestCase): + """SettingsPortalEntryResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalEntryResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_entry_response_mixin.SettingsPortalEntryResponseMixin() # noqa: E501 + if include_optional : + return SettingsPortalEntryResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/portal_entry/cn={value},cn=portal,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsPortalEntryResponseMixin( + ) + + def testSettingsPortalEntryResponseMixin(self): + """Test SettingsPortalEntryResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_list.py b/test/test_settings_portal_list.py new file mode 100644 index 0000000..d873bcb --- /dev/null +++ b/test/test_settings_portal_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_list import SettingsPortalList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalList(unittest.TestCase): + """SettingsPortalList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_list.SettingsPortalList() # noqa: E501 + if include_optional : + return SettingsPortalList( + embedded = openapi_client_udm.models.settings_portal_list__embedded.settings_portal_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsPortalList( + ) + + def testSettingsPortalList(self): + """Test SettingsPortalList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_list_embedded.py b/test/test_settings_portal_list_embedded.py new file mode 100644 index 0000000..bec4bbc --- /dev/null +++ b/test/test_settings_portal_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_list_embedded import SettingsPortalListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalListEmbedded(unittest.TestCase): + """SettingsPortalListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_list_embedded.SettingsPortalListEmbedded() # noqa: E501 + if include_optional : + return SettingsPortalListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsPortalListEmbedded( + ) + + def testSettingsPortalListEmbedded(self): + """Test SettingsPortalListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_request.py b/test/test_settings_portal_request.py new file mode 100644 index 0000000..4575937 --- /dev/null +++ b/test/test_settings_portal_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_request import SettingsPortalRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalRequest(unittest.TestCase): + """SettingsPortalRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPortalRequest(self): + """Test SettingsPortalRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_request_patch.py b/test/test_settings_portal_request_patch.py new file mode 100644 index 0000000..547ca49 --- /dev/null +++ b/test/test_settings_portal_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_request_patch import SettingsPortalRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalRequestPatch(unittest.TestCase): + """SettingsPortalRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_request_patch.SettingsPortalRequestPatch() # noqa: E501 + if include_optional : + return SettingsPortalRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsPortalRequestPatch( + ) + + def testSettingsPortalRequestPatch(self): + """Test SettingsPortalRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_portal_response_mixin.py b/test/test_settings_portal_response_mixin.py new file mode 100644 index 0000000..899bb8f --- /dev/null +++ b/test/test_settings_portal_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_portal_response_mixin import SettingsPortalResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPortalResponseMixin(unittest.TestCase): + """SettingsPortalResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPortalResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_portal_response_mixin.SettingsPortalResponseMixin() # noqa: E501 + if include_optional : + return SettingsPortalResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/portal/cn={value},cn=portal,cn=univention,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsPortalResponseMixin( + ) + + def testSettingsPortalResponseMixin(self): + """Test SettingsPortalResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printermodel.py b/test/test_settings_printermodel.py new file mode 100644 index 0000000..f8b3212 --- /dev/null +++ b/test/test_settings_printermodel.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printermodel import SettingsPrintermodel # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrintermodel(unittest.TestCase): + """SettingsPrintermodel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPrintermodel(self): + """Test SettingsPrintermodel""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printermodel_api.py b/test/test_settings_printermodel_api.py new file mode 100644 index 0000000..2c2616e --- /dev/null +++ b/test/test_settings_printermodel_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_printermodel_api import SettingsPrintermodelApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsPrintermodelApi(unittest.TestCase): + """SettingsPrintermodelApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_printermodel_api.SettingsPrintermodelApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_printermodel_object(self): + """Test case for udm_settings_printermodel_object + + Get a representation of the Printer Driver List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_printermodel_object_create(self): + """Test case for udm_settings_printermodel_object_create + + Create a new Printer Driver List object # noqa: E501 + """ + pass + + def test_udm_settings_printermodel_object_modify(self): + """Test case for udm_settings_printermodel_object_modify + + Modify or move an Printer Driver List object # noqa: E501 + """ + pass + + def test_udm_settings_printermodel_object_remove(self): + """Test case for udm_settings_printermodel_object_remove + + Remove a Printer Driver Lists object # noqa: E501 + """ + pass + + def test_udm_settings_printermodel_object_search(self): + """Test case for udm_settings_printermodel_object_search + + Search for Printer Driver Lists objects # noqa: E501 + """ + pass + + def test_udm_settings_printermodel_object_template(self): + """Test case for udm_settings_printermodel_object_template + + Get a template for creating an Printer Driver List object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_printermodel_object_update(self): + """Test case for udm_settings_printermodel_object_update + + Modify an Printer Driver List object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printermodel_list.py b/test/test_settings_printermodel_list.py new file mode 100644 index 0000000..9badc23 --- /dev/null +++ b/test/test_settings_printermodel_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printermodel_list import SettingsPrintermodelList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrintermodelList(unittest.TestCase): + """SettingsPrintermodelList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPrintermodelList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_printermodel_list.SettingsPrintermodelList() # noqa: E501 + if include_optional : + return SettingsPrintermodelList( + embedded = openapi_client_udm.models.settings_printermodel_list__embedded.settings_printermodel_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsPrintermodelList( + ) + + def testSettingsPrintermodelList(self): + """Test SettingsPrintermodelList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printermodel_list_embedded.py b/test/test_settings_printermodel_list_embedded.py new file mode 100644 index 0000000..d8948e7 --- /dev/null +++ b/test/test_settings_printermodel_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printermodel_list_embedded import SettingsPrintermodelListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrintermodelListEmbedded(unittest.TestCase): + """SettingsPrintermodelListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPrintermodelListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_printermodel_list_embedded.SettingsPrintermodelListEmbedded() # noqa: E501 + if include_optional : + return SettingsPrintermodelListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsPrintermodelListEmbedded( + ) + + def testSettingsPrintermodelListEmbedded(self): + """Test SettingsPrintermodelListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printermodel_request.py b/test/test_settings_printermodel_request.py new file mode 100644 index 0000000..8e2690f --- /dev/null +++ b/test/test_settings_printermodel_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printermodel_request import SettingsPrintermodelRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrintermodelRequest(unittest.TestCase): + """SettingsPrintermodelRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPrintermodelRequest(self): + """Test SettingsPrintermodelRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printermodel_request_patch.py b/test/test_settings_printermodel_request_patch.py new file mode 100644 index 0000000..409ab17 --- /dev/null +++ b/test/test_settings_printermodel_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printermodel_request_patch import SettingsPrintermodelRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrintermodelRequestPatch(unittest.TestCase): + """SettingsPrintermodelRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPrintermodelRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_printermodel_request_patch.SettingsPrintermodelRequestPatch() # noqa: E501 + if include_optional : + return SettingsPrintermodelRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsPrintermodelRequestPatch( + ) + + def testSettingsPrintermodelRequestPatch(self): + """Test SettingsPrintermodelRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printermodel_response_mixin.py b/test/test_settings_printermodel_response_mixin.py new file mode 100644 index 0000000..cb89785 --- /dev/null +++ b/test/test_settings_printermodel_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printermodel_response_mixin import SettingsPrintermodelResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrintermodelResponseMixin(unittest.TestCase): + """SettingsPrintermodelResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPrintermodelResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_printermodel_response_mixin.SettingsPrintermodelResponseMixin() # noqa: E501 + if include_optional : + return SettingsPrintermodelResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/printermodel/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsPrintermodelResponseMixin( + ) + + def testSettingsPrintermodelResponseMixin(self): + """Test SettingsPrintermodelResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printeruri.py b/test/test_settings_printeruri.py new file mode 100644 index 0000000..44d102c --- /dev/null +++ b/test/test_settings_printeruri.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printeruri import SettingsPrinteruri # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrinteruri(unittest.TestCase): + """SettingsPrinteruri unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPrinteruri(self): + """Test SettingsPrinteruri""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printeruri_api.py b/test/test_settings_printeruri_api.py new file mode 100644 index 0000000..699efad --- /dev/null +++ b/test/test_settings_printeruri_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_printeruri_api import SettingsPrinteruriApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsPrinteruriApi(unittest.TestCase): + """SettingsPrinteruriApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_printeruri_api.SettingsPrinteruriApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_printeruri_object(self): + """Test case for udm_settings_printeruri_object + + Get a representation of the Printer URI List object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_printeruri_object_create(self): + """Test case for udm_settings_printeruri_object_create + + Create a new Printer URI List object # noqa: E501 + """ + pass + + def test_udm_settings_printeruri_object_modify(self): + """Test case for udm_settings_printeruri_object_modify + + Modify or move an Printer URI List object # noqa: E501 + """ + pass + + def test_udm_settings_printeruri_object_remove(self): + """Test case for udm_settings_printeruri_object_remove + + Remove a Printer URI Lists object # noqa: E501 + """ + pass + + def test_udm_settings_printeruri_object_search(self): + """Test case for udm_settings_printeruri_object_search + + Search for Printer URI Lists objects # noqa: E501 + """ + pass + + def test_udm_settings_printeruri_object_template(self): + """Test case for udm_settings_printeruri_object_template + + Get a template for creating an Printer URI List object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_printeruri_object_update(self): + """Test case for udm_settings_printeruri_object_update + + Modify an Printer URI List object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printeruri_list.py b/test/test_settings_printeruri_list.py new file mode 100644 index 0000000..689286c --- /dev/null +++ b/test/test_settings_printeruri_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printeruri_list import SettingsPrinteruriList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrinteruriList(unittest.TestCase): + """SettingsPrinteruriList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPrinteruriList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_printeruri_list.SettingsPrinteruriList() # noqa: E501 + if include_optional : + return SettingsPrinteruriList( + embedded = openapi_client_udm.models.settings_printeruri_list__embedded.settings_printeruri_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsPrinteruriList( + ) + + def testSettingsPrinteruriList(self): + """Test SettingsPrinteruriList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printeruri_list_embedded.py b/test/test_settings_printeruri_list_embedded.py new file mode 100644 index 0000000..d7ea05c --- /dev/null +++ b/test/test_settings_printeruri_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printeruri_list_embedded import SettingsPrinteruriListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrinteruriListEmbedded(unittest.TestCase): + """SettingsPrinteruriListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPrinteruriListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_printeruri_list_embedded.SettingsPrinteruriListEmbedded() # noqa: E501 + if include_optional : + return SettingsPrinteruriListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsPrinteruriListEmbedded( + ) + + def testSettingsPrinteruriListEmbedded(self): + """Test SettingsPrinteruriListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printeruri_request.py b/test/test_settings_printeruri_request.py new file mode 100644 index 0000000..ad37f9e --- /dev/null +++ b/test/test_settings_printeruri_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printeruri_request import SettingsPrinteruriRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrinteruriRequest(unittest.TestCase): + """SettingsPrinteruriRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsPrinteruriRequest(self): + """Test SettingsPrinteruriRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printeruri_request_patch.py b/test/test_settings_printeruri_request_patch.py new file mode 100644 index 0000000..eb20a45 --- /dev/null +++ b/test/test_settings_printeruri_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printeruri_request_patch import SettingsPrinteruriRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrinteruriRequestPatch(unittest.TestCase): + """SettingsPrinteruriRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPrinteruriRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_printeruri_request_patch.SettingsPrinteruriRequestPatch() # noqa: E501 + if include_optional : + return SettingsPrinteruriRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsPrinteruriRequestPatch( + ) + + def testSettingsPrinteruriRequestPatch(self): + """Test SettingsPrinteruriRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_printeruri_response_mixin.py b/test/test_settings_printeruri_response_mixin.py new file mode 100644 index 0000000..78d1828 --- /dev/null +++ b/test/test_settings_printeruri_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_printeruri_response_mixin import SettingsPrinteruriResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsPrinteruriResponseMixin(unittest.TestCase): + """SettingsPrinteruriResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsPrinteruriResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_printeruri_response_mixin.SettingsPrinteruriResponseMixin() # noqa: E501 + if include_optional : + return SettingsPrinteruriResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/printeruri/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsPrinteruriResponseMixin( + ) + + def testSettingsPrinteruriResponseMixin(self): + """Test SettingsPrinteruriResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_prohibited_username.py b/test/test_settings_prohibited_username.py new file mode 100644 index 0000000..1c59411 --- /dev/null +++ b/test/test_settings_prohibited_username.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_prohibited_username import SettingsProhibitedUsername # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsProhibitedUsername(unittest.TestCase): + """SettingsProhibitedUsername unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsProhibitedUsername(self): + """Test SettingsProhibitedUsername""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_prohibited_username_api.py b/test/test_settings_prohibited_username_api.py new file mode 100644 index 0000000..bf5a3bc --- /dev/null +++ b/test/test_settings_prohibited_username_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_prohibited_username_api import SettingsProhibitedUsernameApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsProhibitedUsernameApi(unittest.TestCase): + """SettingsProhibitedUsernameApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_prohibited_username_api.SettingsProhibitedUsernameApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_prohibited_username_object(self): + """Test case for udm_settings_prohibited_username_object + + Get a representation of the Prohibited user name object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_prohibited_username_object_create(self): + """Test case for udm_settings_prohibited_username_object_create + + Create a new Prohibited user name object # noqa: E501 + """ + pass + + def test_udm_settings_prohibited_username_object_modify(self): + """Test case for udm_settings_prohibited_username_object_modify + + Modify or move an Prohibited user name object # noqa: E501 + """ + pass + + def test_udm_settings_prohibited_username_object_remove(self): + """Test case for udm_settings_prohibited_username_object_remove + + Remove a Prohibited user names object # noqa: E501 + """ + pass + + def test_udm_settings_prohibited_username_object_search(self): + """Test case for udm_settings_prohibited_username_object_search + + Search for Prohibited user names objects # noqa: E501 + """ + pass + + def test_udm_settings_prohibited_username_object_template(self): + """Test case for udm_settings_prohibited_username_object_template + + Get a template for creating an Prohibited user name object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_prohibited_username_object_update(self): + """Test case for udm_settings_prohibited_username_object_update + + Modify an Prohibited user name object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_prohibited_username_list.py b/test/test_settings_prohibited_username_list.py new file mode 100644 index 0000000..2981ecc --- /dev/null +++ b/test/test_settings_prohibited_username_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_prohibited_username_list import SettingsProhibitedUsernameList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsProhibitedUsernameList(unittest.TestCase): + """SettingsProhibitedUsernameList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsProhibitedUsernameList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_prohibited_username_list.SettingsProhibitedUsernameList() # noqa: E501 + if include_optional : + return SettingsProhibitedUsernameList( + embedded = openapi_client_udm.models.settings_prohibited_username_list__embedded.settings_prohibited_username_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsProhibitedUsernameList( + ) + + def testSettingsProhibitedUsernameList(self): + """Test SettingsProhibitedUsernameList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_prohibited_username_list_embedded.py b/test/test_settings_prohibited_username_list_embedded.py new file mode 100644 index 0000000..5136710 --- /dev/null +++ b/test/test_settings_prohibited_username_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_prohibited_username_list_embedded import SettingsProhibitedUsernameListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsProhibitedUsernameListEmbedded(unittest.TestCase): + """SettingsProhibitedUsernameListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsProhibitedUsernameListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_prohibited_username_list_embedded.SettingsProhibitedUsernameListEmbedded() # noqa: E501 + if include_optional : + return SettingsProhibitedUsernameListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsProhibitedUsernameListEmbedded( + ) + + def testSettingsProhibitedUsernameListEmbedded(self): + """Test SettingsProhibitedUsernameListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_prohibited_username_request.py b/test/test_settings_prohibited_username_request.py new file mode 100644 index 0000000..2fd3fc6 --- /dev/null +++ b/test/test_settings_prohibited_username_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_prohibited_username_request import SettingsProhibitedUsernameRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsProhibitedUsernameRequest(unittest.TestCase): + """SettingsProhibitedUsernameRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsProhibitedUsernameRequest(self): + """Test SettingsProhibitedUsernameRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_prohibited_username_request_patch.py b/test/test_settings_prohibited_username_request_patch.py new file mode 100644 index 0000000..ad759ac --- /dev/null +++ b/test/test_settings_prohibited_username_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_prohibited_username_request_patch import SettingsProhibitedUsernameRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsProhibitedUsernameRequestPatch(unittest.TestCase): + """SettingsProhibitedUsernameRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsProhibitedUsernameRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_prohibited_username_request_patch.SettingsProhibitedUsernameRequestPatch() # noqa: E501 + if include_optional : + return SettingsProhibitedUsernameRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsProhibitedUsernameRequestPatch( + ) + + def testSettingsProhibitedUsernameRequestPatch(self): + """Test SettingsProhibitedUsernameRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_prohibited_username_response_mixin.py b/test/test_settings_prohibited_username_response_mixin.py new file mode 100644 index 0000000..a507cde --- /dev/null +++ b/test/test_settings_prohibited_username_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_prohibited_username_response_mixin import SettingsProhibitedUsernameResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsProhibitedUsernameResponseMixin(unittest.TestCase): + """SettingsProhibitedUsernameResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsProhibitedUsernameResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_prohibited_username_response_mixin.SettingsProhibitedUsernameResponseMixin() # noqa: E501 + if include_optional : + return SettingsProhibitedUsernameResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/prohibited_username/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsProhibitedUsernameResponseMixin( + ) + + def testSettingsProhibitedUsernameResponseMixin(self): + """Test SettingsProhibitedUsernameResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambaconfig.py b/test/test_settings_sambaconfig.py new file mode 100644 index 0000000..603d4d4 --- /dev/null +++ b/test/test_settings_sambaconfig.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambaconfig import SettingsSambaconfig # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambaconfig(unittest.TestCase): + """SettingsSambaconfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsSambaconfig(self): + """Test SettingsSambaconfig""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambaconfig_api.py b/test/test_settings_sambaconfig_api.py new file mode 100644 index 0000000..ba5b939 --- /dev/null +++ b/test/test_settings_sambaconfig_api.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_sambaconfig_api import SettingsSambaconfigApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsSambaconfigApi(unittest.TestCase): + """SettingsSambaconfigApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_sambaconfig_api.SettingsSambaconfigApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_sambaconfig_object(self): + """Test case for udm_settings_sambaconfig_object + + Get a representation of the Samba Configuration object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_sambaconfig_object_modify(self): + """Test case for udm_settings_sambaconfig_object_modify + + Modify or move an Samba Configuration object # noqa: E501 + """ + pass + + def test_udm_settings_sambaconfig_object_remove(self): + """Test case for udm_settings_sambaconfig_object_remove + + Remove a Samba Configuration settings object # noqa: E501 + """ + pass + + def test_udm_settings_sambaconfig_object_search(self): + """Test case for udm_settings_sambaconfig_object_search + + Search for Samba Configuration settings objects # noqa: E501 + """ + pass + + def test_udm_settings_sambaconfig_object_update(self): + """Test case for udm_settings_sambaconfig_object_update + + Modify an Samba Configuration object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambaconfig_list.py b/test/test_settings_sambaconfig_list.py new file mode 100644 index 0000000..a67fdc2 --- /dev/null +++ b/test/test_settings_sambaconfig_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambaconfig_list import SettingsSambaconfigList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambaconfigList(unittest.TestCase): + """SettingsSambaconfigList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSambaconfigList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_sambaconfig_list.SettingsSambaconfigList() # noqa: E501 + if include_optional : + return SettingsSambaconfigList( + embedded = openapi_client_udm.models.settings_sambaconfig_list__embedded.settings_sambaconfig_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsSambaconfigList( + ) + + def testSettingsSambaconfigList(self): + """Test SettingsSambaconfigList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambaconfig_list_embedded.py b/test/test_settings_sambaconfig_list_embedded.py new file mode 100644 index 0000000..811d73e --- /dev/null +++ b/test/test_settings_sambaconfig_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambaconfig_list_embedded import SettingsSambaconfigListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambaconfigListEmbedded(unittest.TestCase): + """SettingsSambaconfigListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSambaconfigListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_sambaconfig_list_embedded.SettingsSambaconfigListEmbedded() # noqa: E501 + if include_optional : + return SettingsSambaconfigListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsSambaconfigListEmbedded( + ) + + def testSettingsSambaconfigListEmbedded(self): + """Test SettingsSambaconfigListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambaconfig_request.py b/test/test_settings_sambaconfig_request.py new file mode 100644 index 0000000..9e112fe --- /dev/null +++ b/test/test_settings_sambaconfig_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambaconfig_request import SettingsSambaconfigRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambaconfigRequest(unittest.TestCase): + """SettingsSambaconfigRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsSambaconfigRequest(self): + """Test SettingsSambaconfigRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambaconfig_request_patch.py b/test/test_settings_sambaconfig_request_patch.py new file mode 100644 index 0000000..9d00f0e --- /dev/null +++ b/test/test_settings_sambaconfig_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambaconfig_request_patch import SettingsSambaconfigRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambaconfigRequestPatch(unittest.TestCase): + """SettingsSambaconfigRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSambaconfigRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_sambaconfig_request_patch.SettingsSambaconfigRequestPatch() # noqa: E501 + if include_optional : + return SettingsSambaconfigRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsSambaconfigRequestPatch( + ) + + def testSettingsSambaconfigRequestPatch(self): + """Test SettingsSambaconfigRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambaconfig_response_mixin.py b/test/test_settings_sambaconfig_response_mixin.py new file mode 100644 index 0000000..dea6669 --- /dev/null +++ b/test/test_settings_sambaconfig_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambaconfig_response_mixin import SettingsSambaconfigResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambaconfigResponseMixin(unittest.TestCase): + """SettingsSambaconfigResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSambaconfigResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_sambaconfig_response_mixin.SettingsSambaconfigResponseMixin() # noqa: E501 + if include_optional : + return SettingsSambaconfigResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/sambaconfig/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsSambaconfigResponseMixin( + ) + + def testSettingsSambaconfigResponseMixin(self): + """Test SettingsSambaconfigResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambadomain.py b/test/test_settings_sambadomain.py new file mode 100644 index 0000000..cd22a8f --- /dev/null +++ b/test/test_settings_sambadomain.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambadomain import SettingsSambadomain # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambadomain(unittest.TestCase): + """SettingsSambadomain unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsSambadomain(self): + """Test SettingsSambadomain""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambadomain_api.py b/test/test_settings_sambadomain_api.py new file mode 100644 index 0000000..bdffb72 --- /dev/null +++ b/test/test_settings_sambadomain_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_sambadomain_api import SettingsSambadomainApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsSambadomainApi(unittest.TestCase): + """SettingsSambadomainApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_sambadomain_api.SettingsSambadomainApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_sambadomain_object(self): + """Test case for udm_settings_sambadomain_object + + Get a representation of the Samba Domain object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_sambadomain_object_create(self): + """Test case for udm_settings_sambadomain_object_create + + Create a new Samba Domain object # noqa: E501 + """ + pass + + def test_udm_settings_sambadomain_object_modify(self): + """Test case for udm_settings_sambadomain_object_modify + + Modify or move an Samba Domain object # noqa: E501 + """ + pass + + def test_udm_settings_sambadomain_object_remove(self): + """Test case for udm_settings_sambadomain_object_remove + + Remove a Samba Domains object # noqa: E501 + """ + pass + + def test_udm_settings_sambadomain_object_search(self): + """Test case for udm_settings_sambadomain_object_search + + Search for Samba Domains objects # noqa: E501 + """ + pass + + def test_udm_settings_sambadomain_object_template(self): + """Test case for udm_settings_sambadomain_object_template + + Get a template for creating an Samba Domain object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_sambadomain_object_update(self): + """Test case for udm_settings_sambadomain_object_update + + Modify an Samba Domain object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambadomain_list.py b/test/test_settings_sambadomain_list.py new file mode 100644 index 0000000..6bba547 --- /dev/null +++ b/test/test_settings_sambadomain_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambadomain_list import SettingsSambadomainList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambadomainList(unittest.TestCase): + """SettingsSambadomainList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSambadomainList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_sambadomain_list.SettingsSambadomainList() # noqa: E501 + if include_optional : + return SettingsSambadomainList( + embedded = openapi_client_udm.models.settings_sambadomain_list__embedded.settings_sambadomain_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsSambadomainList( + ) + + def testSettingsSambadomainList(self): + """Test SettingsSambadomainList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambadomain_list_embedded.py b/test/test_settings_sambadomain_list_embedded.py new file mode 100644 index 0000000..695e719 --- /dev/null +++ b/test/test_settings_sambadomain_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambadomain_list_embedded import SettingsSambadomainListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambadomainListEmbedded(unittest.TestCase): + """SettingsSambadomainListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSambadomainListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_sambadomain_list_embedded.SettingsSambadomainListEmbedded() # noqa: E501 + if include_optional : + return SettingsSambadomainListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsSambadomainListEmbedded( + ) + + def testSettingsSambadomainListEmbedded(self): + """Test SettingsSambadomainListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambadomain_request.py b/test/test_settings_sambadomain_request.py new file mode 100644 index 0000000..901c21f --- /dev/null +++ b/test/test_settings_sambadomain_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambadomain_request import SettingsSambadomainRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambadomainRequest(unittest.TestCase): + """SettingsSambadomainRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsSambadomainRequest(self): + """Test SettingsSambadomainRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambadomain_request_patch.py b/test/test_settings_sambadomain_request_patch.py new file mode 100644 index 0000000..ec622ab --- /dev/null +++ b/test/test_settings_sambadomain_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambadomain_request_patch import SettingsSambadomainRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambadomainRequestPatch(unittest.TestCase): + """SettingsSambadomainRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSambadomainRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_sambadomain_request_patch.SettingsSambadomainRequestPatch() # noqa: E501 + if include_optional : + return SettingsSambadomainRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsSambadomainRequestPatch( + ) + + def testSettingsSambadomainRequestPatch(self): + """Test SettingsSambadomainRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_sambadomain_response_mixin.py b/test/test_settings_sambadomain_response_mixin.py new file mode 100644 index 0000000..65c03a0 --- /dev/null +++ b/test/test_settings_sambadomain_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_sambadomain_response_mixin import SettingsSambadomainResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSambadomainResponseMixin(unittest.TestCase): + """SettingsSambadomainResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSambadomainResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_sambadomain_response_mixin.SettingsSambadomainResponseMixin() # noqa: E501 + if include_optional : + return SettingsSambadomainResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/sambadomain/sambaDomainName={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsSambadomainResponseMixin( + ) + + def testSettingsSambadomainResponseMixin(self): + """Test SettingsSambadomainResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_service.py b/test/test_settings_service.py new file mode 100644 index 0000000..9f1c280 --- /dev/null +++ b/test/test_settings_service.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_service import SettingsService # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsService(unittest.TestCase): + """SettingsService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsService(self): + """Test SettingsService""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_service_api.py b/test/test_settings_service_api.py new file mode 100644 index 0000000..bb5b8cc --- /dev/null +++ b/test/test_settings_service_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_service_api import SettingsServiceApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsServiceApi(unittest.TestCase): + """SettingsServiceApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_service_api.SettingsServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_service_object(self): + """Test case for udm_settings_service_object + + Get a representation of the Service object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_service_object_create(self): + """Test case for udm_settings_service_object_create + + Create a new Service object # noqa: E501 + """ + pass + + def test_udm_settings_service_object_modify(self): + """Test case for udm_settings_service_object_modify + + Modify or move an Service object # noqa: E501 + """ + pass + + def test_udm_settings_service_object_remove(self): + """Test case for udm_settings_service_object_remove + + Remove a Services object # noqa: E501 + """ + pass + + def test_udm_settings_service_object_search(self): + """Test case for udm_settings_service_object_search + + Search for Services objects # noqa: E501 + """ + pass + + def test_udm_settings_service_object_template(self): + """Test case for udm_settings_service_object_template + + Get a template for creating an Service object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_service_object_update(self): + """Test case for udm_settings_service_object_update + + Modify an Service object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_service_list.py b/test/test_settings_service_list.py new file mode 100644 index 0000000..cdab28a --- /dev/null +++ b/test/test_settings_service_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_service_list import SettingsServiceList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsServiceList(unittest.TestCase): + """SettingsServiceList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsServiceList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_service_list.SettingsServiceList() # noqa: E501 + if include_optional : + return SettingsServiceList( + embedded = openapi_client_udm.models.settings_service_list__embedded.settings_service_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsServiceList( + ) + + def testSettingsServiceList(self): + """Test SettingsServiceList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_service_list_embedded.py b/test/test_settings_service_list_embedded.py new file mode 100644 index 0000000..4f389c9 --- /dev/null +++ b/test/test_settings_service_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_service_list_embedded import SettingsServiceListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsServiceListEmbedded(unittest.TestCase): + """SettingsServiceListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsServiceListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_service_list_embedded.SettingsServiceListEmbedded() # noqa: E501 + if include_optional : + return SettingsServiceListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsServiceListEmbedded( + ) + + def testSettingsServiceListEmbedded(self): + """Test SettingsServiceListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_service_request.py b/test/test_settings_service_request.py new file mode 100644 index 0000000..d87b19b --- /dev/null +++ b/test/test_settings_service_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_service_request import SettingsServiceRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsServiceRequest(unittest.TestCase): + """SettingsServiceRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsServiceRequest(self): + """Test SettingsServiceRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_service_request_patch.py b/test/test_settings_service_request_patch.py new file mode 100644 index 0000000..8a8798b --- /dev/null +++ b/test/test_settings_service_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_service_request_patch import SettingsServiceRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsServiceRequestPatch(unittest.TestCase): + """SettingsServiceRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsServiceRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_service_request_patch.SettingsServiceRequestPatch() # noqa: E501 + if include_optional : + return SettingsServiceRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsServiceRequestPatch( + ) + + def testSettingsServiceRequestPatch(self): + """Test SettingsServiceRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_service_response_mixin.py b/test/test_settings_service_response_mixin.py new file mode 100644 index 0000000..186ac9a --- /dev/null +++ b/test/test_settings_service_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_service_response_mixin import SettingsServiceResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsServiceResponseMixin(unittest.TestCase): + """SettingsServiceResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsServiceResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_service_response_mixin.SettingsServiceResponseMixin() # noqa: E501 + if include_optional : + return SettingsServiceResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/service/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsServiceResponseMixin( + ) + + def testSettingsServiceResponseMixin(self): + """Test SettingsServiceResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_settings.py b/test/test_settings_settings.py new file mode 100644 index 0000000..379bf36 --- /dev/null +++ b/test/test_settings_settings.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_settings import SettingsSettings # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSettings(unittest.TestCase): + """SettingsSettings unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsSettings(self): + """Test SettingsSettings""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_settings_api.py b/test/test_settings_settings_api.py new file mode 100644 index 0000000..ca88aa0 --- /dev/null +++ b/test/test_settings_settings_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_settings_api import SettingsSettingsApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsSettingsApi(unittest.TestCase): + """SettingsSettingsApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_settings_api.SettingsSettingsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_settings_object(self): + """Test case for udm_settings_settings_object + + Get a representation of the Preference object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_settings_object_search(self): + """Test case for udm_settings_settings_object_search + + Search for Preferences objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_settings_list.py b/test/test_settings_settings_list.py new file mode 100644 index 0000000..8e18c1a --- /dev/null +++ b/test/test_settings_settings_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_settings_list import SettingsSettingsList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSettingsList(unittest.TestCase): + """SettingsSettingsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSettingsList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_settings_list.SettingsSettingsList() # noqa: E501 + if include_optional : + return SettingsSettingsList( + embedded = openapi_client_udm.models.settings_settings_list__embedded.settings_settings_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsSettingsList( + ) + + def testSettingsSettingsList(self): + """Test SettingsSettingsList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_settings_list_embedded.py b/test/test_settings_settings_list_embedded.py new file mode 100644 index 0000000..506af28 --- /dev/null +++ b/test/test_settings_settings_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_settings_list_embedded import SettingsSettingsListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSettingsListEmbedded(unittest.TestCase): + """SettingsSettingsListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSettingsListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_settings_list_embedded.SettingsSettingsListEmbedded() # noqa: E501 + if include_optional : + return SettingsSettingsListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsSettingsListEmbedded( + ) + + def testSettingsSettingsListEmbedded(self): + """Test SettingsSettingsListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_settings_request.py b/test/test_settings_settings_request.py new file mode 100644 index 0000000..f5c50b2 --- /dev/null +++ b/test/test_settings_settings_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_settings_request import SettingsSettingsRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSettingsRequest(unittest.TestCase): + """SettingsSettingsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsSettingsRequest(self): + """Test SettingsSettingsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_settings_request_patch.py b/test/test_settings_settings_request_patch.py new file mode 100644 index 0000000..330463d --- /dev/null +++ b/test/test_settings_settings_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_settings_request_patch import SettingsSettingsRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSettingsRequestPatch(unittest.TestCase): + """SettingsSettingsRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSettingsRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_settings_request_patch.SettingsSettingsRequestPatch() # noqa: E501 + if include_optional : + return SettingsSettingsRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsSettingsRequestPatch( + ) + + def testSettingsSettingsRequestPatch(self): + """Test SettingsSettingsRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_settings_response_mixin.py b/test/test_settings_settings_response_mixin.py new file mode 100644 index 0000000..fb7108f --- /dev/null +++ b/test/test_settings_settings_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_settings_response_mixin import SettingsSettingsResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSettingsResponseMixin(unittest.TestCase): + """SettingsSettingsResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSettingsResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_settings_response_mixin.SettingsSettingsResponseMixin() # noqa: E501 + if include_optional : + return SettingsSettingsResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/settings/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsSettingsResponseMixin( + ) + + def testSettingsSettingsResponseMixin(self): + """Test SettingsSettingsResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_syntax.py b/test/test_settings_syntax.py new file mode 100644 index 0000000..8c3fcb0 --- /dev/null +++ b/test/test_settings_syntax.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_syntax import SettingsSyntax # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSyntax(unittest.TestCase): + """SettingsSyntax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsSyntax(self): + """Test SettingsSyntax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_syntax_api.py b/test/test_settings_syntax_api.py new file mode 100644 index 0000000..acd49d3 --- /dev/null +++ b/test/test_settings_syntax_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_syntax_api import SettingsSyntaxApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsSyntaxApi(unittest.TestCase): + """SettingsSyntaxApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_syntax_api.SettingsSyntaxApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_syntax_object(self): + """Test case for udm_settings_syntax_object + + Get a representation of the Syntax Definition object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_syntax_object_create(self): + """Test case for udm_settings_syntax_object_create + + Create a new Syntax Definition object # noqa: E501 + """ + pass + + def test_udm_settings_syntax_object_modify(self): + """Test case for udm_settings_syntax_object_modify + + Modify or move an Syntax Definition object # noqa: E501 + """ + pass + + def test_udm_settings_syntax_object_remove(self): + """Test case for udm_settings_syntax_object_remove + + Remove a Syntax Definitions object # noqa: E501 + """ + pass + + def test_udm_settings_syntax_object_search(self): + """Test case for udm_settings_syntax_object_search + + Search for Syntax Definitions objects # noqa: E501 + """ + pass + + def test_udm_settings_syntax_object_template(self): + """Test case for udm_settings_syntax_object_template + + Get a template for creating an Syntax Definition object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_syntax_object_update(self): + """Test case for udm_settings_syntax_object_update + + Modify an Syntax Definition object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_syntax_list.py b/test/test_settings_syntax_list.py new file mode 100644 index 0000000..9c13923 --- /dev/null +++ b/test/test_settings_syntax_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_syntax_list import SettingsSyntaxList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSyntaxList(unittest.TestCase): + """SettingsSyntaxList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSyntaxList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_syntax_list.SettingsSyntaxList() # noqa: E501 + if include_optional : + return SettingsSyntaxList( + embedded = openapi_client_udm.models.settings_syntax_list__embedded.settings_syntax_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsSyntaxList( + ) + + def testSettingsSyntaxList(self): + """Test SettingsSyntaxList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_syntax_list_embedded.py b/test/test_settings_syntax_list_embedded.py new file mode 100644 index 0000000..9c30bec --- /dev/null +++ b/test/test_settings_syntax_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_syntax_list_embedded import SettingsSyntaxListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSyntaxListEmbedded(unittest.TestCase): + """SettingsSyntaxListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSyntaxListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_syntax_list_embedded.SettingsSyntaxListEmbedded() # noqa: E501 + if include_optional : + return SettingsSyntaxListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsSyntaxListEmbedded( + ) + + def testSettingsSyntaxListEmbedded(self): + """Test SettingsSyntaxListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_syntax_request.py b/test/test_settings_syntax_request.py new file mode 100644 index 0000000..a4f4c69 --- /dev/null +++ b/test/test_settings_syntax_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_syntax_request import SettingsSyntaxRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSyntaxRequest(unittest.TestCase): + """SettingsSyntaxRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsSyntaxRequest(self): + """Test SettingsSyntaxRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_syntax_request_patch.py b/test/test_settings_syntax_request_patch.py new file mode 100644 index 0000000..2a8273d --- /dev/null +++ b/test/test_settings_syntax_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_syntax_request_patch import SettingsSyntaxRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSyntaxRequestPatch(unittest.TestCase): + """SettingsSyntaxRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSyntaxRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_syntax_request_patch.SettingsSyntaxRequestPatch() # noqa: E501 + if include_optional : + return SettingsSyntaxRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsSyntaxRequestPatch( + ) + + def testSettingsSyntaxRequestPatch(self): + """Test SettingsSyntaxRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_syntax_response_mixin.py b/test/test_settings_syntax_response_mixin.py new file mode 100644 index 0000000..2dc776d --- /dev/null +++ b/test/test_settings_syntax_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_syntax_response_mixin import SettingsSyntaxResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsSyntaxResponseMixin(unittest.TestCase): + """SettingsSyntaxResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsSyntaxResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_syntax_response_mixin.SettingsSyntaxResponseMixin() # noqa: E501 + if include_optional : + return SettingsSyntaxResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/syntax/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsSyntaxResponseMixin( + ) + + def testSettingsSyntaxResponseMixin(self): + """Test SettingsSyntaxResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_hook.py b/test/test_settings_udm_hook.py new file mode 100644 index 0000000..8e478e2 --- /dev/null +++ b/test/test_settings_udm_hook.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_hook import SettingsUdmHook # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmHook(unittest.TestCase): + """SettingsUdmHook unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUdmHook(self): + """Test SettingsUdmHook""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_hook_api.py b/test/test_settings_udm_hook_api.py new file mode 100644 index 0000000..ee52d73 --- /dev/null +++ b/test/test_settings_udm_hook_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_udm_hook_api import SettingsUdmHookApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsUdmHookApi(unittest.TestCase): + """SettingsUdmHookApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_udm_hook_api.SettingsUdmHookApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_udm_hook_object(self): + """Test case for udm_settings_udm_hook_object + + Get a representation of the UDM Hook object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_udm_hook_object_create(self): + """Test case for udm_settings_udm_hook_object_create + + Create a new UDM Hook object # noqa: E501 + """ + pass + + def test_udm_settings_udm_hook_object_modify(self): + """Test case for udm_settings_udm_hook_object_modify + + Modify or move an UDM Hook object # noqa: E501 + """ + pass + + def test_udm_settings_udm_hook_object_remove(self): + """Test case for udm_settings_udm_hook_object_remove + + Remove a UDM Hooks object # noqa: E501 + """ + pass + + def test_udm_settings_udm_hook_object_search(self): + """Test case for udm_settings_udm_hook_object_search + + Search for UDM Hooks objects # noqa: E501 + """ + pass + + def test_udm_settings_udm_hook_object_template(self): + """Test case for udm_settings_udm_hook_object_template + + Get a template for creating an UDM Hook object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_udm_hook_object_update(self): + """Test case for udm_settings_udm_hook_object_update + + Modify an UDM Hook object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_hook_list.py b/test/test_settings_udm_hook_list.py new file mode 100644 index 0000000..53b2467 --- /dev/null +++ b/test/test_settings_udm_hook_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_hook_list import SettingsUdmHookList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmHookList(unittest.TestCase): + """SettingsUdmHookList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmHookList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_hook_list.SettingsUdmHookList() # noqa: E501 + if include_optional : + return SettingsUdmHookList( + embedded = openapi_client_udm.models.settings_udm_hook_list__embedded.settings_udm_hook_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsUdmHookList( + ) + + def testSettingsUdmHookList(self): + """Test SettingsUdmHookList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_hook_list_embedded.py b/test/test_settings_udm_hook_list_embedded.py new file mode 100644 index 0000000..9e823d2 --- /dev/null +++ b/test/test_settings_udm_hook_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_hook_list_embedded import SettingsUdmHookListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmHookListEmbedded(unittest.TestCase): + """SettingsUdmHookListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmHookListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_hook_list_embedded.SettingsUdmHookListEmbedded() # noqa: E501 + if include_optional : + return SettingsUdmHookListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsUdmHookListEmbedded( + ) + + def testSettingsUdmHookListEmbedded(self): + """Test SettingsUdmHookListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_hook_request.py b/test/test_settings_udm_hook_request.py new file mode 100644 index 0000000..5a5143d --- /dev/null +++ b/test/test_settings_udm_hook_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_hook_request import SettingsUdmHookRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmHookRequest(unittest.TestCase): + """SettingsUdmHookRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUdmHookRequest(self): + """Test SettingsUdmHookRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_hook_request_patch.py b/test/test_settings_udm_hook_request_patch.py new file mode 100644 index 0000000..499862c --- /dev/null +++ b/test/test_settings_udm_hook_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_hook_request_patch import SettingsUdmHookRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmHookRequestPatch(unittest.TestCase): + """SettingsUdmHookRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmHookRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_hook_request_patch.SettingsUdmHookRequestPatch() # noqa: E501 + if include_optional : + return SettingsUdmHookRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsUdmHookRequestPatch( + ) + + def testSettingsUdmHookRequestPatch(self): + """Test SettingsUdmHookRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_hook_response_mixin.py b/test/test_settings_udm_hook_response_mixin.py new file mode 100644 index 0000000..53f9b37 --- /dev/null +++ b/test/test_settings_udm_hook_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_hook_response_mixin import SettingsUdmHookResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmHookResponseMixin(unittest.TestCase): + """SettingsUdmHookResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmHookResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_hook_response_mixin.SettingsUdmHookResponseMixin() # noqa: E501 + if include_optional : + return SettingsUdmHookResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/udm_hook/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsUdmHookResponseMixin( + ) + + def testSettingsUdmHookResponseMixin(self): + """Test SettingsUdmHookResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_module.py b/test/test_settings_udm_module.py new file mode 100644 index 0000000..36b9eed --- /dev/null +++ b/test/test_settings_udm_module.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_module import SettingsUdmModule # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmModule(unittest.TestCase): + """SettingsUdmModule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUdmModule(self): + """Test SettingsUdmModule""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_module_api.py b/test/test_settings_udm_module_api.py new file mode 100644 index 0000000..c5ad322 --- /dev/null +++ b/test/test_settings_udm_module_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_udm_module_api import SettingsUdmModuleApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsUdmModuleApi(unittest.TestCase): + """SettingsUdmModuleApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_udm_module_api.SettingsUdmModuleApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_udm_module_object(self): + """Test case for udm_settings_udm_module_object + + Get a representation of the UDM Module object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_udm_module_object_create(self): + """Test case for udm_settings_udm_module_object_create + + Create a new UDM Module object # noqa: E501 + """ + pass + + def test_udm_settings_udm_module_object_modify(self): + """Test case for udm_settings_udm_module_object_modify + + Modify or move an UDM Module object # noqa: E501 + """ + pass + + def test_udm_settings_udm_module_object_remove(self): + """Test case for udm_settings_udm_module_object_remove + + Remove a UDM Modules object # noqa: E501 + """ + pass + + def test_udm_settings_udm_module_object_search(self): + """Test case for udm_settings_udm_module_object_search + + Search for UDM Modules objects # noqa: E501 + """ + pass + + def test_udm_settings_udm_module_object_template(self): + """Test case for udm_settings_udm_module_object_template + + Get a template for creating an UDM Module object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_udm_module_object_update(self): + """Test case for udm_settings_udm_module_object_update + + Modify an UDM Module object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_module_list.py b/test/test_settings_udm_module_list.py new file mode 100644 index 0000000..8a938a5 --- /dev/null +++ b/test/test_settings_udm_module_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_module_list import SettingsUdmModuleList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmModuleList(unittest.TestCase): + """SettingsUdmModuleList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmModuleList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_module_list.SettingsUdmModuleList() # noqa: E501 + if include_optional : + return SettingsUdmModuleList( + embedded = openapi_client_udm.models.settings_udm_module_list__embedded.settings_udm_module_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsUdmModuleList( + ) + + def testSettingsUdmModuleList(self): + """Test SettingsUdmModuleList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_module_list_embedded.py b/test/test_settings_udm_module_list_embedded.py new file mode 100644 index 0000000..ab76858 --- /dev/null +++ b/test/test_settings_udm_module_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_module_list_embedded import SettingsUdmModuleListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmModuleListEmbedded(unittest.TestCase): + """SettingsUdmModuleListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmModuleListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_module_list_embedded.SettingsUdmModuleListEmbedded() # noqa: E501 + if include_optional : + return SettingsUdmModuleListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsUdmModuleListEmbedded( + ) + + def testSettingsUdmModuleListEmbedded(self): + """Test SettingsUdmModuleListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_module_request.py b/test/test_settings_udm_module_request.py new file mode 100644 index 0000000..b124414 --- /dev/null +++ b/test/test_settings_udm_module_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_module_request import SettingsUdmModuleRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmModuleRequest(unittest.TestCase): + """SettingsUdmModuleRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUdmModuleRequest(self): + """Test SettingsUdmModuleRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_module_request_patch.py b/test/test_settings_udm_module_request_patch.py new file mode 100644 index 0000000..22298f2 --- /dev/null +++ b/test/test_settings_udm_module_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_module_request_patch import SettingsUdmModuleRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmModuleRequestPatch(unittest.TestCase): + """SettingsUdmModuleRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmModuleRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_module_request_patch.SettingsUdmModuleRequestPatch() # noqa: E501 + if include_optional : + return SettingsUdmModuleRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsUdmModuleRequestPatch( + ) + + def testSettingsUdmModuleRequestPatch(self): + """Test SettingsUdmModuleRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_module_response_mixin.py b/test/test_settings_udm_module_response_mixin.py new file mode 100644 index 0000000..79d038e --- /dev/null +++ b/test/test_settings_udm_module_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_module_response_mixin import SettingsUdmModuleResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmModuleResponseMixin(unittest.TestCase): + """SettingsUdmModuleResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmModuleResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_module_response_mixin.SettingsUdmModuleResponseMixin() # noqa: E501 + if include_optional : + return SettingsUdmModuleResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/udm_module/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsUdmModuleResponseMixin( + ) + + def testSettingsUdmModuleResponseMixin(self): + """Test SettingsUdmModuleResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_syntax.py b/test/test_settings_udm_syntax.py new file mode 100644 index 0000000..91df4e0 --- /dev/null +++ b/test/test_settings_udm_syntax.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_syntax import SettingsUdmSyntax # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmSyntax(unittest.TestCase): + """SettingsUdmSyntax unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUdmSyntax(self): + """Test SettingsUdmSyntax""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_syntax_api.py b/test/test_settings_udm_syntax_api.py new file mode 100644 index 0000000..e8efc0d --- /dev/null +++ b/test/test_settings_udm_syntax_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_udm_syntax_api import SettingsUdmSyntaxApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsUdmSyntaxApi(unittest.TestCase): + """SettingsUdmSyntaxApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_udm_syntax_api.SettingsUdmSyntaxApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_udm_syntax_object(self): + """Test case for udm_settings_udm_syntax_object + + Get a representation of the UDM Syntax object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_udm_syntax_object_create(self): + """Test case for udm_settings_udm_syntax_object_create + + Create a new UDM Syntax object # noqa: E501 + """ + pass + + def test_udm_settings_udm_syntax_object_modify(self): + """Test case for udm_settings_udm_syntax_object_modify + + Modify or move an UDM Syntax object # noqa: E501 + """ + pass + + def test_udm_settings_udm_syntax_object_remove(self): + """Test case for udm_settings_udm_syntax_object_remove + + Remove a UDM Syntaxes object # noqa: E501 + """ + pass + + def test_udm_settings_udm_syntax_object_search(self): + """Test case for udm_settings_udm_syntax_object_search + + Search for UDM Syntaxes objects # noqa: E501 + """ + pass + + def test_udm_settings_udm_syntax_object_template(self): + """Test case for udm_settings_udm_syntax_object_template + + Get a template for creating an UDM Syntax object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_udm_syntax_object_update(self): + """Test case for udm_settings_udm_syntax_object_update + + Modify an UDM Syntax object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_syntax_list.py b/test/test_settings_udm_syntax_list.py new file mode 100644 index 0000000..27c62f1 --- /dev/null +++ b/test/test_settings_udm_syntax_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_syntax_list import SettingsUdmSyntaxList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmSyntaxList(unittest.TestCase): + """SettingsUdmSyntaxList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmSyntaxList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_syntax_list.SettingsUdmSyntaxList() # noqa: E501 + if include_optional : + return SettingsUdmSyntaxList( + embedded = openapi_client_udm.models.settings_udm_syntax_list__embedded.settings_udm_syntax_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsUdmSyntaxList( + ) + + def testSettingsUdmSyntaxList(self): + """Test SettingsUdmSyntaxList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_syntax_list_embedded.py b/test/test_settings_udm_syntax_list_embedded.py new file mode 100644 index 0000000..bad2d45 --- /dev/null +++ b/test/test_settings_udm_syntax_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_syntax_list_embedded import SettingsUdmSyntaxListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmSyntaxListEmbedded(unittest.TestCase): + """SettingsUdmSyntaxListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmSyntaxListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_syntax_list_embedded.SettingsUdmSyntaxListEmbedded() # noqa: E501 + if include_optional : + return SettingsUdmSyntaxListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsUdmSyntaxListEmbedded( + ) + + def testSettingsUdmSyntaxListEmbedded(self): + """Test SettingsUdmSyntaxListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_syntax_request.py b/test/test_settings_udm_syntax_request.py new file mode 100644 index 0000000..907f2f4 --- /dev/null +++ b/test/test_settings_udm_syntax_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_syntax_request import SettingsUdmSyntaxRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmSyntaxRequest(unittest.TestCase): + """SettingsUdmSyntaxRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUdmSyntaxRequest(self): + """Test SettingsUdmSyntaxRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_syntax_request_patch.py b/test/test_settings_udm_syntax_request_patch.py new file mode 100644 index 0000000..ddea457 --- /dev/null +++ b/test/test_settings_udm_syntax_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_syntax_request_patch import SettingsUdmSyntaxRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmSyntaxRequestPatch(unittest.TestCase): + """SettingsUdmSyntaxRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmSyntaxRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_syntax_request_patch.SettingsUdmSyntaxRequestPatch() # noqa: E501 + if include_optional : + return SettingsUdmSyntaxRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsUdmSyntaxRequestPatch( + ) + + def testSettingsUdmSyntaxRequestPatch(self): + """Test SettingsUdmSyntaxRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_udm_syntax_response_mixin.py b/test/test_settings_udm_syntax_response_mixin.py new file mode 100644 index 0000000..9b22fcf --- /dev/null +++ b/test/test_settings_udm_syntax_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_udm_syntax_response_mixin import SettingsUdmSyntaxResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUdmSyntaxResponseMixin(unittest.TestCase): + """SettingsUdmSyntaxResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUdmSyntaxResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_udm_syntax_response_mixin.SettingsUdmSyntaxResponseMixin() # noqa: E501 + if include_optional : + return SettingsUdmSyntaxResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/udm_syntax/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsUdmSyntaxResponseMixin( + ) + + def testSettingsUdmSyntaxResponseMixin(self): + """Test SettingsUdmSyntaxResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_umc_operationset.py b/test/test_settings_umc_operationset.py new file mode 100644 index 0000000..dad53eb --- /dev/null +++ b/test/test_settings_umc_operationset.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_umc_operationset import SettingsUmcOperationset # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUmcOperationset(unittest.TestCase): + """SettingsUmcOperationset unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUmcOperationset(self): + """Test SettingsUmcOperationset""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_umc_operationset_api.py b/test/test_settings_umc_operationset_api.py new file mode 100644 index 0000000..10a397f --- /dev/null +++ b/test/test_settings_umc_operationset_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_umc_operationset_api import SettingsUmcOperationsetApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsUmcOperationsetApi(unittest.TestCase): + """SettingsUmcOperationsetApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_umc_operationset_api.SettingsUmcOperationsetApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_umc_operationset_object(self): + """Test case for udm_settings_umc_operationset_object + + Get a representation of the UMC operation set object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_umc_operationset_object_create(self): + """Test case for udm_settings_umc_operationset_object_create + + Create a new UMC operation set object # noqa: E501 + """ + pass + + def test_udm_settings_umc_operationset_object_modify(self): + """Test case for udm_settings_umc_operationset_object_modify + + Modify or move an UMC operation set object # noqa: E501 + """ + pass + + def test_udm_settings_umc_operationset_object_remove(self): + """Test case for udm_settings_umc_operationset_object_remove + + Remove a UMC operation sets object # noqa: E501 + """ + pass + + def test_udm_settings_umc_operationset_object_search(self): + """Test case for udm_settings_umc_operationset_object_search + + Search for UMC operation sets objects # noqa: E501 + """ + pass + + def test_udm_settings_umc_operationset_object_template(self): + """Test case for udm_settings_umc_operationset_object_template + + Get a template for creating an UMC operation set object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_umc_operationset_object_update(self): + """Test case for udm_settings_umc_operationset_object_update + + Modify an UMC operation set object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_umc_operationset_list.py b/test/test_settings_umc_operationset_list.py new file mode 100644 index 0000000..2874591 --- /dev/null +++ b/test/test_settings_umc_operationset_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_umc_operationset_list import SettingsUmcOperationsetList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUmcOperationsetList(unittest.TestCase): + """SettingsUmcOperationsetList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUmcOperationsetList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_umc_operationset_list.SettingsUmcOperationsetList() # noqa: E501 + if include_optional : + return SettingsUmcOperationsetList( + embedded = openapi_client_udm.models.settings_umc_operationset_list__embedded.settings_umc_operationset_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsUmcOperationsetList( + ) + + def testSettingsUmcOperationsetList(self): + """Test SettingsUmcOperationsetList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_umc_operationset_list_embedded.py b/test/test_settings_umc_operationset_list_embedded.py new file mode 100644 index 0000000..1a578d2 --- /dev/null +++ b/test/test_settings_umc_operationset_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_umc_operationset_list_embedded import SettingsUmcOperationsetListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUmcOperationsetListEmbedded(unittest.TestCase): + """SettingsUmcOperationsetListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUmcOperationsetListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_umc_operationset_list_embedded.SettingsUmcOperationsetListEmbedded() # noqa: E501 + if include_optional : + return SettingsUmcOperationsetListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsUmcOperationsetListEmbedded( + ) + + def testSettingsUmcOperationsetListEmbedded(self): + """Test SettingsUmcOperationsetListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_umc_operationset_request.py b/test/test_settings_umc_operationset_request.py new file mode 100644 index 0000000..85d54de --- /dev/null +++ b/test/test_settings_umc_operationset_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_umc_operationset_request import SettingsUmcOperationsetRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUmcOperationsetRequest(unittest.TestCase): + """SettingsUmcOperationsetRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUmcOperationsetRequest(self): + """Test SettingsUmcOperationsetRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_umc_operationset_request_patch.py b/test/test_settings_umc_operationset_request_patch.py new file mode 100644 index 0000000..f07380d --- /dev/null +++ b/test/test_settings_umc_operationset_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_umc_operationset_request_patch import SettingsUmcOperationsetRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUmcOperationsetRequestPatch(unittest.TestCase): + """SettingsUmcOperationsetRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUmcOperationsetRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_umc_operationset_request_patch.SettingsUmcOperationsetRequestPatch() # noqa: E501 + if include_optional : + return SettingsUmcOperationsetRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsUmcOperationsetRequestPatch( + ) + + def testSettingsUmcOperationsetRequestPatch(self): + """Test SettingsUmcOperationsetRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_umc_operationset_response_mixin.py b/test/test_settings_umc_operationset_response_mixin.py new file mode 100644 index 0000000..fbf6ed9 --- /dev/null +++ b/test/test_settings_umc_operationset_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_umc_operationset_response_mixin import SettingsUmcOperationsetResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUmcOperationsetResponseMixin(unittest.TestCase): + """SettingsUmcOperationsetResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUmcOperationsetResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_umc_operationset_response_mixin.SettingsUmcOperationsetResponseMixin() # noqa: E501 + if include_optional : + return SettingsUmcOperationsetResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/umc_operationset/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsUmcOperationsetResponseMixin( + ) + + def testSettingsUmcOperationsetResponseMixin(self): + """Test SettingsUmcOperationsetResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_usertemplate.py b/test/test_settings_usertemplate.py new file mode 100644 index 0000000..c1c7075 --- /dev/null +++ b/test/test_settings_usertemplate.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_usertemplate import SettingsUsertemplate # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUsertemplate(unittest.TestCase): + """SettingsUsertemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUsertemplate(self): + """Test SettingsUsertemplate""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_usertemplate_api.py b/test/test_settings_usertemplate_api.py new file mode 100644 index 0000000..df7b537 --- /dev/null +++ b/test/test_settings_usertemplate_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.settings_usertemplate_api import SettingsUsertemplateApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSettingsUsertemplateApi(unittest.TestCase): + """SettingsUsertemplateApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.settings_usertemplate_api.SettingsUsertemplateApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_settings_usertemplate_object(self): + """Test case for udm_settings_usertemplate_object + + Get a representation of the User Template object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_settings_usertemplate_object_create(self): + """Test case for udm_settings_usertemplate_object_create + + Create a new User Template object # noqa: E501 + """ + pass + + def test_udm_settings_usertemplate_object_modify(self): + """Test case for udm_settings_usertemplate_object_modify + + Modify or move an User Template object # noqa: E501 + """ + pass + + def test_udm_settings_usertemplate_object_remove(self): + """Test case for udm_settings_usertemplate_object_remove + + Remove a User Templates object # noqa: E501 + """ + pass + + def test_udm_settings_usertemplate_object_search(self): + """Test case for udm_settings_usertemplate_object_search + + Search for User Templates objects # noqa: E501 + """ + pass + + def test_udm_settings_usertemplate_object_template(self): + """Test case for udm_settings_usertemplate_object_template + + Get a template for creating an User Template object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_settings_usertemplate_object_update(self): + """Test case for udm_settings_usertemplate_object_update + + Modify an User Template object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_usertemplate_list.py b/test/test_settings_usertemplate_list.py new file mode 100644 index 0000000..c392aeb --- /dev/null +++ b/test/test_settings_usertemplate_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_usertemplate_list import SettingsUsertemplateList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUsertemplateList(unittest.TestCase): + """SettingsUsertemplateList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUsertemplateList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_usertemplate_list.SettingsUsertemplateList() # noqa: E501 + if include_optional : + return SettingsUsertemplateList( + embedded = openapi_client_udm.models.settings_usertemplate_list__embedded.settings_usertemplate_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SettingsUsertemplateList( + ) + + def testSettingsUsertemplateList(self): + """Test SettingsUsertemplateList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_usertemplate_list_embedded.py b/test/test_settings_usertemplate_list_embedded.py new file mode 100644 index 0000000..4faad35 --- /dev/null +++ b/test/test_settings_usertemplate_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_usertemplate_list_embedded import SettingsUsertemplateListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUsertemplateListEmbedded(unittest.TestCase): + """SettingsUsertemplateListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUsertemplateListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_usertemplate_list_embedded.SettingsUsertemplateListEmbedded() # noqa: E501 + if include_optional : + return SettingsUsertemplateListEmbedded( + udmobject = [ + null + ] + ) + else : + return SettingsUsertemplateListEmbedded( + ) + + def testSettingsUsertemplateListEmbedded(self): + """Test SettingsUsertemplateListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_usertemplate_request.py b/test/test_settings_usertemplate_request.py new file mode 100644 index 0000000..fea35d4 --- /dev/null +++ b/test/test_settings_usertemplate_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_usertemplate_request import SettingsUsertemplateRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUsertemplateRequest(unittest.TestCase): + """SettingsUsertemplateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSettingsUsertemplateRequest(self): + """Test SettingsUsertemplateRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_usertemplate_request_patch.py b/test/test_settings_usertemplate_request_patch.py new file mode 100644 index 0000000..7d6189f --- /dev/null +++ b/test/test_settings_usertemplate_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_usertemplate_request_patch import SettingsUsertemplateRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUsertemplateRequestPatch(unittest.TestCase): + """SettingsUsertemplateRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUsertemplateRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_usertemplate_request_patch.SettingsUsertemplateRequestPatch() # noqa: E501 + if include_optional : + return SettingsUsertemplateRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SettingsUsertemplateRequestPatch( + ) + + def testSettingsUsertemplateRequestPatch(self): + """Test SettingsUsertemplateRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_settings_usertemplate_response_mixin.py b/test/test_settings_usertemplate_response_mixin.py new file mode 100644 index 0000000..221017f --- /dev/null +++ b/test/test_settings_usertemplate_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.settings_usertemplate_response_mixin import SettingsUsertemplateResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSettingsUsertemplateResponseMixin(unittest.TestCase): + """SettingsUsertemplateResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SettingsUsertemplateResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.settings_usertemplate_response_mixin.SettingsUsertemplateResponseMixin() # noqa: E501 + if include_optional : + return SettingsUsertemplateResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/settings/usertemplate/cn={value},dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SettingsUsertemplateResponseMixin( + ) + + def testSettingsUsertemplateResponseMixin(self): + """Test SettingsUsertemplateResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_print.py b/test/test_shares_print.py new file mode 100644 index 0000000..64ef47e --- /dev/null +++ b/test/test_shares_print.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_print import SharesPrint # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrint(unittest.TestCase): + """SharesPrint unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSharesPrint(self): + """Test SharesPrint""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_print_api.py b/test/test_shares_print_api.py new file mode 100644 index 0000000..80f0d38 --- /dev/null +++ b/test/test_shares_print_api.py @@ -0,0 +1,47 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.shares_print_api import SharesPrintApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSharesPrintApi(unittest.TestCase): + """SharesPrintApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.shares_print_api.SharesPrintApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_shares_print_object(self): + """Test case for udm_shares_print_object + + Get a representation of the Printer share object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_shares_print_object_search(self): + """Test case for udm_shares_print_object_search + + Search for Printer shares objects # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_print_list.py b/test/test_shares_print_list.py new file mode 100644 index 0000000..303253f --- /dev/null +++ b/test/test_shares_print_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_print_list import SharesPrintList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintList(unittest.TestCase): + """SharesPrintList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrintList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_print_list.SharesPrintList() # noqa: E501 + if include_optional : + return SharesPrintList( + embedded = openapi_client_udm.models.shares_print_list__embedded.shares_print_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SharesPrintList( + ) + + def testSharesPrintList(self): + """Test SharesPrintList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_print_list_embedded.py b/test/test_shares_print_list_embedded.py new file mode 100644 index 0000000..0215e08 --- /dev/null +++ b/test/test_shares_print_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_print_list_embedded import SharesPrintListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintListEmbedded(unittest.TestCase): + """SharesPrintListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrintListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_print_list_embedded.SharesPrintListEmbedded() # noqa: E501 + if include_optional : + return SharesPrintListEmbedded( + udmobject = [ + null + ] + ) + else : + return SharesPrintListEmbedded( + ) + + def testSharesPrintListEmbedded(self): + """Test SharesPrintListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_print_request.py b/test/test_shares_print_request.py new file mode 100644 index 0000000..0ab1fe7 --- /dev/null +++ b/test/test_shares_print_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_print_request import SharesPrintRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintRequest(unittest.TestCase): + """SharesPrintRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSharesPrintRequest(self): + """Test SharesPrintRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_print_request_patch.py b/test/test_shares_print_request_patch.py new file mode 100644 index 0000000..660820e --- /dev/null +++ b/test/test_shares_print_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_print_request_patch import SharesPrintRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintRequestPatch(unittest.TestCase): + """SharesPrintRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrintRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_print_request_patch.SharesPrintRequestPatch() # noqa: E501 + if include_optional : + return SharesPrintRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SharesPrintRequestPatch( + ) + + def testSharesPrintRequestPatch(self): + """Test SharesPrintRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_print_response_mixin.py b/test/test_shares_print_response_mixin.py new file mode 100644 index 0000000..665c84b --- /dev/null +++ b/test/test_shares_print_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_print_response_mixin import SharesPrintResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintResponseMixin(unittest.TestCase): + """SharesPrintResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrintResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_print_response_mixin.SharesPrintResponseMixin() # noqa: E501 + if include_optional : + return SharesPrintResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/shares/print/cn={value},cn=printers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SharesPrintResponseMixin( + ) + + def testSharesPrintResponseMixin(self): + """Test SharesPrintResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printer.py b/test/test_shares_printer.py new file mode 100644 index 0000000..85c857b --- /dev/null +++ b/test/test_shares_printer.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printer import SharesPrinter # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrinter(unittest.TestCase): + """SharesPrinter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSharesPrinter(self): + """Test SharesPrinter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printer_api.py b/test/test_shares_printer_api.py new file mode 100644 index 0000000..7f71e62 --- /dev/null +++ b/test/test_shares_printer_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.shares_printer_api import SharesPrinterApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSharesPrinterApi(unittest.TestCase): + """SharesPrinterApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.shares_printer_api.SharesPrinterApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_shares_printer_object(self): + """Test case for udm_shares_printer_object + + Get a representation of the Printer object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_shares_printer_object_create(self): + """Test case for udm_shares_printer_object_create + + Create a new Printer object # noqa: E501 + """ + pass + + def test_udm_shares_printer_object_modify(self): + """Test case for udm_shares_printer_object_modify + + Modify or move an Printer object # noqa: E501 + """ + pass + + def test_udm_shares_printer_object_remove(self): + """Test case for udm_shares_printer_object_remove + + Remove a Printers object # noqa: E501 + """ + pass + + def test_udm_shares_printer_object_search(self): + """Test case for udm_shares_printer_object_search + + Search for Printers objects # noqa: E501 + """ + pass + + def test_udm_shares_printer_object_template(self): + """Test case for udm_shares_printer_object_template + + Get a template for creating an Printer object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_shares_printer_object_update(self): + """Test case for udm_shares_printer_object_update + + Modify an Printer object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printer_list.py b/test/test_shares_printer_list.py new file mode 100644 index 0000000..f3afed0 --- /dev/null +++ b/test/test_shares_printer_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printer_list import SharesPrinterList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrinterList(unittest.TestCase): + """SharesPrinterList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrinterList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_printer_list.SharesPrinterList() # noqa: E501 + if include_optional : + return SharesPrinterList( + embedded = openapi_client_udm.models.shares_printer_list__embedded.shares_printer_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SharesPrinterList( + ) + + def testSharesPrinterList(self): + """Test SharesPrinterList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printer_list_embedded.py b/test/test_shares_printer_list_embedded.py new file mode 100644 index 0000000..38fa18b --- /dev/null +++ b/test/test_shares_printer_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printer_list_embedded import SharesPrinterListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrinterListEmbedded(unittest.TestCase): + """SharesPrinterListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrinterListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_printer_list_embedded.SharesPrinterListEmbedded() # noqa: E501 + if include_optional : + return SharesPrinterListEmbedded( + udmobject = [ + null + ] + ) + else : + return SharesPrinterListEmbedded( + ) + + def testSharesPrinterListEmbedded(self): + """Test SharesPrinterListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printer_request.py b/test/test_shares_printer_request.py new file mode 100644 index 0000000..57734a4 --- /dev/null +++ b/test/test_shares_printer_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printer_request import SharesPrinterRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrinterRequest(unittest.TestCase): + """SharesPrinterRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSharesPrinterRequest(self): + """Test SharesPrinterRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printer_request_patch.py b/test/test_shares_printer_request_patch.py new file mode 100644 index 0000000..1ccfc9a --- /dev/null +++ b/test/test_shares_printer_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printer_request_patch import SharesPrinterRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrinterRequestPatch(unittest.TestCase): + """SharesPrinterRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrinterRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_printer_request_patch.SharesPrinterRequestPatch() # noqa: E501 + if include_optional : + return SharesPrinterRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SharesPrinterRequestPatch( + ) + + def testSharesPrinterRequestPatch(self): + """Test SharesPrinterRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printer_response_mixin.py b/test/test_shares_printer_response_mixin.py new file mode 100644 index 0000000..8bbe571 --- /dev/null +++ b/test/test_shares_printer_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printer_response_mixin import SharesPrinterResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrinterResponseMixin(unittest.TestCase): + """SharesPrinterResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrinterResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_printer_response_mixin.SharesPrinterResponseMixin() # noqa: E501 + if include_optional : + return SharesPrinterResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/shares/printer/cn={value},cn=printers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SharesPrinterResponseMixin( + ) + + def testSharesPrinterResponseMixin(self): + """Test SharesPrinterResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printergroup.py b/test/test_shares_printergroup.py new file mode 100644 index 0000000..3691249 --- /dev/null +++ b/test/test_shares_printergroup.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printergroup import SharesPrintergroup # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintergroup(unittest.TestCase): + """SharesPrintergroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSharesPrintergroup(self): + """Test SharesPrintergroup""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printergroup_api.py b/test/test_shares_printergroup_api.py new file mode 100644 index 0000000..db29c48 --- /dev/null +++ b/test/test_shares_printergroup_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.shares_printergroup_api import SharesPrintergroupApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSharesPrintergroupApi(unittest.TestCase): + """SharesPrintergroupApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.shares_printergroup_api.SharesPrintergroupApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_shares_printergroup_object(self): + """Test case for udm_shares_printergroup_object + + Get a representation of the Printer share group object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_shares_printergroup_object_create(self): + """Test case for udm_shares_printergroup_object_create + + Create a new Printer share group object # noqa: E501 + """ + pass + + def test_udm_shares_printergroup_object_modify(self): + """Test case for udm_shares_printergroup_object_modify + + Modify or move an Printer share group object # noqa: E501 + """ + pass + + def test_udm_shares_printergroup_object_remove(self): + """Test case for udm_shares_printergroup_object_remove + + Remove a Printer share groups object # noqa: E501 + """ + pass + + def test_udm_shares_printergroup_object_search(self): + """Test case for udm_shares_printergroup_object_search + + Search for Printer share groups objects # noqa: E501 + """ + pass + + def test_udm_shares_printergroup_object_template(self): + """Test case for udm_shares_printergroup_object_template + + Get a template for creating an Printer share group object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_shares_printergroup_object_update(self): + """Test case for udm_shares_printergroup_object_update + + Modify an Printer share group object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printergroup_list.py b/test/test_shares_printergroup_list.py new file mode 100644 index 0000000..0b40f5f --- /dev/null +++ b/test/test_shares_printergroup_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printergroup_list import SharesPrintergroupList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintergroupList(unittest.TestCase): + """SharesPrintergroupList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrintergroupList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_printergroup_list.SharesPrintergroupList() # noqa: E501 + if include_optional : + return SharesPrintergroupList( + embedded = openapi_client_udm.models.shares_printergroup_list__embedded.shares_printergroup_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SharesPrintergroupList( + ) + + def testSharesPrintergroupList(self): + """Test SharesPrintergroupList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printergroup_list_embedded.py b/test/test_shares_printergroup_list_embedded.py new file mode 100644 index 0000000..46d53f3 --- /dev/null +++ b/test/test_shares_printergroup_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printergroup_list_embedded import SharesPrintergroupListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintergroupListEmbedded(unittest.TestCase): + """SharesPrintergroupListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrintergroupListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_printergroup_list_embedded.SharesPrintergroupListEmbedded() # noqa: E501 + if include_optional : + return SharesPrintergroupListEmbedded( + udmobject = [ + null + ] + ) + else : + return SharesPrintergroupListEmbedded( + ) + + def testSharesPrintergroupListEmbedded(self): + """Test SharesPrintergroupListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printergroup_request.py b/test/test_shares_printergroup_request.py new file mode 100644 index 0000000..7fa0fdc --- /dev/null +++ b/test/test_shares_printergroup_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printergroup_request import SharesPrintergroupRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintergroupRequest(unittest.TestCase): + """SharesPrintergroupRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSharesPrintergroupRequest(self): + """Test SharesPrintergroupRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printergroup_request_patch.py b/test/test_shares_printergroup_request_patch.py new file mode 100644 index 0000000..2a45045 --- /dev/null +++ b/test/test_shares_printergroup_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printergroup_request_patch import SharesPrintergroupRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintergroupRequestPatch(unittest.TestCase): + """SharesPrintergroupRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrintergroupRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_printergroup_request_patch.SharesPrintergroupRequestPatch() # noqa: E501 + if include_optional : + return SharesPrintergroupRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SharesPrintergroupRequestPatch( + ) + + def testSharesPrintergroupRequestPatch(self): + """Test SharesPrintergroupRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_printergroup_response_mixin.py b/test/test_shares_printergroup_response_mixin.py new file mode 100644 index 0000000..6068087 --- /dev/null +++ b/test/test_shares_printergroup_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_printergroup_response_mixin import SharesPrintergroupResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesPrintergroupResponseMixin(unittest.TestCase): + """SharesPrintergroupResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesPrintergroupResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_printergroup_response_mixin.SharesPrintergroupResponseMixin() # noqa: E501 + if include_optional : + return SharesPrintergroupResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/shares/printergroup/cn={value},cn=printers,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SharesPrintergroupResponseMixin( + ) + + def testSharesPrintergroupResponseMixin(self): + """Test SharesPrintergroupResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share.py b/test/test_shares_share.py new file mode 100644 index 0000000..d37a2b5 --- /dev/null +++ b/test/test_shares_share.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_share import SharesShare # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesShare(unittest.TestCase): + """SharesShare unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSharesShare(self): + """Test SharesShare""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share_api.py b/test/test_shares_share_api.py new file mode 100644 index 0000000..3b6d5ee --- /dev/null +++ b/test/test_shares_share_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.shares_share_api import SharesShareApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestSharesShareApi(unittest.TestCase): + """SharesShareApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.shares_share_api.SharesShareApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_shares_share_object(self): + """Test case for udm_shares_share_object + + Get a representation of the Share directory object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_shares_share_object_create(self): + """Test case for udm_shares_share_object_create + + Create a new Share directory object # noqa: E501 + """ + pass + + def test_udm_shares_share_object_modify(self): + """Test case for udm_shares_share_object_modify + + Modify or move an Share directory object # noqa: E501 + """ + pass + + def test_udm_shares_share_object_remove(self): + """Test case for udm_shares_share_object_remove + + Remove a Share directories object # noqa: E501 + """ + pass + + def test_udm_shares_share_object_search(self): + """Test case for udm_shares_share_object_search + + Search for Share directories objects # noqa: E501 + """ + pass + + def test_udm_shares_share_object_template(self): + """Test case for udm_shares_share_object_template + + Get a template for creating an Share directory object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_shares_share_object_update(self): + """Test case for udm_shares_share_object_update + + Modify an Share directory object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share_list.py b/test/test_shares_share_list.py new file mode 100644 index 0000000..f8cd5f4 --- /dev/null +++ b/test/test_shares_share_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_share_list import SharesShareList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesShareList(unittest.TestCase): + """SharesShareList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesShareList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_share_list.SharesShareList() # noqa: E501 + if include_optional : + return SharesShareList( + embedded = openapi_client_udm.models.shares_share_list__embedded.shares_share_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return SharesShareList( + ) + + def testSharesShareList(self): + """Test SharesShareList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share_list_embedded.py b/test/test_shares_share_list_embedded.py new file mode 100644 index 0000000..c4a02f1 --- /dev/null +++ b/test/test_shares_share_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_share_list_embedded import SharesShareListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesShareListEmbedded(unittest.TestCase): + """SharesShareListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesShareListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_share_list_embedded.SharesShareListEmbedded() # noqa: E501 + if include_optional : + return SharesShareListEmbedded( + udmobject = [ + null + ] + ) + else : + return SharesShareListEmbedded( + ) + + def testSharesShareListEmbedded(self): + """Test SharesShareListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share_options.py b/test/test_shares_share_options.py new file mode 100644 index 0000000..b6f0638 --- /dev/null +++ b/test/test_shares_share_options.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_share_options import SharesShareOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesShareOptions(unittest.TestCase): + """SharesShareOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesShareOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_share_options.SharesShareOptions() # noqa: E501 + if include_optional : + return SharesShareOptions( + samba = True, + nfs = True + ) + else : + return SharesShareOptions( + ) + + def testSharesShareOptions(self): + """Test SharesShareOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share_policies.py b/test/test_shares_share_policies.py new file mode 100644 index 0000000..16d6711 --- /dev/null +++ b/test/test_shares_share_policies.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_share_policies import SharesSharePolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesSharePolicies(unittest.TestCase): + """SharesSharePolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesSharePolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_share_policies.SharesSharePolicies() # noqa: E501 + if include_optional : + return SharesSharePolicies( + policies_share_userquota = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return SharesSharePolicies( + ) + + def testSharesSharePolicies(self): + """Test SharesSharePolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share_request.py b/test/test_shares_share_request.py new file mode 100644 index 0000000..42915f1 --- /dev/null +++ b/test/test_shares_share_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_share_request import SharesShareRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesShareRequest(unittest.TestCase): + """SharesShareRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSharesShareRequest(self): + """Test SharesShareRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share_request_patch.py b/test/test_shares_share_request_patch.py new file mode 100644 index 0000000..53b2ac3 --- /dev/null +++ b/test/test_shares_share_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_share_request_patch import SharesShareRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesShareRequestPatch(unittest.TestCase): + """SharesShareRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesShareRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_share_request_patch.SharesShareRequestPatch() # noqa: E501 + if include_optional : + return SharesShareRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return SharesShareRequestPatch( + ) + + def testSharesShareRequestPatch(self): + """Test SharesShareRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_shares_share_response_mixin.py b/test/test_shares_share_response_mixin.py new file mode 100644 index 0000000..6c0e831 --- /dev/null +++ b/test/test_shares_share_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.shares_share_response_mixin import SharesShareResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestSharesShareResponseMixin(unittest.TestCase): + """SharesShareResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SharesShareResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.shares_share_response_mixin.SharesShareResponseMixin() # noqa: E501 + if include_optional : + return SharesShareResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/shares/share/cn={value},cn=shares,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return SharesShareResponseMixin( + ) + + def testSharesShareResponseMixin(self): + """Test SharesShareResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_contact.py b/test/test_users_contact.py new file mode 100644 index 0000000..e8765dc --- /dev/null +++ b/test/test_users_contact.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_contact import UsersContact # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersContact(unittest.TestCase): + """UsersContact unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersContact(self): + """Test UsersContact""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_contact_api.py b/test/test_users_contact_api.py new file mode 100644 index 0000000..18b0752 --- /dev/null +++ b/test/test_users_contact_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.users_contact_api import UsersContactApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUsersContactApi(unittest.TestCase): + """UsersContactApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.users_contact_api.UsersContactApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_users_contact_object(self): + """Test case for udm_users_contact_object + + Get a representation of the Contact object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_users_contact_object_create(self): + """Test case for udm_users_contact_object_create + + Create a new Contact object # noqa: E501 + """ + pass + + def test_udm_users_contact_object_modify(self): + """Test case for udm_users_contact_object_modify + + Modify or move an Contact object # noqa: E501 + """ + pass + + def test_udm_users_contact_object_remove(self): + """Test case for udm_users_contact_object_remove + + Remove a Contact information object # noqa: E501 + """ + pass + + def test_udm_users_contact_object_search(self): + """Test case for udm_users_contact_object_search + + Search for Contact information objects # noqa: E501 + """ + pass + + def test_udm_users_contact_object_template(self): + """Test case for udm_users_contact_object_template + + Get a template for creating an Contact object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_users_contact_object_update(self): + """Test case for udm_users_contact_object_update + + Modify an Contact object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_contact_list.py b/test/test_users_contact_list.py new file mode 100644 index 0000000..2d41f1d --- /dev/null +++ b/test/test_users_contact_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_contact_list import UsersContactList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersContactList(unittest.TestCase): + """UsersContactList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersContactList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_contact_list.UsersContactList() # noqa: E501 + if include_optional : + return UsersContactList( + embedded = openapi_client_udm.models.users_contact_list__embedded.users_contact_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UsersContactList( + ) + + def testUsersContactList(self): + """Test UsersContactList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_contact_list_embedded.py b/test/test_users_contact_list_embedded.py new file mode 100644 index 0000000..f04c582 --- /dev/null +++ b/test/test_users_contact_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_contact_list_embedded import UsersContactListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersContactListEmbedded(unittest.TestCase): + """UsersContactListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersContactListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_contact_list_embedded.UsersContactListEmbedded() # noqa: E501 + if include_optional : + return UsersContactListEmbedded( + udmobject = [ + null + ] + ) + else : + return UsersContactListEmbedded( + ) + + def testUsersContactListEmbedded(self): + """Test UsersContactListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_contact_request.py b/test/test_users_contact_request.py new file mode 100644 index 0000000..7e6af89 --- /dev/null +++ b/test/test_users_contact_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_contact_request import UsersContactRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersContactRequest(unittest.TestCase): + """UsersContactRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersContactRequest(self): + """Test UsersContactRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_contact_request_patch.py b/test/test_users_contact_request_patch.py new file mode 100644 index 0000000..4cf4e38 --- /dev/null +++ b/test/test_users_contact_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_contact_request_patch import UsersContactRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersContactRequestPatch(unittest.TestCase): + """UsersContactRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersContactRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_contact_request_patch.UsersContactRequestPatch() # noqa: E501 + if include_optional : + return UsersContactRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UsersContactRequestPatch( + ) + + def testUsersContactRequestPatch(self): + """Test UsersContactRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_contact_response_mixin.py b/test/test_users_contact_response_mixin.py new file mode 100644 index 0000000..906bd06 --- /dev/null +++ b/test/test_users_contact_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_contact_response_mixin import UsersContactResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersContactResponseMixin(unittest.TestCase): + """UsersContactResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersContactResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_contact_response_mixin.UsersContactResponseMixin() # noqa: E501 + if include_optional : + return UsersContactResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/users/contact/cn={value},cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UsersContactResponseMixin( + ) + + def testUsersContactResponseMixin(self): + """Test UsersContactResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap.py b/test/test_users_ldap.py new file mode 100644 index 0000000..227cdf5 --- /dev/null +++ b/test/test_users_ldap.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_ldap import UsersLdap # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersLdap(unittest.TestCase): + """UsersLdap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersLdap(self): + """Test UsersLdap""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap_api.py b/test/test_users_ldap_api.py new file mode 100644 index 0000000..8b102da --- /dev/null +++ b/test/test_users_ldap_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.users_ldap_api import UsersLdapApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUsersLdapApi(unittest.TestCase): + """UsersLdapApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.users_ldap_api.UsersLdapApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_users_ldap_object(self): + """Test case for udm_users_ldap_object + + Get a representation of the Simple authentication account object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_users_ldap_object_create(self): + """Test case for udm_users_ldap_object_create + + Create a new Simple authentication account object # noqa: E501 + """ + pass + + def test_udm_users_ldap_object_modify(self): + """Test case for udm_users_ldap_object_modify + + Modify or move an Simple authentication account object # noqa: E501 + """ + pass + + def test_udm_users_ldap_object_remove(self): + """Test case for udm_users_ldap_object_remove + + Remove a Simple authentication accounts object # noqa: E501 + """ + pass + + def test_udm_users_ldap_object_search(self): + """Test case for udm_users_ldap_object_search + + Search for Simple authentication accounts objects # noqa: E501 + """ + pass + + def test_udm_users_ldap_object_template(self): + """Test case for udm_users_ldap_object_template + + Get a template for creating an Simple authentication account object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_users_ldap_object_update(self): + """Test case for udm_users_ldap_object_update + + Modify an Simple authentication account object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap_list.py b/test/test_users_ldap_list.py new file mode 100644 index 0000000..d1ae38d --- /dev/null +++ b/test/test_users_ldap_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_ldap_list import UsersLdapList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersLdapList(unittest.TestCase): + """UsersLdapList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersLdapList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_ldap_list.UsersLdapList() # noqa: E501 + if include_optional : + return UsersLdapList( + embedded = openapi_client_udm.models.users_ldap_list__embedded.users_ldap_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UsersLdapList( + ) + + def testUsersLdapList(self): + """Test UsersLdapList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap_list_embedded.py b/test/test_users_ldap_list_embedded.py new file mode 100644 index 0000000..fd508d8 --- /dev/null +++ b/test/test_users_ldap_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_ldap_list_embedded import UsersLdapListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersLdapListEmbedded(unittest.TestCase): + """UsersLdapListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersLdapListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_ldap_list_embedded.UsersLdapListEmbedded() # noqa: E501 + if include_optional : + return UsersLdapListEmbedded( + udmobject = [ + null + ] + ) + else : + return UsersLdapListEmbedded( + ) + + def testUsersLdapListEmbedded(self): + """Test UsersLdapListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap_options.py b/test/test_users_ldap_options.py new file mode 100644 index 0000000..ddc45b5 --- /dev/null +++ b/test/test_users_ldap_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_ldap_options import UsersLdapOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersLdapOptions(unittest.TestCase): + """UsersLdapOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersLdapOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_ldap_options.UsersLdapOptions() # noqa: E501 + if include_optional : + return UsersLdapOptions( + pki = False + ) + else : + return UsersLdapOptions( + ) + + def testUsersLdapOptions(self): + """Test UsersLdapOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap_policies.py b/test/test_users_ldap_policies.py new file mode 100644 index 0000000..9b4ae8d --- /dev/null +++ b/test/test_users_ldap_policies.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_ldap_policies import UsersLdapPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersLdapPolicies(unittest.TestCase): + """UsersLdapPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersLdapPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_ldap_policies.UsersLdapPolicies() # noqa: E501 + if include_optional : + return UsersLdapPolicies( + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return UsersLdapPolicies( + ) + + def testUsersLdapPolicies(self): + """Test UsersLdapPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap_request.py b/test/test_users_ldap_request.py new file mode 100644 index 0000000..c0a6522 --- /dev/null +++ b/test/test_users_ldap_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_ldap_request import UsersLdapRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersLdapRequest(unittest.TestCase): + """UsersLdapRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersLdapRequest(self): + """Test UsersLdapRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap_request_patch.py b/test/test_users_ldap_request_patch.py new file mode 100644 index 0000000..0cb217b --- /dev/null +++ b/test/test_users_ldap_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_ldap_request_patch import UsersLdapRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersLdapRequestPatch(unittest.TestCase): + """UsersLdapRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersLdapRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_ldap_request_patch.UsersLdapRequestPatch() # noqa: E501 + if include_optional : + return UsersLdapRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UsersLdapRequestPatch( + ) + + def testUsersLdapRequestPatch(self): + """Test UsersLdapRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_ldap_response_mixin.py b/test/test_users_ldap_response_mixin.py new file mode 100644 index 0000000..104240a --- /dev/null +++ b/test/test_users_ldap_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_ldap_response_mixin import UsersLdapResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersLdapResponseMixin(unittest.TestCase): + """UsersLdapResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersLdapResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_ldap_response_mixin.UsersLdapResponseMixin() # noqa: E501 + if include_optional : + return UsersLdapResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/users/ldap/uid={value},cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UsersLdapResponseMixin( + ) + + def testUsersLdapResponseMixin(self): + """Test UsersLdapResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_passwd.py b/test/test_users_passwd.py new file mode 100644 index 0000000..7a939e9 --- /dev/null +++ b/test/test_users_passwd.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_passwd import UsersPasswd # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersPasswd(unittest.TestCase): + """UsersPasswd unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersPasswd(self): + """Test UsersPasswd""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_passwd_api.py b/test/test_users_passwd_api.py new file mode 100644 index 0000000..7d11e86 --- /dev/null +++ b/test/test_users_passwd_api.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.users_passwd_api import UsersPasswdApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUsersPasswdApi(unittest.TestCase): + """UsersPasswdApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.users_passwd_api.UsersPasswdApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_users_passwd_object(self): + """Test case for udm_users_passwd_object + + Get a representation of the Password object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_users_passwd_object_modify(self): + """Test case for udm_users_passwd_object_modify + + Modify or move an Password object # noqa: E501 + """ + pass + + def test_udm_users_passwd_object_update(self): + """Test case for udm_users_passwd_object_update + + Modify an Password object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_passwd_list.py b/test/test_users_passwd_list.py new file mode 100644 index 0000000..9bb287b --- /dev/null +++ b/test/test_users_passwd_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_passwd_list import UsersPasswdList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersPasswdList(unittest.TestCase): + """UsersPasswdList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersPasswdList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_passwd_list.UsersPasswdList() # noqa: E501 + if include_optional : + return UsersPasswdList( + embedded = openapi_client_udm.models.users_passwd_list__embedded.users_passwd_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UsersPasswdList( + ) + + def testUsersPasswdList(self): + """Test UsersPasswdList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_passwd_list_embedded.py b/test/test_users_passwd_list_embedded.py new file mode 100644 index 0000000..e90c273 --- /dev/null +++ b/test/test_users_passwd_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_passwd_list_embedded import UsersPasswdListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersPasswdListEmbedded(unittest.TestCase): + """UsersPasswdListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersPasswdListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_passwd_list_embedded.UsersPasswdListEmbedded() # noqa: E501 + if include_optional : + return UsersPasswdListEmbedded( + udmobject = [ + null + ] + ) + else : + return UsersPasswdListEmbedded( + ) + + def testUsersPasswdListEmbedded(self): + """Test UsersPasswdListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_passwd_request.py b/test/test_users_passwd_request.py new file mode 100644 index 0000000..208a5c4 --- /dev/null +++ b/test/test_users_passwd_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_passwd_request import UsersPasswdRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersPasswdRequest(unittest.TestCase): + """UsersPasswdRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersPasswdRequest(self): + """Test UsersPasswdRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_passwd_request_patch.py b/test/test_users_passwd_request_patch.py new file mode 100644 index 0000000..98be5f6 --- /dev/null +++ b/test/test_users_passwd_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_passwd_request_patch import UsersPasswdRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersPasswdRequestPatch(unittest.TestCase): + """UsersPasswdRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersPasswdRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_passwd_request_patch.UsersPasswdRequestPatch() # noqa: E501 + if include_optional : + return UsersPasswdRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UsersPasswdRequestPatch( + ) + + def testUsersPasswdRequestPatch(self): + """Test UsersPasswdRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_passwd_response_mixin.py b/test/test_users_passwd_response_mixin.py new file mode 100644 index 0000000..2ccd984 --- /dev/null +++ b/test/test_users_passwd_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_passwd_response_mixin import UsersPasswdResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersPasswdResponseMixin(unittest.TestCase): + """UsersPasswdResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersPasswdResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_passwd_response_mixin.UsersPasswdResponseMixin() # noqa: E501 + if include_optional : + return UsersPasswdResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/users/passwd/cn={value},cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UsersPasswdResponseMixin( + ) + + def testUsersPasswdResponseMixin(self): + """Test UsersPasswdResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_self.py b/test/test_users_self.py new file mode 100644 index 0000000..02409fe --- /dev/null +++ b/test/test_users_self.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_self import UsersSelf # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersSelf(unittest.TestCase): + """UsersSelf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersSelf(self): + """Test UsersSelf""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_self_api.py b/test/test_users_self_api.py new file mode 100644 index 0000000..8911f68 --- /dev/null +++ b/test/test_users_self_api.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.users_self_api import UsersSelfApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUsersSelfApi(unittest.TestCase): + """UsersSelfApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.users_self_api.UsersSelfApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_users_self_object(self): + """Test case for udm_users_self_object + + Get a representation of the Self object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_users_self_object_modify(self): + """Test case for udm_users_self_object_modify + + Modify or move an Self object # noqa: E501 + """ + pass + + def test_udm_users_self_object_search(self): + """Test case for udm_users_self_object_search + + Search for Self objects # noqa: E501 + """ + pass + + def test_udm_users_self_object_update(self): + """Test case for udm_users_self_object_update + + Modify an Self object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_self_list.py b/test/test_users_self_list.py new file mode 100644 index 0000000..7fec96f --- /dev/null +++ b/test/test_users_self_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_self_list import UsersSelfList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersSelfList(unittest.TestCase): + """UsersSelfList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersSelfList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_self_list.UsersSelfList() # noqa: E501 + if include_optional : + return UsersSelfList( + embedded = openapi_client_udm.models.users_self_list__embedded.users_self_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UsersSelfList( + ) + + def testUsersSelfList(self): + """Test UsersSelfList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_self_list_embedded.py b/test/test_users_self_list_embedded.py new file mode 100644 index 0000000..2eab754 --- /dev/null +++ b/test/test_users_self_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_self_list_embedded import UsersSelfListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersSelfListEmbedded(unittest.TestCase): + """UsersSelfListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersSelfListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_self_list_embedded.UsersSelfListEmbedded() # noqa: E501 + if include_optional : + return UsersSelfListEmbedded( + udmobject = [ + null + ] + ) + else : + return UsersSelfListEmbedded( + ) + + def testUsersSelfListEmbedded(self): + """Test UsersSelfListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_self_options.py b/test/test_users_self_options.py new file mode 100644 index 0000000..5cc0590 --- /dev/null +++ b/test/test_users_self_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_self_options import UsersSelfOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersSelfOptions(unittest.TestCase): + """UsersSelfOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersSelfOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_self_options.UsersSelfOptions() # noqa: E501 + if include_optional : + return UsersSelfOptions( + pki = False + ) + else : + return UsersSelfOptions( + ) + + def testUsersSelfOptions(self): + """Test UsersSelfOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_self_request.py b/test/test_users_self_request.py new file mode 100644 index 0000000..e2f4daf --- /dev/null +++ b/test/test_users_self_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_self_request import UsersSelfRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersSelfRequest(unittest.TestCase): + """UsersSelfRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersSelfRequest(self): + """Test UsersSelfRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_self_request_patch.py b/test/test_users_self_request_patch.py new file mode 100644 index 0000000..6980dfb --- /dev/null +++ b/test/test_users_self_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_self_request_patch import UsersSelfRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersSelfRequestPatch(unittest.TestCase): + """UsersSelfRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersSelfRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_self_request_patch.UsersSelfRequestPatch() # noqa: E501 + if include_optional : + return UsersSelfRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UsersSelfRequestPatch( + ) + + def testUsersSelfRequestPatch(self): + """Test UsersSelfRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_self_response_mixin.py b/test/test_users_self_response_mixin.py new file mode 100644 index 0000000..635dc36 --- /dev/null +++ b/test/test_users_self_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_self_response_mixin import UsersSelfResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersSelfResponseMixin(unittest.TestCase): + """UsersSelfResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersSelfResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_self_response_mixin.UsersSelfResponseMixin() # noqa: E501 + if include_optional : + return UsersSelfResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/users/self/uid={value},cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UsersSelfResponseMixin( + ) + + def testUsersSelfResponseMixin(self): + """Test UsersSelfResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user.py b/test/test_users_user.py new file mode 100644 index 0000000..857b39f --- /dev/null +++ b/test/test_users_user.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_user import UsersUser # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersUser(unittest.TestCase): + """UsersUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersUser(self): + """Test UsersUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user_api.py b/test/test_users_user_api.py new file mode 100644 index 0000000..f1574ac --- /dev/null +++ b/test/test_users_user_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.users_user_api import UsersUserApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUsersUserApi(unittest.TestCase): + """UsersUserApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.users_user_api.UsersUserApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_users_user_object(self): + """Test case for udm_users_user_object + + Get a representation of the User object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_users_user_object_create(self): + """Test case for udm_users_user_object_create + + Create a new User object # noqa: E501 + """ + pass + + def test_udm_users_user_object_modify(self): + """Test case for udm_users_user_object_modify + + Modify or move an User object # noqa: E501 + """ + pass + + def test_udm_users_user_object_remove(self): + """Test case for udm_users_user_object_remove + + Remove a Users object # noqa: E501 + """ + pass + + def test_udm_users_user_object_search(self): + """Test case for udm_users_user_object_search + + Search for Users objects # noqa: E501 + """ + pass + + def test_udm_users_user_object_template(self): + """Test case for udm_users_user_object_template + + Get a template for creating an User object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_users_user_object_update(self): + """Test case for udm_users_user_object_update + + Modify an User object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user_list.py b/test/test_users_user_list.py new file mode 100644 index 0000000..59db340 --- /dev/null +++ b/test/test_users_user_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_user_list import UsersUserList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersUserList(unittest.TestCase): + """UsersUserList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersUserList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_user_list.UsersUserList() # noqa: E501 + if include_optional : + return UsersUserList( + embedded = openapi_client_udm.models.users_user_list__embedded.users_user_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UsersUserList( + ) + + def testUsersUserList(self): + """Test UsersUserList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user_list_embedded.py b/test/test_users_user_list_embedded.py new file mode 100644 index 0000000..d1a6679 --- /dev/null +++ b/test/test_users_user_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_user_list_embedded import UsersUserListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersUserListEmbedded(unittest.TestCase): + """UsersUserListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersUserListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_user_list_embedded.UsersUserListEmbedded() # noqa: E501 + if include_optional : + return UsersUserListEmbedded( + udmobject = [ + null + ] + ) + else : + return UsersUserListEmbedded( + ) + + def testUsersUserListEmbedded(self): + """Test UsersUserListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user_options.py b/test/test_users_user_options.py new file mode 100644 index 0000000..1488e28 --- /dev/null +++ b/test/test_users_user_options.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_user_options import UsersUserOptions # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersUserOptions(unittest.TestCase): + """UsersUserOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersUserOptions + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_user_options.UsersUserOptions() # noqa: E501 + if include_optional : + return UsersUserOptions( + pki = False + ) + else : + return UsersUserOptions( + ) + + def testUsersUserOptions(self): + """Test UsersUserOptions""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user_policies.py b/test/test_users_user_policies.py new file mode 100644 index 0000000..89d0294 --- /dev/null +++ b/test/test_users_user_policies.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_user_policies import UsersUserPolicies # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersUserPolicies(unittest.TestCase): + """UsersUserPolicies unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersUserPolicies + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_user_policies.UsersUserPolicies() # noqa: E501 + if include_optional : + return UsersUserPolicies( + policies_umc = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_desktop = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ], + policies_pwhistory = [ + 'dc=sawtooth,dc=claremontmakerspace,dc=org' + ] + ) + else : + return UsersUserPolicies( + ) + + def testUsersUserPolicies(self): + """Test UsersUserPolicies""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user_request.py b/test/test_users_user_request.py new file mode 100644 index 0000000..2b76e32 --- /dev/null +++ b/test/test_users_user_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_user_request import UsersUserRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersUserRequest(unittest.TestCase): + """UsersUserRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersUserRequest(self): + """Test UsersUserRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user_request_patch.py b/test/test_users_user_request_patch.py new file mode 100644 index 0000000..0b2df59 --- /dev/null +++ b/test/test_users_user_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_user_request_patch import UsersUserRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersUserRequestPatch(unittest.TestCase): + """UsersUserRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersUserRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_user_request_patch.UsersUserRequestPatch() # noqa: E501 + if include_optional : + return UsersUserRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UsersUserRequestPatch( + ) + + def testUsersUserRequestPatch(self): + """Test UsersUserRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_users_user_response_mixin.py b/test/test_users_user_response_mixin.py new file mode 100644 index 0000000..0b99799 --- /dev/null +++ b/test/test_users_user_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.users_user_response_mixin import UsersUserResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUsersUserResponseMixin(unittest.TestCase): + """UsersUserResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UsersUserResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.users_user_response_mixin.UsersUserResponseMixin() # noqa: E501 + if include_optional : + return UsersUserResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/users/user/uid={value},cn=users,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UsersUserResponseMixin( + ) + + def testUsersUserResponseMixin(self): + """Test UsersUserResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudconnection.py b/test/test_uvmm_cloudconnection.py new file mode 100644 index 0000000..01d6cf4 --- /dev/null +++ b/test/test_uvmm_cloudconnection.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudconnection import UvmmCloudconnection # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudconnection(unittest.TestCase): + """UvmmCloudconnection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUvmmCloudconnection(self): + """Test UvmmCloudconnection""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudconnection_api.py b/test/test_uvmm_cloudconnection_api.py new file mode 100644 index 0000000..e0a32bb --- /dev/null +++ b/test/test_uvmm_cloudconnection_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.uvmm_cloudconnection_api import UvmmCloudconnectionApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUvmmCloudconnectionApi(unittest.TestCase): + """UvmmCloudconnectionApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.uvmm_cloudconnection_api.UvmmCloudconnectionApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_uvmm_cloudconnection_object(self): + """Test case for udm_uvmm_cloudconnection_object + + Get a representation of the Cloud Connection object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudconnection_object_create(self): + """Test case for udm_uvmm_cloudconnection_object_create + + Create a new Cloud Connection object # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudconnection_object_modify(self): + """Test case for udm_uvmm_cloudconnection_object_modify + + Modify or move an Cloud Connection object # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudconnection_object_remove(self): + """Test case for udm_uvmm_cloudconnection_object_remove + + Remove a Cloud Connections object # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudconnection_object_search(self): + """Test case for udm_uvmm_cloudconnection_object_search + + Search for Cloud Connections objects # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudconnection_object_template(self): + """Test case for udm_uvmm_cloudconnection_object_template + + Get a template for creating an Cloud Connection object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudconnection_object_update(self): + """Test case for udm_uvmm_cloudconnection_object_update + + Modify an Cloud Connection object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudconnection_list.py b/test/test_uvmm_cloudconnection_list.py new file mode 100644 index 0000000..e76efcb --- /dev/null +++ b/test/test_uvmm_cloudconnection_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudconnection_list import UvmmCloudconnectionList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudconnectionList(unittest.TestCase): + """UvmmCloudconnectionList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmCloudconnectionList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_cloudconnection_list.UvmmCloudconnectionList() # noqa: E501 + if include_optional : + return UvmmCloudconnectionList( + embedded = openapi_client_udm.models.uvmm_cloudconnection_list__embedded.uvmm_cloudconnection_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UvmmCloudconnectionList( + ) + + def testUvmmCloudconnectionList(self): + """Test UvmmCloudconnectionList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudconnection_list_embedded.py b/test/test_uvmm_cloudconnection_list_embedded.py new file mode 100644 index 0000000..f75f3b9 --- /dev/null +++ b/test/test_uvmm_cloudconnection_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudconnection_list_embedded import UvmmCloudconnectionListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudconnectionListEmbedded(unittest.TestCase): + """UvmmCloudconnectionListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmCloudconnectionListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_cloudconnection_list_embedded.UvmmCloudconnectionListEmbedded() # noqa: E501 + if include_optional : + return UvmmCloudconnectionListEmbedded( + udmobject = [ + null + ] + ) + else : + return UvmmCloudconnectionListEmbedded( + ) + + def testUvmmCloudconnectionListEmbedded(self): + """Test UvmmCloudconnectionListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudconnection_request.py b/test/test_uvmm_cloudconnection_request.py new file mode 100644 index 0000000..63850bb --- /dev/null +++ b/test/test_uvmm_cloudconnection_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudconnection_request import UvmmCloudconnectionRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudconnectionRequest(unittest.TestCase): + """UvmmCloudconnectionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUvmmCloudconnectionRequest(self): + """Test UvmmCloudconnectionRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudconnection_request_patch.py b/test/test_uvmm_cloudconnection_request_patch.py new file mode 100644 index 0000000..1fe53a3 --- /dev/null +++ b/test/test_uvmm_cloudconnection_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudconnection_request_patch import UvmmCloudconnectionRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudconnectionRequestPatch(unittest.TestCase): + """UvmmCloudconnectionRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmCloudconnectionRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_cloudconnection_request_patch.UvmmCloudconnectionRequestPatch() # noqa: E501 + if include_optional : + return UvmmCloudconnectionRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UvmmCloudconnectionRequestPatch( + ) + + def testUvmmCloudconnectionRequestPatch(self): + """Test UvmmCloudconnectionRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudconnection_response_mixin.py b/test/test_uvmm_cloudconnection_response_mixin.py new file mode 100644 index 0000000..179386e --- /dev/null +++ b/test/test_uvmm_cloudconnection_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudconnection_response_mixin import UvmmCloudconnectionResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudconnectionResponseMixin(unittest.TestCase): + """UvmmCloudconnectionResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmCloudconnectionResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_cloudconnection_response_mixin.UvmmCloudconnectionResponseMixin() # noqa: E501 + if include_optional : + return UvmmCloudconnectionResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/uvmm/cloudconnection/cn={value},cn=CloudConnection,cn=Virtual Machine Manager,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UvmmCloudconnectionResponseMixin( + ) + + def testUvmmCloudconnectionResponseMixin(self): + """Test UvmmCloudconnectionResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudtype.py b/test/test_uvmm_cloudtype.py new file mode 100644 index 0000000..d970a40 --- /dev/null +++ b/test/test_uvmm_cloudtype.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudtype import UvmmCloudtype # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudtype(unittest.TestCase): + """UvmmCloudtype unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUvmmCloudtype(self): + """Test UvmmCloudtype""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudtype_api.py b/test/test_uvmm_cloudtype_api.py new file mode 100644 index 0000000..a7ee703 --- /dev/null +++ b/test/test_uvmm_cloudtype_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.uvmm_cloudtype_api import UvmmCloudtypeApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUvmmCloudtypeApi(unittest.TestCase): + """UvmmCloudtypeApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.uvmm_cloudtype_api.UvmmCloudtypeApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_uvmm_cloudtype_object(self): + """Test case for udm_uvmm_cloudtype_object + + Get a representation of the Cloud Type object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudtype_object_create(self): + """Test case for udm_uvmm_cloudtype_object_create + + Create a new Cloud Type object # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudtype_object_modify(self): + """Test case for udm_uvmm_cloudtype_object_modify + + Modify or move an Cloud Type object # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudtype_object_remove(self): + """Test case for udm_uvmm_cloudtype_object_remove + + Remove a Cloud Types object # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudtype_object_search(self): + """Test case for udm_uvmm_cloudtype_object_search + + Search for Cloud Types objects # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudtype_object_template(self): + """Test case for udm_uvmm_cloudtype_object_template + + Get a template for creating an Cloud Type object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_uvmm_cloudtype_object_update(self): + """Test case for udm_uvmm_cloudtype_object_update + + Modify an Cloud Type object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudtype_list.py b/test/test_uvmm_cloudtype_list.py new file mode 100644 index 0000000..10e5214 --- /dev/null +++ b/test/test_uvmm_cloudtype_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudtype_list import UvmmCloudtypeList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudtypeList(unittest.TestCase): + """UvmmCloudtypeList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmCloudtypeList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_cloudtype_list.UvmmCloudtypeList() # noqa: E501 + if include_optional : + return UvmmCloudtypeList( + embedded = openapi_client_udm.models.uvmm_cloudtype_list__embedded.uvmm_cloudtype_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UvmmCloudtypeList( + ) + + def testUvmmCloudtypeList(self): + """Test UvmmCloudtypeList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudtype_list_embedded.py b/test/test_uvmm_cloudtype_list_embedded.py new file mode 100644 index 0000000..3955b4c --- /dev/null +++ b/test/test_uvmm_cloudtype_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudtype_list_embedded import UvmmCloudtypeListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudtypeListEmbedded(unittest.TestCase): + """UvmmCloudtypeListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmCloudtypeListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_cloudtype_list_embedded.UvmmCloudtypeListEmbedded() # noqa: E501 + if include_optional : + return UvmmCloudtypeListEmbedded( + udmobject = [ + null + ] + ) + else : + return UvmmCloudtypeListEmbedded( + ) + + def testUvmmCloudtypeListEmbedded(self): + """Test UvmmCloudtypeListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudtype_request.py b/test/test_uvmm_cloudtype_request.py new file mode 100644 index 0000000..ff36b4f --- /dev/null +++ b/test/test_uvmm_cloudtype_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudtype_request import UvmmCloudtypeRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudtypeRequest(unittest.TestCase): + """UvmmCloudtypeRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUvmmCloudtypeRequest(self): + """Test UvmmCloudtypeRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudtype_request_patch.py b/test/test_uvmm_cloudtype_request_patch.py new file mode 100644 index 0000000..c36fa82 --- /dev/null +++ b/test/test_uvmm_cloudtype_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudtype_request_patch import UvmmCloudtypeRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudtypeRequestPatch(unittest.TestCase): + """UvmmCloudtypeRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmCloudtypeRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_cloudtype_request_patch.UvmmCloudtypeRequestPatch() # noqa: E501 + if include_optional : + return UvmmCloudtypeRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UvmmCloudtypeRequestPatch( + ) + + def testUvmmCloudtypeRequestPatch(self): + """Test UvmmCloudtypeRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_cloudtype_response_mixin.py b/test/test_uvmm_cloudtype_response_mixin.py new file mode 100644 index 0000000..06b9c51 --- /dev/null +++ b/test/test_uvmm_cloudtype_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_cloudtype_response_mixin import UvmmCloudtypeResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmCloudtypeResponseMixin(unittest.TestCase): + """UvmmCloudtypeResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmCloudtypeResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_cloudtype_response_mixin.UvmmCloudtypeResponseMixin() # noqa: E501 + if include_optional : + return UvmmCloudtypeResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/uvmm/cloudtype/cn={value},cn=CloudType,cn=Virtual Machine Manager,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UvmmCloudtypeResponseMixin( + ) + + def testUvmmCloudtypeResponseMixin(self): + """Test UvmmCloudtypeResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_info.py b/test/test_uvmm_info.py new file mode 100644 index 0000000..588bc88 --- /dev/null +++ b/test/test_uvmm_info.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_info import UvmmInfo # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmInfo(unittest.TestCase): + """UvmmInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUvmmInfo(self): + """Test UvmmInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_info_api.py b/test/test_uvmm_info_api.py new file mode 100644 index 0000000..2ee5211 --- /dev/null +++ b/test/test_uvmm_info_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.uvmm_info_api import UvmmInfoApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUvmmInfoApi(unittest.TestCase): + """UvmmInfoApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.uvmm_info_api.UvmmInfoApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_uvmm_info_object(self): + """Test case for udm_uvmm_info_object + + Get a representation of the Machine information object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_uvmm_info_object_create(self): + """Test case for udm_uvmm_info_object_create + + Create a new Machine information object # noqa: E501 + """ + pass + + def test_udm_uvmm_info_object_modify(self): + """Test case for udm_uvmm_info_object_modify + + Modify or move an Machine information object # noqa: E501 + """ + pass + + def test_udm_uvmm_info_object_remove(self): + """Test case for udm_uvmm_info_object_remove + + Remove a Machine information object # noqa: E501 + """ + pass + + def test_udm_uvmm_info_object_search(self): + """Test case for udm_uvmm_info_object_search + + Search for Machine information objects # noqa: E501 + """ + pass + + def test_udm_uvmm_info_object_template(self): + """Test case for udm_uvmm_info_object_template + + Get a template for creating an Machine information object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_uvmm_info_object_update(self): + """Test case for udm_uvmm_info_object_update + + Modify an Machine information object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_info_list.py b/test/test_uvmm_info_list.py new file mode 100644 index 0000000..6326105 --- /dev/null +++ b/test/test_uvmm_info_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_info_list import UvmmInfoList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmInfoList(unittest.TestCase): + """UvmmInfoList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmInfoList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_info_list.UvmmInfoList() # noqa: E501 + if include_optional : + return UvmmInfoList( + embedded = openapi_client_udm.models.uvmm_info_list__embedded.uvmm_info_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UvmmInfoList( + ) + + def testUvmmInfoList(self): + """Test UvmmInfoList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_info_list_embedded.py b/test/test_uvmm_info_list_embedded.py new file mode 100644 index 0000000..50a3223 --- /dev/null +++ b/test/test_uvmm_info_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_info_list_embedded import UvmmInfoListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmInfoListEmbedded(unittest.TestCase): + """UvmmInfoListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmInfoListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_info_list_embedded.UvmmInfoListEmbedded() # noqa: E501 + if include_optional : + return UvmmInfoListEmbedded( + udmobject = [ + null + ] + ) + else : + return UvmmInfoListEmbedded( + ) + + def testUvmmInfoListEmbedded(self): + """Test UvmmInfoListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_info_request.py b/test/test_uvmm_info_request.py new file mode 100644 index 0000000..258225d --- /dev/null +++ b/test/test_uvmm_info_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_info_request import UvmmInfoRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmInfoRequest(unittest.TestCase): + """UvmmInfoRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUvmmInfoRequest(self): + """Test UvmmInfoRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_info_request_patch.py b/test/test_uvmm_info_request_patch.py new file mode 100644 index 0000000..f26c969 --- /dev/null +++ b/test/test_uvmm_info_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_info_request_patch import UvmmInfoRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmInfoRequestPatch(unittest.TestCase): + """UvmmInfoRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmInfoRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_info_request_patch.UvmmInfoRequestPatch() # noqa: E501 + if include_optional : + return UvmmInfoRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UvmmInfoRequestPatch( + ) + + def testUvmmInfoRequestPatch(self): + """Test UvmmInfoRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_info_response_mixin.py b/test/test_uvmm_info_response_mixin.py new file mode 100644 index 0000000..58ff157 --- /dev/null +++ b/test/test_uvmm_info_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_info_response_mixin import UvmmInfoResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmInfoResponseMixin(unittest.TestCase): + """UvmmInfoResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmInfoResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_info_response_mixin.UvmmInfoResponseMixin() # noqa: E501 + if include_optional : + return UvmmInfoResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/uvmm/info/univentionVirtualMachineUUID={value},cn=Information,cn=Virtual Machine Manager,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UvmmInfoResponseMixin( + ) + + def testUvmmInfoResponseMixin(self): + """Test UvmmInfoResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_profile.py b/test/test_uvmm_profile.py new file mode 100644 index 0000000..3be5819 --- /dev/null +++ b/test/test_uvmm_profile.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_profile import UvmmProfile # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmProfile(unittest.TestCase): + """UvmmProfile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUvmmProfile(self): + """Test UvmmProfile""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_profile_api.py b/test/test_uvmm_profile_api.py new file mode 100644 index 0000000..16454b8 --- /dev/null +++ b/test/test_uvmm_profile_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client_udm +from openapi_client_udm.api.uvmm_profile_api import UvmmProfileApi # noqa: E501 +from openapi_client_udm.rest import ApiException + + +class TestUvmmProfileApi(unittest.TestCase): + """UvmmProfileApi unit test stubs""" + + def setUp(self): + self.api = openapi_client_udm.api.uvmm_profile_api.UvmmProfileApi() # noqa: E501 + + def tearDown(self): + pass + + def test_udm_uvmm_profile_object(self): + """Test case for udm_uvmm_profile_object + + Get a representation of the Profile object with all its properties, policies, options, metadata and references. Includes also instructions how to modify, remove or move the object. # noqa: E501 + """ + pass + + def test_udm_uvmm_profile_object_create(self): + """Test case for udm_uvmm_profile_object_create + + Create a new Profile object # noqa: E501 + """ + pass + + def test_udm_uvmm_profile_object_modify(self): + """Test case for udm_uvmm_profile_object_modify + + Modify or move an Profile object # noqa: E501 + """ + pass + + def test_udm_uvmm_profile_object_remove(self): + """Test case for udm_uvmm_profile_object_remove + + Remove a Profiles object # noqa: E501 + """ + pass + + def test_udm_uvmm_profile_object_search(self): + """Test case for udm_uvmm_profile_object_search + + Search for Profiles objects # noqa: E501 + """ + pass + + def test_udm_uvmm_profile_object_template(self): + """Test case for udm_uvmm_profile_object_template + + Get a template for creating an Profile object (contains all properties and their default values) # noqa: E501 + """ + pass + + def test_udm_uvmm_profile_object_update(self): + """Test case for udm_uvmm_profile_object_update + + Modify an Profile object (moving is currently not possible) # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_profile_list.py b/test/test_uvmm_profile_list.py new file mode 100644 index 0000000..f972003 --- /dev/null +++ b/test/test_uvmm_profile_list.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_profile_list import UvmmProfileList # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmProfileList(unittest.TestCase): + """UvmmProfileList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmProfileList + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_profile_list.UvmmProfileList() # noqa: E501 + if include_optional : + return UvmmProfileList( + embedded = openapi_client_udm.models.uvmm_profile_list__embedded.uvmm_profile_list__embedded( + udm:object = [ + null + ], ) + ) + else : + return UvmmProfileList( + ) + + def testUvmmProfileList(self): + """Test UvmmProfileList""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_profile_list_embedded.py b/test/test_uvmm_profile_list_embedded.py new file mode 100644 index 0000000..d251681 --- /dev/null +++ b/test/test_uvmm_profile_list_embedded.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_profile_list_embedded import UvmmProfileListEmbedded # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmProfileListEmbedded(unittest.TestCase): + """UvmmProfileListEmbedded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmProfileListEmbedded + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_profile_list_embedded.UvmmProfileListEmbedded() # noqa: E501 + if include_optional : + return UvmmProfileListEmbedded( + udmobject = [ + null + ] + ) + else : + return UvmmProfileListEmbedded( + ) + + def testUvmmProfileListEmbedded(self): + """Test UvmmProfileListEmbedded""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_profile_request.py b/test/test_uvmm_profile_request.py new file mode 100644 index 0000000..fd26d98 --- /dev/null +++ b/test/test_uvmm_profile_request.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_profile_request import UvmmProfileRequest # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmProfileRequest(unittest.TestCase): + """UvmmProfileRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUvmmProfileRequest(self): + """Test UvmmProfileRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_profile_request_patch.py b/test/test_uvmm_profile_request_patch.py new file mode 100644 index 0000000..eae07dc --- /dev/null +++ b/test/test_uvmm_profile_request_patch.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_profile_request_patch import UvmmProfileRequestPatch # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmProfileRequestPatch(unittest.TestCase): + """UvmmProfileRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmProfileRequestPatch + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_profile_request_patch.UvmmProfileRequestPatch() # noqa: E501 + if include_optional : + return UvmmProfileRequestPatch( + dn = 'dc=sawtooth,dc=claremontmakerspace,dc=org', + properties = { }, + options = { }, + policies = { } + ) + else : + return UvmmProfileRequestPatch( + ) + + def testUvmmProfileRequestPatch(self): + """Test UvmmProfileRequestPatch""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_uvmm_profile_response_mixin.py b/test/test_uvmm_profile_response_mixin.py new file mode 100644 index 0000000..8ccd94f --- /dev/null +++ b/test/test_uvmm_profile_response_mixin.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Univention Directory Manager REST interface + + Schema definition for the objects in the Univention Directory Manager REST interface. # noqa: E501 + + The version of the OpenAPI document: 1.0.2 + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import openapi_client_udm +from openapi_client_udm.models.uvmm_profile_response_mixin import UvmmProfileResponseMixin # noqa: E501 +from openapi_client_udm.rest import ApiException + +class TestUvmmProfileResponseMixin(unittest.TestCase): + """UvmmProfileResponseMixin unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UvmmProfileResponseMixin + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = openapi_client_udm.models.uvmm_profile_response_mixin.UvmmProfileResponseMixin() # noqa: E501 + if include_optional : + return UvmmProfileResponseMixin( + links = { }, + embedded = { }, + uuid = 'bf325375-e030-fccb-a009-17317c57477301234567891011121314151617181920212223242526272829303132333435', + object_type = 'users/user', + uri = 'https://172.18.142.8/univention/udm/uvmm/profile/cn={value},cn=Profiles,cn=Virtual Machine Manager,dc=sawtooth,dc=claremontmakerspace,dc=org' + ) + else : + return UvmmProfileResponseMixin( + ) + + def testUvmmProfileResponseMixin(self): + """Test UvmmProfileResponseMixin""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..495fb34 --- /dev/null +++ b/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + pytest --cov=openapi_client_udm